Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 3 years ago
parent
commit
1ac2623746

+ 2 - 1
src/xt_pages/data/components/addDrugs.vue View File

553
           dose_unit:"",//剂量
553
           dose_unit:"",//剂量
554
           dose:"",//剂量单位
554
           dose:"",//剂量单位
555
           prescribing_number_unit:"",
555
           prescribing_number_unit:"",
556
+          total:"",
556
         },
557
         },
557
 
558
 
558
         rules: {
559
         rules: {
812
         form['drug_remark'] = this.form.drug_remark
813
         form['drug_remark'] = this.form.drug_remark
813
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
814
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
814
         form['lmt_used_flag'] = this.form.lmt_used_flag
815
         form['lmt_used_flag'] = this.form.lmt_used_flag
815
-
816
+        form['total'] = this.form.total
816
         form['min_number'] = this.form.min_number
817
         form['min_number'] = this.form.min_number
817
         form["drug_day"] = this.form.drug_day
818
         form["drug_day"] = this.form.drug_day
818
         form['dose'] = this.form.dose,
819
         form['dose'] = this.form.dose,

+ 12 - 1
src/xt_pages/data/components/consumables.vue View File

34
             :value="item.value">
34
             :value="item.value">
35
           </el-option>
35
           </el-option>
36
         </el-select>
36
         </el-select>
37
-       
37
+
38
       </div>
38
       </div>
39
       <div>
39
       <div>
40
         <el-button type="primary" @click="openForm()">新增</el-button>
40
         <el-button type="primary" @click="openForm()">新增</el-button>
312
               packing_price:'',
312
               packing_price:'',
313
               default_count_unit:"",
313
               default_count_unit:"",
314
               min_unit:"",
314
               min_unit:"",
315
+              total:"",
315
             },
316
             },
316
             isVisibility: false,
317
             isVisibility: false,
317
 
318
 
665
                 response.data.data.goodInfo.sort.toString()
666
                 response.data.data.goodInfo.sort.toString()
666
             }
667
             }
667
 
668
 
669
+            if (response.data.data.goodInfo.total <= 0) {
670
+              this.goodInfo.goodInfoDialog.formValue.total = ''
671
+            } else {
672
+              this.goodInfo.goodInfoDialog.formValue.total =
673
+                      response.data.data.goodInfo.total
674
+            }
675
+
668
 
676
 
669
             if (response.data.data.goodInfo.is_doctor_use <= 0) {
677
             if (response.data.data.goodInfo.is_doctor_use <= 0) {
670
               this.goodInfo.goodInfoDialog.formValue.is_doctor_use = ''
678
               this.goodInfo.goodInfoDialog.formValue.is_doctor_use = ''
696
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
704
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
697
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
705
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
698
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
706
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
707
+
708
+
709
+
699
           }
710
           }
700
         })
711
         })
701
       },
712
       },

+ 24 - 21
src/xt_pages/data/components/drugs.vue View File

7
         <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
7
         <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
8
                    @click="searchAction">搜索
8
                    @click="searchAction">搜索
9
         </el-button>
9
         </el-button>
10
-      
10
+
11
        <label class="title"><span class="name">生产厂商</span> : </label>
11
        <label class="title"><span class="name">生产厂商</span> : </label>
12
         <el-select v-model="manufacturer" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeManufacture">
12
         <el-select v-model="manufacturer" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeManufacture">
13
           <el-option
13
           <el-option
26
             :value="item.value">
26
             :value="item.value">
27
           </el-option>
27
           </el-option>
28
         </el-select>
28
         </el-select>
29
-   
29
+
30
 
30
 
31
         <span style="color: #909399;font-size:14px;">备案 : &nbsp;</span>
31
         <span style="color: #909399;font-size:14px;">备案 : &nbsp;</span>
32
         <el-select v-model="is_record" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeRecord">
32
         <el-select v-model="is_record" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeRecord">
40
       </div>
40
       </div>
41
       <div>
41
       <div>
42
         <el-button type="primary" @click="openForm(0)">新增</el-button>
42
         <el-button type="primary" @click="openForm(0)">新增</el-button>
43
-       
43
+
44
       </div>
44
       </div>
45
 
45
 
46
     </div>
46
     </div>
315
           lmt_used_flag:'',
315
           lmt_used_flag:'',
316
           dose_unit:'',
316
           dose_unit:'',
317
           min_price:'',
317
           min_price:'',
318
-          drug_day:"",//默认开药天数
318
+          drug_day:"",//默认开药天数,
319
+          total:"",
319
         },
320
         },
320
         tempFormValue: {
321
         tempFormValue: {
321
           drug_name: '',//药品名称
322
           drug_name: '',//药品名称
373
           packing_unit:"",//包装单位
374
           packing_unit:"",//包装单位
374
           packing_price:"",//包装零售价
375
           packing_price:"",//包装零售价
375
           drug_day:"",//默认开药天数
376
           drug_day:"",//默认开药天数
377
+          total:"",
378
+
376
         },
379
         },
377
 
380
 
378
         current_id: 0,
381
         current_id: 0,
