csx 2 lat temu
rodzic
commit
3fcbf4e588

+ 5 - 3
src/xt_pages/data/druguse.vue Wyświetl plik

@@ -93,7 +93,7 @@
93 93
                   <el-form-item label="医嘱名称 :" required prop="advice_name">
94 94
                     <el-input v-model="templateForm.advice_name" style="width:50%"></el-input>
95 95
                   </el-form-item>
96
-               </el-col> 
96
+               </el-col>
97 97
               <!-- <el-form-item label="医嘱内容 :" prop="advice_desc">
98 98
                 <el-input v-model="templateForm.advice_desc" style="width:50%"></el-input>
99 99
               </el-form-item> -->
@@ -167,7 +167,7 @@
167 167
                   </el-form-item>
168 168
                 </el-col>
169 169
               </el-row>
170
-              <el-row>  
170
+              <el-row>
171 171
                 <el-col :span="12">
172 172
                   <el-form-item label="执行频率 :" prop="execution_frequency">
173 173
                     <el-select
@@ -395,6 +395,7 @@
395 395
             <el-form ref="efForm" :rules="efRules" :model="efForm" label-width="90px">
396 396
               <el-form-item label="执行频率 :" required prop="name">
397 397
                 <el-input v-model="efForm.name" placeholder="执行频率"></el-input>
398
+                <el-input v-model="efForm.code" placeholder="编码"></el-input>
398 399
               </el-form-item>
399 400
             </el-form>
400 401
             <div slot="footer" class="dialog-footer">
@@ -486,7 +487,8 @@ export default {
486 487
       },
487 488
       efForm: {
488 489
         name: "",
489
-        id: 0
490
+        id: 0,
491
+        code:"",
490 492
       },
491 493
       unitsOption: [
492 494
         { lable: 1, name: "盒" },

+ 13 - 2
src/xt_pages/data/druguseTemplate.vue Wyświetl plik

@@ -1251,7 +1251,15 @@
1251 1251
               <el-form ref="efForm" :rules="efRules" :model="efForm" label-width="90px">
1252 1252
                 <el-form-item label="执行频率 :" required prop="name">
1253 1253
                   <el-input v-model="efForm.name" placeholder="执行频率"></el-input>
1254
+
1254 1255
                 </el-form-item>
1256
+
1257
+
1258
+                <el-form-item label="执行频率 :" >
1259
+                  <el-input v-model="efForm.code" placeholder="编码"></el-input>
1260
+                </el-form-item>
1261
+
1262
+
1255 1263
               </el-form>
1256 1264
               <div slot="footer" class="dialog-footer">
1257 1265
                 <el-button @click="efFormVisible = false">取消</el-button>
@@ -1438,7 +1446,8 @@
1438 1446
         },
1439 1447
         efForm: {
1440 1448
           name: '',
1441
-          id: 0
1449
+          id: 0,
1450
+          code: "",
1442 1451
         },
1443 1452
 
1444 1453
         drugforms: [
@@ -1976,6 +1985,7 @@
1976 1985
         this.dialogTitle = '新增给药途径'
1977 1986
         this.isEdit = false
1978 1987
       },
