see999 3 년 전
부모
커밋
125d9486ff

+ 7 - 0
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 파일 보기

1250
       if(predialysis.id > 0){
1250
       if(predialysis.id > 0){
1251
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1251
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1252
       }
1252
       }
1253
+      
1253
 
1254
 
1254
 
1255
 
1255
       this.form.leave_office_method = predialysis.leave_office_method
1256
       this.form.leave_office_method = predialysis.leave_office_method
1269
             }
1270
             }
1270
           }
1271
           }
1271
         }
1272
         }
1273
+        if(last_after.id > 0){
1274
+         this.form.hypertenison = last_after.hypertenison.toString()
1275
+        }
1276
+        if(last_after.id > 0){
1277
+          this.form.hypopiesia = last_after.hypopiesia.toString()
1278
+        }
1272
       }
1279
       }
1273
 
1280
 
1274
 
1281
 

+ 13 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue 파일 보기

260
             </span>
260
             </span>
261
           </div>
261
           </div>
262
       </div>
262
       </div>
263
-      <div class="lineHeight">治疗过程中检测记录:血压检测部位:{{ monitors && monitors[0] ? monitors[0].blood_pressure_monitoring_site : '' }}</div>
263
+      <div class="lineHeight">治疗过程中检测记录:血压检测部位:{{ monitors && monitors[0] ? getBloodPressureMmonitoringSite(monitors[0].blood_pressure_monitoring_site) : '' }}</div>
264
       <table class="print-table" border="1">
264
       <table class="print-table" border="1">
265
         <tbody>
265
         <tbody>
266
           <tr>
266
           <tr>
572
         url: ""
572
         url: ""
573
       },
573
       },
574
       displaceLiquiPartOptions: [],
574
       displaceLiquiPartOptions: [],
575
-      complicationList:[]
575
+      complicationList:[],
576
+      bloodPressureMmonitoringSite:[]
576
     };
577
     };
577
   },
578
   },
578
   methods: {
579
   methods: {
586
       var gm=(ty-oy)*12+(tm-om); //距今月数
587
       var gm=(ty-oy)*12+(tm-om); //距今月数
587
       return gm
588
       return gm
588
     },
589
     },
590
+    getBloodPressureMmonitoringSite(id){
591
+      var name = "";
592
+      for(let i=0;i<this.bloodPressureMmonitoringSite.length;i++){
593
+         if(id == this.bloodPressureMmonitoringSite[i].id){
594
+            name = this.bloodPressureMmonitoringSite[i].name
595
+         }
596
+      }
597
+      return name
598
+    },
589
     getComplication(id){
599
     getComplication(id){
590
       var name = "";
600
       var name = "";
591
       for(let i=0;i<this.complicationList.length;i++){
601
       for(let i=0;i<this.complicationList.length;i++){
1298
     this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
1308
     this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
1299
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1309
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1300
     this.complicationList = getDataConfig('hemodialysis','complication')
1310
     this.complicationList = getDataConfig('hemodialysis','complication')
1311
+    this.bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site');
1301
 
1312
 
1302
     var bloodAccessParOpera = getDataConfig(
1313
     var bloodAccessParOpera = getDataConfig(
1303
       "hemodialysis",
1314
       "hemodialysis",

+ 37 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 파일 보기

2179
               'prescriptions': this.prescriptions
2179
               'prescriptions': this.prescriptions
2180
             }
2180
             }
2181
             isLoading = true
2181
             isLoading = true
2182
-            createHisPrescription(data, params).then(response => {
2183
-              if (response.data.state == 1) {
2184
-                this.$emit('change', this.patientInfo.id)
2185
-                this.$message.success('保存成功')
2186
-              } else {
2187
-                this.$message.error(response.data.msg)
2182
+            console.log('this.prescriptionsthis.prescriptions',this.prescriptions)
2183
+            let num = 0
2184
+            this.prescriptions.map(item => {
2185
+              if(item.advices.length > 0){
2186
+                item.advices.map(it => {
2187
+                  if(it.drug.total <= 0){
2188
+                    num++
2189
+                    setTimeout(() =>{
2190
+                      this.$message.error(it.drug.drug_name + '库存不足')
2191
+                    },100)
2192
+                  }
2193
+                })
2188
               }
2194
               }
2189
             })
2195
             })
2196
+            if(num == 0){
2197
+              createHisPrescription(data, params).then(response => {
2198
+                if (response.data.state == 1) {
2199
+                  this.$emit('change', this.patientInfo.id)
2200
+                  this.$message.success('保存成功')
2201
+                } else {
2202
+                  this.$message.error(response.data.msg)
2203
+                }
2204
+              })
2205
+            }
2206
+            
2190
           } else if (index == 2) {
2207
           } else if (index == 2) {
2191
             this.$router.push('/outpatientDoctorStation/print')
2208
             this.$router.push('/outpatientDoctorStation/print')
2192
           } else if (index == 4) {
2209
           } else if (index == 4) {
2757
       }, changeAllGoodInfoTableDataTwo(row) {
2774
       }, changeAllGoodInfoTableDataTwo(row) {
2758
         this.teamList = row
2775
         this.teamList = row
2759
       },
2776
       },
2760
-      selectChange(row) {
2777
+      selectChange(selection, row) {
2778
+        if(row.total <= 0){
2779
+          if (selection) {
2780
+            selection.forEach(row => {
2781
+              if(row.total <= 0){
2782
+                this.$refs.tables.toggleRowSelection(row);
2783
+              }
2784
+            });
2785
+          } else {
2786
+            this.$refs.tables.clearSelection();
2787
+          }
2788
+          this.$message.error(row.project_name + '库存不足')
2789
+          return
2790
+        }
2761
         this.teamList = row
2791
         this.teamList = row
2762
       },
2792
       },
2763
       getlist() {
2793
       getlist() {

+ 20 - 20
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue 파일 보기

408
         if(scope.row.prescribing_number == 0){
408
         if(scope.row.prescribing_number == 0){
409
           scope.row.prescribing_number = 1
409
           scope.row.prescribing_number = 1
410
         }
410
         }
411
-        if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
412
-          // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
413
-          if(scope.row.prescribing_number > scope.row.drug.total){
414
-            this.$message.error(scope.row.drug_name + '库存不足')
415
-          }
416
-        }else{
417
-          if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
418
-            this.$message.error(scope.row.drug_name + '库存不足')
419
-          }
420
-          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
421
-        }
411
+        // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
412
+        //   // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
413
+        //   if(scope.row.prescribing_number > scope.row.drug.total){
414
+        //     this.$message.error(scope.row.drug_name + '库存不足')
415
+        //   }
416
+        // }else{
417
+        //   if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
418
+        //     this.$message.error(scope.row.drug_name + '库存不足')
419
+        //   }
420
+        //   // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
421
+        // }
422
         
422
         
423
       },
423
       },
424
       changePrescribingNumber(scope){
424
       changePrescribingNumber(scope){
425
-        if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
426
-          if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
427
-            this.$message.error(scope.row.drug_name + '库存不足')
428
-          }
429
-        }else{
430
-          if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
431
-            this.$message.error(scope.row.drug_name + '库存不足')
432
-          }
433
-        }
425
+        // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
426
+        //   if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
427
+        //     this.$message.error(scope.row.drug_name + '库存不足')
428
+        //   }
429
+        // }else{
430
+        //   if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
431
+        //     this.$message.error(scope.row.drug_name + '库存不足')
432
+        //   }
433
+        // }
434
       },
434
       },
435
       getSingleDose(scope){
435
       getSingleDose(scope){
436
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
436
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day