Browse Source

提交代码

陈少旭 1 year ago
parent
commit
09efe37848

+ 14 - 14
src/xt_pages/hospitalStation/statementTemplate/printOne.vue View File

145
       <tr>
145
       <tr>
146
         <td>床位费</td>
146
         <td>床位费</td>
147
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
147
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
148
-        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
148
+        <td style="text-align:right;padding-right:10px;">{{(info.bed_cost_self_total + info.bedSelfTotal).toFixed(2)}}</td>
149
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
149
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
150
         <td>西成药</td>
150
         <td>西成药</td>
151
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
151
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
152
-        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
152
+        <td style="text-align:right;padding-right:10px;">{{(info.western_medicine_cost_self_total + info.westernMedicineSelfTotal).toFixed(2)}}</td>
153
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
153
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
154
       </tr>
154
       </tr>
155
       <tr>
155
       <tr>
160
         <td>中成药</td>
160
         <td>中成药</td>
161
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
161
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
162
         </td>
162
         </td>
163
-        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
163
+        <td style="text-align:right;padding-right:10px;">{{(info.chinese_traditional_medicine_cost_self_total + info.chineseTraditionalSelfTotal).toFixed(2)}}</td>
164
         <td colspan="2" style="text-align:right;padding-right:10px;">
164
         <td colspan="2" style="text-align:right;padding-right:10px;">
165
           {{info.chinese_traditional_medicine_cost_part_self_total}}
165
           {{info.chinese_traditional_medicine_cost_part_self_total}}
166
         </td>
166
         </td>
172
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
172
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
173
         <td>检查费</td>
173
         <td>检查费</td>
174
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
174
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
175
-        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
175
+        <td style="text-align:right;padding-right:10px;">{{(info.check_cost_self_total + info.checkSelfTotal).toFixed(2)}}</td>
176
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
176
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
177
       </tr>
177
       </tr>
178
       <tr>
178
       <tr>
179
         <td>治疗费</td>
179
         <td>治疗费</td>
180
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
180
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
181
-        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
181
+        <td style="text-align:right;padding-right:10px;">{{(info.treat_cost_self_total + info.treatSelfTotal).toFixed(2)}}</td>
182
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
182
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
183
         <td>放射费</td>
183
         <td>放射费</td>
184
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
184
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
188
       <tr>
188
       <tr>
189
         <td>手术费</td>
189
         <td>手术费</td>
190
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
190
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
191
-        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
191
+        <td style="text-align:right;padding-right:10px;">{{(info.operation_cost_self_total + info.operationSelfTotal).toFixed(2)}}</td>
192
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
192
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
193
         <td>化验费</td>
193
         <td>化验费</td>
194
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
194
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
195
-        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
195
+        <td style="text-align:right;padding-right:10px;">{{(info.laboratory_cost_self_total + info.laboratorySelfTotal).toFixed(2)}}</td>
196
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
196
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
197
       </tr>
197
       </tr>
198
       <tr>
198
       <tr>
208
       <tr>
208
       <tr>
209
         <td>其他</td>
209
         <td>其他</td>
210
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
210
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
211
-        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
211
+        <td style="text-align:right;padding-right:10px;">{{(info.other_cost_self_total + info.otherSelfTotal).toFixed(2)}}</td>
212
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
212
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
213
         <td>麻醉费</td>
213
         <td>麻醉费</td>
214
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
214
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
218
       <tr>
218
       <tr>
219
         <td>材料费</td>
219
         <td>材料费</td>
220
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
220
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
221
-        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
221
+        <td style="text-align:right;padding-right:10px;">{{(info.material_cost_self_total + info.materialSelfTotal).toFixed(2)}}</td>
222
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
222
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
223
         <td>特殊检查费</td>
223
         <td>特殊检查费</td>
224
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
224
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
243
           parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
243
           parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
244
           parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
244
           parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
245
         </td>
245
         </td>