1988
+
1979 1989
       handleUpdateDrugWay(row, index) {
1980 1990
         this.currentIndex = index
1981 1991
         this.drugwayForm = {
@@ -2061,7 +2071,8 @@
2061 2071
         this.currentIndex = index
2062 2072
         this.efForm = {
2063 2073
           name: row.name,
2064
-          id: row.id
2074
+          id: row.id,
2075
+          code: row.code
2065 2076
         }
2066 2077
 
2067 2078
         this.efFormVisible = true

+ 2 - 2
src/xt_pages/hospitalStation/components/chargeDialog.vue Wyświetl plik

@@ -80,7 +80,7 @@
80 80
     <el-form-item label="支付方式:" style="width:100%;">
81 81
          <el-radio-group v-model="form.pay_way">
82 82
           <el-radio :label="item.value" :value="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
83
-           <el-button type="primary" v-if="form.pay_way == 5" @click="reading()">读卡</el-button>
83
+           <el-button type="primary" v-if="form.pay_way == 4" @click="reading()">读卡</el-button>
84 84
 
85 85
          </el-radio-group>
86 86
       </el-form-item>
@@ -216,7 +216,7 @@
216 216
           // {value: 2, label: '银行卡'},
217 217
           // {value: 3, label: '微信'},
218 218
           // {value: 4, label: '支付宝'},
219
-          { value: 5, label: '医保卡' },
219
+          { value: 4, label: '医保卡' },
220 220
 
221 221
         ],
222 222
         total: "",

+ 1 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue Wyświetl plik

@@ -638,6 +638,7 @@
638 638
           'admin_user_id': this.$store.getters.xt_user.user.id,
639 639
           'certificates':this.form.certificates,
640 640
         }
641
+        axios.defaults.retry = 0
641 642
         axios.get('http://127.0.0.1:9532/api/readcard', {
642 643
           params: params
643 644
         })

+ 5 - 5
src/xt_pages/outpatientCharges/listPrint.vue Wyświetl plik

@@ -17,8 +17,8 @@
17 17
       <printOne v-if="org_id != 10106&&org_id != 10215&&org_id != 10265 && org_id != 0 && org_id!=9675" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18 18
       <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
19 19
       <print-three v-if="org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
20
-      <list-print-two v-if="org_id == 10215 || org_id == 0 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
21
-      <print-two10265  v-if="org_id == 10265 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
20
+      <list-print-two v-if="org_id == 10215 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
21
+      <print-two10265  v-if="org_id == 10265 || org_id == 0 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
22 22
     </div>
23 23
   </div>
24 24
 </template>
@@ -189,7 +189,7 @@
189 189
                 if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
190 190
                   obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
191 191
                   obj['name'] = infos.advice.drug.drug_name
192
-                  obj['unit'] = infos.advice.drug.min_unit
192
+                  obj['unit'] = infos.advice.prescribing_number_unit
193 193
                   obj['feedetl_sn'] =  infos.feedetl_sn
194 194
                   obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
195 195
                   obj['is_total']= 0
@@ -314,7 +314,7 @@
314 314
                 obj['name'] = details[a].advice.advice_name
315 315
                 // obj['spec'] = details[a].advice.drug.drug_spec
316 316
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
317
-                obj['unit'] = details[a].advice.drug.max_unit
317
+                obj['unit'] = details[a].advice.prescribing_number_unit
318 318
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
319 319
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
320 320
                 obj['price'] = parseFloat(details[a].pric)
@@ -409,7 +409,7 @@
409 409
                 obj['name'] = details[a].advice.advice_name
410 410
                 // obj['spec'] = details[a].advice.drug.drug_spec
411 411
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
412
-                obj['unit'] = details[a].advice.drug.max_unit
412
+                obj['unit'] = details[a].advice.prescribing_number_unit
413 413
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
414 414
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
415 415
                 obj['price'] = parseFloat(details[a].pric)

+ 48 - 26
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue Wyświetl plik

@@ -24,36 +24,58 @@
24 24
 
25 25
         <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
26 26
         <tr>
