Browse Source

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

see999 3 years ago
parent
commit
64a954a0c5

+ 47 - 41
src/xt_pages/data/components/addDrugs.vue View File

14
                             <el-input v-model="form.drug_name" style="width:160px;" placeholder=""
14
                             <el-input v-model="form.drug_name" style="width:160px;" placeholder=""
15
                                       maxlength="30"></el-input>
15
                                       maxlength="30"></el-input>
16
                         </el-form-item>
16
                         </el-form-item>
17
-                      
17
+
18
                         <el-form-item label="药品别名 : ">
18
                         <el-form-item label="药品别名 : ">
19
                             <el-input v-model="form.drug_alias" style="width:160px;" placeholder=""
19
                             <el-input v-model="form.drug_alias" style="width:160px;" placeholder=""
20
                                       maxlength="30"></el-input>
20
                                       maxlength="30"></el-input>
21
                         </el-form-item>
21
                         </el-form-item>
22
-                        
22
+
23
                         <el-form-item label="药品类别 : " prop="drug_category">
23
                         <el-form-item label="药品类别 : " prop="drug_category">
24
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
24
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
25
                                 <el-option
25
                                 <el-option
35
                         </div>
35
                         </div>
36
                         <div style="width:100%;display:flex;align-items:center;margin-left:120px;">
36
                         <div style="width:100%;display:flex;align-items:center;margin-left:120px;">
37
                             <el-form-item prop="dose" class="noMargin">
37
                             <el-form-item prop="dose" class="noMargin">
38
-                              <el-input v-model="form.dose" type="number" style="width:100px;margin-right:5px;" placeholder="剂量" :disabled="dosageShow"></el-input>  
38
+                              <el-input v-model="form.dose" type="number" style="width:100px;margin-right:5px;" placeholder="剂量" :disabled="dosageShow"></el-input>
39
                             </el-form-item>
39
                             </el-form-item>
40
                             <el-form-item prop="dose_unit" class="noMargin">
40
                             <el-form-item prop="dose_unit" class="noMargin">
41
                               <el-select v-model="form.dose_unit" style="width:160px;" placeholder="剂量单位" @change="changeMaxUnit">
41
                               <el-select v-model="form.dose_unit" style="width:160px;" placeholder="剂量单位" @change="changeMaxUnit">
73
                             </el-select>
73
                             </el-select>
74
                           </el-form-item>
74
                           </el-form-item>
75
                         </div>
75
                         </div>
76
-                       
77
-                        
76
+
77
+
78
                         <el-form-item label="药品类型 : " prop="drug_type">
78
                         <el-form-item label="药品类型 : " prop="drug_type">
79
                             <el-select v-model="form.drug_type" style="width:160px;" placeholder="请选择">
79
                             <el-select v-model="form.drug_type" style="width:160px;" placeholder="请选择">
80
                                 <el-option
80
                                 <el-option
106
                             </el-option>
106
                             </el-option>
107
                         </el-select>
107
                         </el-select>
108
                     </el-form-item>
108
                     </el-form-item>
109
-                  
109
+
110
                     <el-form-item label="默认单次用量 : " prop="drug_dose">
110
                     <el-form-item label="默认单次用量 : " prop="drug_dose">
111
                          <el-input v-model="form.drug_dose" style="width:70px;margin-right:5px;" placeholder=""
111
                          <el-input v-model="form.drug_dose" style="width:70px;margin-right:5px;" placeholder=""
112
                                       maxlength="30"></el-input>
112
                                       maxlength="30"></el-input>
155
                                 </el-option>
155
                                 </el-option>
156
                             </el-select>
156
                             </el-select>
157
                         </el-form-item>
157
                         </el-form-item>
158
-                       
158
+
159
                         <el-form-item label="单位换算 : ">
159
                         <el-form-item label="单位换算 : ">
160
                             <el-input v-model="form.unit_matrixing" style="width:160px;" placeholder=""