246
-        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
247
-          parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
248
-          parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
249
-          parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
250
-          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
246
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+parseFloat(info.bedSelfTotal)+
247
+          parseFloat(info.operation_cost_self_total)+parseFloat(info.operationSelfTotal) + parseFloat(info.other_cost_self_total) +parseFloat(info.otherSelfTotal)+
248
+          parseFloat(info.material_cost_self_total) + parseFloat(info.materialSelfTotal)  + parseFloat(info.western_medicine_cost_self_total) + parseFloat(info.westernMedicineSelfTotal) +
249
+          parseFloat(info.chinese_traditional_medicine_cost_self_total)  +  parseFloat(info.chineseTraditionalSelfTotal)  + parseFloat(info.check_cost_self_total) + parseFloat(info.checkSelfTotal) +
250
+          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.laboratorySelfTotal)  + parseFloat(info.treat_cost_self_total) +parseFloat(info.treatSelfTotal) ).toFixed(2)}}
251
         </td>
251
         </td>
252
         <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
252
         <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
253
           parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
253
           parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +

+ 5 - 5
src/xt_pages/outpatientCharges/invoicePrint.vue View File

10
         type="primary"
10
         type="primary"
11
       >打印</el-button>
11
       >打印</el-button>
12
     </template>
12
     </template>
13
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 0 && org_id != 10485 && org_id != 10375"><!---->
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375"><!---->
14
         <div class='dialysisPage'>
14
         <div class='dialysisPage'>
15
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
-            <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
17
-            <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
15
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
+            <printOne v-if="org_id != 10088 &&  org_id != 0 " :paramsObj="invoiceParams"></printOne>
17
+            <printThree v-if="org_id == 10088 || org_id == 0" :paramsObj="invoiceParams"></printThree>
18
           </div>
18
           </div>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
27
         </div>
27
         </div>
28
     </div>
28
     </div>
29
 
29
 
30
-    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485  || org_id == 0">
30
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485">
31
       <div class='dialysisPage'>
31
       <div class='dialysisPage'>
32
         <print-eleven :paramsObj="invoiceParams"></print-eleven>
32
         <print-eleven :paramsObj="invoiceParams"></print-eleven>
33
       </div>
33
       </div>

+ 3 - 4
src/xt_pages/outpatientCharges/listTemplate/printOne.vue View File

38
             </tr>
38
             </tr>
39
         </table>
39
         </table>
40
         <div class="tableBottom">
40
         <div class="tableBottom">
41
-            <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
42
-            <div class="tableBottomOne">制表日期:{{ getNowTime()}}</div>
43
-            <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
41
+          <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
42
+          <div class="tableBottomOne" v-if="$store.getters.xt_user.org.id != 10318">制表日期:{{ getNowTime()}}</div>
43
+          <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
44
           <div class="tableBottomOne">基金总额:{{order.fund_pay_sumamt}}元</div>
44
           <div class="tableBottomOne">基金总额:{{order.fund_pay_sumamt}}元</div>
45
           <div class="tableBottomOne">统筹支付:{{order.hifp_pay}}元</div>
45
           <div class="tableBottomOne">统筹支付:{{order.hifp_pay}}元</div>
46
           <div class="tableBottomOne">医疗救助:{{order.maf_pay}}元</div>
46
           <div class="tableBottomOne">医疗救助:{{order.maf_pay}}元</div>
47
           <div class="tableBottomOne">医保报销:{{order.fund_pay_sumamt}}元</div>
47
           <div class="tableBottomOne">医保报销:{{order.fund_pay_sumamt}}元</div>
48
           <div class="tableBottomOne">个人支付:{{order.psn_cash_pay}}元</div>
48
           <div class="tableBottomOne">个人支付:{{order.psn_cash_pay}}元</div>
49
-
50
         </div>
49
         </div>
51
         </div>
50
         </div>
52
     </div>
51
     </div>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue View File

15
           :prescription_id="prescription_id"
15
           :prescription_id="prescription_id"
16
         ></print-ten-one>
16
         ></print-ten-one>
17
 
17
 
18
-        <prinSeven v-if="org_id == 10375 || org_id == 0"
18
+        <prinSeven v-if="org_id == 10375 "
19
           v-bind:childResponse="childResponse"
19
           v-bind:childResponse="childResponse"
20
           :advicePrint="advicePrint"
20
           :advicePrint="advicePrint"
21
           :ids="ids"
21
           :ids="ids"

+ 36 - 31
src/xt_pages/outpatientTool/garherinvoice_lingshang.vue View File

31
         </div>
31
         </div>
32
         <div style=" width: 608px;min-height: 200px;">
32
         <div style=" width: 608px;min-height: 200px;">
33
           <div style="display:flex;justify-content: space-around;">
