Pārlūkot izejas kodu

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

see999 3 gadus atpakaļ
vecāks
revīzija
1ac2623746

+ 2 - 1
src/xt_pages/data/components/addDrugs.vue Parādīt failu

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

+ 12 - 1
src/xt_pages/data/components/consumables.vue Parādīt failu

@@ -34,7 +34,7 @@
34 34
             :value="item.value">
35 35
           </el-option>
36 36
         </el-select>
37
-       
37
+
38 38
       </div>
39 39
       <div>
40 40
         <el-button type="primary" @click="openForm()">新增</el-button>
@@ -312,6 +312,7 @@
312 312
               packing_price:'',
313 313
               default_count_unit:"",
314 314
               min_unit:"",
315
+              total:"",
315 316
             },
316 317
             isVisibility: false,
317 318
 
@@ -665,6 +666,13 @@
665 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 677
             if (response.data.data.goodInfo.is_doctor_use <= 0) {
670 678
               this.goodInfo.goodInfoDialog.formValue.is_doctor_use = ''
@@ -696,6 +704,9 @@
696 704
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
697 705
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
698 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 Parādīt failu

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

+ 2 - 2
src/xt_pages/hospitalStation/components/registerDialog.vue Parādīt failu

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

+ 1 - 2
src/xt_pages/outpatientCharges/components/registerDialog.vue Parādīt failu

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

+ 106 - 102
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Parādīt failu

@@ -564,7 +564,9 @@
564 564
           patient_id: this.patientInfo.id,
565 565
           start_time: val,
566 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 572
         getDayOrMonthHisPrescription(params).then(response => {
@@ -1040,105 +1042,109 @@
1040 1042
                   })
1041 1043
 
1042 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,8 +1164,6 @@
1158 1164
               this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1159 1165
               this.$refs.register.hide()
1160 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 Parādīt failu

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

+ 3 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Parādīt failu

@@ -1297,6 +1297,7 @@
1297 1297
                   single_dose_unit: temp3[b].drug.min_unit,
1298 1298
                   prescribing_number_unit: temp3[b].drug.max_unit,
1299 1299
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
1300
+
1300 1301
                 }
1301 1302
 
1302 1303
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
@@ -1428,7 +1429,8 @@
1428 1429
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1429 1430
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1430 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 1435
                   tempAdvice.push(obj)
1434 1436
                 }

+ 11 - 11
src/xt_pages/outpatientRegistration/index.vue Parādīt failu

@@ -125,7 +125,7 @@
125 125
             <div class="nameTitle">患者挂号信息:</div>
126 126
             <div class="formMain">
127 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 129
                         <el-select v-model="form.register" placeholder="请选择" @change="changeReg">
130 130
                             <el-option
131 131
                                     v-for="item in his_registers"
@@ -315,16 +315,16 @@
315 315
             <div class="nameTitle">患者挂号信息:</div>
316 316
             <div class="formMain">
317 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 329
                     <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
330 330
                         <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""

+ 23 - 19
src/xt_pages/stock/Dialog/goodInfoDailog.vue Parādīt failu

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