160
                             <el-input v-model="form.unit_matrixing" style="width:160px;" placeholder=""
161
                                       maxlength="30"></el-input>
161
                                       maxlength="30"></el-input>
196
                                 </el-option>
196
                                 </el-option>
197
                             </el-select>
197
                             </el-select>
198
                         </el-form-item>
198
                         </el-form-item>
199
-                      
199
+
200
 
200
 
201
 
201
 
202
                         <el-form-item label="限制性用药 : ">
202
                         <el-form-item label="限制性用药 : ">
228
                                       maxlength="30"></el-input>
228
                                       maxlength="30"></el-input>
229
                         </el-form-item>
229
                         </el-form-item>
230
                         <el-form-item label="生产厂商 : " prop="manufacturer">
230
                         <el-form-item label="生产厂商 : " prop="manufacturer">
231
-                           
231
+
232
                             <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
232
                             <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
233
                                 <el-option
233
                                 <el-option
234
                                         v-for="(item,index) in manufacturerList"
234
                                         v-for="(item,index) in manufacturerList"
313
                         <el-form-item label="药品备注:">
313
                         <el-form-item label="药品备注:">
314
                             <el-input v-model="form.drug_remark" style="width:160px"></el-input>
314
                             <el-input v-model="form.drug_remark" style="width:160px"></el-input>
315
                         </el-form-item>
315
                         </el-form-item>
316
-                      
316
+
317
                         <el-form-item label="经销商: " style="width:100%">
317
                         <el-form-item label="经销商: " style="width:100%">
318
 
318
 
319
                             <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
319
                             <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
349
             <el-tab-pane label="扩展数据" name="second">
349
             <el-tab-pane label="扩展数据" name="second">
350
                 <el-form :model="form" label-width="120px"
350
                 <el-form :model="form" label-width="120px"
351
                          style="display: flex;flex-wrap: wrap;justify-content: space-between;">
351
                          style="display: flex;flex-wrap: wrap;justify-content: space-between;">
352
-           
352
+
353
                     <el-form-item label="标签:" prop="label">
353
                     <el-form-item label="标签:" prop="label">
354
                         <el-select v-model="form.label" style="width:160px;" placeholder="请选择">
354
                         <el-select v-model="form.label" style="width:160px;" placeholder="请选择">
355
                             <el-option
355
                             <el-option
540
           drug_name: [{ required: true, message: '请填写药品名称', trigger: 'blur' }],
540
           drug_name: [{ required: true, message: '请填写药品名称', trigger: 'blur' }],
541
           drug_alias: [{ required: true, message: '请选择药品类别', trigger: 'change' }],
541
           drug_alias: [{ required: true, message: '请选择药品类别', trigger: 'change' }],
542
           // drug_spec: [{ required: true, message: '请填写药品规格', trigger: 'blur' }],
542
           // drug_spec: [{ required: true, message: '请填写药品规格', trigger: 'blur' }],
543
-          dosage:[{required:true,message:'请输入药品剂量',trigger:'blur'}],
544
-          max_unit: [{ required: true, message: '请填写剂量单位', trigger: 'change' }],
543
+          dose:[{required:true,message:'请输入剂量',trigger:'blur'}],
544
+          dose_unit:[{required:true,message:"请填写剂量",trigger:'blur'}],
545
+          max_unit: [{ required: true, message: '请填写包装单位', trigger: 'change' }],
545
           min_unit: [{ required: true, message: '请填写拆零单位', trigger: 'change' }],
546
           min_unit: [{ required: true, message: '请填写拆零单位', trigger: 'change' }],
546
           unval:[{required:true,message:"请填写拆零",trigger:'change'}],
547
           unval:[{required:true,message:"请填写拆零",trigger:'change'}],
547
           min_number:[{required:true,message:"请填写拆零",trigger:'change'}],
548
           min_number:[{required:true,message:"请填写拆零",trigger:'change'}],
