Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 year ago
parent
commit
c113628ef6

+ 3 - 2
src/api/dialysis_record.js View File

85
   })
85
   })
86
 }
86
 }
87
 
87
 
88
-export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mode, puncture_point_haematoma, internal_fistula, catheter, cruor, mission) {
88
+export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mode, puncture_point_haematoma, internal_fistula, catheter, cruor, mission,condenser) {
89
   var params = {
89
   var params = {
90
     patient_id: patient_id,
90
     patient_id: patient_id,
91
     date: schedule_date,
91
     date: schedule_date,
96
     internal_fistula: internal_fistula,
96
     internal_fistula: internal_fistula,
97
     catheter: catheter,
97
     catheter: catheter,
98
     cruor: cruor,
98
     cruor: cruor,
99
-    mission: mission
99
+    mission: mission,
100
+    condenser:condenser,
100
   }
101
   }
101
   return request({
102
   return request({
102
     url: '/api/dialysis/finish',
103
     url: '/api/dialysis/finish',

+ 2 - 2
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

203
             </el-form-item>
203
             </el-form-item>
204
           </el-col>
204
           </el-col>
205
 
205
 
206
-          <el-col :span="8" v-if="isShow('灌流器凝血')">
206
+          <!-- <el-col :span="8" v-if="isShow('灌流器凝血')">
207
             <el-form-item label="灌流器凝血: " :prop="isName('灌流器凝血')" :rules="isCheckmust('灌流器凝血')">
207
             <el-form-item label="灌流器凝血: " :prop="isName('灌流器凝血')" :rules="isCheckmust('灌流器凝血')">
208
               <el-input
208
               <el-input
209
                 v-model="form.condenser "
209
                 v-model="form.condenser "
211
                 @focus="showDialog('11')"
211
                 @focus="showDialog('11')"
212
               ></el-input>
212
               ></el-input>
213
             </el-form-item>
213
             </el-form-item>
214
-          </el-col>
214
+          </el-col> -->
215
 
215
 
216
           <el-col :span="8" v-if="isShow('管路凝血')">
216
           <el-col :span="8" v-if="isShow('管路凝血')">
217
             <el-form-item label="管路凝血: " :prop="isName('管路凝血')" :rules="isCheckmust('管路凝血')">
217
             <el-form-item label="管路凝血: " :prop="isName('管路凝血')" :rules="isCheckmust('管路凝血')">

+ 3 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

446
         dialysis_irrigation: "",
446
         dialysis_irrigation: "",
447
         blood_access_id: "",
447
         blood_access_id: "",
448
         nuclein_date: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
448
         nuclein_date: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
449
-        catheter_operation:""
449
+        catheter_operation:"",
450
+        blood_flow_volume:"" ,
450
       },
451
       },
451
       blood_access_option: [],
452
       blood_access_option: [],
452
       schedual_type: 0,
453
       schedual_type: 0,
476
       infoDialogVisible:false,
477
       infoDialogVisible:false,
477
       selected_date:"",
478
       selected_date:"",
478
       remark:"",
479
       remark:"",
479
-      blood_flow_volume:"" ,
480
+     
480
     };
481
     };
481
   },
482
   },
482
   props: {
483
   props: {

+ 24 - 2
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

53
           ></el-input>
53
           ></el-input>
54
        </el-form-item>
54
        </el-form-item>
55
 
55
 
56
+       <el-form-item label="灌流器凝血: " :prop="isName('灌流器凝血')"
57
+              :rules="isCheckmust('灌流器凝血')" v-if="isShowFiled('灌流器凝血')">
58
+          <el-input
59
+            style="width:200px"
60
+            v-model="form.condenser"
61
+            readonly
62
+            @focus="showInnerDialog('2')"
63
+          ></el-input>
64
+       </el-form-item>
65
+
56
         <el-form-item label="宣教知识:" :prop="isName('宣教知识')"
66
         <el-form-item label="宣教知识:" :prop="isName('宣教知识')"
57
               :rules="isCheckmust('宣教知识')" v-if="isShowFiled('宣教知识')">
67
               :rules="isCheckmust('宣教知识')" v-if="isShowFiled('宣教知识')">
58
           <el-select @change="dialysisAfterTeachSelectChange" v-model="form.mission_id">
68
           <el-select @change="dialysisAfterTeachSelectChange" v-model="form.mission_id">
172
           cruor:"",
182
           cruor:"",
173
           mission:"",
183
           mission:"",
174
           mission_id:"",
184
           mission_id:"",
185
+          condenser:"",
175
         },
186
         },
