Преглед изворни кода

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

XMLWAN пре 4 година
родитељ
комит
7db02e5296

+ 35 - 2
src/xt_pages/data/components/addDrugs.vue Прегледај датотеку

@@ -663,7 +663,6 @@
663 663
         this.form.intro = ''
664 664
       },
665 665
       show(id, obj) {
666
-
667 666
         this.unitList = []
668 667
         this.packingUnit = []
669 668
         var arr =  getDataConfig('hemodialysis','units')
@@ -672,11 +671,45 @@
672 671
             this.unitList.push(arr[i])
673 672
             this.packingUnit.push(arr[i])
674 673
           }
675
-          if(obj.max_unit == arr[i].name){
674
+          if(obj.dose_unit == arr[i].name){
676 675
             this.unitList.push(arr[i])
676
+          }
677
+          if(obj.max_unit == arr[i].name){
677 678
             this.packingUnit.push(arr[i])
678 679
           } 
680
+
681
+          let idArr = []
682
+          this.unitList.map(item => {
683
+            idArr.push(item.id)
684
+          })
685
+          if(idArr.indexOf(obj.drug_dose_unit) == -1){
686
+            if(obj.drug_dose_unit == arr[i].id){
687
+              this.unitList.push(arr[i])
688
+            }
689
+          }
690
+          let packingIdArr = []
691
+          this.packingUnit.map(item => {
692
+            packingIdArr.push(item.id)
693
+          })
694
+          if(packingIdArr.indexOf(obj.prescribing_number_unit) == -1){
695
+            if(obj.prescribing_number_unit == arr[i].id || obj.prescribing_number_unit == arr[i].name){
696
+              this.packingUnit.push(arr[i])
697
+            }
698
+          }
679 699
         }
700
+        let ojb = {};
701
+        this.unitList = this.unitList.reduce(function(prevArr, currentItem) {
702
+          //利用对象的键名无法重复的特点,mch_id是唯一区别的属性值
703
+          ojb[currentItem.name] ? '' : ojb[currentItem.name] = true && prevArr.push(currentItem);
704
+          return prevArr
705
+        }, [])
706
+
707
+        let newojb = {};
708
+        this.packingUnit = this.packingUnit.reduce(function(prevArr, currentItem) {
709
+          //利用对象的键名无法重复的特点,mch_id是唯一区别的属性值
710
+          newojb[currentItem.name] ? '' : newojb[currentItem.name] = true && prevArr.push(currentItem);
711
+          return prevArr
712
+        }, [])
680 713
         console.log('this.unitList',this.unitList)
681 714
         this.getInitializtion()
682 715
         this.getlist()

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Прегледај датотеку

@@ -566,7 +566,7 @@
566 566
           </el-col>
567 567
           
568 568
           <el-col :span="8">
569
-            <el-form-item label="预计进食量:" v-if="isShow('预计进食量')">
569
+            <el-form-item label="预计进食量(g):" v-if="isShow('预计进食量')">
570 570
              <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
571 571
             </el-form-item>
572 572
           </el-col>

+ 4 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Прегледај датотеку

@@ -578,12 +578,12 @@
578 578
             </el-form-item>
579 579
           </el-col>
580 580
 
581
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35) ">
581
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38) ">
582 582
             <el-form-item label="超滤率(ml/h)">
583 583
               <el-input v-model="form.ultrafiltration_rate"></el-input>
584 584
             </el-form-item>
585 585
           </el-col>
586
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35">
586
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38">
587 587
             <el-form-item label="超滤率(L/h)">
588 588
               <el-input v-model="form.ultrafiltration_rate"></el-input>
589 589
             </el-form-item>
@@ -591,7 +591,7 @@
591 591
 
592 592
           <el-col
593 593
             :span="8"
594
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || org_id == 9555) " >
594
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || org_id == 9555) " >
595 595
             <el-form-item label="超滤量(ml):">
596 596
               <el-input v-model="form.ultrafiltration_volume"></el-input>
597 597
             </el-form-item>
@@ -599,7 +599,7 @@
599 599
 
600 600
           <el-col
601 601
             :span="8"
602
-            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && org_id !=9555" >
602
+            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && org_id !=9555" >
603 603
             <el-form-item label="超滤量(L):">
604 604
               <el-input v-model="form.ultrafiltration_volume"></el-input>
605 605
             </el-form-item>

+ 1 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue Прегледај датотеку

@@ -85,7 +85,7 @@
85 85
           <div class="widthLength25">附加重物量:{{ predialysis.additional_weight ? predialysis.additional_weight : 0 }} Kg</div>
86 86
           <div class="widthLength25">透前体重:{{ predialysis.weight_before ? predialysis.weight_before : "" }} Kg</div>
87 87
           <div class="widthLength25">干体重:{{ predialysis.dry_weight ? predialysis.dry_weight : "" }} Kg</div>
88
-          <div class="widthLength25">预计进食量:{{ predialysis.estimated_food_intake ? predialysis.estimated_food_intake : '无' }}</div>
88
+          <div class="widthLength25">预计进食量:{{ predialysis.estimated_food_intake ? predialysis.estimated_food_intake + ' g' : '无' }}</div>
89 89
       </div>
90 90
       <div class="lineHeight">
91 91
           其他:{{ predialysis.remark ? predialysis.remark : '' }}
@@ -169,7 +169,6 @@
169 169
             <td colspan="3" style="width:130px;height:40px">执行时间</td>
170 170
             <td colspan="2" style="width:130px;height:40px">核对护士</td>
171 171
             <td colspan="2" style="width:108px;height:40px">执行护士</td>
172
-            <td colspan="2" style="width:108px;height:40px">带教学生</td>
173 172
           </tr>
174 173
 
175 174
           <tr v-for="(advice, advice_index) in tableAdvice" style="height:30px">
@@ -211,7 +210,6 @@
211 210
               </span>
212 211
               <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
213 212
             </td>
214
-            <td colspan="2"><span v-if="advice.start_time">无</span></td>
215 213
           </tr>
216 214
         </tbody>
217 215
       </table>
@@ -260,7 +258,6 @@
260 258
               <img class="es-img" style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
261 259
             </span>
262 260
           </div>
263
-          <div style="width:16%;">学生:无</div>
264 261
       </div>
265 262
       <div class="lineHeight">治疗过程中检测记录:血压检测部位:{{ monitors && monitors[0] ? monitors[0].blood_pressure_monitoring_site : '' }}</div>
266 263
       <table class="print-table" border="1">
@@ -413,8 +410,6 @@
413 410
               <img class="es-img" style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
414 411
             </span>
415 412
           </div>
416
-          <div style="width:16%;">学生:无</div>
417
-          <div style="width:16%;">带教老师:无</div>
418 413
       </div>
419 414
       <div class="lineHeight">
420 415
           病程记录:
@@ -883,30 +878,6 @@ export default {
883 878
           if (prescription.anticoagulant == 7) {
884 879
             prescription.anticoagulant = "低分子肝素钠";
885 880
           }
886
-          if (prescription.blood_access === 1) {
887
-            prescription.blood_access = "正常";
888
-          }
889
-          if (prescription.blood_access === 2) {
890
-            prescription.blood_access = "震颤";
891
-          }
892
-          if (prescription.blood_access === 3) {
893
-            prescription.blood_access = "堵塞";
894
-          }
895
-          if (prescription.blood_access === 4) {
896
-            prescription.blood_access = "血肿";
897
-          }
898
-          if (prescription.blood_access === 5) {
899
-            prescription.blood_access = "淤血";
900
-          }
901
-          if (prescription.blood_access === 6) {
902
-            prescription.blood_access = "感染";
903
-          }
904
-          if (prescription.blood_access === 7) {
905
-            prescription.blood_access = "自体内瘘";
906
-          }
907
-          if (prescription.blood_access === 8) {
908
-            prescription.blood_access = "人工血管内瘘";
909
-          }
910 881
           if (prescription.replacement_way === 1) {
911 882
             prescription.replacement_way = "前置换";
912 883
           }

+ 2 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

@@ -3358,7 +3358,8 @@
3358 3358
                   order_id: this.order.id,
3359 3359
                   record_time: this.record_date,
3360 3360
                   admin_user_id: this.$store.getters.xt_user.user.id,
3361
-                  patient_id: this.patientInfo.id
3361
+                  patient_id: this.patientInfo.id,
3362
+                  his_patient_id: this.hisPatientInfo.id,
3362 3363
                 }
3363 3364
               })