551
           drug_origin_place: [{ required: true, message: '请填写产地', trigger: 'blur' }],
552
           drug_origin_place: [{ required: true, message: '请填写产地', trigger: 'blur' }],
552
           drug_dosage_form: [{ required: true, message: '请填写药品剂型', trigger: 'blur' }],
553
           drug_dosage_form: [{ required: true, message: '请填写药品剂型', trigger: 'blur' }],
553
           medical_insurance_level: [{ required: true, message: '请选择医保等级', trigger: 'change' }],
554
           medical_insurance_level: [{ required: true, message: '请选择医保等级', trigger: 'change' }],
554
-         
555
+
555
           unit_matrixing: [{ required: true, message: '请填写单位换算', trigger: 'blur' }],
556
           unit_matrixing: [{ required: true, message: '请填写单位换算', trigger: 'blur' }],
556
           retail_price: [{ required: true, message: '请填写拆零零售价', trigger: 'blur' }],
557
           retail_price: [{ required: true, message: '请填写拆零零售价', trigger: 'blur' }],
557
           last_price: [{ required: true, message: '请填写进货价', trigger: 'blur' }],
558
           last_price: [{ required: true, message: '请填写进货价', trigger: 'blur' }],
566
           drug_remark: [{ required: true, message: '请填写药品备注' }],
567
           drug_remark: [{ required: true, message: '请填写药品备注' }],
567
           lmt_used_flag:[{ required: true, message: '请选择是否限制用药' }],
568
           lmt_used_flag:[{ required: true, message: '请选择是否限制用药' }],
568
           hosp_appr_flag:[{ required: true, message: '请选择审批标志' }],
569
           hosp_appr_flag:[{ required: true, message: '请选择审批标志' }],
569
-      
570
+
570
         },
571
         },
571
         page: 1,
572
         page: 1,
572
         limit: 500,
573
         limit: 500,
599
         type: Number,
600
         type: Number,
600
         default: 1
601
         default: 1
601
       },
602
       },
602
-     
603
+
603
 
604
 
604
     },
605
     },
605
     methods: {
606
     methods: {
610
         this.$refs[formName].validate((valid) => {
611
         this.$refs[formName].validate((valid) => {
611
           console.log(valid)
612
           console.log(valid)
612
           if (valid) {
613
           if (valid) {
613
-            console.log(1111,this.getValue())
614
+            // console.log(1111,this.getValue())
614
             this.$emit('dialog-comfirm', this.getValue())
615
             this.$emit('dialog-comfirm', this.getValue())
615
           }
616
           }
616
         })
617
         })
640
         this.form.intro = ''
641
         this.form.intro = ''
641
       },
642
       },