176
         internal_fistula: [],
187
         internal_fistula: [],
177
         InnerDialogProps: {
188
         InnerDialogProps: {
418
             ParamsQuery["cruor"] = this.form.cruor
429
             ParamsQuery["cruor"] = this.form.cruor
419
             ParamsQuery["mission"] = this.form.mission
430
             ParamsQuery["mission"] = this.form.mission
420
             ParamsQuery["mission_id"] = this.form.mission_id
431
             ParamsQuery["mission_id"] = this.form.mission_id
432
+            ParamsQuery["condenser"] = this.form.condenser
421
             if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
433
             if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
422
               ParamsQuery["mode"] = "3"
434
               ParamsQuery["mode"] = "3"
423
             }
435
             }
465
              let mode = "1"
477
              let mode = "1"
466
              console.log("fomr",this.form.mission_id)
478
              console.log("fomr",this.form.mission_id)
467
 
479
 
468
-            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor,this.form.mission,this.form.mission_id).then(rs => {
480
+            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor,this.form.mission,this.form.mission_id,this.form.condenser).then(rs => {
469
               this.loading = false
481
               this.loading = false
470
               var resp = rs.data
482
               var resp = rs.data
471
               if (resp.state == 1) {
483
               if (resp.state == 1) {
548
             break
560
             break
549
             case '1':
561
             case '1':
550
             this.InnerDialogProps.values = this.cruorOptions
562
             this.InnerDialogProps.values = this.cruorOptions
551
-            this.InnerDialogProps.titles = '凝血'
563
+            this.InnerDialogProps.titles = '透析器凝血'
552
             this.InnerDialogProps.type = 'cruor'
564
             this.InnerDialogProps.type = 'cruor'
553
             this.InnerDialogProps.selected = this.form.cruor
565
             this.InnerDialogProps.selected = this.form.cruor
554
             this.InnerDialogProps.isShowTextArea = false
566
             this.InnerDialogProps.isShowTextArea = false
555
             break
567
             break
568
+            case '2':
569
+            this.InnerDialogProps.values = this.cruorOptions
570
+            this.InnerDialogProps.titles = '灌流器凝血'
571
+            this.InnerDialogProps.type = 'condenser'
572
+            this.InnerDialogProps.selected = this.form.condenser
573
+            this.InnerDialogProps.isShowTextArea = false
574
+            break
556
 
575
 
557
         }
576
         }
558
       },
577
       },
568
           case 'cruor':
587
           case 'cruor':
569
           this.form.cruor = val.value.join(',')
588
           this.form.cruor = val.value.join(',')
570
           break
589
           break
590
+          case 'condenser':
591
+          this.form.condenser = val.value.join(',')
592
+          break
571
         }
593
         }
572
       },
594
       },