33
           <div style="display:flex;justify-content: space-around;">
34
-            
34
+
35
             <div style="">西药费</div>
35
             <div style="">西药费</div>
36
             <div style="">{{getWesternMedicineCostTotal()}}</div>
36
             <div style="">{{getWesternMedicineCostTotal()}}</div>
37
             <div style="">检查费</div>
37
             <div style="">检查费</div>
41
           </div>
41
           </div>
42
 
42
 
43
           <div style="display:flex;justify-content: space-around;">
43
           <div style="display:flex;justify-content: space-around;">
44
-           
44
+
45
             <div style="">床位费</div>
45
             <div style="">床位费</div>
46
             <div style="">{{getBedCostTotal()}}</div>
46
             <div style="">{{getBedCostTotal()}}</div>
47
             <div style="position:  relative;left: -15px;">中成药</div>
47
             <div style="position:  relative;left: -15px;">中成药</div>
67
           </div>
67
           </div>
68
         </div>
68
         </div>
69
         <div style="border-top:1px solid black;width: 608px;">
69
         <div style="border-top:1px solid black;width: 608px;">
70
-          
70
+
71
           <div style="border-right: 1px solid black;display: inline-block;width: 360px;padding: 5px;">
71
           <div style="border-right: 1px solid black;display: inline-block;width: 360px;padding: 5px;">
72
             <span>合计(大写):{{smalltoBIG(getAllPice())}}</span>
72
             <span>合计(大写):{{smalltoBIG(getAllPice())}}</span>
73
             <!-- <span>
73
             <!-- <span>
124
           <div style="width:140px">兜底支付:</div>
124
           <div style="width:140px">兜底支付:</div>
125
         </div>
125
         </div>
126
         <div style="display:flex;margin-bottom: 3px;">
126
         <div style="display:flex;margin-bottom: 3px;">
127
-          <div style="width:140px">个人自付:</div>
127
+          <div style="width:140px">个人自付:{{getAllPice()}}</div>
128
           <div style="width:140px">个账支付:</div>
128
           <div style="width:140px">个账支付:</div>
129
           <div style="width:140px">个账余额:</div>
129
           <div style="width:140px">个账余额:</div>
130
         </div>
130
         </div>
131
       </div>
131
       </div>
132
       <div style="width:608px;font-Size:12px">
132
       <div style="width:608px;font-Size:12px">
133
         <div style="display:flex;margin: 3px 0px;">
133
         <div style="display:flex;margin: 3px 0px;">
134
-          <div style="width:140px">现金支付:</div>
134
+          <div style="width:140px">现金支付:{{getAllPice()}}</div>
135
           <div style="width:140px">预存扣减:</div>
135
           <div style="width:140px">预存扣减:</div>
136
           <div style="width:140px">预存余额:</div>
136
           <div style="width:140px">预存余额:</div>
137
         </div>
137
         </div>
140
           <div style="width:140px">收款人:{{getAdminRole(admin_user_id)}}</div>
140
           <div style="width:140px">收款人:{{getAdminRole(admin_user_id)}}</div>
141
         </div>
141
         </div>
142
       </div>
142
       </div>
143
-      
143
+
144
   </div>
144
   </div>
145
       <!-- <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用发票</div>
145
       <!-- <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用发票</div>
146
       <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
146
       <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
147
        <div class="listInfo">
147
        <div class="listInfo">
148
           <div>收费日期:{{this.$route.query.end_time}}</div>
148
           <div>收费日期:{{this.$route.query.end_time}}</div>
149
           <div style="width:400px">发票代码:
149
           <div style="width:400px">发票代码:
150
-           <span>{{orderInfo.fa_piao_code}}</span> 
150
+           <span>{{orderInfo.fa_piao_code}}</span>
151
           </div>
151
           </div>
152
       </div>
152
       </div>
153
       <table class="listTable" table border rules=none cellspacing=0 align=center>
153
       <table class="listTable" table border rules=none cellspacing=0 align=center>
249
         doctorlist:[],
249
         doctorlist:[],
250
         orderInfo:{},
250
         orderInfo:{},
251
         his_record_patient:{},
251
         his_record_patient:{},
252
+
253
+        dabing_cost:0,
254
+        dabing_cost:0,
255
+
256
+
252
       }
257
       }
253
   },