27
+<!--          <td colspan="24">-->
28
+<!--            <template v-for="(v, i) in info.list" >-->
29
+<!--              <el-row gutter="24" >-->
30
+<!--                <el-col span="12" :key="i" v-if='i%2 == 0'>-->
31
+<!--                  <table class="list_table">-->
32
+<!--                    <template>-->
33
+<!--                      <tr colspan="12">-->
34
+<!--                        <td colspan="2">{{v.name}}</td>-->
35
+<!--                        <td>{{v.spec}}</td>-->
36
+<!--                        <td>{{v.cnt}}</td>-->
37
+<!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
38
+<!--                      </tr>-->
39
+<!--                    </template>-->
40
+<!--                  </table>-->
41
+<!--                </el-col>-->
42
+<!--                <el-col span="12" v-if="i+1 < info.list.length">-->
43
+<!--                  <table class="list_table">-->
44
+<!--                    <template >-->
45
+<!--                      <tr colspan="12">-->
46
+<!--                        <td colspan="2">{{v.name}}</td>-->
47
+<!--                        <td>{{v.spec}}</td>-->
48
+<!--                        <td>{{v.cnt}}</td>-->
49
+<!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
50
+<!--                      </tr>-->
51
+<!--                    </template>-->
52
+<!--                  </table>-->
53
+<!--                </el-col>-->
54
+<!--              </el-row>-->
55
+<!--            </template>-->
56
+<!--          </td>-->
57
+        <tr>
27 58
           <td colspan="6">
28 59
             <table class="list_table">
29
-              <template v-for="(item, index) in list" v-if='index%2==0'>
30
-              <tr colspan="6"  :key="index">
31
-                <td colspan="2">药名</td>
32
-                <td>规格</td>
33
-                <td>数量</td>
34
-                <td>价格</td>
60
+              <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">
61
+                <td colspan="2">{{v.name}}</td>
62
+                <td>{{v.spec}}</td>
63
+                <td>{{v.cnt}}</td>
64
+                <td>{{v.det_item_fee_sumamt}}</td>
35 65
               </tr>
36
-                <tr  v-if='index+1<list.length' >
37
-                  <td colspan="2">药名</td>
38
-                  <td>规格</td>
39
-                  <td>数量</td>
40
-                  <td>价格</td>
41
-                </tr>
42
-              </template>
43 66
             </table>
44
-
45 67
           </td>
46 68
 
47
-<!--          <td colspan="4">-->
48
-<!--            <table class="list_table">-->
49
-<!--              <tr colspan="4" v-for="(item, index) in list_R" :key="index">-->
50
-<!--                <td colspan="2">药名</td>-->
51
-<!--                <td>规格</td>-->
52
-<!--                <td>数量</td>-->
53
-<!--                <td>价格</td>-->
54
-<!--              </tr>-->
55
-<!--            </table>-->
56
-<!--          </td>-->
69
+          <td colspan="6">
70
+            <table class="list_table">
71
+              <tr colspan="6" v-for="(v, index) in info.R_list" :key="index">
72
+                <td colspan="2">{{v.name}}</td>
73
+                <td>{{v.spec}}</td>
74
+                <td>{{v.cnt}}</td>
75
+                <td>{{v.det_item_fee_sumamt}}</td>
76
+              </tr>
77
+            </table>
78
+          </td>
57 79
         </tr>
58 80
         <tr>
59 81
           <td colspan="10">共一页,第一页{{info.medfee_sumamt}}</td>
@@ -66,7 +88,7 @@
66 88
             <div>费用总计:{{info.medfee_sumamt}}</div>
67 89
             <div>统筹支付:{{info.fund_pay_sumamt}}</div>
68 90
             <div>账户支付:{{info.acct_pay}}</div>
69
-            <div>个人现金支付:{{info.psn_cash_pay}}</div>
91
+            <div>个人现金支付:{{info.cash_payamt}}</div>
70 92
             <div>其他支付:{{info.oth_pay}}</div>
71 93
             <div>减免金额:</div>
72 94
           </td>
@@ -99,7 +121,7 @@ export default {
99 121
   },
