Browse Source

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

XMLWAN 3 years ago
parent
commit
219c11f098

+ 91 - 19
src/xt_pages/data/components/addDrugs.vue View File

49
                             </el-form-item>
49
                             </el-form-item>
50
                             <span style="margin-bottom:20px;font-size:20px;padding:0 10px;">*</span>
50
                             <span style="margin-bottom:20px;font-size:20px;padding:0 10px;">*</span>
51
                             <el-form-item prop="min_number" class="noMargin">
51
                             <el-form-item prop="min_number" class="noMargin">
52
-                              <el-input v-model="form.min_number" style="width:100px;margin-right:5px;" :disabled="dosageShow" type="number" placeholder="拆零"> </el-input>
52
+                              <el-input v-model="form.min_number" style="width:100px;margin-right:5px;" :disabled="minNumberShow" type="number" placeholder="拆零"> </el-input>
53
                             </el-form-item>
53
                             </el-form-item>
54
                             <el-form-item prop="min_unit" class="noMargin">
54
                             <el-form-item prop="min_unit" class="noMargin">
55
                               <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位"  @change="changeMinUnit">
55
                               <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位"  @change="changeMinUnit">
120
                            </el-select>
120
                            </el-select>
121
                      </el-form-item>
121
                      </el-form-item>
122
                     <el-form-item label="默认开药数量:" prop="prescribing_number">
122
                     <el-form-item label="默认开药数量:" prop="prescribing_number">
123
-                        <el-input v-model="form.prescribing_number" style="width:160px;" placeholder=""
123
+                        <el-input v-model="form.prescribing_number" style="width:70px;margin-right:5px;" placeholder=""
124
                                   maxlength="30"></el-input>
124
                                   maxlength="30"></el-input>
125
+                        <el-select v-model="form.prescribing_number_unit" style="width:80px;" placeholder="开药数量单位">
126
+                              <el-option
127
+                                v-for="(item,index) in packingUnit"
128
+                                :key="index"
129
+                                :label="item.name"
130
+                                :value="item.name">
131
+                              </el-option>
132
+                          </el-select>
125
                     </el-form-item>
133
                     </el-form-item>
126
-                     <el-form-item label="开药数量单位:" prop="prescribing_number">
134
+                     <!-- <el-form-item label="开药数量单位:" prop="prescribing_number">
127
                           <el-select v-model="form.prescribing_number_unit" style="width:160px;" placeholder="开药数量单位">
135
                           <el-select v-model="form.prescribing_number_unit" style="width:160px;" placeholder="开药数量单位">
128
                               <el-option
136
                               <el-option
129
                                 v-for="(item,index) in getDataConfig('hemodialysis','units')"
137
                                 v-for="(item,index) in getDataConfig('hemodialysis','units')"
132
                                 :value="item.name">
140
                                 :value="item.name">
133
                               </el-option>
141
                               </el-option>
134
                           </el-select>
142
                           </el-select>
135
-                    </el-form-item>
143
+                    </el-form-item> -->
136
                     <el-form-item label="默认开药天数:" prop="prescribing_number">
144
                     <el-form-item label="默认开药天数:" prop="prescribing_number">
137
                         <el-input v-model="form.drug_day" style="width:160px;" placeholder=""
145
                         <el-input v-model="form.drug_day" style="width:160px;" placeholder=""
138
                                   maxlength="30"></el-input>
146
                                   maxlength="30"></el-input>
545
           dose_unit:"",//剂量
553
           dose_unit:"",//剂量
546
           dose:"",//剂量单位
554
           dose:"",//剂量单位
547
           prescribing_number_unit:"",
555
           prescribing_number_unit:"",
556
+          total:"",
548
         },
557
         },
549
 
558
 
550
         rules: {
559
         rules: {
593
         statisticsCategoryList:[],
602
         statisticsCategoryList:[],
594
         pharmacologyCategoryList:[],
603
         pharmacologyCategoryList:[],
595
         dosageShow:false,
604
         dosageShow:false,
596
-        unitList:[]
605
+        unitList:[],
606
+        minNumberShow:false,
607
+        packingUnit:[]
597
       }
608
       }
598
     },
609
     },