491
         if (val.id > 0) {
494
         if (val.id > 0) {
492
           //修改
495
           //修改
493
           val['id'] = this.current_id;
496
           val['id'] = this.current_id;
494
-          
497
+
495
           val.min_number =  parseInt(val.min_number)
498
           val.min_number =  parseInt(val.min_number)
496
-         
499
+
497
           editBaseDrugLib(val,untit).then(response => {
500
           editBaseDrugLib(val,untit).then(response => {
498
             if (response.data.state == 0) {
501
             if (response.data.state == 0) {
499
               this.$message.error(response.data.msg);
502
               this.$message.error(response.data.msg);
506
           })
509
           })
507
         } else if (val.id == 0) {
510
         } else if (val.id == 0) {
508
           //新增
511
           //新增
509
-         
512
+
510
           createBaseDrugLib(val).then(response => {
513
           createBaseDrugLib(val).then(response => {
511
             if (response.data.state == 0) {
514
             if (response.data.state == 0) {
512
               this.$message.error(response.data.msg);
515
               this.$message.error(response.data.msg);
937
            console.log("isHasMinUnit",isHasMinUnit)
940
            console.log("isHasMinUnit",isHasMinUnit)
938
           var isHasDosage =  header.includes('*剂量')
941
           var isHasDosage =  header.includes('*剂量')
939
           console.log("isHasDosage",isHasDosage)
942
           console.log("isHasDosage",isHasDosage)
940
-        
943
+
941
           var isHasMaxUnit= header.includes('*剂量单位');
944
           var isHasMaxUnit= header.includes('*剂量单位');
942
           console.log("isHasMaxUnit",isHasMaxUnit)
945
           console.log("isHasMaxUnit",isHasMaxUnit)
943
           var isHasPackingUnit = header.includes('*包装单位')
946
           var isHasPackingUnit = header.includes('*包装单位')
950
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
953
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
951
           var isHasDrugDosageForm = header.includes('*药品剂型');
954
           var isHasDrugDosageForm = header.includes('*药品剂型');
952
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
955
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
953
-      
956
+
954
           var isHasUnitMatrixing= header.includes("*单位换算");
957
           var isHasUnitMatrixing= header.includes("*单位换算");
955
           console.log("isHasUnitMatrixing",isHasUnitMatrixing)
958
           console.log("isHasUnitMatrixing",isHasUnitMatrixing)
956
           var isHasRetailPrice = header.includes('*拆零零售价');
959
           var isHasRetailPrice = header.includes('*拆零零售价');
1022
                obj['max_unit'] = results[i][key].replace(/\s/g,"")
1025
                obj['max_unit'] = results[i][key].replace(/\s/g,"")
1023
               }
1026
               }
1024
            }
1027
            }
1025
-          
1028
+
1026
             if (results[i]['*包装单位'] === undefined) {
1029
             if (results[i]['*包装单位'] === undefined) {
1027
                 obj['packing_unit'] = ''
1030
                 obj['packing_unit'] = ''
1028
               } else {
1031
               } else {
1039
                obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1042
                obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1040
               }
1043
               }
1041
            }
1044
            }
1042
-          
1045
+
1043
            if (results[i]['默认执行频率'] === undefined) {
1046
            if (results[i]['默认执行频率'] === undefined) {
1044
                 obj['execution_frequency'] = ''
1047
                 obj['execution_frequency'] = ''
1045
               } else {
1048
               } else {
1055
                obj['drug_day'] = results[i][key].replace(/\s/g,"")
1058
                obj['drug_day'] = results[i][key].replace(/\s/g,"")
1056
               }
1059
               }
1057
            }
1060
            }
1058
-          
1061
+
1059
 
1062
 
1060
 
1063
 
1061
             if (results[i]['*药品类型'] === undefined) {
1064
             if (results[i]['*药品类型'] === undefined) {
1102
            }
1105
            }
1103
 
1106
 
1104
 
1107
 
1105
-          
1108
+
1106
 
1109
 
1107
             if (results[i]['*单位换算'] === undefined) {
1110
             if (results[i]['*单位换算'] === undefined) {
1108
                 obj['unit_matrixing'] = ''
1111
                 obj['unit_matrixing'] = ''
1123
               }
1126
               }
1124
            }
1127
            }
1125
 
1128
 
1126
-          
1129
+
1127
           if (results[i]['*包装零售价'] === undefined) {
1130
           if (results[i]['*包装零售价'] === undefined) {
1128
                 obj['packing_price'] = ''
1131
                 obj['packing_price'] = ''
1129
               } else {
1132
               } else {
1152
 
1155
 
1153
 
1156
 
1154
 
1157
 
1155
-          
1158
+
1156
 
1159
 
1157
            if (results[i]['*默认单次用量'] === undefined) {
1160
            if (results[i]['*默认单次用量'] === undefined) {
1158
                 obj['drug_dose'] = ''
1161
                 obj['drug_dose'] = ''
1188
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1191
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1189
               }
1192
               }
1190
            }
1193
            }
1191
-          
1194
+
1192
            if (results[i]['限制性用药'] === undefined) {
1195
            if (results[i]['限制性用药'] === undefined) {
1193
                 obj['lmt_used_flag'] = ''
1196
                 obj['lmt_used_flag'] = ''
1194
               } else {
1197
               } else {
1196
                 obj['lmt_used_flag'] = results[i][key].replace(/\s/g,"")
1199
                 obj['lmt_used_flag'] = results[i][key].replace(/\s/g,"")
1197
               }
1200
               }
1198
            }
1201
            }
1199
-           
1202
+
1200
 
1203
 
1201
 
1204
 
1202
            if (results[i]['药品别名'] === undefined) {
1205
            if (results[i]['药品别名'] === undefined) {
1207
               }
1210
               }
1208
            }
1211
            }
1209
 
1212
 