100 122
   data() {
101 123
     return {
102
-      list:[1,2],
124
+      list:[1,2,3],
103 125
       list_L: [1,2],
104 126
       list_R: [1,2],
105 127
     };

+ 10 - 17
src/xt_pages/outpatientTool/components/detailStatistics.vue Wyświetl plik

@@ -167,11 +167,11 @@
167 167
     <div style="display: flex; justify-content: space-around; margin-top: 25px">
168 168
       <div>总费用:{{ getAllPice() }}</div>
169 169
       <div>
170
-        个人支付: 
170
+        个人支付:
171 171
         {{getActPay()}}
172
-        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
+        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
173 173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
174
-      
174
+
175 175
       </div>
176 176
       <div>基金支付记账:{{ getFundPaySumamt() }}</div>
177 177
       <div>补充医疗支付记账:{{ getHifesPay() }}</div>
@@ -345,7 +345,7 @@ export default {
345 345
             this.item_type = this.id;
346 346
           }
347 347
 
348
-          
348
+
349 349
           if (this.keywords != "") {
350 350
             for (let i = 0; i < this.tableData.length; i++) {
351 351
               if (this.tableData[i].index != "合计") {
@@ -444,25 +444,18 @@ export default {
444 444
       return total_price.toFixed(2);
445 445
     },
446 446
     getActPay() {
447
-      var arrNew = []
448 447
       var act_pay = 0;
449 448
       for (let i = 0; i < this.list.length; i++) {
450 449
         for (let j = 0; j < this.list[i].orders.length; j++) {
451
-          //个人支付
452
-          console.log("is",this.list[i].orders[j])
453
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
454
-             arrNew.push(this.list[i].orders[j])
450
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
451
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
452
+          }else{
453
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
455 454
           }
455
+
456 456
         }
457 457
       }
458
-      if(arrNew.length > 0){
459
-        for(let i=0;i<arrNew.length;i++){
460
-           for(let j=0;j<arrNew[i].order_info.length;j++){
461
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
462
-           }
463
-        }
464
-      }
465
-      console.log("arrNew2332323223",arrNew)
458
+
466 459
       return act_pay.toFixed(2);
467 460
     },
468 461
     getFundPaySumamt() {

+ 17 - 24
src/xt_pages/outpatientTool/detailPrint.vue Wyświetl plik

@@ -28,7 +28,7 @@
28 28
           <span v-if="his_patient!=null && his_patient.number!=''">{{his_patient.number}}</span>
29 29
           <span v-if="his_record_patient!=null && his_record_patient.ipt_otp_no!=''">{{his_record_patient.ipt_otp_no}}</span></td>
30 30
             <td>科室:
31
-          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span> 
31
+          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span>
32 32
           <span v-if="his_record_patient!=null && his_record_patient.departments > 0">{{ getDepartment(his_record_patient.departments) }}</span></td>
33 33
             <td>就诊流水号:
34 34
           <span v-if="his_patient!=null && his_patient.number!=''"> {{ his_patient.number }}</span>
@@ -60,7 +60,7 @@
60 60
         <div>患者姓名:{{ patient.name }}</div>
61 61
         <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
62 62
         <div>结算类别:
63
-          
63
+
64 64
           {{getType(his_record_patient.balance_accounts_type)}}
65 65
         </div>
66 66
         <div style="min-width:300px;">发票号码:{{order.fa_piao_number}}</div>
@@ -73,7 +73,7 @@
73 73
           {{ getDepartment(his_record_patient.departments) }}
74 74
         </div>
75 75
         <div style="min-width:350px;">就诊流水号:
76
-       
76
+
77 77
           {{his_record_patient.number}}
78 78
         </div>
79 79
       </div> -->
@@ -108,7 +108,7 @@
108 108
             <span v-if="item.is_total == 2">合计</span>
109 109
           </td>
110 110
           <td style="text-align: center">
111
-            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span> 
111
+            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span>
112 112
           </td>
113 113
           <td width="80" style="text-align: center">{{ item.number }}</td>
114 114
           <td style="text-align: center">
@@ -239,11 +239,11 @@ export default {
239 239
           this.patient = response.data.data.patient;
240 240
 
241 241
           this.his_patient = response.data.data.his_patient;
242
-         
242
+
243 243
          this.his_record_patient = response.data.data.his_record_patient
244 244
 
245 245
          this.hisDepatment = response.data.data.hisDepatment;
246
-          
246
+
247 247
          this.orderList = response.data.data.orderList
248 248
           this.order = response.data.data.order
249 249
           this.tableData = [];
@@ -271,7 +271,7 @@ export default {
271 271
           this.tableData.push(obj);
272 272
 
273 273
 
274
-         
274
+
275 275
           if (this.$route.query.keyword != "") {
276 276
             var new_arr = []
277 277
             for (let i = 0; i < this.tableData.length; i++) {
@@ -314,7 +314,7 @@ export default {
314 314
             objs.total_price = this.getPrice(new_arr)
315 315
             new_arr.push(objs)
316 316
             this.tableData = new_arr;
317
-           
317
+
318 318
           }
319 319
 
320 320
           if(this.$route.query.id == 1){
@@ -347,10 +347,10 @@ export default {
347 347
                 }
348 348
               }
349 349
             }
350
-         
350
+
351 351
             this.tableData = []
352 352
             obj.total_price = this.getPrice(new_arr)
353
-           
353
+
354 354
             for(let i=0;i<new_arr.length;i++){
355 355
               new_arr[i].is_total = 1
356 356
             }
@@ -376,7 +376,7 @@ export default {
376 376
               new_arr[i].is_total = 1
377 377
             }
378 378
             new_arr.push(obj)
379
-           
379
+
380 380
             this.tableData = new_arr
381 381
           }
382 382
 
@@ -393,25 +393,18 @@ export default {
393 393
       return total_price;
394 394
     },
395 395
     getActPay() {
396
-      var arrNew = []
397 396
       var act_pay = 0;
398 397
       for (let i = 0; i < this.list.length; i++) {
399 398
         for (let j = 0; j < this.list[i].orders.length; j++) {
400
-          //个人支付
401
-          console.log("is",this.list[i].orders[j])
402
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
403
-             arrNew.push(this.list[i].orders[j])
399
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
400
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
401
+          }else{
402
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
404 403
           }
404
+
405 405
         }
406 406
       }
407
-      if(arrNew.length > 0){
408
-        for(let i=0;i<arrNew.length;i++){
409
-           for(let j=0;j<arrNew[i].order_info.length;j++){
410
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
411
-           }
412
-        }
413
-      }
414
-      console.log("arrNew2332323223",arrNew)
407
+
415 408
       return act_pay.toFixed(2);
416 409
     },
417 410
     getFundPaySumamt() {

+ 53 - 60
src/xt_pages/outpatientTool/gatherPrint.vue Wyświetl plik

@@ -10,12 +10,12 @@
10 10
         </div>
11 11
         <div class="listInfo">
12 12
             <div>科别:
13
-              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span>
14 14
               {{getDepartment(his_record_patient.departments)}}
15 15
             </div>
16 16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17 17
             <div>门诊号:
18
-               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span>
19 19
                {{his_record_patient.ipt_otp_no}}
20 20
             </div>
21 21
             <div>姓名:{{patient.name}}</div>
@@ -76,27 +76,27 @@
76 76
                    {{item.cost_type}}
77 77
                  </span>
78 78
                   <span v-if="item.type == 2">
79
-                    {{item.cost_type}} 
79
+                    {{item.cost_type}}
80 80
                   </span>
81 81
                   <span v-if="item.type == 3">
82 82
                     材料费
83
-                  </span> 
83
+                  </span>
84 84
                 </td>
85 85
                 <td style="text-align:center" >
86
-                  <span>{{item.name}}</span>  
86
+                  <span>{{item.name}}</span>
87 87
                 </td>
88 88
                 <td style="text-align:center" >
89 89
                   {{ item.spec }}
90 90
                 </td>
91 91
                 <td style="text-align:center" >
92
-                  {{item.pric}}  
92
+                  {{item.pric}}
93 93
                 </td>
94 94
                 <td style="text-align:center" >
95 95
                    {{item.count_number }}{{item.unit }}
96 96
                 </td>
97 97
                 <td style="text-align:center" >
98
-                   <span v-if="item.is_total == 1">{{ item.total }}</span>  
99
-                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span> 
98
+                   <span v-if="item.is_total == 1">{{ item.total }}</span>
99
+                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
100 100
                 </td>
101 101
                 <td style="text-align:center" >
102 102
                   {{getChrgitmLv(item.medical_insurance_level)}}
@@ -194,7 +194,7 @@
194 194
             return false
195 195
           } else {
196 196
           this.drugTypeList =response.data.data.drugTypeList
197
-          this.costClassifyList = response.data.data.costClassifyList 
197
+          this.costClassifyList = response.data.data.costClassifyList
198 198
           var list = response.data.data.list
199 199
           this.list = list
200 200
           this.orderList = response.data.data.orderList
@@ -206,7 +206,7 @@
206 206
                new_arr.push(list[i].orders[j])
207 207
             }
208 208
           }
209
-          
209
+
210 210
 
211 211
           var order_info = []
212 212
           for(let i=0;i<new_arr.length;i++){
@@ -228,8 +228,8 @@
228 228
               }
229 229
             }
230 230
           }
231
-          
232
-          
231
+
232
+
233 233
           //合并,相同的合并在一起
234 234
 
235 235
           let dataInfo = {}
@@ -257,8 +257,8 @@
257 257
             }
258 258
             dataInfo[item_id].child.push(item)
259 259
           })
