瀏覽代碼

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

yq1 10 月之前
父節點
當前提交
c113628ef6

+ 3 - 2
src/api/dialysis_record.js 查看文件

@@ -85,7 +85,7 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
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 89
   var params = {
90 90
     patient_id: patient_id,
91 91
     date: schedule_date,
@@ -96,7 +96,8 @@ export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mo
96 96
     internal_fistula: internal_fistula,
97 97
     catheter: catheter,
98 98
     cruor: cruor,
99
-    mission: mission
99
+    mission: mission,
100
+    condenser:condenser,
100 101
   }
101 102
   return request({
102 103
     url: '/api/dialysis/finish',

+ 2 - 2
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

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

+ 3 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

@@ -446,7 +446,8 @@ export default {
446 446
         dialysis_irrigation: "",
447 447
         blood_access_id: "",
448 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 452
       blood_access_option: [],
452 453
       schedual_type: 0,
@@ -476,7 +477,7 @@ export default {
476 477
       infoDialogVisible:false,
477 478
       selected_date:"",
478 479
       remark:"",
479
-      blood_flow_volume:"" ,
480
+     
480 481
     };
481 482
   },
482 483
   props: {

+ 24 - 2
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

@@ -53,6 +53,16 @@
53 53
           ></el-input>
54 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 66
         <el-form-item label="宣教知识:" :prop="isName('宣教知识')"
57 67
               :rules="isCheckmust('宣教知识')" v-if="isShowFiled('宣教知识')">
58 68
           <el-select @change="dialysisAfterTeachSelectChange" v-model="form.mission_id">
@@ -172,6 +182,7 @@
172 182
           cruor:"",
173 183
           mission:"",
174 184
           mission_id:"",
185
+          condenser:"",
175 186
         },
176 187
         internal_fistula: [],
177 188
         InnerDialogProps: {
@@ -418,6 +429,7 @@
418 429
             ParamsQuery["cruor"] = this.form.cruor
419 430
             ParamsQuery["mission"] = this.form.mission
420 431
             ParamsQuery["mission_id"] = this.form.mission_id
432
+            ParamsQuery["condenser"] = this.form.condenser
421 433
             if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
422 434
               ParamsQuery["mode"] = "3"
423 435
             }
@@ -465,7 +477,7 @@
465 477
              let mode = "1"
466 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 481
               this.loading = false
470 482
               var resp = rs.data
471 483
               if (resp.state == 1) {
@@ -548,11 +560,18 @@
548 560
             break
549 561
             case '1':
550 562
             this.InnerDialogProps.values = this.cruorOptions
551
-            this.InnerDialogProps.titles = '凝血'
563
+            this.InnerDialogProps.titles = '透析器凝血'
552 564
             this.InnerDialogProps.type = 'cruor'
553 565
             this.InnerDialogProps.selected = this.form.cruor
554 566
             this.InnerDialogProps.isShowTextArea = false
555 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,6 +587,9 @@
568 587
           case 'cruor':
569 588
           this.form.cruor = val.value.join(',')
570 589
           break
590
+          case 'condenser':
591
+          this.form.condenser = val.value.join(',')
592
+          break
571 593
         }
572 594
       },
573 595
       innerDialogCancle: function() {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -270,14 +270,14 @@
270 270
             "
271 271
           >
272 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 275
                 scope.row.ultrafiltration_volume
276 276
                   ? scope.row.ultrafiltration_volume
277 277
                   : "0"
278 278
               }}
279 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 282
                 scope.row.ultrafiltration_volume
283 283
                   ? scope.row.ultrafiltration_volume

+ 26 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue 查看文件

@@ -102,7 +102,7 @@
102 102
           <div style="flex:1;">
103 103
             首剂
104 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 106
             </span>
107 107
             <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
108 108
             <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
@@ -146,13 +146,13 @@
146 146
           <div style="flex: 1;">
147 147
             处方脱水量
148 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 150
             </span>
151 151
           </div>
152 152
           <div style="flex: 1;">
153 153
             透析液流量
154 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 156
             </span>
157 157
           </div>
158 158
           <div style="flex: 1;">
@@ -177,7 +177,9 @@
177 177
           <div style="flex: 1;">
178 178
             透 (滤) 器