642
       show(id, obj) {
643
       show(id, obj) {
643
-        
644
+
644
         this.unitList = []
645
         this.unitList = []
645
         var arr =  getDataConfig('hemodialysis','units')
646
         var arr =  getDataConfig('hemodialysis','units')
646
         for(let i=0;i<arr.length;i++){
647
         for(let i=0;i<arr.length;i++){
662
         }else{
663
         }else{
663
           obj.drug_classify = parseInt(obj.drug_classify)
664
           obj.drug_classify = parseInt(obj.drug_classify)
664
         }
665
         }
665
-       
666
+
666
         if(obj.dealer == 0){
667
         if(obj.dealer == 0){
667
            obj.dealer = ""
668
            obj.dealer = ""
668
         }
669
         }
669
-        
670
+
670
         this.visible = true
671
         this.visible = true
671
         if (id == 0) {
672
         if (id == 0) {
672
           this.formTitle = '新增'
673
           this.formTitle = '新增'
718
         this.form.prescription_mark = ''
719
         this.form.prescription_mark = ''
719
         this.form.record_date = ''
720
         this.form.record_date = ''
720
         this.form.drug_remark = ''
721
         this.form.drug_remark = ''
721
-
722
+        this.form.dose = ''
723
+        this.form.dose_unit = ""
724
+        this.form.min_number= ""
725
+        this.form.min_unit = ""
726
+        this.form.max_unit = ""
727
+        this.form.min_price = ""
722
         this.visible = false
728
         this.visible = false
723
       },
729
       },
724
       getValue: function() {
730
       getValue: function() {
792
 
798
 
793
         getManufacturerList(params).then(response => {
799
         getManufacturerList(params).then(response => {
794
           var manufacturerList = response.data.data.manufacturer
800
           var manufacturerList = response.data.data.manufacturer
795
-         
801
+
796
           this.manufacturerList = manufacturerList
802
           this.manufacturerList = manufacturerList
797
         })
803
         })
798
       },
804
       },
811
         getInitializtion().then(response=>{
817
         getInitializtion().then(response=>{
812
            if(response.data.state ==1){
818
            if(response.data.state ==1){
813
              var drugCategoryList =  response.data.data.drugCategoryList
819
              var drugCategoryList =  response.data.data.drugCategoryList
814
-            
820
+
815
              this.drugCategoryList = drugCategoryList
821
              this.drugCategoryList = drugCategoryList
816
              var drugTypeList = response.data.data.drugTypeList
822
              var drugTypeList = response.data.data.drugTypeList
817
-             
823
+
818
               this.drugTypeList = drugTypeList
824
               this.drugTypeList = drugTypeList
819
              var drugDosageFormList =  response.data.data.drugDosageFormList
825
              var drugDosageFormList =  response.data.data.drugDosageFormList
820
-            
826
+
821
              this.drugDosageFormList = drugDosageFormList
827
              this.drugDosageFormList = drugDosageFormList
822
              var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
828
              var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
823
-           
829
+
824
              this.medicalInsuranceLevelList = medicalInsuranceLevelList
830
              this.medicalInsuranceLevelList = medicalInsuranceLevelList
825
              var drugControlList = response.data.data.drugControlList
831
              var drugControlList = response.data.data.drugControlList
826
-             
832
+
827
              this.drugControlList = drugControlList
833
              this.drugControlList = drugControlList
828
              var drugClassifyList = response.data.data.drugClassifyList
834
              var drugClassifyList = response.data.data.drugClassifyList
829
-           
835
+
830
              this.drugClassifyList = drugClassifyList
836
              this.drugClassifyList = drugClassifyList
831
              var statisticsCategoryList =  response.data.data.statisticsCategoryList
837
              var statisticsCategoryList =  response.data.data.statisticsCategoryList
832
-            
838
+
833
              this.statisticsCategoryList = statisticsCategoryList
839
              this.statisticsCategoryList = statisticsCategoryList
834
              var pharmacologyCategoryList = response.data.data.pharmacologyCategoryList
840
              var pharmacologyCategoryList = response.data.data.pharmacologyCategoryList
835
-           
841
+
836
              this.pharmacologyCategoryList = pharmacologyCategoryList
842
              this.pharmacologyCategoryList = pharmacologyCategoryList
837
            }
843
            }
838
         })
844
         })
844
           this.dosageShow = true
850
           this.dosageShow = true
845
         }
851
         }
846
         if(val !=this.form.min_unit){
852
         if(val !=this.form.min_unit){
847
-          this.dosageShow = false 
848
-        } 
853
+          this.dosageShow = false
854
+        }
849
         var arr =  getDataConfig('hemodialysis','units')
855
         var arr =  getDataConfig('hemodialysis','units')
850
         this.unitList = []
856
         this.unitList = []
851
         for(let i=0;i<arr.length;i++){
857
         for(let i=0;i<arr.length;i++){
852
-            
858
+
853
           if(this.form.min_unit == arr[i].name){
859
           if(this.form.min_unit == arr[i].name){
854
             this.unitList.push(arr[i])
860
             this.unitList.push(arr[i])
855
           }
861
           }
865
               this.unitList.push(arr[i])
871
               this.unitList.push(arr[i])
866
             }
872
             }