260
-          let arr = Object.values(dataInfo) 
261
-          
260
+          let arr = Object.values(dataInfo)
261
+
262 262
           for(let i=0;i<arr.length;i++){
263 263
             for(let j=0;j<arr[i].child.length;j++){
264 264
                if(arr[i].advice_id >0){
@@ -269,8 +269,8 @@
269 269
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
270 270
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
271 271
                   arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
272
-                 
273
-                 
272
+
273
+
274 274
                }
275 275
                if(arr[i].project_id > 0){
276 276
                   arr[i].record_date = arr[i].child[0].project.record_date
@@ -293,7 +293,7 @@
293 293
                arr[i].count_number +=arr[i].child[j].cnt
294 294
             }
295 295
           }
296
-          
296
+
297 297
           var obj = {is_total:1,total:0}
298 298
           obj.total = this.getAllPiceTwo(arr)
299 299
           for(let i=0;i<arr.length;i++){
@@ -307,18 +307,18 @@
307 307
           arr.push(obj)
308 308
 
309 309
           this.tableList = arr
310
-         
310
+
311 311
           this.patient = response.data.data.patient
312
-         
312
+
313 313
           this.his_patient = response.data.data.his_patient
314 314
           this.hisDepatment =  response.data.data.hisDepatment
315 315
           this.order =  response.data.data.order
316 316
           this.his_record_patient = response.data.data.his_record_patient
317
-          this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
317
+          this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
318 318
           this.schedule = response.data.data.schedule
319 319
           this.bedNumber = response.data.data.bedNumber
320 320
           if(this.$route.query.keyword !=""){
321
-           
321
+
322 322
             var new_arr = []
323 323
             for(let i=0;i<this.tableList.length;i++){
324 324
               if(this.tableList[i].is_total!=1){
@@ -326,7 +326,7 @@
326 326
                   new_arr.push(this.tableList[i])
327 327
                 }
328 328
               }
329
-             
329
+
330 330
              }
331 331
               var obj ={index:"合计",is_total:1,total:0}
332 332
               obj.total = this.getAllPiceTwo(new_arr)
@@ -341,9 +341,9 @@
341 341
                 if(this.tableList[i].is_total!=1){
342 342
                   if(this.tableList[i].type == 1){
343 343
                    new_arr.push(this.tableList[i])
344
-                }  
344
+                }
345 345
               }
346
-                
346
+
347 347
              }