179 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 183
             </span>
182 184
           </div>
183 185
           <div style="flex: 1;">
@@ -190,15 +192,28 @@
190 192
             透析液:
191 193
             <div style="display: inline-block;margin-right: 10px;">
192 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 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 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 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 212
             </div>
213
+
214
+            <div class="under_line" style="width: 100px; text-align: center" v-if="prescription.dialyzate.indexOf('醋酸')>-1">
215
+                醋酸
216
+               </div>
202 217
           </div>
203 218
         </div>
204 219
         <div style="display: flex;border-left: 1px solid black;border-right: 1px solid black;padding: 5px;">
@@ -320,7 +335,7 @@
320 335
                 {{
321 336
                   monitor.ultrafiltration_volume
322 337
                     ? monitor.ultrafiltration_volume
323
-                    : ""
338
+                    : "0"
324 339
                 }}
325 340
               </span>
326 341
             </td>
@@ -328,7 +343,7 @@
328 343
             <!-- T -->
329 344
             <td>
330 345
               <span v-if="getTime(monitor.operate_time) != ''">
331
-                {{ monitor.temperature ? monitor.temperature : "" }}
346
+                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
332 347
               </span>
333 348
             </td>
334 349
             <!-- HR -->

+ 2 - 1
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

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

+ 5 - 2
src/xt_pages/outpatientCharges/summary.vue 查看文件

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

+ 75 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -2592,7 +2592,53 @@ export default {
2592 2592
           //   }
2593 2593
           // }
2594 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 2643
             if (this.org_id != 10206 && this.org_id != 0) {
2598 2644
               for (let i = 0; i < this.prescriptions.length; i++) {
@@ -2624,6 +2670,10 @@ export default {
2624 2670
               }
2625 2671
             }
2626 2672
 
2673
+            //库存限制
2674
+
2675
+
2676
+
2627 2677
 
2628 2678
             this.$emit('editKeepLoad', true)
2629 2679
             var str = ""
@@ -3119,6 +3169,27 @@ export default {
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 3194
     addTab(targetName) {
3124 3195
 
@@ -3651,6 +3722,8 @@ export default {
3651 3722
                 groupno: index + temp_index,
3652 3723
                 hosp_appr_flag: '1',
3653 3724
                 execution_state:2,
3725
+
3726
+
3654 3727
               }
3655 3728
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3656 3729
                 obj.prescribing_number = 1
@@ -3840,6 +3913,7 @@ export default {
3840 3913
               project_name: good_info[i].good_name,
3841 3914
               statistical_classification: '',
3842 3915
               single_dose: good_info[i].specification_name,
3916
+              specification_name: good_info[i].specification_name,
3843 3917
               delivery_way: '',
3844 3918
               execution_frequency: '',
3845 3919
               number_days: 1,

+ 12 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -1143,6 +1143,7 @@ export default {
1143 1143
       })
1144 1144
     },
1145 1145
     setMonthPrescription(month_prescriptions) {
1146
+      console.log("--======-66666777--====")
1146 1147
 
1147 1148
       this.month_prescriptions = []
1148 1149
 
@@ -1271,6 +1272,14 @@ export default {
1271 1272
             // obj['medical_c/**/ode'] = project_month_prescriptions.project[a].project.medical_code
1272 1273
             obj['unit'] = project_month_prescriptions.project[a].unit
1273 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 1283
             count = count + parseFloat(project_month_prescriptions.project[a].count)
1275 1284
             // price = price + project_month_prescriptions.project[a].price
1276 1285
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
@@ -1945,7 +1954,8 @@ export default {
1945 1954
                     hosp_appr_flag: '1',
1946 1955
                     execution_state: 2,
1947 1956
                     is_self_drug: '',
1948
-                    drug_way_count: '1'
1957
+                    drug_way_count: '1',
1958
+
1949 1959
 
1950 1960
                   }
1951 1961
 
@@ -2289,7 +2299,7 @@ export default {
2289 2299
                         execution_state: prescription.advices[b].execution_state,
2290 2300
                         is_medicine: prescription.advices[b].is_medicine,
2291 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 2305
                       tempAdvice.push(obj)

+ 3 - 3
src/xt_pages/outpatientTool/components/gatherStatistics.vue 查看文件

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