573
       innerDialogCancle: function() {
595
       innerDialogCancle: function() {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

270
             "
270
             "
271
           >
271
           >
272
             <template slot-scope="scope">
272
             <template slot-scope="scope">
273
-             <span v-if="org_id == 10440 || org_id == 9671 || org_id ==10206">
273
+             <span v-if="org_id == 10440 || org_id == 9671 || org_id ==10206 || org_id ==10612">
274
               {{
274
               {{
275
                 scope.row.ultrafiltration_volume
275
                 scope.row.ultrafiltration_volume
276
                   ? scope.row.ultrafiltration_volume
276
                   ? scope.row.ultrafiltration_volume
277
                   : "0"
277
                   : "0"
278
               }}
278
               }}
279
               </span>
279
               </span>
280
-               <span v-if="org_id != 10440 && org_id!=9671 && org_id!=10206">
280
+               <span v-if="org_id != 10440 && org_id!=9671 && org_id!=10206 && org_id!=10612">
281
               {{
281
               {{
282
                 scope.row.ultrafiltration_volume
282
                 scope.row.ultrafiltration_volume
283
                   ? scope.row.ultrafiltration_volume
283
                   ? scope.row.ultrafiltration_volume

+ 26 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

102
           <div style="flex:1;">
102
           <div style="flex:1;">
103
             首剂
103
             首剂
104
             <span class="under-line" style="display:inline-block;width: 50%;">
104
             <span class="under-line" style="display:inline-block;width: 50%;">
105
-              {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0" }}
105
+              {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "0" }}
106
             </span>
106
             </span>
107
             <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
107
             <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
108
             <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
108
             <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
146
           <div style="flex: 1;">
146
           <div style="flex: 1;">
147
             处方脱水量
147
             处方脱水量
148
             <span class="under-line" style="display: inline-block;width: 50%;">
148
             <span class="under-line" style="display: inline-block;width: 50%;">
149
-              {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
149
+              {{ prescription.prescription_water ? prescription.prescription_water : "" }}L
150
             </span>
150
             </span>
151
           </div>
151
           </div>
152
           <div style="flex: 1;">
152
           <div style="flex: 1;">
153
             透析液流量
153
             透析液流量
154
             <span class="under-line" style="display: inline-block;width: 50%;">
154
             <span class="under-line" style="display: inline-block;width: 50%;">
155
-              {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}
155
+              {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}ml/min
156
             </span>
156
             </span>
157
           </div>
157
           </div>
158
           <div style="flex: 1;">
158
           <div style="flex: 1;">
177
           <div style="flex: 1;">
177
           <div style="flex: 1;">
178
             透 (滤) 器
178
             透 (滤) 器
179
             <span class="under-line" style="display: inline-block;width: 50%;" >
179
             <span class="under-line" style="display: inline-block;width: 50%;" >
180
-              {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
180
+              {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "" }}
181
+
182
+              {{ prescription.dialysis_strainer ? prescription.dialysis_strainer : "" }}
181
             </span>
183
             </span>
182
           </div>
184
           </div>
183
           <div style="flex: 1;">
185
           <div style="flex: 1;">
190
             透析液:
192
             透析液:
191
             <div style="display: inline-block;margin-right: 10px;">
193
             <div style="display: inline-block;margin-right: 10px;">
192
               <div style="display: inline-block;width: 10px;height: 10px;border: 1px solid black;position: relative;top: 5px;">
194
               <div style="display: inline-block;width: 10px;height: 10px;border: 1px solid black;position: relative;top: 5px;">
193
-                <span style="position: relative; top: -4px; left: -2px;">√</span>
195
+                <span style="position: relative; top: -4px; left: -2px;">
196
+                   <span v-if="prescription.dialyzate.indexOf('碳酸')!=-1">√</span>
197
+                </span>
194
               </div>&nbsp;碳酸
198
               </div>&nbsp;碳酸
195
-            </div>
196
-            <div style="display: inline-block;">
197
-              <!-- <input type="checkbox" style="-webkit-appearance: checkbox">&nbsp;醋酸 -->
199
+              <div class="under_line" style="width: 100px; text-align: center" v-if="prescription.dialyzate.indexOf('碳酸')>-1">
200
+                      碳酸
201
+               </div>
202
+            </div> -->
203
+            <!-- <div style="display: inline-block;">
204
+
198
               <div style="display: inline-block;width: 10px;height: 10px;border: 1px solid black;position: relative;top: 5px;">
205
               <div style="display: inline-block;width: 10px;height: 10px;border: 1px solid black;position: relative;top: 5px;">
199
-                <span style="position: relative; top: -4px; left: -2px;">√</span>
206
+                <span v-if="prescription.dialyzate.indexOf('醋酸')!=-1">√</span>
200
               </div>&nbsp;醋酸
207
               </div>&nbsp;醋酸
208
+
209
+            </div> -->
210
+            <div class="under_line" style="width: 100px; text-align: center" v-if="prescription.dialyzate.indexOf('碳酸')>-1">
211
+                 碳酸
201
             </div>
212
             </div>
213
+
214
+            <div class="under_line" style="width: 100px; text-align: center" v-if="prescription.dialyzate.indexOf('醋酸')>-1">
215
+                醋酸
216
+               </div>
202
           </div>
217
           </div>
203
         </div>
218
         </div>
204
         <div style="display: flex;border-left: 1px solid black;border-right: 1px solid black;padding: 5px;">
219
         <div style="display: flex;border-left: 1px solid black;border-right: 1px solid black;padding: 5px;">
320
                 {{
335
                 {{
321
                   monitor.ultrafiltration_volume
336
                   monitor.ultrafiltration_volume
322
                     ? monitor.ultrafiltration_volume
337
                     ? monitor.ultrafiltration_volume
323
-                    : ""
338
+                    : "0"
324
                 }}
339
                 }}
325
               </span>
340
               </span>
326
             </td>
341
             </td>
328
             <!-- T -->
343
             <!-- T -->
329
             <td>
344
             <td>
330
               <span v-if="getTime(monitor.operate_time) != ''">
345
               <span v-if="getTime(monitor.operate_time) != ''">
331
-                {{ monitor.temperature ? monitor.temperature : "" }}
346
+                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
332
               </span>
347
               </span>
333
             </td>
348
             </td>
334
             <!-- HR -->
349
             <!-- HR -->

+ 2 - 1
src/xt_pages/outpatientCharges/statementPrint.vue View File

60
       <printtwelve :info="info" v-if="org_id == 10480 "></printtwelve>
60
       <printtwelve :info="info" v-if="org_id == 10480 "></printtwelve>
61
       <!-- 大冶 -->
61
       <!-- 大冶 -->
62
       <printthirteen :info="info" v-if="org_id == 10510 || org_id == 0"></printthirteen>
62
       <printthirteen :info="info" v-if="org_id == 10510 || org_id == 0"></printthirteen>
63
+
63
       <printOne :info="info" v-if=" org_id != 9990 &&
64
       <printOne :info="info" v-if=" org_id != 9990 &&
64
             org_id != 10138 &&
65
             org_id != 10138 &&
65
             org_id != 9504 &&
66
             org_id != 9504 &&
1078
                 that.info = response.data.data.info
1079
                 that.info = response.data.data.info
1079
                 that.p_admin = response.data.data.printor_admin
1080
                 that.p_admin = response.data.data.printor_admin
1080
                 that.charge_admin = response.data.data.charge_admin
1081
                 that.charge_admin = response.data.data.charge_admin
1081
-
1082
+                that.info['psn_cash_pay'] = response.data.data.psn_cash_pay
1082
                 that.info['new_order'] = response.data.data.order
1083
                 that.info['new_order'] = response.data.data.order
1083
                 that.info['p_admin'] = that.p_admin
1084
                 that.info['p_admin'] = that.p_admin
1084
                 that.info['charge_admin'] = that.charge_admin
1085
                 that.info['charge_admin'] = that.charge_admin

+ 5 - 2
src/xt_pages/outpatientCharges/summary.vue View File

1380
                 id_card_no: order.patient.id_card_no,
1380
                 id_card_no: order.patient.id_card_no,
1381
                 year: "2023",
1381
                 year: "2023",
1382
                 month: order.setl_time.split(" ")[0].split("-")[1],
1382
                 month: order.setl_time.split(" ")[0].split("-")[1],
1383
+                ddd:this.getTimes(order.settle_accounts_date),
1383
                 code: data[b].code,
1384
                 code: data[b].code,
1384
                 pric: data[b].total ,
1385
                 pric: data[b].total ,
1385
                 item_name: data[b].name,
1386
                 item_name: data[b].name,
1409
                 "医保类型": list[i].insutype,
1410
                 "医保类型": list[i].insutype,
1410
                 "年": list[i].year,
1411
                 "年": list[i].year,
1411
                 "月": list[i].month,
1412
                 "月": list[i].month,
1412
-
1413
+                "时间": list[i].ddd,
1413
                 "药品编码": list[i].code,
1414
                 "药品编码": list[i].code,
1414
                 "费用类型": list[i].item_type_name,
1415
                 "费用类型": list[i].item_type_name,
1415
                 "名称": list[i].item_name,
1416
                 "名称": list[i].item_name,
1429
               "医保类型",
1430
               "医保类型",
1430
               "年",
1431
               "年",
1431
               "月",
1432
               "月",
1433
+              "时间",
1432
               "药品编码",
1434
               "药品编码",
1433
               "费用类型",
1435
               "费用类型",
1434
               "名称",
1436
               "名称",
1444
               "医保类型",
1446
               "医保类型",
1445
               "年",
1447
               "年",
1446
               "月",
1448
               "月",
1449
+              "时间",
1447
               "药品编码",
1450
               "药品编码",
1448
               "费用类型",
1451
               "费用类型",
1449
               "名称",
1452
               "名称",
1771
           var tarList = []
1774
           var tarList = []
1772
           for (let i = 0; i < list.length; i++) {
1775
           for (let i = 0; i < list.length; i++) {
1773
             let obj = {
1776
             let obj = {
1774
-              "周期": "2023年第季度",
1777
+              "周期": "2023年第季度",
1775
               "类别": "门诊",
1778
               "类别": "门诊",
1776
               "医保目录编码": list[i].code,
1779
               "医保目录编码": list[i].code,
1777
               "医保目录名称": list[i].name,
1780
               "医保目录名称": list[i].name,

+ 75 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2592
           //   }
2592
           //   }
2593
           // }
2593
           // }
2594
           if (index == 1) {
2594
           if (index == 1) {
2595
-            console.log(this.prescriptions)
2595
+            // console.log(this.prescriptions)
2596
+
2597
+            if (this.org_id == 10206 || this.org_id == 0){
2598
+              console.log(this.prescriptions)
2599
+
2600
+              //药品
2601
+              for(let i = 0; i < this.prescriptions.length; i++){
2602
+                  for(let b = 0; b < this.prescriptions[i].advices.length; b++){
2603
+                    // if(this.prescriptions[i].advices[b].advice_id == 0) {
2604
+                      // this.judgmentsDrugStock(this.prescriptions[i].advices[b].drug.bby01, this.prescriptions[i].advices[b].drug.bbx01,this.prescriptions[i].advices[b].drug_name,this.prescriptions[i].advices[b].prescribing_number,isLoading)
2605
+                      for (let c = 0; c < this.zuobiao_drug.length; c++) {
2606
+                        if (this.zuobiao_drug[c].bby01 == this.prescriptions[i].advices[b].drug.bby01) {
2607
+                          if (this.zuobiao_drug[c].sysl < parseInt(this.prescriptions[i].advices[b].prescribing_number)){
2608
+                            isLoading = false
2609
+                            this.$message.error(this.prescriptions[i].advices[b].drug_name + "库存不足,无法保存")
2610
+                            return
2611
+                          }
2612
+                        }
2613
+                      }
2614
+                    // }
2615
+                  }
2616
+              }
2617
+              //耗材
2618
+              for(let i = 0; i < this.prescriptions.length; i++){
2619
+
2620
+                  for(let b = 0; b < this.prescriptions[i].project.length; b++){
2621
+                    if(this.prescriptions[i].project[b].type == 3){
2622
+                      // if(this.prescriptions[i].project[b].id == 0) {
2623
+                        // this.judgmentsGoodStock(this.prescriptions[i].project[b].good_info.bby01, this.prescriptions[i].project[b].good_info.bbx01,this.prescriptions[i].project[b].good_info.good_name,this.prescriptions[i].project[b].good_info.specification_name,this.prescriptions[i].project[b].total,isLoading)
2624
+                        for (let c = 0; c < this.zuobiao_project.length; c++) {
2625
+                          if (this.zuobiao_project[c].bbx01 == this.prescriptions[i].project[b].good_info.bbx01 && this.zuobiao_project[c].bby06 == this.prescriptions[i].project[b].good_info.specification_name) {
2626
+                            if (this.zuobiao_project[c].lsqty < parseInt(this.prescriptions[i].project[b].total)){
2627
+                              isLoading = false
2628
+                              this.$message.error(this.prescriptions[i].project[b].good_info.good_name + "库存不足,无法保存")
2629
+                              return
2630
+                            }
2631
+                          }
2632
+                        }
2633
+
2634
+                      //
2635
+                      // }
2636
+                    }
2637
+                  }
2638
+              }
2639
+            }
2640
+
2641
+
2596
 
2642
 
2597
             if (this.org_id != 10206 && this.org_id != 0) {
2643
             if (this.org_id != 10206 && this.org_id != 0) {
2598
               for (let i = 0; i < this.prescriptions.length; i++) {
2644
               for (let i = 0; i < this.prescriptions.length; i++) {
2624
               }
2670
               }
2625
             }
2671
             }
2626
 
2672
 
2673
+            //库存限制
2674
+
2675
+
2676
+
2627
 
2677
 
2628
             this.$emit('editKeepLoad', true)
2678
             this.$emit('editKeepLoad', true)
2629
             var str = ""
2679
             var str = ""
3119
           }
3169
           }
3120
         }
3170
         }
3121
       }
3171
       }
3172
+    },judgmentsDrugStock(bby01, bbx01,name,count,isLoading){
3173
+      for (let i = 0; i < this.zuobiao_drug.length; i++) {
3174
+          if (this.zuobiao_drug[i].bby01 == bby01) {
3175
+            if (this.zuobiao_drug[i].sysl < parseInt(count)){
3176
+              isLoading = false
3177
+              this.$message.error(name + "库存不足,无法保存")
3178
+              return
3179
+            }
3180
+          }
3181
+      }
3182
+
3183
+    },judgmentsGoodStock(bby01, bbx01,name,specification_name,count,isLoading){
3184
+      for (let i = 0; i < this.zuobiao_project.length; i++) {
3185
+        if (this.zuobiao_project[i].bbx01 == bbx01 && this.zuobiao_project[i].bby06 == specification_name) {
3186
+          if (this.zuobiao_project[i].lsqty < parseInt(count)){
3187
+            isLoading = false
3188
+            this.$message.error(name + "库存不足,无法保存")
3189
+            return
3190
+          }
3191
+        }
3192
+      }
3122
     },
3193
     },
3123
     addTab(targetName) {
3194
     addTab(targetName) {
3124
 
3195
 
3651
                 groupno: index + temp_index,
3722
                 groupno: index + temp_index,
3652
                 hosp_appr_flag: '1',
3723
                 hosp_appr_flag: '1',
3653
                 execution_state:2,
3724
                 execution_state:2,
3725
+
3726
+
3654
               }
3727
               }
3655
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3728
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3656
                 obj.prescribing_number = 1
3729
                 obj.prescribing_number = 1
3840
               project_name: good_info[i].good_name,
3913
               project_name: good_info[i].good_name,
3841
               statistical_classification: '',
3914
               statistical_classification: '',
3842
               single_dose: good_info[i].specification_name,
3915
               single_dose: good_info[i].specification_name,
3916
+              specification_name: good_info[i].specification_name,
3843
               delivery_way: '',
3917
               delivery_way: '',
3844
               execution_frequency: '',
3918
               execution_frequency: '',
3845
               number_days: 1,
3919
               number_days: 1,

+ 12 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1143
       })
1143
       })
1144
     },