599
     props: {
610
     props: {
654
       show(id, obj) {
665
       show(id, obj) {
655
 
666
 
656
         this.unitList = []
667
         this.unitList = []
668
+        this.packingUnit = []
657
         var arr =  getDataConfig('hemodialysis','units')
669
         var arr =  getDataConfig('hemodialysis','units')
658
         for(let i=0;i<arr.length;i++){
670
         for(let i=0;i<arr.length;i++){
659
-            if(obj.max_unit == arr[i].name){
660
-              this.unitList.push(arr[i])
661
-            }
662
-        }
663
-        for(let i=0;i<arr.length;i++){
664
-            if(obj.min_unit == arr[i].name){
665
-              this.unitList.push(arr[i])
666
-            }
671
+          if(obj.min_unit == arr[i].name){
672
+            this.unitList.push(arr[i])
673
+            this.packingUnit.push(arr[i])
674
+          }
675
+          if(obj.max_unit == arr[i].name){
676
+            this.unitList.push(arr[i])
677
+            this.packingUnit.push(arr[i])
678
+          } 
667
         }
679
         }
668
         console.log('this.unitList',this.unitList)
680
         console.log('this.unitList',this.unitList)
669
         this.getInitializtion()
681
         this.getInitializtion()
705
           }
717
           }
706
 
718
 
707
           this.formTitle = '编辑'
719
           this.formTitle = '编辑'
720
+          let unitArr = []
721
+          this.unitList.map(item => {
722
+            unitArr.push(item.id)
723
+          })
724
+          if(unitArr.indexOf(this.form.drug_dose_unit) == -1){
725
+            this.form.drug_dose_unit = ''
726
+          }
708
 
727
 
709
         }
728
         }
710
         this.getAdviceConfig()
729
         this.getAdviceConfig()
794
         form['drug_remark'] = this.form.drug_remark
813
         form['drug_remark'] = this.form.drug_remark
795
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
814
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
796
         form['lmt_used_flag'] = this.form.lmt_used_flag
815
         form['lmt_used_flag'] = this.form.lmt_used_flag
797
-
816
+        form['total'] = this.form.total
798
         form['min_number'] = this.form.min_number
817
         form['min_number'] = this.form.min_number
799
         form["drug_day"] = this.form.drug_day
818
         form["drug_day"] = this.form.drug_day
800
         form['dose'] = this.form.dose,
819
         form['dose'] = this.form.dose,
900
           this.form.min_number = 1
919
           this.form.min_number = 1
901
           this.dosageShow = true
920
           this.dosageShow = true
902
         }
921
         }
903
-        if(val != this.form.max_unit){
904
-          this.dosageShow = false
905
-        }
922
+        // if(val != this.form.max_unit){
923
+        //   this.dosageShow = false
924
+        // }
906
         if(val == this.form.max_unit){
925
         if(val == this.form.max_unit){
907
           this.form.min_number = 1
926
           this.form.min_number = 1
908
-          this.dosageShow = true
927
+          this.minNumberShow = true
909
         }
928
         }
910
 
929
 
911
         // if(this.form.dosage == "" || this.form.max_unit == ""){
930
         // if(this.form.dosage == "" || this.form.max_unit == ""){
913
         // }
932
         // }
914
         var arr = getDataConfig('hemodialysis','units')
933
         var arr = getDataConfig('hemodialysis','units')
915
         this.unitList = []
934
         this.unitList = []
935
+        this.packingUnit = []
916
         for(let i=0;i<arr.length;i++){
936
         for(let i=0;i<arr.length;i++){
917
             if(val == arr[i].name){
937
             if(val == arr[i].name){
918
               this.unitList.push(arr[i])
938
               this.unitList.push(arr[i])
939
+              this.packingUnit.push(arr[i])
919
             }
940
             }
920
             if(this.form.max_unit == arr[i].name){
941
             if(this.form.max_unit == arr[i].name){
921
               this.unitList.push(arr[i])
942
               this.unitList.push(arr[i])
943
+              this.packingUnit.push(arr[i])
922
             }
944
             }
923
             if(this.form.drug_dose_unit == arr[i].id){
945
             if(this.form.drug_dose_unit == arr[i].id){
924
               this.unitList.push(arr[i])
946
               this.unitList.push(arr[i])
925
             }
947
             }
948
+            if(this.form.prescribing_number_unit == arr[i].id){
949
+              this.packingUnit.push(arr[i])
950
+            }
951
+            
952
+
953
+
954
+
926
             let idArr = []
955
             let idArr = []
927
             this.unitList.map(item => {
956
             this.unitList.map(item => {
928
               idArr.push(item.id)
957
               idArr.push(item.id)
932
                 this.unitList.push(arr[i])
961
                 this.unitList.push(arr[i])
933
               }
962
               }
934
             }
963
             }
964
+            let packingIdArr = []
965
+            this.packingUnit.map(item => {
966
+              packingIdArr.push(item.id)
967
+            })
968
+            if(packingIdArr.indexOf(this.form.prescribing_number_unit) == -1){
969
+              if(this.form.prescribing_number_unit == arr[i].id){
970
+                this.packingUnit.push(arr[i])
971
+              }
972
+            }
935
         }
973
         }