1210
-          
1213
+
1211
              if (results[i]['药品类别'] === undefined) {
1214
              if (results[i]['药品类别'] === undefined) {
1212
                 obj['drug_category'] = ''
1215
                 obj['drug_category'] = ''
1213
               } else {
1216
               } else {
1234
               }
1237
               }
1235
            }
1238
            }
1236
 
1239
 
1237
-         
1240
+
1238
 
1241
 
1239
             if (results[i]['审批标志'] === undefined) {
1242
             if (results[i]['审批标志'] === undefined) {
1240
                 obj['hosp_appr_flag'] = ''
1243
                 obj['hosp_appr_flag'] = ''
1341
                 obj['limit_remark'] = results[i][key].replace(/\s/g,"")
1344
                 obj['limit_remark'] = results[i][key].replace(/\s/g,"")
1342
               }
1345
               }
1343
            }
1346
            }
1344
-           
1347
+
1345
          }
1348
          }
1346
          var newArr = [];
1349
          var newArr = [];
1347
          tableData.push(obj);
1350
          tableData.push(obj);
1414
           'drugs':tableData
1417
           'drugs':tableData
1415
         };
1418
         };
1416
         console.log("params222222222",params)
1419
         console.log("params222222222",params)
1417
-        
1420
+
1418
         postDrugInformation(params).then(response=>{
1421
         postDrugInformation(params).then(response=>{
1419
            if(response.data.state == 1){
1422
            if(response.data.state == 1){
1420
              var msg =  response.data.data.msg;
1423
              var msg =  response.data.data.msg;

+ 2 - 2
src/xt_pages/hospitalStation/components/registerDialog.vue View File

155
         </div>
155
         </div>
156
       </el-form-item>
156
       </el-form-item>
157
 
157
 
158
-      <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
158
+      <el-form-item label="挂号类型:" :validate-event="is_Name">
159
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
159
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160
           <el-option
160
           <el-option
161
             v-for="item in register"
161
             v-for="item in register"
330
           name: [{required: true, message: "患者姓名不能为空", trigger: 'blur'}],
330
           name: [{required: true, message: "患者姓名不能为空", trigger: 'blur'}],
331
           gender: [{required: true, message: "患者性别不能为空", trigger: 'blur'}],
331
           gender: [{required: true, message: "患者性别不能为空", trigger: 'blur'}],
332
           id_card: [{required: true, message: '证件号码不能为空', trigger: 'blur'}],
332
           id_card: [{required: true, message: '证件号码不能为空', trigger: 'blur'}],
333
-          register: [{required: true, message: '请选择挂号类型', trigger: 'blur'}],
333
+          // register: [{required: true, message: '请选择挂号类型', trigger: 'blur'}],
334
           doctor: [{required: true, message: '请选择医生', trigger: 'blur'}],
334
           doctor: [{required: true, message: '请选择医生', trigger: 'blur'}],
335
           department: [{required: true, message: '请填写科室', trigger: 'blur'}],
335
           department: [{required: true, message: '请填写科室', trigger: 'blur'}],
336
           age: [{required: true, message: "患者年龄不能为空", trigger: 'blur'}],
336
           age: [{required: true, message: "患者年龄不能为空", trigger: 'blur'}],

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

155
                 </div>
155
                 </div>
156
             </el-form-item>
156
             </el-form-item>
157
 
157
 
158
-            <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
158
+            <el-form-item label="挂号类型:" :validate-event="is_Name">
159
                 <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
159
                 <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160
                     <el-option
160
                     <el-option
161
                             v-for="item in register"
161
                             v-for="item in register"
327
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
327
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
328
           gender: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
328
           gender: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
329
           id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
329
           id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
330
-          register: [{ required: true, message: '请选择挂号类型', trigger: 'blur' }],
331
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
330
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
332
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
331
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
333
           age: [{ required: true, message: '患者年龄不能为空', trigger: 'blur' }],
332
           age: [{ required: true, message: '患者年龄不能为空', trigger: 'blur' }],

+ 106 - 102
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

564
           patient_id: this.patientInfo.id,
564
           patient_id: this.patientInfo.id,
565
           start_time: val,
565
           start_time: val,
566
           end_time: this.other_end_time,
566
           end_time: this.other_end_time,
567
-          p_type:2
567
+          p_type:2,
568
+          type: this.radio,
569
+
568
 
570
 
569
         };
571
         };
570
         getDayOrMonthHisPrescription(params).then(response => {
572
         getDayOrMonthHisPrescription(params).then(response => {
1040
                   })
1042
                   })
1041
 
1043
 
1042
                 } else {
1044
                 } else {
1043
-                  that.radio = 1
1044
-                  that.$refs.register.hide();
1045
-                  let params = {
1046
-                    'record_date': that.record_date
1047
-                  };
1048
-                  getChargeHisPatientList(params).then(response => {
1049
-                    if (response.data.state == 0) {
1050
-                      that.$message.error(response.data.msg);
1051
-                      return false
1052
-                    } else {
1053
-
1054
-                      that.loadingone = false;
1055
-                      that.$message({ message: '挂号成功', type: 'success' });
1056
-
1057
-                      that.patientTableData = []
1058
-                      that.all_table_data = []
1059
-                      that.hisPatientDatas = []
1060
-                      let one_count = 0
1061
-                      let two_count = 0
1062
-                      let three_count = 0
1063
-                      for (let i = 0; i < response.data.data.list.length; i++) {
1064
-                        if (response.data.data.list[i].his_patient.length == 0) { //没挂号
1065
-                          if (response.data.data.list[i].prescription.length > 0) {
1066
-                            let obj = {
1067
-                              id: response.data.data.list[i].id,
1068
-                              name: response.data.data.list[i].name,
1069
-                              number: '',
1070
-                              order_status: 0,
1071
-                              order_number: '',
1072
-                              his_patient_id: 0
1073
-                            }
1074
-
1075
-                            that.all_table_data.push(obj)
1076
-                          }
1077
-
1078
-                        } else { //挂号
1079
-                          if (response.data.data.list[i].his_patient.length == 1) {
1080
-                            let obj = {
1081
-                              id: response.data.data.list[i].id,
1082
-                              name: response.data.data.list[i].name,
1083
-                              number: response.data.data.list[i].his_patient[0].number,
1084
-                              order_status: response.data.data.list[i].his_patient[0].order.order_status,
1085
-                              his_patient_id: response.data.data.list[i].his_patient[0].id,
1086
-                              order_number: response.data.data.list[i].his_patient[0].order.number,
1087
-                              order_id: response.data.data.list[i].his_patient[0].order.id
1088
-                            }
1089
-                            that.all_table_data.push(obj)
1090
-
1091
-                          }
1092
-
1093
-                          if (response.data.data.list[i].his_patient.length > 1) {
1094
-                            for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1095
-                              let obj = {
1096
-                                id: response.data.data.list[i].id,
1097
-                                name: response.data.data.list[i].name,
1098
-                                number: response.data.data.list[i].his_patient[b].number,
1099
-                                order_status: response.data.data.list[i].his_patient[b].order.order_status,
1100
-                                his_patient_id: response.data.data.list[i].his_patient[b].id,
1101
-                                order_number: response.data.data.list[i].his_patient[b].order.number,
1102
-                                order_id: response.data.data.list[i].his_patient[b].order.id
1103
-                              }
1104
-                              that.all_table_data.push(obj)
1105
-
1106
-                            }
1107
-                          }
1108
-                        }
1109
-
1110
-                      }
1111
-
1112
-                      for (let i = 0; i < that.all_table_data.length; i++) {
1113
-                        if (that.all_table_data[i].his_patient_id > 0) {
1114
-                          that.hisPatientDatas.push(this.all_table_data[i])
1115
-                        }
1116
-                      }
1117
-
1118
-                      for (let i = 0; i < that.all_table_data.length; i++) {
1119
-                        if (that.all_table_data[i].order_status == 0 || that.all_table_data[i].order_status == 1 || that.all_table_data[i].order_status == 3) {
1120
-                          one_count = one_count + 1
1121
-                          that.patientTableData.push(that.all_table_data[i])
1122
-                        }
1123
-                        if (that.all_table_data[i].order_status == 2) {
1124
-                          two_count = two_count + 1
1125
-                          that.patientTableData.push(that.all_table_data[i])
1126
-                        }
1127
-                      }
1128
-                      that.cal_one = one_count
1129
-                      that.cal_two = two_count
1130
-                      that.cal_three = three_count
1131
-                      that.current_index = 0
1132
-                      for (let i = 0; i < that.patientTableData.length; i++) {
1133
-                        if (that.patientTableData[i].his_patient_id == that.hisPatientInfo.id) {
1134
-                          that.$refs.tab.setCurrentRow(that.patientTableData[i])
1135
-                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order_number, that.patientTableData[i].his_patient_id)
1136
-                        }
1137
-                      }
1138
-                      var his_info = response.data.data.his_info
1139
-                      that.hisPatientInfo = his_info
1140
-                    }
1141
-                  })
1045
+                  that.changeRadio(1)
1046
+                  that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1047
+                  that.$refs.register.hide()
1048
+                  that.loadingone = false
1049
+                  // that.radio = 1
1050
+                  // that.$refs.register.hide();
1051
+                  // let params = {
1052
+                  //   'record_date': that.record_date
1053
+                  // };
1054
+                  // getChargeHisPatientList(params).then(response => {
1055
+                  //   if (response.data.state == 0) {
1056
+                  //     that.$message.error(response.data.msg);
1057
+                  //     return false
1058
+                  //   } else {
1059
+                  //
1060
+                  //     that.loadingone = false;
1061
+                  //     that.$message({ message: '挂号成功', type: 'success' });
1062
+                  //
1063
+                  //     that.patientTableData = []
1064
+                  //     that.all_table_data = []
1065
+                  //     that.hisPatientDatas = []
1066
+                  //     let one_count = 0
1067
+                  //     let two_count = 0
1068
+                  //     let three_count = 0
1069
+                  //     for (let i = 0; i < response.data.data.list.length; i++) {
1070
+                  //       if (response.data.data.list[i].his_patient.length == 0) { //没挂号
1071
+                  //         if (response.data.data.list[i].prescription.length > 0) {
1072
+                  //           let obj = {
1073
+                  //             id: response.data.data.list[i].id,
1074
+                  //             name: response.data.data.list[i].name,
1075
+                  //             number: '',
1076
+                  //             order_status: 0,
1077
+                  //             order_number: '',
1078
+                  //             his_patient_id: 0
1079
+                  //           }
1080
+                  //
1081
+                  //           that.all_table_data.push(obj)
1082
+                  //         }
1083
+                  //
1084
+                  //       } else { //挂号
1085
+                  //         if (response.data.data.list[i].his_patient.length == 1) {
1086
+                  //           let obj = {
1087
+                  //             id: response.data.data.list[i].id,
1088
+                  //             name: response.data.data.list[i].name,
1089
+                  //             number: response.data.data.list[i].his_patient[0].number,
1090
+                  //             order_status: response.data.data.list[i].his_patient[0].order.order_status,
1091
+                  //             his_patient_id: response.data.data.list[i].his_patient[0].id,
1092
+                  //             order_number: response.data.data.list[i].his_patient[0].order.number,
1093
+                  //             order_id: response.data.data.list[i].his_patient[0].order.id
1094
+                  //           }
1095
+                  //           that.all_table_data.push(obj)
1096
+                  //
1097
+                  //         }
1098
+                  //
1099
+                  //         if (response.data.data.list[i].his_patient.length > 1) {
1100
+                  //           for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1101
+                  //             let obj = {
1102
+                  //               id: response.data.data.list[i].id,
1103
+                  //               name: response.data.data.list[i].name,
1104
+                  //               number: response.data.data.list[i].his_patient[b].number,
1105
+                  //               order_status: response.data.data.list[i].his_patient[b].order.order_status,
1106
+                  //               his_patient_id: response.data.data.list[i].his_patient[b].id,
1107
+                  //               order_number: response.data.data.list[i].his_patient[b].order.number,
1108
+                  //               order_id: response.data.data.list[i].his_patient[b].order.id
1109
+                  //             }
1110
+                  //             that.all_table_data.push(obj)
1111
+                  //
1112
+                  //           }
1113
+                  //         }
1114
+                  //       }
1115
+                  //
1116
+                  //     }
1117
+                  //
1118
+                  //     for (let i = 0; i < that.all_table_data.length; i++) {
1119
+                  //       if (that.all_table_data[i].his_patient_id > 0) {
1120
+                  //         that.hisPatientDatas.push(this.all_table_data[i])
1121
+                  //       }
1122
+                  //     }
1123
+                  //
1124
+                  //     for (let i = 0; i < that.all_table_data.length; i++) {
1125
+                  //       if (that.all_table_data[i].order_status == 0 || that.all_table_data[i].order_status == 1 || that.all_table_data[i].order_status == 3) {
1126
+                  //         one_count = one_count + 1
1127
+                  //         that.patientTableData.push(that.all_table_data[i])
1128
+                  //       }
1129
+                  //       if (that.all_table_data[i].order_status == 2) {
1130
+                  //         two_count = two_count + 1
1131
+                  //         that.patientTableData.push(that.all_table_data[i])
1132
+                  //       }
1133
+                  //     }
1134
+                  //     that.cal_one = one_count
1135
+                  //     that.cal_two = two_count
1136
+                  //     that.cal_three = three_count
1137
+                  //     that.current_index = 0
1138
+                  //     for (let i = 0; i < that.patientTableData.length; i++) {
1139
+                  //       if (that.patientTableData[i].his_patient_id == that.hisPatientInfo.id) {
1140
+                  //         that.$refs.tab.setCurrentRow(that.patientTableData[i])
1141
+                  //         that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order_number, that.patientTableData[i].his_patient_id)
1142
+                  //       }
1143
+                  //     }
1144
+                  //     var his_info = response.data.data.his_info
1145
+                  //     that.hisPatientInfo = his_info
1146
+                  //   }
1147
+                  // })
1142
                 }
1148
                 }