1144
     },
1145
     setMonthPrescription(month_prescriptions) {
1145
     setMonthPrescription(month_prescriptions) {
1146
+      console.log("--======-66666777--====")
1146
 
1147
 
1147
       this.month_prescriptions = []
1148
       this.month_prescriptions = []
1148
 
1149
 
1271
             // obj['medical_c/**/ode'] = project_month_prescriptions.project[a].project.medical_code
1272
             // obj['medical_c/**/ode'] = project_month_prescriptions.project[a].project.medical_code
1272
             obj['unit'] = project_month_prescriptions.project[a].unit
1273
             obj['unit'] = project_month_prescriptions.project[a].unit
1273
             obj['project_id'] = project_month_prescriptions.project[a].project_id
1274
             obj['project_id'] = project_month_prescriptions.project[a].project_id
1275
+
1276
+
1277
+            if(project_month_prescriptions.project[a].project_id == 12302){
1278
+              console.log("--======---====")
1279
+              console.log("--======---====")
1280
+              console.log(count)
1281
+            }
1282
+
1274
             count = count + parseFloat(project_month_prescriptions.project[a].count)
1283
             count = count + parseFloat(project_month_prescriptions.project[a].count)
1275
             // price = price + project_month_prescriptions.project[a].price
1284
             // price = price + project_month_prescriptions.project[a].price
1276
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
1285
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
1945
                     hosp_appr_flag: '1',
1954
                     hosp_appr_flag: '1',
1946
                     execution_state: 2,
1955
                     execution_state: 2,
1947
                     is_self_drug: '',
1956
                     is_self_drug: '',
1948
-                    drug_way_count: '1'
1957
+                    drug_way_count: '1',
1958
+
1949
 
1959
 
1950
                   }
1960
                   }