867
           }
873
           }
868
-          
874
+
869
         }
875
         }
870
         let ojb = {};
876
         let ojb = {};
871
         this.unitList = this.unitList.reduce(function(prevArr, currentItem) {
877
         this.unitList = this.unitList.reduce(function(prevArr, currentItem) {
873
             ojb[currentItem.name] ? '' : ojb[currentItem.name] = true && prevArr.push(currentItem);
879
             ojb[currentItem.name] ? '' : ojb[currentItem.name] = true && prevArr.push(currentItem);
874
             return prevArr
880
             return prevArr
875
         }, [])
881
         }, [])
876
-               
882
+
877
       },
883
       },
878
       changeMinUnit(val){
884
       changeMinUnit(val){
879
         if(val == this.form.max_unit){
885
         if(val == this.form.max_unit){
884
         if(val != this.form.max_unit){
890
         if(val != this.form.max_unit){
885
           this.dosageShow = false
891
           this.dosageShow = false
886
         }
892
         }
887
-        
893
+
888
         // if(this.form.dosage == "" || this.form.max_unit == ""){
894
         // if(this.form.dosage == "" || this.form.max_unit == ""){
889
         //    this.form.min_number = 1
895
         //    this.form.min_number = 1
890
-        // } 
896
+        // }
891
         var arr = getDataConfig('hemodialysis','units')
897
         var arr = getDataConfig('hemodialysis','units')
892
         this.unitList = []
898
         this.unitList = []
893
         for(let i=0;i<arr.length;i++){
899
         for(let i=0;i<arr.length;i++){
916
           ojb[currentItem.name] ? '' : ojb[currentItem.name] = true && prevArr.push(currentItem);
922
           ojb[currentItem.name] ? '' : ojb[currentItem.name] = true && prevArr.push(currentItem);
917
           return prevArr
923
           return prevArr
918
         }, [])
924
         }, [])
919
-       
925
+
920
       }
926
       }
921
     }, watch: {
927
     }, watch: {
922
       visible(val) {
928
       visible(val) {
929
        //获取所有经销商
935
        //获取所有经销商
930
       this.GetAllConfig()
936
       this.GetAllConfig()
931
       this.getlist()
937
       this.getlist()
932
-      
933
-      
934
-     
938
+
939
+
940
+
935
     }
941
     }
936
   }
942
   }
937
 </script>
943
 </script>

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

15
             <el-form-item label="耗材名称 : " prop="good_name" style="width:100%">
15
             <el-form-item label="耗材名称 : " prop="good_name" style="width:100%">
16
               <el-input v-model="form.good_name" placeholder="" maxlength="30"></el-input>
16
               <el-input v-model="form.good_name" placeholder="" maxlength="30"></el-input>
17
             </el-form-item>
17
             </el-form-item>
18
-            <el-form-item label="拼音 : " prop="pinyin" style="width:50%">
18
+            <!-- <el-form-item label="拼音 : " prop="pinyin" style="width:50%">
19
               <el-input v-model="form.pinyin" placeholder="" maxlength="30"></el-input>
19
               <el-input v-model="form.pinyin" placeholder="" maxlength="30"></el-input>
20
             </el-form-item>
20
             </el-form-item>
21
             <el-form-item label="五笔 : " prop="wubi" style="width:50%">
21
             <el-form-item label="五笔 : " prop="wubi" style="width:50%">
22
               <el-input v-model="form.wubi" placeholder="" maxlength="30"></el-input>
22
               <el-input v-model="form.wubi" placeholder="" maxlength="30"></el-input>
23
-            </el-form-item>
23
+            </el-form-item> -->
24
             <el-form-item label="耗材种类 : " prop="good_kind">
24
             <el-form-item label="耗材种类 : " prop="good_kind">
25
               <el-select v-model="form.good_kind" style="width:160px;" placeholder="请选择">
25
               <el-select v-model="form.good_kind" style="width:160px;" placeholder="请选择">