1143
               }
1149
               }
1144
             })
1150
             })
1158
               this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1164
               this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1159
               this.$refs.register.hide()
1165
               this.$refs.register.hide()
1160
               this.loadingone = false
1166
               this.loadingone = false
1161
-              var his_info = response.data.data.his_info
1162
-              this.hisPatientInfo = his_info
1163
             }
1167
             }
1164
           })
1168
           })
1165
         }
1169
         }

+ 14 - 20
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

272
                                         </el-table-column>
272
                                         </el-table-column>
273
                                         <el-table-column label="库存" width="60">
273
                                         <el-table-column label="库存" width="60">
274
                                             <template slot-scope="scope">
274
                                             <template slot-scope="scope">
275
-                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}} / {{
276
-                                                scope.row.total * (scope.row.dose / scope.row.min_number)}}
277
-                                                {{(scope.row.total * (scope.row.dose /
278
-                                                scope.row.min_number))?scope.row.max_unit:''}}
275
+                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}
276
+                                                <!--/ {{-->
277
+                                                <!--scope.row.total * (scope.row.dose / scope.row.min_number)}}-->
278
+                                                <!--{{(scope.row.total * (scope.row.dose /-->
279
+                                                <!--scope.row.min_number))?scope.row.max_unit:''}}-->
279
                                             </template>