936
         let ojb = {};
974
         let ojb = {};
937
         this.unitList = this.unitList.reduce(function(prevArr, currentItem) {
975
         this.unitList = this.unitList.reduce(function(prevArr, currentItem) {
940
           return prevArr
978
           return prevArr
941
         }, [])
979
         }, [])
942
 
980
 
981
+        let newojb = {};
982
+        this.packingUnit = this.packingUnit.reduce(function(prevArr, currentItem) {
983
+          //利用对象的键名无法重复的特点,mch_id是唯一区别的属性值
984
+          newojb[currentItem.name] ? '' : newojb[currentItem.name] = true && prevArr.push(currentItem);
985
+          return prevArr
986
+        }, [])
987
+
943
       },
988
       },
944
       changeMaxUnit(val){
989
       changeMaxUnit(val){
945
         if(val == this.form.min_unit){
990
         if(val == this.form.min_unit){
946
           this.form.min_number = 1
991
           this.form.min_number = 1
947
-          this.dosageShow = true
992
+          this.minNumberShow = true
948
         }
993
         }
994
+        var arr = getDataConfig('hemodialysis','units')
995
+        this.packingUnit = []
996
+        for(let i=0;i<arr.length;i++){
997
+            if(val == arr[i].name){
998
+              this.packingUnit.push(arr[i])
999
+            }
1000
+            if(this.form.min_unit == arr[i].name){
1001
+              this.packingUnit.push(arr[i])
1002
+            }
1003
+            let packingIdArr = []
1004
+            this.packingUnit.map(item => {
1005
+              packingIdArr.push(item.id)
1006
+            })
1007
+            if(packingIdArr.indexOf(this.form.prescribing_number_unit) == -1){
1008
+              if(this.form.prescribing_number_unit == arr[i].id){
1009
+                this.packingUnit.push(arr[i])
1010
+              }
1011
+            }
1012
+        }
1013
+
1014
+
1015
+        let newojb = {};
1016
+        this.packingUnit = this.packingUnit.reduce(function(prevArr, currentItem) {
1017
+          //利用对象的键名无法重复的特点,mch_id是唯一区别的属性值
1018
+          newojb[currentItem.name] ? '' : newojb[currentItem.name] = true && prevArr.push(currentItem);
1019
+          return prevArr
1020
+        }, [])
949
       }
1021
       }