26
                 <el-option
26
                 <el-option
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">例如:0.75 g * 60 粒 / 盒</span></div>
56
+              <div><span style="color:red;">*</span>单位&规格: <span style="color:#999">例如:FX80 * 60盒</span></div>
57
           </div>
57
           </div>
58
           <div style="width:100%;display:flex;align-items:center;">
58
           <div style="width:100%;display:flex;align-items:center;">
59
                <el-form-item label="规格型号 : " prop="specification_name" style="width:200px">
59
                <el-form-item label="规格型号 : " prop="specification_name" style="width:200px">
60
                  <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
60
                  <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
61
                </el-form-item>
61
                </el-form-item>
62
-          
62
+                *
63
                 <el-form-item prop="min_number" class="noMargin">
63
                 <el-form-item prop="min_number" class="noMargin">
64
                   <el-input v-model="form.min_number" :disabled="showMinNumber" style="width:100px" type="number" placeholder="拆零"> </el-input>
64
                   <el-input v-model="form.min_number" :disabled="showMinNumber" style="width:100px" type="number" placeholder="拆零"> </el-input>
65
                 </el-form-item>
65
                 </el-form-item>
66
-                <el-form-item prop="min_unit" class="noMargin">
66
+                <!-- <el-form-item prop="min_unit" class="noMargin">
67
                   <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位"  @change="changeMinUnit">
67
                   <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位"  @change="changeMinUnit">
68
                     <el-option
68
                     <el-option
69
                       v-for="(item,index) in getDataConfig('hemodialysis','units')"
69
                       v-for="(item,index) in getDataConfig('hemodialysis','units')"
72
                       :value="item.name">
72
                       :value="item.name">
73
                     </el-option>
73
                     </el-option>
74
                   </el-select>
74
                   </el-select>
75
-              </el-form-item>
76
-              /
75
+              </el-form-item> -->
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
511
               packing_unit:"",
511
               packing_unit:"",
512
               packing_price:'',
512
               packing_price:'',
513
               default_count_unit:"",
513
               default_count_unit:"",
514
-            
514
+              min_unit:"",
515
             }
515
             }
516
           this.good_status = []
516
           this.good_status = []