348 348
              this.tableList = []
349 349
              this.tableList = new_arr
@@ -353,9 +353,9 @@
353 353
              for(let i=0;i<this.tableList.length;i++){
354 354
                if(this.tableList[i].is_total!=1){
355 355
                   if(this.tableList[i].type == 2){
356
-                
356
+
357 357
                   new_arr.push(this.tableList[i])
358
-                }  
358
+                }
359 359
               }
360 360
              }
361 361
              this.tableList = []
@@ -367,7 +367,7 @@
367 367
                 if(this.tableList[i].is_total!=1){
368 368
                   if(this.tableList[i].type == 3){
369 369
                     new_arr.push(this.tableList[i])
370
-                }  
370
+                }
371 371
               }
372 372
              }
373 373
              this.tableList = []
@@ -404,7 +404,7 @@
404 404
               id: details[i].advice.drug_id,
405 405
               price: details[i].advice.price,
406 406
               record_date:details[i].advice.advice_date
407
-              
407
+
408 408
             }
409 409
             drug_ids.push(obj)
410 410
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
@@ -418,10 +418,10 @@
418 418
           }
419 419
 
420 420
         }
421
-      
421
+
422 422
         let new_drug_ids = this.unique(drug_ids)
423 423
         let new_project_ids = this.unique(project_ids)