3364 3365
                 .then(function(response) {

+ 1 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Прегледај датотеку

@@ -498,7 +498,7 @@
498 498
         } else {
499 499
           let arr = []
500 500
           for (let i = 0; i < this.allProject.length; i++) {
501
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 || this.allProject[i].wubi.indexOf(this.search_project_keyword) != -1 || this.allProject[i].pinyin.indexOf(this.search_project_keyword) != -1) {
501
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ) {
502 502
               arr = arr.concat(this.allProject[i])
503 503
             }
504 504
           }

+ 17 - 18
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Прегледај датотеку

@@ -73,7 +73,7 @@
73 73
             </template>
74 74
 
75 75
             <template slot-scope="scope">
76
-              <el-form-item style="padding-top: 15px">
76
+              <el-form-item style="padding-top: 20px">
77 77
                   <el-autocomplete
78 78
                     class="checkSearch"
79 79
                     popper-class="my-autocomplete"
@@ -93,12 +93,12 @@
93 93
               </el-form-item>
94 94
             </template>
95 95
           </el-table-column>
96
-           <el-table-column align="center" width="200">
96
+           <el-table-column align="center" width="140">
97 97
             <template slot="header" slot-scope="scope">
98 98
               <span>药品类型</span>
99 99
             </template>
100 100
              <template slot-scope="scope">
101
-               <el-select size="small" v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
101
+               <el-select v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
102 102
                 <el-option
103 103
                   v-for="(option, index) in drugTypeList"
104 104
                   :key="index"
@@ -108,12 +108,12 @@
108 108
                </el-select>
109 109
             </template>
110 110
           </el-table-column>
111
-          <el-table-column align="center" width="200">
111
+          <el-table-column align="center" width="140">
112 112
             <template slot="header" slot-scope="scope">
113 113
               <span>规格&单位</span>
114 114
             </template>
115 115
             <template slot-scope="scope">
116
-              <el-form-item style="padding-top: 15px">
116
+              <el-form-item style="padding-top: 20px">
117 117
                 <el-input
118 118
                   :disabled="true"
119 119
                   placeholder="请输入规格&单位"
@@ -122,12 +122,12 @@
122 122
               </el-form-item>
123 123
             </template>
124 124
           </el-table-column>
125
-         <el-table-column align="center" width="200">
125
+         <el-table-column align="center" width="150">
126 126
           <template slot="header" slot-scope="scope" >
127 127
                 <span>批号</span>
128 128
             </template>
129 129
               <template slot-scope="scope">
130
-                <el-form-item style="padding-top: 15px">
130
+                <el-form-item style="padding-top: 20px">
131 131
                   <el-input
132 132
                     placeholder="请输入批号"
133 133
                     v-model="scope.row.lot_number"
@@ -136,7 +136,7 @@
136 136
               </template>
137 137
          </el-table-column>
138 138
 
139
-         <el-table-column align="center" width="180">
139
+         <el-table-column align="center" width="120">
140 140
             <template slot="header" slot-scope="scope">
141 141
               <span>入库数量<span style="color: red">*</span></span>
142 142
             </template>
@@ -144,20 +144,19 @@
144 144
               <el-form-item
145 145
                 :prop="'recordData.' + scope.$index + '.warehousing_count'"
146 146
                 :rules="tableRules.warehousing_count"
147
-                style="padding-top: 17px"
147
+                style="padding-top: 20px"
148 148
               >
149 149
                 <el-input
150 150
                   placeholder="请输入入库数量"
151 151
                   type="number"
152 152
                   v-model="scope.row.warehousing_count"
153
-                  style="width:100px"
154 153
                 ></el-input>
155 154
                 {{scope.row.max_unit}}
156 155
               </el-form-item>
157 156
             </template>
158 157
           </el-table-column>
159 158
        
160
-          <el-table-column align="center" width="150">
159
+          <el-table-column align="center" width="120">
161 160
             <template slot="header" slot-scope="scope">
162 161
               <span>进货单价(元)<span style="color: red">*</span></span>
163 162
             </template>
@@ -165,7 +164,7 @@
165 164
               <el-form-item
166 165
                 :prop="'recordData.' + scope.$index + '.price'"
167 166
                 :rules="tableRules.last_price"
168
-                style="padding-top: 17px"
167
+                style="padding-top: 20px"
169 168
               >
170 169
                 <el-input
171 170
                   style="width:100px"
@@ -178,15 +177,15 @@
178 177
             </template>
179 178
           </el-table-column>
180 179
 
181
-          <el-table-column label="总价(元)" align="center" width="150">
180
+          <el-table-column label="总价(元)" align="center" width="80">
182 181
             <template slot-scope="scope">
183 182
               {{ calculate(scope.row.last_price * scope.row.warehousing_count) }} 
184 183
             </template>
185 184
           </el-table-column>
186 185
 
187
-          <el-table-column label="生产厂家" width="250" align="center">
186
+          <el-table-column label="生产厂家" width="140" align="center">
188 187
             <template slot-scope="scope">
189
-               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
188
+               <el-select v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
190 189
                 <el-option
191 190
                   v-for="(option, index) in manufacturerList"
192 191
                   :key="index"
@@ -198,7 +197,7 @@
198 197
           </el-table-column>
199 198
  
200 199
 
201
-          <el-table-column label="生产日期" width="250" align="center">
200
+          <el-table-column label="生产日期" width="180" align="center">
202 201
             <template slot-scope="scope">
203 202
               <el-date-picker
204 203
                 prefix-icon="el-icon-date"
@@ -211,7 +210,7 @@
211 210
               ></el-date-picker>
212 211
             </template>
213 212
           </el-table-column>
214
-          <el-table-column label="有效日期" width="250" align="center">
213
+          <el-table-column label="有效日期" width="180" align="center">
215 214
             <template slot-scope="scope">
216 215
               <el-date-picker
217 216
                 prefix-icon="el-icon-date"
@@ -227,7 +226,7 @@
227 226
         
228 227
         <el-table-column align="center" width="150" label="批准文号">
229 228
             <template slot-scope="scope">
230
-              <el-form-item>
229
+              <el-form-item style="padding-top: 20px">
231 230
                 <el-input
232 231
                   placeholder="请输入批准文号"
233 232
                   v-model="scope.row.batch_number"

+ 24 - 23
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Прегледај датотеку

@@ -114,7 +114,7 @@
114 114
             </template>
115 115
 
116 116
             <template slot-scope="scope">
117
-              <el-form-item style="padding-top: 15px">
117
+              <el-form-item style="padding-top: 20px">
118 118
                  <el-autocomplete
119 119
                     class="checkSearch"
120 120
                     popper-class="my-autocomplete"
@@ -134,12 +134,12 @@
134 134
               </el-form-item>
135 135
             </template>
136 136
           </el-table-column>
137
-         <el-table-column align="center" width="200">
137
+         <el-table-column align="center" width="140">
138 138
             <template slot="header" slot-scope="scope">
139 139
               <span>药品类型</span>
140 140
             </template>
141 141
              <template slot-scope="scope">
142
-               <el-select size="small" v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
142
+               <el-select v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
143 143
                 <el-option
144 144
                   v-for="(option, index) in drugTypeList"
145 145
                   :key="index"
@@ -149,12 +149,12 @@
149 149
                </el-select>
150 150
             </template>
151 151
           </el-table-column>
152
-          <el-table-column align="center" width="200">
152
+          <el-table-column align="center" width="140">
153 153
             <template slot="header" slot-scope="scope">
154 154
               <span>规格&单位</span>
155 155
             </template>
156 156
             <template slot-scope="scope">
157
-              <el-form-item style="padding-top: 15px">
157
+              <el-form-item style="padding-top: 20px">
158 158
                 <el-input
159 159
                   :disabled="true"
160 160
                   placeholder="请输入规格&单位"
@@ -163,12 +163,12 @@
163 163
               </el-form-item>
164 164
             </template>
165 165
           </el-table-column>
166
-          <el-table-column align="center" width="200">
166
+          <el-table-column align="center" width="140">
167 167
             <template slot="header" slot-scope="scope" >
168 168
               <span>批号</span>
169 169
               </template>
170 170
                 <template slot-scope="scope">
171
-                  <el-form-item style="padding-top: 15px">
171
+                  <el-form-item style="padding-top: 20px">
172 172
                     <el-input
173 173
                       placeholder="请输入批号"
174 174
                       v-model="scope.row.lot_number"
@@ -177,7 +177,7 @@
177 177
                 </template>
178 178
           </el-table-column>
179 179
                    
180
-         <el-table-column align="center" width="180">
180
+         <el-table-column align="center" width="120">
181 181
             <template slot="header" slot-scope="scope">
182 182
               <span>入库数量<span style="color: red">*</span></span>
183 183
             </template>
@@ -185,19 +185,20 @@
185 185
               <el-form-item
186 186
                 :prop="'recordData.' + scope.$index + '.warehousing_count'"
187 187
                 :rules="tableRules.warehousing_count"
188
-                style="padding-top: 17px"
188
+                style="padding-top: 20px;"
189 189
               >
190
-                <el-input
191
-                  placeholder="请输入入库数量"
192
-                  type="number"
193
-                  v-model="scope.row.warehousing_count"
194
-                  style="width:100px"
195
-                ></el-input>
196
-                {{scope.row.max_unit}}
190
+                <div style="display:flex;">
191
+                  <el-input
192
+                    placeholder="请输入入库数量"
193
+                    type="number"
194
+                    v-model="scope.row.warehousing_count"
195
+                  ></el-input>
196
+                  {{scope.row.max_unit}}
197
+                </div>
197 198
               </el-form-item>
198 199
             </template>
199 200
           </el-table-column>
200
-          <el-table-column>
201
+          <el-table-column width="120">
201 202
             <template slot="header" slot-scope="scope">
202 203
                 <span>进货单价(元)<span style="color: red">*</span></span>
203 204
               </template>
@@ -205,7 +206,7 @@
205 206
                 <el-form-item
206 207
                   :prop="'recordData.' + scope.$index + '.price'"
207 208
                   :rules="tableRules.last_price"
208
-                  style="padding-top: 17px"
209
+                  style="padding-top: 20px"
209 210
                 >
210 211
                   <el-input
211 212
                     style="width:100px"
@@ -218,15 +219,15 @@
218 219
               </template>
219 220
           </el-table-column>
220 221
 
221
-          <el-table-column label="总价(元)" align="center" width="150">
222
+          <el-table-column label="总价(元)" align="center" width="80">
222 223
             <template slot-scope="scope">
223 224
               {{ calculate(scope.row.last_price * scope.row.warehousing_count) }} 
224 225
             </template>
225 226
           </el-table-column>
226 227
          
227
-          <el-table-column label="生产厂家" width="250" align="center">
228
+          <el-table-column label="生产厂家" width="140" align="center">
228 229
             <template slot-scope="scope">
229
-               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
230
+               <el-select v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
230 231
                 <el-option
231 232
                   v-for="(option, index) in manufacturerList"
232 233
                   :key="index"
@@ -237,7 +238,7 @@
237 238
             </template>
238 239
           </el-table-column>
239 240
 
240
-          <el-table-column label="生产日期" width="250" align="center">
241
+          <el-table-column label="生产日期" width="180" align="center">
241 242
             <template slot-scope="scope">
242 243
               <el-date-picker
243 244
                 prefix-icon="el-icon-date"
@@ -252,7 +253,7 @@
252 253
           </el-table-column>
253 254
 
254 255
 
255
-         <el-table-column label="有效日期" width="250" align="center">
256
+         <el-table-column label="有效日期" width="180" align="center">
256 257
             <template slot-scope="scope">
257 258
               <el-date-picker
258 259
                 prefix-icon="el-icon-date"

+ 30 - 27
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Прегледај датотеку

@@ -48,7 +48,7 @@
48 48
           v-model="warehouse_out_time"
49 49
           prefix-icon="el-icon-date"
50 50
           :editable="false"
51
-          style="width: 196px;"
51
+          style="width: 200px;"
52 52
           type="date"
53 53
           placeholder="选择日期时间"
54 54
           align="right"
@@ -65,6 +65,7 @@
65 65
           filterable
66 66
           placeholder="请选择经销商"
67 67
           @change="changeDealer"
68
+          style="width: 200px;"
68 69
         >
69 70
           <el-option
70 71
             v-for="(option, index) in dealer"
@@ -84,6 +85,7 @@
84 85
           filterable
85 86
           placeholder="请选择厂商"
86 87
           @change="changeManufacturer"
88
+          style="width: 200px;"
87 89
         >
88 90
           <el-option
89 91
             v-for="(option, index) in manufacturer"
@@ -110,7 +112,7 @@
110 112
             </template>
111 113
 
112 114
             <template slot-scope="scope">
113
-              <el-form-item style="padding-top: 15px">
115
+              <el-form-item style="padding-top: 20px">
114 116
                 <el-autocomplete
115 117
                     class="checkSearch"
116 118
                     popper-class="my-autocomplete"
@@ -130,12 +132,12 @@
130 132
               </el-form-item>
131 133
             </template>
132 134
           </el-table-column>
133
-          <el-table-column align="center" width="200">
135
+          <el-table-column align="center" width="140">
134 136
             <template slot="header" slot-scope="scope">
135 137
               <span>药品类型</span>
136 138
             </template>
137 139
              <template slot-scope="scope">
138
-               <el-select size="small" v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
140
+               <el-select v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
139 141
                 <el-option
140 142
                   v-for="(option, index) in drugTypeList"
141 143
                   :key="index"
@@ -145,12 +147,12 @@
145 147
                </el-select>
146 148
             </template>
147 149
           </el-table-column>
148
-          <el-table-column align="center" width="200">
150
+          <el-table-column align="center" width="140">
149 151
             <template slot="header" slot-scope="scope">
150 152
               <span>规格&单位<span style="color: red">*</span></span>
151 153
             </template>
152 154
             <template slot-scope="scope">
153
-              <el-form-item style="padding-top: 15px">
155
+              <el-form-item style="padding-top: 20px">
154 156
                 <el-input
155 157
                   :disabled="true"
156 158
                   placeholder="请输入规格&单位"
@@ -159,12 +161,12 @@
159 161
               </el-form-item>
160 162
             </template>
161 163
           </el-table-column>
162
-          <el-table-column align="center" width="200">
164
+          <el-table-column align="center" width="150">
163 165
             <template slot="header" slot-scope="scope" >
164 166
                   <span>批号</span>
165 167
               </template>
166 168
                 <template slot-scope="scope">
167
-                  <el-form-item style="padding-top: 15px">
169
+                  <el-form-item style="padding-top: 20px">
168 170
                     <el-input
169 171
                       placeholder="请输入批号"
170 172
                       v-model="scope.row.batch_number"
@@ -172,7 +174,7 @@
172 174
                   </el-form-item>
173 175
               </template>
174 176
           </el-table-column>
175
-          <el-table-column width="180" align="center">
177
+          <el-table-column width="120" align="center">
176 178
             <template slot="header" slot-scope="scope">
177 179
               <span>出库数量<span style="color: red">*</span></span>
178 180
             </template>
@@ -180,20 +182,21 @@
180 182
               <el-form-item
181 183
                 :prop="'recordData.' + scope.$index + '.count'"
182 184
                 :rules="tableRules.count"
183
-                style="padding-top: 17px"
185
+                style="padding-top: 20px"
184 186
               >
185
-                <el-input
186
-                  placeholder="请输入出库数量"
187
-                  type="number"
188
-                  v-model="scope.row.count"
189
-                  style="width:100px"
190
-                ></el-input>
191
-                {{scope.row.packing_unit}}
187
+                <div style="display:flex;">
188
+                  <el-input
189
+                    placeholder="请输入出库数量"
190
+                    type="number"
191
+                    v-model="scope.row.count"
192
+                  ></el-input>
193
+                  {{scope.row.packing_unit}}
194
+                </div>
192 195
               </el-form-item>
193 196
               
194 197
             </template>
195 198
           </el-table-column>
196
-          <el-table-column width="100" align="center">
199
+          <el-table-column width="120" align="center">
197 200
             <template slot="header" slot-scope="scope">
198 201
               <span>出货价<span style="color: red">*</span></span>
199 202
             </template>
@@ -202,7 +205,7 @@
202 205
               <el-form-item
203 206
                 :prop="'recordData.' + scope.$index + '.last_price'"
204 207
                 :rules="tableRules.last_price"
205
-                style="padding-top: 17px"
208
+                style="padding-top: 20px"
206 209
               >
207 210
                 <el-input
208 211
                   placeholder="请输入出货价"
@@ -235,7 +238,7 @@
235 238
 
236 239
           
237 240
 
238
-          <el-table-column label="总价" width="100" align="center">
241
+          <el-table-column label="总价" width="80" align="center">
239 242
             <template slot-scope="scope">
240 243
               {{ calculate(scope.row.last_price * scope.row.count) }}
241 244
             </template>
@@ -254,9 +257,9 @@
254 257
             </template>
255 258
           </el-table-column> -->
256 259
           
257
-             <el-table-column label="生产厂家" width="250" align="center">
260
+          <el-table-column label="生产厂家" width="140" align="center">
258 261
             <template slot-scope="scope">
259
-               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
262
+               <el-select v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
260 263
                 <el-option
261 264
                   v-for="(option, index) in manufacturerList"
262 265
                   :key="index"
@@ -268,7 +271,7 @@
268 271
           </el-table-column>
269 272
  
270 273
 
271
-          <el-table-column label="生产日期" width="250" align="center">
274
+          <el-table-column label="生产日期" width="180" align="center">
272 275
             <template slot-scope="scope">
273 276
               <el-date-picker
274 277
                 prefix-icon="el-icon-date"
@@ -281,7 +284,7 @@
281 284
               ></el-date-picker>
282 285
             </template>
283 286
           </el-table-column>
284
-          <el-table-column label="有效日期" width="250" align="center">
287
+          <el-table-column label="有效日期" width="180" align="center">
285 288
             <template slot-scope="scope">
286 289
               <el-date-picker
287 290
                 prefix-icon="el-icon-date"
@@ -297,7 +300,7 @@
297 300
         
298 301
         <el-table-column align="center" width="150" label="批准文号">
299 302
             <template slot-scope="scope">
300
-              <el-form-item>
303
+              <el-form-item style="padding-top: 20px">
301 304
                 <el-input
302 305
                   placeholder="请输入批准文号"
303 306
                   v-model="scope.row.number"
@@ -306,13 +309,13 @@
306 309
             </template>
307 310
           </el-table-column>
308 311
 
309
-          <el-table-column label="备注" width="80" align="center">
312
+          <el-table-column label="备注" width="120" align="center">
310 313
             <template slot-scope="scope">
311 314
               <el-input v-model="scope.row.remark"></el-input>
312 315
             </template>
313 316
           </el-table-column>
314 317
 
315
-          <el-table-column label="操作" align="center" width="150">
318
+          <el-table-column label="操作" align="center" width="150" fixed="right">
316 319
             <template slot-scope="scope">
317 320
               <el-tooltip
318 321
                 class="item"

+ 20 - 42
src/xt_pages/stock/drugs/query.vue Прегледај датотеку

@@ -41,7 +41,6 @@
41 41
             </el-option>
42 42
         </el-select>
43 43
          <el-date-picker
44
-            size="small"
45 44
             v-model="start_time"
46 45
             prefix-icon="el-icon-date"
47 46
             :editable="false"
@@ -54,7 +53,6 @@
54 53
             @change="startTimeChange"
55 54
            ></el-date-picker>-
56 55
             <el-date-picker
57
-              size="small"
58 56
               v-model="end_time"
59 57
               prefix-icon="el-icon-date"
60 58
               :editable="false"
@@ -67,7 +65,6 @@
67 65
               @change="endTimeChange"
68 66
           ></el-date-picker>
69 67
           <el-input
70
-            size="small"
71 68
             style="width: 200px;"
72 69
             class="filter-item"
73 70
             v-model.trim="keywords"
@@ -83,41 +80,38 @@
83 80
           </el-button>
84 81
       </div>
85 82
       
86
-       <el-table
87
-        :data="tableList"
88
-        border
89
-        style="width: 100%">
83
+       <el-table :data="tableList" border style="width: 100%">
90 84
         <!-- <el-table-column prop="date" label="药品编号" width="180">
91 85
            <template  slot-scope="scope">
92 86
               
93 87
            </template>
94 88
         </el-table-column> -->
95
-        <el-table-column prop="drug_type" label="药品类型" width="180">
89
+        <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
96 90
            <template slot-scope="scope">
97 91
              {{getDrugType(scope.row.drug_type)}}
98 92
            </template>
99 93
         </el-table-column>
100
-        <el-table-column prop="drug_name" label="药品名称">
94
+        <el-table-column prop="drug_name" label="药品名称" align="center">
101 95
            <template slot-scope="scope">
102 96
              {{scope.row.drug_name}}
103 97
            </template>
104 98
         </el-table-column>
105
-        <el-table-column prop="drug_name" label="规格&&单位">
99
+        <el-table-column prop="drug_name" label="规格&&单位" align="center">
106 100
            <template slot-scope="scope">
107 101
              {{scope.row.dose + scope.row.dose_unit +"*"+scope.row.min_number+scope.row.min_unit+"/"+scope.row.max_unit}}
108 102
            </template>
109 103
         </el-table-column>
110
-         <el-table-column prop="drug_name" label="进货单价">
104
+         <el-table-column prop="drug_name" label="进货单价" align="center">
111 105
            <template slot-scope="scope">
112 106
              {{scope.row.last_price}}
113 107
            </template>
114 108
         </el-table-column>
115
-         <el-table-column prop="drug_name" label="厂家">
109
+         <el-table-column prop="drug_name" label="厂家" align="center">
116 110
            <template slot-scope="scope">
117 111
              {{getManufacturerList(scope.row.manufacturer)}}
118 112
            </template>
119 113
         </el-table-column>
120
-        <el-table-column prop="drug_name" label="剩余库存量">
114
+        <el-table-column prop="drug_name" label="剩余库存量" align="center">
121 115
            <template slot-scope="scope">
122 116
             <span v-if="scope.row.stock_max_number!=''">
123 117
               {{scope.row.stock_max_number}}{{scope.row.max_unit}}
@@ -127,36 +121,20 @@
127 121
             </span> 
128 122
            </template>
129 123
         </el-table-column>
130
-        <el-table-column prop="drug_name" label="操作">
124
+        <el-table-column prop="drug_name" label="操作" align="center">
131 125
           <template slot-scope="scope">
132
-            <el-tooltip
133
-              class="item"
134
-              effect="dark"
135
-              content="库存流水"
136
-              placement="top"
137
-            >
138
-              <el-button
139
-                size="small"
140
-                type="primary"
141
-                icon="el-icon-edit-outline"
142
-                @click="handleDetail(scope.row.drug_id)"
143
-              >
144
-              </el-button>
145
-            </el-tooltip>
146
-            <el-tooltip
147
-              class="item"
148
-              effect="dark"
149
-              content="批次"
150
-              placement="top"
151
-            >
152
-              <el-button
153
-                size="small"
154
-                type="primary"
155
-                icon="el-icon-edit-outline"
156
-                @click="handleBatch(scope.row.drug_id)"
157
-              >
158
-              </el-button>
159
-            </el-tooltip>
126
+            <el-button
127
+              size="small"
128
+              type="primary"
129
+              @click="handleDetail(scope.row.drug_id)"
130
+            >库存流水
131
+            </el-button>
132
+            <el-button
133
+              size="small"
134
+              type="primary"
135
+              @click="handleBatch(scope.row.drug_id)"
136
+            >批次
137
+            </el-button>
160 138
           </template>
161 139
         </el-table-column>
162 140
        </el-table>

+ 14 - 14
src/xt_pages/stock/stockInOrderAdd.vue Прегледај датотеку

@@ -81,26 +81,26 @@
81 81
                  </el-autocomplete>
82 82
             </template>
83 83
           </el-table-column>
84
-          <el-table-column align="center" width="200">
84
+          <el-table-column align="center" width="140">
85 85
             
86 86
             <template slot="header" slot-scope="scope">
87 87
               <span>耗材类型<span style="color: red">*</span></span>
88 88
             </template>
89 89
      
90 90
             <template slot-scope="scope">
91
-              <el-form-item style="padding-top: 15px;margin-left: 10px;margin-right: 10px">
91
+              <el-form-item style="padding-top: 20px;">
92 92
                 <el-input placeholder="请输入耗材类型" v-model="scope.row.good_type_id" :value="typeName(scope.row.good_type_id)"></el-input>
93 93
               </el-form-item>
94 94
             </template>
95 95
           </el-table-column>
96
-          <el-table-column align="center" width="200">
96
+          <el-table-column align="center" width="140">
97 97
             
98 98
             <template slot="header" slot-scope="scope">
99 99
               <span>规格&单位<span style="color: red">*</span></span>
100 100
             </template>
101 101
             <template slot-scope="scope">
102 102
 
103
-              <el-form-item style="padding-top: 15px">
103
+              <el-form-item style="padding-top: 20px">
104 104
                 <el-input placeholder="请输入规格名称" v-model="scope.row.name"></el-input>
105 105
               </el-form-item>
106 106
 
@@ -112,7 +112,7 @@
112 112
               <span>批号</span>
113 113
             </template>
114 114
             <template slot-scope="scope">
115
-              <el-form-item style="padding-top: 17px">
115
+              <el-form-item style="padding-top: 20px">
116 116
                 <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
117 117
               </el-form-item>
118 118
 
@@ -120,28 +120,28 @@
120 120
           </el-table-column>
121 121
 
122 122
 
123
-          <el-table-column align="center" width="180">
123
+          <el-table-column align="center" width="120">
124 124
             <template slot="header" slot-scope="scope">
125 125
               <span>入库数量<span style="color: red">*</span></span>
126 126
             </template>
127 127
             <template slot-scope="scope">
128 128
               <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
129
-                            :rules='tableRules.warehousing_count' style="padding-top: 17px">
130
-                <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count" style="width:120px"></el-input>
129
+                            :rules='tableRules.warehousing_count' style="padding-top: 20px">
130
+                <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"></el-input>
131 131
                   {{scope.row.min_unit}}
132 132
               </el-form-item>
133 133
             
134 134
             </template>
135 135
           </el-table-column>
136 136
 
137
-          <el-table-column align="center" width="150">
137
+          <el-table-column align="center" width="120">
138 138
             <template slot="header" slot-scope="scope">
139 139
               <span>进货单价<span style="color: red">*</span></span>
140 140
             </template>
141 141
             <template slot-scope="scope">
142 142
             
143 143
               <el-form-item :prop="'recordData.' + scope.$index + '.price'" :rules='tableRules.price'
144
-                            style="padding-top: 17px">
144
+                            style="padding-top: 20px">
145 145
                 <el-input placeholder="请输入单价" type="number" v-model="scope.row.price"></el-input>
146 146
               </el-form-item>
147 147
 
@@ -149,7 +149,7 @@
149 149
             </template>
150 150
           </el-table-column>
151 151
 
152
-          <el-table-column label="总价" align="center" width="150">
152
+          <el-table-column label="总价" align="center" width="80">
153 153
             <template slot-scope="scope">
154 154
               {{calculate(scope.row.price*scope.row.warehousing_count)}}
155 155
             </template>
@@ -168,16 +168,16 @@
168 168
             </template>
169 169
           </el-table-column>
170 170
         
171
-          <el-table-column label="生产日期" align="center" width="250">
171
+          <el-table-column label="生产日期" align="center" width="180">
172 172
             <template slot-scope="scope">
173
-              <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.product_date"
173
+              <el-date-picker prefix-icon="el-icon-date" v-model="scope.row.product_date" style="width: 145px"
174 174
                               type="date" placeholder="选择日期时间" format="yyyy-MM-dd"
175 175
                               value-format="yyyy-MM-dd">
176 176
               </el-date-picker>
177 177
 
178 178
             </template>
179 179
           </el-table-column>
180
-          <el-table-column label="有效日期" align="center" width="250">
180
+          <el-table-column label="有效日期" align="center" width="180">
181 181
             <template slot-scope="scope">
182 182
               <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
183 183
                               type="date" placeholder="选择日期时间" format="yyyy-MM-dd"

+ 15 - 14
src/xt_pages/stock/stockInOrderEdit.vue Прегледај датотеку

@@ -40,7 +40,7 @@
40 40
           v-model="warehousing_time"
41 41
           prefix-icon="el-icon-date"
42 42
           :editable="false"
43
-          style="width: 196px;"
43
+          style="width: 200px;"
44 44
           type="date"
45 45
           placeholder="选择日期时间"
46 46
           align="right"
@@ -57,6 +57,7 @@
57 57
           v-model="form.dealer"
58 58
           clearable
59 59
           placeholder="请选择经销商"
60
+          style="width: 200px;"
60 61
         >
61 62
           <el-option
62 63
             v-for="(option, index) in dealer"
@@ -76,6 +77,7 @@
76 77
           v-model="form.manufacturer"
77 78
           clearable
78 79
           placeholder="请选择厂商"
80
+          style="width: 200px;"
79 81
         >
80 82
           <el-option
81 83
             v-for="(option, index) in manufacturer"
@@ -120,13 +122,13 @@
120 122
                  </el-autocomplete>
121 123
             </template>
122 124
           </el-table-column>
123
-          <el-table-column align="center" width="200">
125
+          <el-table-column align="center" width="140">
124 126
             <template slot="header" slot-scope="scope">
125 127
               <span>耗材类型<span style="color: red">*</span></span>
126 128
             </template>
127 129
 
128 130
             <template slot-scope="scope">
129
-              <el-form-item style="padding-top: 15px">
131
+              <el-form-item style="padding-top: 20px">
130 132
                 <el-input
131 133
                   placeholder="请输入耗材类型"
132 134
                   v-model="scope.row.good_type_id"
@@ -135,14 +137,14 @@
135 137
               </el-form-item>
136 138
             </template>
137 139
           </el-table-column>
138
-          <el-table-column align="center" width="200">
140
+          <el-table-column align="center" width="140">
139 141
             
140 142
             <template slot="header" slot-scope="scope">
141 143
               <span>规格&单位<span style="color: red">*</span></span>
142 144
             </template>
143 145
             <template slot-scope="scope">
144 146
 
145
-              <el-form-item style="padding-top: 15px">
147
+              <el-form-item style="padding-top: 20px">
146 148
                 <el-input placeholder="请输入规格名称" v-model="scope.row.name"></el-input>
147 149
               </el-form-item>
148 150
 
@@ -164,7 +166,7 @@
164 166
             </template>
165 167
           </el-table-column> -->
166 168
 
167
-          <el-table-column align="center" width="150">
169
+          <el-table-column align="center" width="120">
168 170
             <template slot="header" slot-scope="scope">
169 171
               <span>单价<span style="color: red">*</span></span>
170 172
             </template>
@@ -173,7 +175,7 @@
173 175
               <el-form-item
174 176
                 :prop="'recordData.' + scope.$index + '.price'"
175 177
                 :rules="tableRules.price"
176
-                style="padding-top: 17px"
178
+                style="padding-top: 20px"
177 179
               >
178 180
                 <el-input
179 181
                   placeholder="请输入单价"
@@ -184,7 +186,7 @@
184 186
             </template>
185 187
           </el-table-column>
186 188
 
187
-          <el-table-column align="center" width="180">
189
+          <el-table-column align="center" width="120">
188 190
             <template slot="header" slot-scope="scope">
189 191
               <span>入库数量<span style="color: red">*</span></span>
190 192
             </template>
@@ -193,19 +195,18 @@
193 195
               <el-form-item
194 196
                 :prop="'recordData.' + scope.$index + '.warehousing_count'"
195 197
                 :rules="tableRules.warehousing_count"
196
-                style="padding-top: 17px"
198
+                style="padding-top: 20px"
197 199
               >
198 200
                 <el-input
199 201
                   placeholder="请输入入库数量"
200 202
                   type="number"
201 203
                   v-model="scope.row.warehousing_count"
202
-                  style="width:120px"
203 204
                 ></el-input>
204 205
                 {{scope.row.min_unit}}
205 206
               </el-form-item>
206 207
             </template>
207 208
           </el-table-column>
208
-          <el-table-column label="总价" align="center" width="150">
209
+          <el-table-column label="总价" align="center" width="80">
209 210
             <template slot-scope="scope">
210 211
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
211 212
             </template>
@@ -216,7 +217,7 @@
216 217
               <span>批号</span>
217 218
             </template>
218 219
             <template slot-scope="scope">
219
-              <el-form-item>
220
+              <el-form-item style="padding-top: 20px">
220 221
                 <el-input
221 222
                   placeholder="请输入批号"
222 223
                   v-model="scope.row.number"
@@ -225,7 +226,7 @@
225 226
             </template>
226 227
           </el-table-column>
227 228
 
228
-          <el-table-column label="生产日期" width="250" align="center">
229
+          <el-table-column label="生产日期" width="180" align="center">
229 230
             <template slot-scope="scope">
230 231
               <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
231 232
               <el-date-picker
@@ -239,7 +240,7 @@
239 240
               ></el-date-picker>
240 241
             </template>
241 242
           </el-table-column>
242
-          <el-table-column label="有效日期" width="250" align="center">
243
+          <el-table-column label="有效日期" width="180" align="center">
243 244
             <template slot-scope="scope">
244 245
               <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
245 246
               <el-date-picker

+ 12 - 10
src/xt_pages/stock/stockOutOrderAdd.vue Прегледај датотеку

@@ -45,7 +45,7 @@
45 45
           v-model="warehouse_out_time"
46 46
           prefix-icon="el-icon-date"
47 47
           :editable="false"
48
-          style="width: 196px;"
48
+          style="width: 200px;"
49 49
           type="date"
50 50
           placeholder="选择日期时间"
51 51
           align="right"
@@ -62,6 +62,7 @@
62 62
           filterable
63 63
           placeholder="请选择经销商"
64 64
           @change="changeDealer"
65
+          style="width: 200px;"
65 66
         >
66 67
           <el-option
67 68
             v-for="(option, index) in dealer"
@@ -81,6 +82,7 @@
81 82
           filterable
82 83
           placeholder="请选择厂商"
83 84
           @change="changeManufacturer"
85
+          style="width: 200px;"
84 86
         >
85 87
           <el-option
86 88
             v-for="(option, index) in manufacturer"
@@ -101,13 +103,13 @@
101 103
           max-height="450"
102 104
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
103 105
         >
104
-         <el-table-column width="150" align="center">
106
+         <el-table-column width="200" align="center">
105 107
             <template slot="header" slot-scope="scope">
106 108
               <span>耗材名称</span>
107 109
             </template>
108 110
 
109 111
             <template slot-scope="scope">
110
-              <el-form-item style="padding-top: 15px">
112
+              <el-form-item style="padding-top: 20px">
111 113
                 <el-autocomplete
112 114
                     class="checkSearch"
113 115
                     popper-class="my-autocomplete"
@@ -127,7 +129,7 @@
127 129
               </el-form-item>
128 130
             </template>
129 131
           </el-table-column>
130
-          <el-table-column  width="150" align="center">
132
+          <el-table-column  width="140" align="center">
131 133
             <template slot="header" slot-scope="scope">
132 134
               <span>耗材类型</span>
133 135
             </template>
@@ -135,7 +137,7 @@
135 137
             <template slot-scope="scope">
136 138
              
137 139
 
138
-              <el-form-item style="padding-top: 15px">
140
+              <el-form-item style="padding-top: 20px">
139 141
                 <el-input
140 142
                   placeholder="请输入商品类型"
141 143
                   v-model="scope.row.good_type_id"
@@ -146,12 +148,12 @@
146 148
           </el-table-column>
147 149
       
148 150
           
149
-          <el-table-column width="150" align="center">
151
+          <el-table-column width="140" align="center">
150 152
             <template slot="header" slot-scope="scope">
151 153
               <span>规格&&单位<span style="color: red">*</span></span>
152 154
             </template>
153 155
             <template slot-scope="scope">
154
-              <el-form-item style="padding-top: 15px">
156
+              <el-form-item style="padding-top: 20px">
155 157
                 <el-input v-model="scope.row.name"></el-input>
156 158
               </el-form-item>
157 159
             </template>
@@ -193,7 +195,7 @@
193 195
               <el-form-item
194 196
                 :prop="'recordData.' + scope.$index + '.price'"
195 197
                 :rules="tableRules.price"
196
-                style="padding-top: 17px"
198
+                style="padding-top: 20px"
197 199
               >
198 200
                 <el-input
199 201
                   placeholder="请输入单价"
@@ -206,7 +208,7 @@
206 208
 
207 209
 
208 210
 
209
-          <el-table-column label="总价"  width="150" align="center">
211
+          <el-table-column label="总价"  width="80" align="center">
210 212
             <template slot-scope="scope">
211 213
               {{ calculate(scope.row.price * scope.row.count) }}
212 214
             </template>
@@ -260,7 +262,7 @@
260 262
             </template>
261 263
           </el-table-column>
262 264
 
263
-          <el-table-column label="操作" align="center" min-width="20" width="150">
265
+          <el-table-column label="操作" align="center" min-width="150">
264 266
             <template slot-scope="scope">
265 267
               <el-tooltip
266 268
                 class="item"

+ 9 - 10
src/xt_pages/stock/stockOutOrderEdit.vue Прегледај датотеку

@@ -26,7 +26,7 @@
26 26
       <div class="cell clearfix">
27 27
         <label class="title"><span class="name">出库时间</span> : </label>
28 28
         <el-date-picker size="small" v-model="warehouse_out_time" prefix-icon="el-icon-date" :editable="false"
29
-                        style="width: 196px;"
29
+                        style="width: 200px;"
30 30
                         type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
31 31
                         value-format="yyyy-MM-dd"></el-date-picker>
32 32
       </div>
@@ -34,7 +34,7 @@
34 34
 
35 35
       <div class="cell clearfix">
36 36
         <label class="title"><span class="name">经销商</span> : </label>
37
-        <el-select size="small" v-model="form.dealer" clearable placeholder="请选择经销商" @change="changeDealer">
37
+        <el-select size="small" v-model="form.dealer" clearable placeholder="请选择经销商" @change="changeDealer" style="width: 200px;">
38 38
           <el-option
39 39
             v-for="(option, index) in dealer"
40 40
             :key="index"
@@ -47,8 +47,7 @@
47 47
 
48 48
       <div class="cell clearfix">
49 49
         <label class="title"><span class="name">厂商</span> : </label>
50
-
51
-        <el-select size="small" v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer">
50
+        <el-select size="small" v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer" style="width: 200px;">
52 51
           <el-option
53 52
             v-for="(option, index) in manufacturer"
54 53
             :key="index"
@@ -64,13 +63,13 @@
64 63
         >
65 64
 
66 65
        
67
-          <el-table-column width="150" align="center">
66
+          <el-table-column width="200" align="center">
68 67
               <template slot="header" slot-scope="scope">
69 68
                 <span>耗材名称</span>
70 69
               </template>
71 70
 
72 71
               <template slot-scope="scope">
73
-                <el-form-item style="padding-top: 15px">
72
+                <el-form-item style="padding-top: 20px">
74 73
                   <el-autocomplete
75 74
                       class="checkSearch"
76 75
                       popper-class="my-autocomplete"
@@ -90,13 +89,13 @@
90 89
                 </el-form-item>
91 90
               </template>
92 91
             </el-table-column>
93
-           <el-table-column width="150" align="center">
92
+           <el-table-column width="140" align="center">
94 93
             <template slot="header" slot-scope="scope">
95 94
               <span>耗材类型<span style="color: red">*</span></span>
96 95
             </template>
97 96
 
98 97
             <template slot-scope="scope">
99
-              <el-form-item style="padding-top: 15px">
98
+              <el-form-item style="padding-top: 20px">
100 99
                 <el-input
101 100
                   placeholder="请输入商品类型"
102 101
                   v-model="scope.row.good_type_id"
@@ -107,12 +106,12 @@
107 106
           </el-table-column>
108 107
           
109 108
              
110
-          <el-table-column width="150" align="center">
109
+          <el-table-column width="140" align="center">
111 110
             <template slot="header" slot-scope="scope">
112 111
               <span>规格&&单位<span style="color: red">*</span></span>
113 112
             </template>
114 113
             <template slot-scope="scope">
115
-              <el-form-item style="padding-top: 15px">
114
+              <el-form-item style="padding-top: 20px">
116 115
                 <el-input v-model="scope.row.name"></el-input>
117 116
               </el-form-item>
118 117
             </template>

+ 21 - 37
src/xt_pages/stock/stockQuery.vue Прегледај датотеку

@@ -62,7 +62,7 @@
62 62
           <el-button size="small" type="primary" @click="toPrint">打印</el-button>
63 63
         </div>
64 64
       </div>
65
-      
65
+
66 66
 
67 67
       <!-- <el-table
68 68
         :row-style="{ color: '#303133' }"
@@ -194,13 +194,14 @@
194 194
          <template slot-scope="scope">
195 195
           <span>{{getInCount(scope.row.good_id)}}</span>
196 196
          </template>
197
-       </el-table-column> 
197
+       </el-table-column>
198 198
        <el-table-column label="出库数量" align="center">
199 199
          <template slot-scope="scope">
200 200
            <span>{{getOutCount(scope.row.good_id)+getAutoCount(scope.row.good_id)}}</span>
201
-          
201
+
202 202
          </template>
203
-       </el-table-column> 
203
+       </el-table-column>
204
+       <el-table-column label="剩余库存量" align="center">
204 205
        <el-table-column label="剩余库存量" align="center">
205 206
          <template slot-scope="scope">
206 207
            {{getInCount(scope.row.good_id)- getOutCount(scope.row.good_id) - getAutoCount(scope.row.good_id)}}
@@ -208,35 +209,18 @@
208 209
        </el-table-column>
209 210
        <el-table-column label="操作" align="center" width="260px">
210 211
           <template slot-scope="scope">
211
-            <el-tooltip
212
-              class="item"
213
-              effect="dark"
214
-              content="库存流水"
215
-              placement="top"
216
-            >
217 212
               <el-button
218 213
                 size="small"
219 214
                 type="primary"
220
-                icon="el-icon-edit-outline"
221 215
                 @click="toClick(scope.row)"
222
-              >
216
+              >库存流水
223 217
               </el-button>
224
-            </el-tooltip>
225
-
226
-            <el-tooltip
227
-              class="item"
228
-              type="primary"
229
-              content="批次"
230
-              placement="top"
231
-            >
232 218
               <el-button
233 219
                 size="small"
234 220
                 type="primary"
235
-                icon="el-icon-edit-outline"
236 221
                 @click="toClickOne(scope.row)"
237
-              >
222
+              >批次
238 223
               </el-button>
239
-            </el-tooltip>
240 224
           </template>
241 225
         </el-table-column>
242 226
       </el-table>
@@ -321,7 +305,7 @@ export default {
321 305
         end_time:this.end_time,
322 306
         type_name:this.type_name,
323 307
       };
324
-     
308
+
325 309
       this.WarehouseInfo.loading = true;
326 310
       this.WarehouseInfo.warehouseInfoDate = [];
327 311
       getAllStockQueryList(Params).then(response => {
@@ -337,7 +321,7 @@ export default {
337 321
           }
338 322
         }
339 323
         console.log("数据源头",this.WarehouseInfo.warehouseInfoDate)
340
-         
324
+
341 325
          for(let i=0;i<this.WarehouseInfo.warehouseInfoDate.length;i++){
342 326
             this.WarehouseInfo.warehouseInfoDate[i].type_name = this.WarehouseInfo.warehouseInfoDate[i].type.type_name
343 327
 
@@ -365,7 +349,7 @@ export default {
365 349
 
366 350
 
367 351
          }
368
-        
352
+
369 353
         console.log("数据2222222",this.WarehouseInfo.warehouseInfoDate)
370 354
       });
371 355
     },