280
                                             </template>
280
                                         </el-table-column>
281
                                         </el-table-column>
281
                                         <el-table-column label="单价" width="40">
282
                                         <el-table-column label="单价" width="40">
365
                                         <el-table-column label="规格" width="60">
366
                                         <el-table-column label="规格" width="60">
366
                                             <template slot-scope="scope">{{ scope.row.single_dose }}</template>
367
                                             <template slot-scope="scope">{{ scope.row.single_dose }}</template>
367
                                         </el-table-column>
368
                                         </el-table-column>
368
-                                        <el-table-column label="库存" width="60">
369
-                                            <template slot-scope="scope">
370
-                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}} / {{
371
-                                                scope.row.total * (scope.row.dose / scope.row.min_number)}}
372
-                                                {{(scope.row.total * (scope.row.dose /
373
-                                                scope.row.min_number))?scope.row.max_unit:''}}
374
-                                            </template>
375
-                                        </el-table-column>
376
                                         <el-table-column label="单价" width="40">
369
                                         <el-table-column label="单价" width="40">
377
                                             <template slot-scope="scope">{{ scope.row.price }}</template>
370
                                             <template slot-scope="scope">{{ scope.row.price }}</template>
378
                                         </el-table-column>
371
                                         </el-table-column>
1893
             this.doctorValue = hisPatientInfo.doctor