424
-       
424
+
425 425
         let list = []
426 426
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
427 427
           for (let i = 0; i < new_drug_ids.length; i++) {
@@ -476,7 +476,7 @@
476 476
             }
477 477
             obj['count'] = count
478 478
             list.push(obj)
479
-          
479
+
480 480
           }
481 481
         }
482 482
 
@@ -502,7 +502,7 @@
502 502
             list.push(obj)
503 503
 
504 504
           }
505
-         
505
+
506 506
           for (let i = 0; i < new_project_ids.length; i++) {
507 507
             let obj = {}
508 508
             let count = 0
@@ -529,13 +529,13 @@
529 529
             }
530 530
             obj['count'] = count
531 531
             list.push(obj)
532
-          
532
+
533 533
           }
534 534
          }
535
-       
535
+
536 536
         return list
537
-      }, 
538
-    
537
+      },
538
+
539 539
       getMedicineInsuranceType(type) {
540 540
         switch (type) {
541 541
           case "01":
@@ -663,7 +663,7 @@
663 663
       }else{
664 664
         return "0.00"
665 665
       }
666
-     
666
+
667 667
     },
668 668
     getAllPiceTwo(arr){
669 669
 
@@ -678,7 +678,7 @@
678 678
       }else{
679 679
         return total_price
680 680
       }
681
-     
681
+
682 682
     },