@@ -385,7 +369,7 @@ export default {
385 369
             this.goodType.push(response.data.data.goodType[i]);
386 370
             this.types.push(response.data.data.goodType[i])
387 371
           }
388
-          
372
+
389 373
           console.log("商品类型",this.types)
390 374
         }
391 375
       });
@@ -407,7 +391,7 @@ export default {
407 391
     },
408 392
     handleSizeChange(val) {
409 393
       this.limit = val;
410
-     
394
+
411 395
       this.getlist()
412 396
     },
413 397
     handleCurrentChange(val) {
@@ -419,7 +403,7 @@ export default {
419 403
     },
420 404
     startTimeChange: function(val) {
421 405
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
422
-      
406
+
423 407
       if (time > 0) {
424 408
         this.$message.error("开始时间不能大于结束时间");
425 409
         this.start_time = "";
@@ -437,7 +421,7 @@ export default {
437 421
         this.end_time = val
438 422
          this.getlist()
439 423
       }
440
-     
424
+
441 425
     },
442 426
     stockInCount: function(row) {
443 427
       let total = 0;
@@ -454,7 +438,7 @@ export default {
454 438
       return total;
455 439
     },
456 440
     stockOutCount: function(row) {
457
-      
441
+
458 442
       let total = 0;
459 443
       for (let i = 0; i < row.query_warehouseout_info.length; i++) {
460 444
         total = total + row.query_warehouseout_info[i].count;
@@ -477,13 +461,13 @@ export default {
477 461
     },
478 462
 
479 463
     exportList(){
480
-      
464
+
481 465
          import('@/vendor/Export2Excel').then(excel => {
482 466
          const tHeader = ['商品编码', '耗材名称', '耗材类型','规格型号','入库数量','进货价','入库退货','实际入库','出库数量','出库退库','实际出库','剩余库存']
483
-         const filterVal = ['good_code', 'good_name', 'type_name','specification_name','stockInCount','price','salesReturnCount','realCount','stockOutCount','cancelStockCount','realOutCount','overplus'] 
467
+         const filterVal = ['good_code', 'good_name', 'type_name','specification_name','stockInCount','price','salesReturnCount','realCount','stockOutCount','cancelStockCount','realOutCount','overplus']
484 468
          const data = this.formatJson(filterVal, this.WarehouseInfo.warehouseInfoDate)
485 469
          console.log("data",data)
486
-         
470
+
487 471
          excel.export_json_to_excel({
488 472
            header: tHeader,
489 473
            data,
@@ -500,16 +484,16 @@ export default {
500 484
       },
501 485
       toPrint(){
502 486
         this.$router.push("/stock/stockprint?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keywords+"&type_name="+this.type_name+"&page="+this.page+"&limit="+this.limit)
503
-        
487
+
504 488
       },
505 489
 
506 490
       getUnit(id){
507
-        
491
+
508 492
         var name = ""
509 493
         for(let i=0;i<this.$store.getters.good_unit.length;i++){
510 494
            if(id == this.$store.getters.good_unit[i].id){
511 495
               name = this.$store.getters.good_unit[i].name
512
-           } 
496
+           }
513 497
         }
514 498
         return name
515 499
       },