1886
             this.doctorValue = hisPatientInfo.doctor
1894
             this.departmentValue = hisPatientInfo.department
1887
             this.departmentValue = hisPatientInfo.department
1895
           } else {
1888
           } else {
1896
-            if (admin_info.user_type == 2 || admin_info.user_type == 1) {
1889
+            if (admin_info.user_type == 2) {
1897
               this.doctorValue = admin_info.admin_user_id
1890
               this.doctorValue = admin_info.admin_user_id
1898
               if (admin_info.department_id == 0) {
1891
               if (admin_info.department_id == 0) {
1899
                 if (this.department.length > 0) {
1892
                 if (this.department.length > 0) {
2056
                 this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2049
                 this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2057
                 this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2050
                 this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2058
                 this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2051
                 this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2052
+                this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2059
 
2053
 
2060
               }
2054
               }
2061
 
2055
 
2062
               for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2056
               for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2063
-                this.prescriptions[i].addition[b].id = parseInt(this.prescriptions[i].addition[b].id)
2057
+                this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2064
                 this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
2058
                 this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
2065
                 this.prescriptions[i].addition[b].price = this.prescriptions[i].addition[b].price.toString()
2059
                 this.prescriptions[i].addition[b].price = this.prescriptions[i].addition[b].price.toString()
2066
                 this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
2060
                 this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
2485
                   advice_id: 0,
2479
                   advice_id: 0,
2486
                   id: temp3[b].id,
2480
                   id: temp3[b].id,
2487
                   drug_name: temp3[b].advice_name,
2481
                   drug_name: temp3[b].advice_name,
2488
-                  single_dose: temp3[b].single_dose,
2482
+                  single_dose: temp3[b].single_dose.toString(),
2489
                   delivery_way: temp3[b].delivery_way,
2483
                   delivery_way: temp3[b].delivery_way,
2490
                   execution_frequency: temp3[b].execution_frequency,
2484
                   execution_frequency: temp3[b].execution_frequency,
2491
                   retail_price: temp3[b].drug.retail_price.toString(),
2485
                   retail_price: temp3[b].drug.retail_price.toString(),
2492
                   remark: '',
2486
                   remark: '',
2493
-                  day: 1,
2487
+                  day: "1",
2494
                   prescribing_number: temp3[b].prescribing_number,
2488
                   prescribing_number: temp3[b].prescribing_number,
2495
                   single_dose_unit: temp3[b].drug.min_unit,
2489
                   single_dose_unit: temp3[b].drug.min_unit,
2496
                   prescribing_number_unit: temp3[b].drug.max_unit,
2490
                   prescribing_number_unit: temp3[b].drug.max_unit,
2500
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2494
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2501
                   obj.prescribing_number = 1
2495
                   obj.prescribing_number = 1
2502
                 }
2496
                 }
2503
-                
2497
+
2504
                 this.prescriptions[i].advices.push(obj)
2498
                 this.prescriptions[i].advices.push(obj)
2505
               }
2499
               }
2506
               this.curStatus = 1
2500
               this.curStatus = 1
2532
                 this.prescriptions[i].advices.push(obj)
2526
                 this.prescriptions[i].advices.push(obj)
2533
               }
2527
               }
2534
               this.curStatus = 1
2528
               this.curStatus = 1
2535
-              
2529
+
2536
             }
2530
             }
2537
 
2531
 
2538
             // if(this.activeName == 2){
2532
             // if(this.activeName == 2){
2553
                   project_id: temp2[b].id,
2547
                   project_id: temp2[b].id,
2554
                   project_name: temp2[b].project_name,
2548
                   project_name: temp2[b].project_name,
2555
                   statistical_classification: temp2[b].statistical_classification,
2549
                   statistical_classification: temp2[b].statistical_classification,
2556
-                  single_dose: temp2[b].single_dose,
2550
+                  single_dose: temp2[b].single_dose.toString(),
2557
                   delivery_way: temp2[b].delivery_way,
2551
                   delivery_way: temp2[b].delivery_way,
2558
                   execution_frequency: temp2[b].execution_frequency,
2552
                   execution_frequency: temp2[b].execution_frequency,
2559
-                  number_days: temp2[b].number_days,
2553
+                  number_days: temp2[b].number_days.toString(),
2560
                   total: temp2[b].total,
2554
                   total: temp2[b].total,
2561
                   price: temp2[b].price,
2555
                   price: temp2[b].price,
2562
                   remark: '',
2556
                   remark: '',

+ 3 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

1297
                   single_dose_unit: temp3[b].drug.min_unit,
1297
                   single_dose_unit: temp3[b].drug.min_unit,
1298
                   prescribing_number_unit: temp3[b].drug.max_unit,
1298
                   prescribing_number_unit: temp3[b].drug.max_unit,
1299
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
1299
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
1300
+
1300
                 }
1301
                 }
1301
 
1302
 
1302
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
1303
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
1428
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1429
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1429
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1430
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1430
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1431
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1431
-                    id: prescription.advices[b].drug_id
1432
+                    id: prescription.advices[b].drug_id,
1433
+                    drug: prescription.advices[b].drug,
1432
                   }