683 683
     setMonthPrescription(month_prescriptions) {
684 684
       let drug_month_prescriptions = {
@@ -718,7 +718,7 @@
718 718
 
719 719
       drug_ids = this.unique(drug_ids)
720 720
       project_ids= this.unique(project_ids)
721
-  
721
+
722 722
       for (let i = 0; i < drug_ids.length; i++) {
723 723
         let obj = {}
724 724
         let count = 0
@@ -738,7 +738,7 @@
738 738
             obj['record_date'] = drug_month_prescriptions.advices[a].advice_date
739 739
             obj['spec'] = drug_month_prescriptions.advices[a].drug.dose  + drug_month_prescriptions.advices[a].drug.dose_unit +"*" + drug_month_prescriptions.advices[a].drug.min_number + drug_month_prescriptions.advices[a].drug.min_unit + "/" + drug_month_prescriptions.advices[a].drug.max_unit
740 740
             obj['is_total'] = 2
741
-            obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level 
741
+            obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level
742 742
             obj['unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
743 743
             count = count + drug_month_prescriptions.advices[a].prescribing_number
744 744
 
@@ -777,7 +777,7 @@
777 777
             obj['day'] = project_month_prescriptions.project[a].day
778 778
             obj['single_dose_unit'] = project_month_prescriptions.project[a].unit
779 779
             obj['prescribing_number_unit'] = project_month_prescriptions.project[a].unit
780
-           
780
+
781 781
             count = count + parseFloat(project_month_prescriptions.project[a].count)
782 782
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
783 783
             obj['remark'] = project_month_prescriptions.project[a].remark
@@ -911,7 +911,7 @@
911 911
             total_price += this.tableList[i].count_number * this.tableList[i].pric
912 912
          }
913 913
       }
914
-      
914
+
915 915
       return total_price.toFixed(2)
916 916
     },
917 917
     getChineseTraditionalMedicineCostTotal(){
@@ -1041,7 +1041,7 @@
1041 1041
       return total_price.toFixed(2)
1042 1042
     },
1043 1043
     getDrugType(id){
1044
-    
1044
+
1045 1045
       var name = ""
1046 1046
       for(let i=0;i<this.drugTypeList.length;i++){
1047 1047
          if(id == this.drugTypeList[i].value){
@@ -1108,42 +1108,35 @@
1108 1108
       for(let i=0;i<this.orderList.length;i++){
1109 1109
         fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
1110 1110
       }
1111
-     
1111
+
1112 1112
       if(fund_pay_sumamt >0){
1113 1113
         return fund_pay_sumamt.toFixed(2)
1114 1114
       }else{
1115
-      
1115
+
1116 1116
         return "0.00"
1117 1117
       }
1118 1118
     },
1119 1119
     getActPay() {
1120
-      var arrNew = []
1121 1120
       var act_pay = 0;
1122 1121
       for (let i = 0; i < this.list.length; i++) {
1123 1122
         for (let j = 0; j < this.list[i].orders.length; j++) {
1124
-          //个人支付
1125
-          console.log("is",this.list[i].orders[j])
1126
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
1127
-             arrNew.push(this.list[i].orders[j])
1123
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
1124
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
1125
+          }else{
1126
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
1128 1127
           }
1128
+
1129 1129
         }
1130 1130
       }
1131
-      if(arrNew.length > 0){
1132
-        for(let i=0;i<arrNew.length;i++){
1133
-           for(let j=0;j<arrNew[i].order_info.length;j++){
1134
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
1135
-           }
1136
-        }
1137
-      }
1138
-      console.log("arrNew2332323223",arrNew)
1131
+
1139 1132
       return act_pay.toFixed(2);
1140 1133
     },
1141 1134
 
1142 1135
     },
1143 1136
     created(){
1144 1137
       this.org_id = this.$store.getters.xt_user.org.id;
1145
-     
1146
-      this.getGatherDetailList()   
1138
+
1139
+      this.getGatherDetailList()
1147 1140
     }
1148 1141
 
1149 1142
   }

+ 5 - 0
src/xt_pages/qcd/workAnalysis/nurse.vue Wyświetl plik

@@ -421,10 +421,15 @@
421 421
                 total_diffcult_nurse = total_diffcult_nurse + resp.data.data[i].difficult_nuser_count
422 422
                 total_new_fistula_nurse = total_new_fistula_nurse + resp.data.data[i].new_nuser_count
423 423
                 total_start_nurse = total_start_nurse + resp.data.data[i].start_nuser_count
424
+                console.log( resp.data.data[i].start_nuser_count)
425
+
426
+                console.log(total_start_nurse)
424 427
                 total_finish_nurse = total_finish_nurse + resp.data.data[i].finish_nuser_count
425 428
                 total_washpipe_nurse = total_washpipe_nurse + resp.data.data[i].washpipe_nuser_count
426 429
                 this.tableData.push(resp.data.data[i])
427 430
              }
431
+              console.log(total_start_nurse)
432
+
428 433
               this.tableData.push( {
429 434
                 user_name:"合计",
430 435
                 cure_count:total_cure,