XMLWAN 3 years ago
parent
commit
4eafc20de0

+ 9 - 3
src/xt_pages/data/components/addDrugs.vue View File

@@ -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'}],
@@ -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() {

+ 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;"