517
           for (let key in tempform) {
517
           for (let key in tempform) {

+ 8 - 6
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

28
                         style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
28
                         style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
29
                         value-format="yyyy-MM-dd"></el-date-picker>
29
                         value-format="yyyy-MM-dd"></el-date-picker>
30
          <div class="titleOne">制单人:{{this.$store.getters.xt_user.user.user_name}}</div>
30
          <div class="titleOne">制单人:{{this.$store.getters.xt_user.user.user_name}}</div>
31
-         <div class="titleOne">当前进货价合计:</div>
31
+         <!-- <div class="titleOne">当前进货价合计:</div> -->
32
       </div>
32
       </div>
33
      
33
      
34
       <!-- <div class="cell clearfix">
34
       <!-- <div class="cell clearfix">
80
                     v-model="scope.row.drug_name"
80
                     v-model="scope.row.drug_name"
81
                     :fetch-suggestions="querySearchAsync"
81
                     :fetch-suggestions="querySearchAsync"
82
                     :trigger-on-focus="false"
82
                     :trigger-on-focus="false"
83
-                    placeholder="请输入病人名字"
83
+                    placeholder="请输入药品名称"
84
                     @select="handleSelect"
84
                     @select="handleSelect"
85
                     @input="changeDrugName(scope.$index)"
85
                     @input="changeDrugName(scope.$index)"
86
                     style="width:160px;"
86
                     style="width:160px;"
528
         let name = ""
528
         let name = ""
529
         for(let i=0;i<this.recordInfo.recordData.length;i++){
529
         for(let i=0;i<this.recordInfo.recordData.length;i++){
530
            if(drug_id == this.recordInfo.recordData[i].id){
530
            if(drug_id == this.recordInfo.recordData[i].id){
531
-              name = this.recordInfo.recordData[i].dosage + this.recordInfo.recordData[i].max_unit + "*" + this.recordInfo.recordData[i].min_number + this.recordInfo.recordData[i].min_unit + "/"+this.recordInfo.recordData[i].packing_unit
531
+              name = this.recordInfo.recordData[i].dose + this.recordInfo.recordData[i].dose_unit + "*" + this.recordInfo.recordData[i].min_number + this.recordInfo.recordData[i].min_unit + "/"+this.recordInfo.recordData[i].max_unit
532
            }
532
            }
533
         }
533
         }
534
         return name
534
         return name
549
         tempObj['min_unit'] = ''
549
         tempObj['min_unit'] = ''
550
         tempObj["drug_type"] = ''
550
         tempObj["drug_type"] = ''
551
         tempObj['batch_number'] = ''
551
         tempObj['batch_number'] = ''
552
+        tempObj['dose']= ''
553
+        tempObj['dose_unit']=''
552
         this.recordInfo.recordData.push(tempObj)
554
         this.recordInfo.recordData.push(tempObj)
553
       }, handleDelete: function(index, row) {
555
       }, handleDelete: function(index, row) {
554
         if (this.recordInfo.recordData.length <= 1) {
556
         if (this.recordInfo.recordData.length <= 1) {
594
 
596
 
595
             } else {
597
             } else {
596
               loading.close()
598
               loading.close()
597
-               console.log("3333333",response.data.data.drugs)
599
+             
598
               if (response.data.data.drugs.length <= 0) {
600
               if (response.data.data.drugs.length <= 0) {
599
                 this.$message.error('该厂商或经销商没有药品信息')
601
                 this.$message.error('该厂商或经销商没有药品信息')
600
                 return
602
                 return
681
               'stockIn': this.recordInfo.recordData
683
               'stockIn': this.recordInfo.recordData
682
             }
684
             }
683
             console.log("params2222222",params)
685
             console.log("params2222222",params)
686
+            
684
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
687
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
685
               if (response.data.state == 0) {
688
               if (response.data.state == 0) {
686
                 this.$message.error(response.data.msg)
689
                 this.$message.error(response.data.msg)
732
       },
735
       },
733
 
736
 
734
       changeDrugName(val){
737
       changeDrugName(val){
735
-        console.log("val22222",val)
736
         this.showOne = false
738
         this.showOne = false
737
         this.showTwo = true
739
         this.showTwo = true
738
       },
740
       },
781
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
783
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
782
              this.recordInfo.recordData[i].batch_number = val.number
784
              this.recordInfo.recordData[i].batch_number = val.number
783
              this.recordInfo.recordData[i].max_unit = val.max_unit
785
              this.recordInfo.recordData[i].max_unit = val.max_unit
786
+             this.recordInfo.recordData[i].min_unit = val.min_unit
784
            }
787
            }
785
         }
788
         }
786
         console.log("333333",this.recordInfo.recordData)
789
         console.log("333333",this.recordInfo.recordData)
808
       tempObj['dosage'] = ''
811
       tempObj['dosage'] = ''
809
       tempObj['max_unit'] = ''
812
       tempObj['max_unit'] = ''
810
       tempObj['min_unit'] = '',
813
       tempObj['min_unit'] = '',
811
-      tempObj['packing_unit'] = '',
812
       tempObj['lot_number'] = ''
814
       tempObj['lot_number'] = ''
813
       tempObj['product_date'] = ''
815
       tempObj['product_date'] = ''
814
       tempObj['expiry_date'] = ''
816
       tempObj['expiry_date'] = ''

+ 4 - 2
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

121
                     v-model="scope.row.drug_name"
121
                     v-model="scope.row.drug_name"
122
                     :fetch-suggestions="querySearchAsync"
122
                     :fetch-suggestions="querySearchAsync"
123
                     :trigger-on-focus="false"
123
                     :trigger-on-focus="false"