258
   },
254
   methods:{
259
   methods:{
297
           return false
302
           return false
298
         } else {
303
         } else {
299
         this.drugTypeList =response.data.data.drugTypeList
304
         this.drugTypeList =response.data.data.drugTypeList
300
-        this.costClassifyList = response.data.data.costClassifyList 
305
+        this.costClassifyList = response.data.data.costClassifyList
301
         this.doctorlist = response.data.data.doctorlist
306
         this.doctorlist = response.data.data.doctorlist
302
         var list = response.data.data.list
307
         var list = response.data.data.list
303
         console.log("listw3232323223",list)
308
         console.log("listw3232323223",list)
332
           }
337
           }
333
         }
338
         }
334
         console.log("order_info222222222222",order_info)
339
         console.log("order_info222222222222",order_info)
335
-        
340
+
336
         //合并,相同的合并在一起
341
         //合并,相同的合并在一起
337
 
342
 
338
         let dataInfo = {}
343
         let dataInfo = {}
360
           }
365
           }
361
           dataInfo[item_id].child.push(item)
366
           dataInfo[item_id].child.push(item)
362
         })
367
         })
363
-        let arr = Object.values(dataInfo) 
364
-        
368
+        let arr = Object.values(dataInfo)
369
+
365
         for(let i=0;i<arr.length;i++){
370
         for(let i=0;i<arr.length;i++){
366
           for(let j=0;j<arr[i].child.length;j++){
371
           for(let j=0;j<arr[i].child.length;j++){
367
              if(arr[i].advice_id >0){
372
              if(arr[i].advice_id >0){
372
                 arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
377
                 arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
373
                 arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
378
                 arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
374
                 arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
379
                 arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
375
-               
376
-               
380
+
381
+
377
              }
382
              }
378
              if(arr[i].project_id > 0){
383
              if(arr[i].project_id > 0){
379
                 arr[i].record_date = arr[i].child[0].project.record_date
384
                 arr[i].record_date = arr[i].child[0].project.record_date
417
         this.hisDepatment =  response.data.data.hisDepatment
422
         this.hisDepatment =  response.data.data.hisDepatment
418
         this.order =  response.data.data.order
423
         this.order =  response.data.data.order
419
         this.his_record_patient = response.data.data.his_record_patient
424
         this.his_record_patient = response.data.data.his_record_patient
420
-        this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
425
+        this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
421
         this.orderInfo = response.data.data.orderInfo
426
         this.orderInfo = response.data.data.orderInfo
422
         if(this.$route.query.id == 1){
427
         if(this.$route.query.id == 1){
423
            var new_arr = []
428
            var new_arr = []
424
            for(let i=0;i<this.tableList.length;i++){
429
            for(let i=0;i<this.tableList.length;i++){
425
               if(this.tableList[i].type == 1){
430
               if(this.tableList[i].type == 1){
426
                 new_arr.push(this.tableList[i])
431
                 new_arr.push(this.tableList[i])
427
-              }  
432
+              }
428
            }
433
            }
429
            this.tableList = []
434
            this.tableList = []
430
            this.tableList = new_arr
435
            this.tableList = new_arr
434
            for(let i=0;i<this.tableList.length;i++){
439
            for(let i=0;i<this.tableList.length;i++){
435
               if(this.tableList[i].type == 2){
440
               if(this.tableList[i].type == 2){
436
                 new_arr.push(this.tableList[i])
441
                 new_arr.push(this.tableList[i])
437
-              }  
442
+              }
438
            }
443
            }
439
            this.tableList = []
444
            this.tableList = []
440
            this.tableList = new_arr
445
            this.tableList = new_arr
444
            for(let i=0;i<this.tableList.length;i++){
449
            for(let i=0;i<this.tableList.length;i++){
445
               if(this.tableList[i].type == 3){
450
               if(this.tableList[i].type == 3){
446
                 new_arr.push(this.tableList[i])
451
                 new_arr.push(this.tableList[i])
447
-              }  
452
+              }
448
            }
453
            }
449
            this.tableList = []
454
            this.tableList = []
450
            this.tableList = new_arr
455
            this.tableList = new_arr
493
         }
498
         }
494
 
499
 
495
       }
500
       }
496
-    
501
+
497
       let new_drug_ids = this.unique(drug_ids)
502
       let new_drug_ids = this.unique(drug_ids)
498
       let new_project_ids = this.unique(project_ids)
503
       let new_project_ids = this.unique(project_ids)
499
-     
504
+
500
       let list = []
505
       let list = []
501
       if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
506
       if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
502
         for (let i = 0; i < new_drug_ids.length; i++) {
507
         for (let i = 0; i < new_drug_ids.length; i++) {
531
                obj['name'] = details[a].project.project.project_name
536
                obj['name'] = details[a].project.project.project_name
532
                obj['spec'] = ''
537
                obj['spec'] = ''
533
                obj['unit'] = details[a].project.project.unit
538
                obj['unit'] = details[a].project.project.unit
534
-              
539
+
535
 
540
 
536
              }else if(details[a].project.type == 3){
541
              }else if(details[a].project.type == 3){
537
                obj['name'] = details[a].project.good_info.good_name
542
                obj['name'] = details[a].project.good_info.good_name
538
                obj['spec'] = ''
543
                obj['spec'] = ''
539
                obj['unit'] = details[a].project.good_info.packing_unit
544
                obj['unit'] = details[a].project.good_info.packing_unit
540
-             
545
+
541
 
546
 
542
              }
547
              }
543
               obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
548
               obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
551
           }
556
           }
552
           obj['count'] = count
557
           obj['count'] = count
553
           list.push(obj)
558
           list.push(obj)
554
-        
559
+
555
         }
560
         }