950
     }, watch: {
1022
     }, watch: {
951
       visible(val) {
1023
       visible(val) {

+ 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
       },

+ 25 - 22
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>
142
           <div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
142
           <div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
143
         </template>
143
         </template>
144
       </el-table-column>
144
       </el-table-column>
145
-      <el-table-column prop="date" label="操作" width="250" align="center" fixed="right">
145
+      <el-table-column prop="date" label="操作" width="280" align="center" fixed="right">
146
         <template slot-scope="scope">
146
         <template slot-scope="scope">
147
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
147
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
148
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
148
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
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;

+ 48 - 3
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

512
             console.log("列表数据",schedules)
512
             console.log("列表数据",schedules)
513
             var config = resp.data.config
513
             var config = resp.data.config
514
             console.log("config222222",config.is_open)
514
             console.log("config222222",config.is_open)
515
+            let project_config = resp.data.project_config
516
+            console.log('project_config',resp.data.hisAdvices)
517
+            if(project_config.is_open == 1){
518
+              this.project = resp.data.project
519
+              resp.data.hisAdvices.map((item,index) => {
520
+                if(this.project[index].project.length > 0){
521
+                  this.project[index].project.map(it => {
522
+                    let obj = {
523
+                      advice_doctor: it.doctor,
524
+                      start_time:it.start_time,
525
+                      advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
526
+                      execution_time:it.execution_time,
527
+                      execution_state:it.execution_state,
528
+                      execution_staff:it.execution_staff,
529
+                      check_time:it.check_time,
530
+                      check_state:it.check_state,
531
+                      checker:it.checker,
532
+                      created_time:it.ctime,
533
+                      delivery_way:'',
534
+                      execution_frequency:'',
535
+                      remark:'',
536
+                      id:it.id,
537
+                      patient_id:it.patient_id,
538
+                      parent_id:0,
539
+                      groupno:0
540
+                    }
541
+                    // let advice = []
542
+                    // advice.push(obj)
543
+                    // let advices = {
544
+                    //   advices: advice,
545
+                    //   group_no: 123
546
+                    // }
547
+
548
+                //     // console.log(11111,item.new_advice)
549
+                    item.doctor_advice.push(obj)
550
+                  })
551
+                }
552
+              })
553
+            }
554
+            console.log('resp.data.hisAdvices',resp.data.hisAdvices)
515
            if(config.is_open == 0 || config.is_open == 2){
555
            if(config.is_open == 0 || config.is_open == 2){
516
             this.show = true
556
             this.show = true
517
             this.showOne = false
557
             this.showOne = false
638
             this.indexInfoList = newArr
678
             this.indexInfoList = newArr
639
            }
679
            }
640
          }
680
          }
641
-        //  console.log("列表22222",this.scheduleMap)
681
+         console.log("列表22222",this.indexInfoList)
642
         })
682
         })
643
     },
683
     },
644
     getValue: function(val) {
684
     getValue: function(val) {
878
             tempSingleDoseDesc =
918
             tempSingleDoseDesc =
879
               ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
919
               ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
880
           } else {
920
           } else {
881
-            tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
921
+            tempSingleDoseDesc = row.single_dose ? row.single_dose : '' + '' + row.single_dose_unit ? row.single_dose_unit : ''
882
           }
922
           }
883
         }
923
         }
884
 
924
 
887
         }
927
         }
888
 
928
 