124
-                    placeholder="请输入病人名字"
124
+                    placeholder="请输入药品名称"
125
                     @select="handleSelect"
125
                     @select="handleSelect"
126
                     @input="changeDrugName(scope.$index)"
126
                     @input="changeDrugName(scope.$index)"
127
                     style="width:160px;"
127
                     style="width:160px;"
636
             stockIn: this.recordInfo.recordData
636
             stockIn: this.recordInfo.recordData
637
           };
637
           };
638
           console.log("params22222222222",params)
638
           console.log("params22222222222",params)
639
-         
639
+        
640
           EditDrugWarehouse(
640
           EditDrugWarehouse(
641
             params,
641
             params,
642
             this.warehousing_time,
642
             this.warehousing_time,
765
       handleSelect(val){
765
       handleSelect(val){
766
         for(let i=0;i<this.recordInfo.recordData.length;i++){
766
         for(let i=0;i<this.recordInfo.recordData.length;i++){
767
            if(i == this.currentIndex){
767
            if(i == this.currentIndex){
768
+             this.recordInfo.recordData[i].drug_id = val.id
768
              this.recordInfo.recordData[i].lot_number = ""
769
              this.recordInfo.recordData[i].lot_number = ""
769
              this.recordInfo.recordData[i].drug_name = val.drug_name
770
              this.recordInfo.recordData[i].drug_name = val.drug_name
770
              this.recordInfo.recordData[i].drug_type = val.drug_type
771
              this.recordInfo.recordData[i].drug_type = val.drug_type
773
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
774
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
774
              this.recordInfo.recordData[i].batch_number = val.number
775
              this.recordInfo.recordData[i].batch_number = val.number
775
              this.recordInfo.recordData[i].max_unit = val.max_unit
776
              this.recordInfo.recordData[i].max_unit = val.max_unit
777
+             this.recordInfo.recordData[i].min_unit = val.min_unit
776
            }
778
            }
777
         }
779
         }
778
       },
780
       },

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

117
                     v-model="scope.row.drug_name"
117
                     v-model="scope.row.drug_name"
118
                     :fetch-suggestions="querySearchAsync"
118
                     :fetch-suggestions="querySearchAsync"
119
                     :trigger-on-focus="false"
119
                     :trigger-on-focus="false"
120
-                    placeholder="请输入病人名字"
120
+                    placeholder="请输入药品名称"
121
                     @select="handleSelect"
121
                     @select="handleSelect"
122
                     style="width:160px;"
122
                     style="width:160px;"
123
                   >
123
                   >

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue View File

69
                     v-model="scope.row.good_name"
69
                     v-model="scope.row.good_name"
70
                     :fetch-suggestions="querySearchAsync"
70
                     :fetch-suggestions="querySearchAsync"
71
                     :trigger-on-focus="false"
71
                     :trigger-on-focus="false"
72
-                    placeholder="请输入病人名字"
72
+                    placeholder="请输入耗材名称"
73
                     @select="handleSelect"
73
                     @select="handleSelect"
74
                     @input="changeGoodName(scope.$index)"
74
                     @input="changeGoodName(scope.$index)"
75
                     style="width:160px;"
75
                     style="width:160px;"

+ 1 - 1
src/xt_pages/stock/stockOutOrderAdd.vue View File

114
                     v-model="scope.row.good_name"
114
                     v-model="scope.row.good_name"
115
                     :fetch-suggestions="querySearchAsync"
115
                     :fetch-suggestions="querySearchAsync"
116
                     :trigger-on-focus="false"
116
                     :trigger-on-focus="false"
117
-                    placeholder="请输入病人名字"
117
+                    placeholder="请输入耗材名称"
118
                     @select="handleSelect"
118
                     @select="handleSelect"
119
                     @input="changeGoodName(scope.$index)"
119
                     @input="changeGoodName(scope.$index)"
120
                     style="width:150px;"
120
                     style="width:150px;"