556
       }
561
       }
557
 
562
 
577
           list.push(obj)
582
           list.push(obj)
578
 
583
 
579
         }
584
         }
580
-       
585
+
581
         for (let i = 0; i < new_project_ids.length; i++) {
586
         for (let i = 0; i < new_project_ids.length; i++) {
582
           let obj = {}
587
           let obj = {}
583
           let count = 0
588
           let count = 0
604
           }
609
           }
605
           obj['count'] = count
610
           obj['count'] = count
606
           list.push(obj)
611
           list.push(obj)
607
-        
612
+
608
         }
613
         }
609
        }
614
        }
610
        console.log("list232332322323332233223232323",list)
615
        console.log("list232332322323332233223232323",list)
611
       return list
616
       return list
612
-    }, 
613
-  
617
+    },
618
+
614
     getMedicineInsuranceType(type) {
619
     getMedicineInsuranceType(type) {
615
       switch (type) {
620
       switch (type) {
616
         case "01":
621
         case "01":
726
     return name
731
     return name
727
   },
732
   },
728
    smalltoBIG(n) {
733
    smalltoBIG(n) {
729
-         
734
+
730
       if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
735
       if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
731
           return "数据非法";  //判断数据是否大于0
736
           return "数据非法";  //判断数据是否大于0
732
       }
737
       }
809
           total_price += this.tableList[i].count_number * this.tableList[i].pric
814
           total_price += this.tableList[i].count_number * this.tableList[i].pric
810
        }
815
        }
811
     }
816
     }
812
-    
817
+
813
     return total_price.toFixed(2)
818
     return total_price.toFixed(2)
814
   },
819
   },
815
   getChineseTraditionalMedicineCostTotal(){
820
   getChineseTraditionalMedicineCostTotal(){
989
     }else{
994
     }else{
990
       return total_price
995
       return total_price
991
     }
996
     }
992
-   
997
+
993
   },
998
   },
994
   getAllPiceTwo(arr){
999
   getAllPiceTwo(arr){
995
 
1000
 
1004
     }else{
1009
     }else{
1005
       return total_price
1010
       return total_price
1006
     }
1011
     }
1007
-   
1012
+
1008
   },
1013
   },
1009
   getAdminRole(id){
1014
   getAdminRole(id){
1010
     var user_name = ""
1015
     var user_name = ""
1019
   created(){
1024
   created(){
1020
     this.admin_user_id = this.$store.getters.xt_user.user.id
1025
     this.admin_user_id = this.$store.getters.xt_user.user.id
1021
     console.log("admin_user_id23323232323",this.admin_user_id)
1026
     console.log("admin_user_id23323232323",this.admin_user_id)
1022
-    this.getGatherDetailList()   
1027
+    this.getGatherDetailList()
1023
     var data = new Date();
1028
     var data = new Date();
1024
     var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1029
     var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1025
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
1030
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();