1951
 
1961
 
2289
                         execution_state: prescription.advices[b].execution_state,
2299
                         execution_state: prescription.advices[b].execution_state,
2290
                         is_medicine: prescription.advices[b].is_medicine,
2300
                         is_medicine: prescription.advices[b].is_medicine,
2291
                         is_self_drug: prescription.advices[b].is_self_drug.toString(),
2301
                         is_self_drug: prescription.advices[b].is_self_drug.toString(),
2292
-                        drug_way_count: prescription.advices[b].drug_way_count
2302
+                        drug_way_count: prescription.advices[b].drug_way_count,
2293
 
2303
 
2294
                       }
2304
                       }
2295
                       tempAdvice.push(obj)
2305
                       tempAdvice.push(obj)

+ 3 - 3
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

113
       </el-table-column>
113
       </el-table-column>
114
       <el-table-column align="center" label="金额" prop="total_all">
114
       <el-table-column align="center" label="金额" prop="total_all">
115
         <template slot-scope="scope">
115
         <template slot-scope="scope">
116
-          <!-- <span v-if="scope.row.is_total == 1">{{ scope.row.total }}</span>  
116
+          <!-- <span v-if="scope.row.is_total == 1">{{ scope.row.total }}</span>
117
           <span v-if="scope.row.is_total == 2">{{ (scope.row.price * scope.row.count).toFixed(2) }}</span>   -->