1434
                   }
1433
                   tempAdvice.push(obj)
1435
                   tempAdvice.push(obj)
1434
                 }
1436
                 }

+ 11 - 11
src/xt_pages/outpatientRegistration/index.vue View File

125
             <div class="nameTitle">患者挂号信息:</div>
125
             <div class="nameTitle">患者挂号信息:</div>
126
             <div class="formMain">
126
             <div class="formMain">
127
                 <el-form class="basicForm" :model="form" :rules="rules2" ref="form" label-width="100px">
127
                 <el-form class="basicForm" :model="form" :rules="rules2" ref="form" label-width="100px">
128
-                    <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
128
+                    <el-form-item label="挂号类型:" :validate-event="is_Name">
129
                         <el-select v-model="form.register" placeholder="请选择" @change="changeReg">
129
                         <el-select v-model="form.register" placeholder="请选择" @change="changeReg">
130
                             <el-option
130
                             <el-option
131
                                     v-for="item in his_registers"
131
                                     v-for="item in his_registers"
315
             <div class="nameTitle">患者挂号信息:</div>
315
             <div class="nameTitle">患者挂号信息:</div>
316
             <div class="formMain">
316
             <div class="formMain">
317
                 <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
317
                 <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
318
-                    <el-form-item label="挂号类型:" >
319
-                        <el-select v-model="form.register" placeholder="请选择">
320
-                            <el-option
321
-                                    v-for="item in his_registers"
322
-                                    :key="item.value"
323
-                                    :label="item.label"
324
-                                    :value="item.value">
325
-                            </el-option>
326
-                        </el-select>
327
-                    </el-form-item>
318
+                    <!--<el-form-item label="挂号类型:" >-->
319
+                        <!--<el-select v-model="form.register" placeholder="请选择">-->
320
+                            <!--<el-option-->
321
+                                    <!--v-for="item in his_registers"-->
322
+                                    <!--:key="item.value"-->
323
+                                    <!--:label="item.label"-->
324
+                                    <!--:value="item.value">-->
325
+                            <!--</el-option>-->
326
+                        <!--</el-select>-->
327
+                    <!--</el-form-item>-->
328
 
328
 
329
                     <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
329
                     <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
330
                         <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""
330
                         <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""

+ 23 - 19
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

51
                 </el-option>
51
                 </el-option>
52
               </el-select>
52
               </el-select>
53
             </el-form-item>
53
             </el-form-item>
54
-           
54
+
55
            <div style="width:100%;">
55
            <div style="width:100%;">
56
               <div><span style="color:red;">*</span>单位&规格: <span style="color:#999">例如:FX80 * 60盒</span></div>
56
               <div><span style="color:red;">*</span>单位&规格: <span style="color:#999">例如:FX80 * 60盒</span></div>
57
           </div>
57
           </div>
73
                     </el-option>
73
                     </el-option>
74
                   </el-select>
74
                   </el-select>
75
               </el-form-item> -->
75
               </el-form-item> -->
76
-            
76
+
77
               <el-form-item prop="packing_unit" class="noMargin">
77
               <el-form-item prop="packing_unit" class="noMargin">
78
                 <el-select v-model="form.packing_unit" style="width:160px;" placeholder="包装单位" @change="changePackingUnit">
78
                 <el-select v-model="form.packing_unit" style="width:160px;" placeholder="包装单位" @change="changePackingUnit">
79
                   <el-option
79
                   <el-option
85
                 </el-select>
85
                 </el-select>
86
               </el-form-item>
86
               </el-form-item>
87
             </div>
87
             </div>
88
-                       
88
+
89
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
89
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
90
-             
90
+
91
                <el-select v-model="form.manufacturer" style="width:100%;" filterable placeholder="请选择">
91
                <el-select v-model="form.manufacturer" style="width:100%;" filterable placeholder="请选择">
92
                   <el-option
92
                   <el-option
93
                     v-for="(item,index) in form.manufacturers"
93
                     v-for="(item,index) in form.manufacturers"
113
             <el-form-item label="拆零零售价 : " prop="retail_price">
113
             <el-form-item label="拆零零售价 : " prop="retail_price">
114
               <el-input v-model="form.retail_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
114
               <el-input v-model="form.retail_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
115
             </el-form-item>
115
             </el-form-item>
116
-         
116
+
117
             <el-form-item label="进货价 : " prop="buy_price">
117
             <el-form-item label="进货价 : " prop="buy_price">
118
               <el-input v-model="form.buy_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
118
               <el-input v-model="form.buy_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
119
             </el-form-item>
119
             </el-form-item>
165
                 </el-option>
165
                 </el-option>
166
               </el-select>
166
               </el-select>
167
             </el-form-item>
167
             </el-form-item>
168
-          
168
+
169
             <el-form-item label="状态 : " prop="good_status">
169
             <el-form-item label="状态 : " prop="good_status">
170
               <el-checkbox-group v-model="good_status">
170
               <el-checkbox-group v-model="good_status">
171
                 <el-checkbox label="停用">停用</el-checkbox>
171
                 <el-checkbox label="停用">停用</el-checkbox>
188
               </el-select>
188
               </el-select>
189
             </el-form-item>
189
             </el-form-item>
190
 
190
 
191
-          
191
+
192
 
192
 
193
             <el-form-item label="特殊医用材料标志:">
193
             <el-form-item label="特殊医用材料标志:">
194
               <el-select v-model="form.special_medical " style="width:160px;" placeholder="请选择">
