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

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

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

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

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

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

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

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

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

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

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