117
           <span v-if="scope.row.is_total == 2">{{ (scope.row.price * scope.row.count).toFixed(2) }}</span>   -->
118
           <span>{{
118
           <span>{{
119
             (scope.row.count_number * scope.row.pric).toFixed(2)
119
             (scope.row.count_number * scope.row.pric).toFixed(2)
455
             this.item_type = this.id;
455
             this.item_type = this.id;
456
           }
456
           }
457
           console.log(this.item_type,'this.item_type')
457
           console.log(this.item_type,'this.item_type')
458
-          
458
+
459
 
459
 
460
           if (this.keywords != "") {
460
           if (this.keywords != "") {
461
             for (let i = 0; i < this.tableList.length; i++) {
461
             for (let i = 0; i < this.tableList.length; i++) {
1165
     getLaboratoryCostTotal() {
1165
     getLaboratoryCostTotal() {
1166
       var total_price = 0;
1166
       var total_price = 0;
1167
       for (let i = 0; i < this.tableList.length; i++) {
1167
       for (let i = 0; i < this.tableList.length; i++) {
1168
-        if (this.tableList[i].cost_type == "化验费") {
1168
+        if (this.tableList[i].cost_type == "化验费" || this.tableList[i].cost_type == "化验") {
1169
           total_price +=
1169
           total_price +=
1170
             this.tableList[i].count_number * this.tableList[i].pric;
1170
             this.tableList[i].count_number * this.tableList[i].pric;
1171
         }
1171
         }