194
               <el-select v-model="form.special_medical " style="width:160px;" placeholder="请选择">
201
               </el-select>
201
               </el-select>
202
             </el-form-item>
202
             </el-form-item>
203
 
203
 
204
-            
204
+
205
 
205
 
206
            <el-form-item label="经销商 : " style="width:100%">
206
            <el-form-item label="经销商 : " style="width:100%">
207
-             
207
+
208
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
208
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
209
                   <el-option
209
                   <el-option
210
                     v-for="(item,index) in dealer"
210
                     v-for="(item,index) in dealer"
225
       <el-tab-pane label="扩展数据" name="second">
225
       <el-tab-pane label="扩展数据" name="second">
226
         <el-form :model="form" label-width="120px"
226
         <el-form :model="form" label-width="120px"
227
                  style="display: flex;flex-wrap: wrap;justify-content: space-between;">
227
                  style="display: flex;flex-wrap: wrap;justify-content: space-between;">
228
-         
228
+
229
           <el-form-item label="标签:" prop="sign">
229
           <el-form-item label="标签:" prop="sign">
230
             <el-select v-model="form.sign" style="width:160px;" placeholder="请选择">
230
             <el-select v-model="form.sign" style="width:160px;" placeholder="请选择">
231
               <el-option
231
               <el-option
292
           <el-form-item label="代理商:" prop="agent">
292
           <el-form-item label="代理商:" prop="agent">
293
             <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
293
             <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
294
           </el-form-item>
294
           </el-form-item>
295
-         
295
+
296
           <el-form-item label="耗材编号:" prop="good_number">
296
           <el-form-item label="耗材编号:" prop="good_number">
297
             <el-input v-model="form.good_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
297
             <el-input v-model="form.good_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
298
           </el-form-item>
298
           </el-form-item>
383
           packing_price:'',
383
           packing_price:'',
384
           default_count_unit:"",
384
           default_count_unit:"",
385
           min_unit:"",
385
           min_unit:"",
386
+          total:"",
386
         },
387
         },
387
 
388
 
388
         rules: {
389
         rules: {
463
           if(form.packing_unit == arr[j].name){
464
           if(form.packing_unit == arr[j].name){
464
               this.unitList.push(arr[j])
465
               this.unitList.push(arr[j])
465
             }
466
             }
466
-          } 
467
+          }
467
           console.log("列表222",this.unitList)
468
           console.log("列表222",this.unitList)
468
         }
469
         }
469
-       
470
+
470
         this.visible = true
471
         this.visible = true
471
         this.good_status =[]
472
         this.good_status =[]
472
         this.getlist()
473
         this.getlist()
512
               packing_price:'',
513
               packing_price:'',
513
               default_count_unit:"",
514
               default_count_unit:"",
514
               min_unit:"",
515
               min_unit:"",
516
+              total:"",
515
             }
517
             }
516
           this.good_status = []
518
           this.good_status = []
517
           for (let key in tempform) {
519
           for (let key in tempform) {
554
           });
556
           });
555
       },
557
       },
556
       getValue: function() {
558
       getValue: function() {
557
-        
559
+
558
         const form = {}
560
         const form = {}
559
         form['specification_name'] = this.form.specification_name
561
         form['specification_name'] = this.form.specification_name
560
         form['good_unit'] = this.form.good_unit
562
         form['good_unit'] = this.form.good_unit
599
         form["packing_unit"]= this.form.packing_unit
601
         form["packing_unit"]= this.form.packing_unit
600
         form["packing_price"] = this.form.packing_price
602
         form["packing_price"] = this.form.packing_price
601
         form["default_count_unit"] = this.form.default_count_unit
603
         form["default_count_unit"] = this.form.default_count_unit
604
+        form["total"] = this.form.total
605
+
602
         return form
606
         return form
603
       }, changeSelected: function(val) {
607
       }, changeSelected: function(val) {
604
         console.log(val)
608
         console.log(val)
608
              page:this.page,
612
              page:this.page,
609
              limit:this.limit
613
              limit:this.limit
610
           }
614
           }
611
-        
615
+
612
         getManufacturerList(params).then(response=>{
616
         getManufacturerList(params).then(response=>{
613
            var manufacturerList =   response.data.data.manufacturer
617
            var manufacturerList =   response.data.data.manufacturer
614
-         
618
+
615
            this.manufacturerList = manufacturerList
619
            this.manufacturerList = manufacturerList
616
         })
620
         })
617
       },
621
       },
622
           return false;
626
           return false;
623
         } else {
627
         } else {
624
           this.dealer = response.data.data.dealer;
628
           this.dealer = response.data.data.dealer;
625
-          
629
+
626
         }
630
         }
627
        });
631
        });
628
       },
632
       },
655
            this.unitList.push(arr[i])
659
            this.unitList.push(arr[i])
656
           }
660
           }
657
         }
661
         }
658
-        
662
+
659
       },
663
       },
660
       changePackingUnit(val){
664
       changePackingUnit(val){
661
         if(this.form.min_unit == val){
665
         if(this.form.min_unit == val){
681
       visible(val) {
685
       visible(val) {
682
         this.form = this.formValue
686
         this.form = this.formValue
683
         this.good_unit = this.formValue.good_unit
687
         this.good_unit = this.formValue.good_unit
684
-      
688
+
685
         if (this.isCreated == 1) {
689
         if (this.isCreated == 1) {
686
           this.good_unit = ''
690
           this.good_unit = ''
687
         }
691
         }