889
         if (isChild == 1) {
929
         if (isChild == 1) {
890
-          // 不是子药
930
+          // 不是子药 
931
+          console.log(tempDrugSpecDesc)
932
+          console.log(tempPrescribingNumberDesc)
933
+          console.log(tempSingleDoseDesc)
934
+          console.log(11,row.delivery_way)
935
+          console.log(22,row.execution_frequency)
891
 
936
 
892
           return (
937
           return (
893
             row.advice_name +
938
             row.advice_name +

+ 37 - 0
src/xt_pages/dialysis/doctorAdvicePrint.vue View File

285
                 if (resp.state == 1) {
285
                 if (resp.state == 1) {
286
                 this.admin_user = resp.data.adminUser
286
                 this.admin_user = resp.data.adminUser
287
                 var config = resp.data.config
287
                 var config = resp.data.config
288
+                let project_config = resp.data.project_config
289
+                console.log('project_config',resp.data.project_config)
290
+                if(project_config.is_open == 1){
291
+                    this.project = resp.data.project
292
+                    resp.data.hisAdvices.map((item,index) => {
293
+                    item.new_advice = item.new_advice ? item.new_advice : []
294
+                    if(this.project[index].project.length > 0){
295
+                        this.project[index].project.map(it => {
296
+                        let obj = {
297
+                            advice_doctor: it.doctor,
298
+                            start_time:it.start_time,
299
+                            advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
300
+                            execution_time:it.execution_time,
301
+                            execution_state:it.execution_state,
302
+                            execution_staff:it.execution_staff,
303
+                            check_time:it.check_time,
304
+                            check_state:it.check_state,
305
+                            checker:it.checker,
306
+                            created_time:it.ctime,
307
+                            remark:'',
308
+                            id:it.id,
309
+                            parent_id:0,
310
+                            groupno:0
311
+                        }
312
+                        // let advice = []
313
+                        // advice.push(obj)
314
+                        // let advices = {
315
+                        //   advices: advice,
316
+                        //   group_no: 123
317
+                        // }
318
+
319
+                        // console.log(11111,item.new_advice)
320
+                        item.doctor_advice.push(obj)
321
+                        })
322
+                    }
323
+                    })
324
+                }
288
                 if(config.is_open == 0 || config.is_open == 2){
325
                 if(config.is_open == 0 || config.is_open == 2){
289
                 
326
                 
290
                    var schedulesArr = resp.data.scheduals
327
                    var schedulesArr = resp.data.scheduals

+ 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
         }

+ 2 - 2
src/xt_pages/outpatientCharges/treatPrint.vue View File

13
     </template>
13
     </template>
14
     <div class="app-container" style="padding-top:40px;">
14
     <div class="app-container" style="padding-top:40px;">
15
         <div class='dialysisPage'>
15
         <div class='dialysisPage'>
16
-            <printOne v-if="org_id != 4" v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
16
+            <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
17
             <printTwo v-else v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printTwo>
17
             <printTwo v-else v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printTwo>
18
 
18
 
19
         </div>
19
         </div>
86
       var ptime = Math.round(new Date().getTime() / 1000);
86
       var ptime = Math.round(new Date().getTime() / 1000);
87
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
87
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
88
 
88
 
89
-      if(this.org_id == 4){
89
+      if(this.org_id == 10138){
90
         const style =
90
         const style =
91
         '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
91
         '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
92
         printJS({
92
         printJS({

+ 15 - 18
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
                 }
2497
+
2503
                 this.prescriptions[i].advices.push(obj)
2498
                 this.prescriptions[i].advices.push(obj)
2504
               }
2499
               }
2505
               this.curStatus = 1
2500
               this.curStatus = 1
2527
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2522
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2528
                   obj.prescribing_number = 1
2523
                   obj.prescribing_number = 1
2529
                 }
2524
                 }
2525
+                console.log('obj',obj)
2530
                 this.prescriptions[i].advices.push(obj)
2526
                 this.prescriptions[i].advices.push(obj)
2531
               }
2527
               }
2532
               this.curStatus = 1
2528
               this.curStatus = 1
2529
+
2533
             }
2530
             }
2534
 
2531
 
2535
             // if(this.activeName == 2){
2532
             // if(this.activeName == 2){
2550
                   project_id: temp2[b].id,
2547
                   project_id: temp2[b].id,
2551
                   project_name: temp2[b].project_name,
2548
                   project_name: temp2[b].project_name,
2552
                   statistical_classification: temp2[b].statistical_classification,
2549
                   statistical_classification: temp2[b].statistical_classification,
2553
-                  single_dose: temp2[b].single_dose,
2550
+                  single_dose: temp2[b].single_dose.toString(),
2554
                   delivery_way: temp2[b].delivery_way,
2551
                   delivery_way: temp2[b].delivery_way,
2555
                   execution_frequency: temp2[b].execution_frequency,
2552
                   execution_frequency: temp2[b].execution_frequency,
2556
-                  number_days: temp2[b].number_days,
2553
+                  number_days: temp2[b].number_days.toString(),
2557
                   total: temp2[b].total,
2554
                   total: temp2[b].total,
2558
                   price: temp2[b].price,
2555
                   price: temp2[b].price,
2559
                   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
                 }

+ 3 - 3
src/xt_pages/outpatientDoctorStation/print.vue View File

13
       </template>
13
       </template>
14
             
14
             
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <div v-if="org_id != 4">
16
+      <div v-if="org_id != 10138">
17
         <printOne v-if="org_id != 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
         <printOne v-if="org_id != 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
         <printFour v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
18
         <printFour v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
       </div>
19
       </div>
20
-      <div>
20
+      <div v-else>
21
         <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
21
         <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
22
       </div>
22
       </div>
23
     </div>
23
     </div>
75
       var ptime = Math.round(new Date().getTime() / 1000);
75
       var ptime = Math.round(new Date().getTime() / 1000);
76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77
       
77
       
78
-      if(this.org_id == 4){
78
+      if(this.org_id == 10138){
79
         
79
         
80
         const style =
80
         const style =
81
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';
81
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

13
       </template>
13
       </template>
14
             
14
             
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne v-if="org_id != 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
+        <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
         <printTwo v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
17
         <printTwo v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
18
       </div>
18
       </div>
19
   </div>
19
   </div>
65
       var ptime = Math.round(new Date().getTime() / 1000);
65
       var ptime = Math.round(new Date().getTime() / 1000);
66
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
66
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
67
 
67
 
68
-      if(this.org_id == 4){
68
+      if(this.org_id == 10138){
69
         
69
         
70
         const style =
70
         const style =
71
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';
71
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';

+ 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
         }