Browse Source

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

XMLWAN 4 years ago
parent
commit
46ed0cd203

+ 1 - 1
src/api/drug/drug_stock.js View File

@@ -114,7 +114,7 @@ export function getAllDrugStockOutList(params) {
114 114
 
115 115
 export function getAllDrugStockQueryList(params) {
116 116
   return request({
117
-    url: '/api/stock/query',
117
+    url: '/api/drugstock/query',
118 118
     method: 'get',
119 119
     params: params
120 120
   })

+ 8 - 14
src/xt_pages/data/components/addDrugs.vue View File

@@ -84,7 +84,7 @@
84 84
                   v-for="item,index in getDataConfig('hemodialysis','units')"
85 85
                   :key="index"
86 86
                   :label="item.name"
87
-                  :value="item.id">
87
+                  :value="item.name">
88 88
                 </el-option>
89 89
               </el-select>
90 90
             </el-form-item>
@@ -94,7 +94,7 @@
94 94
                   v-for="item,index in getDataConfig('hemodialysis','units')"
95 95
                   :key="index"
96 96
                   :label="item.name"
97
-                  :value="item.id">
97
+                  :value="item.name">
98 98
                 </el-option>
99 99
               </el-select>
100 100
             </el-form-item>
@@ -253,7 +253,7 @@
253 253
           <el-form-item label="标签:" prop="label">
254 254
             <el-select v-model="form.label" style="width:160px;" placeholder="请选择">
255 255
               <el-option
256
-                v-for="item,index in getDictionaryDataConfig('system','sign')"
256
+                v-for="item,index in sign"
257 257
                 :key="index"
258 258
                 :label="item.name"
259 259
                 :value="item.id">
@@ -340,11 +340,11 @@
340 340
         formTitle: '',
341 341
         activeName: 'first',
342 342
         manufacturers:[],
343
-        drugCategorys: [
344
-          { id: 1, name: '中药' },
345
-          { id: 2, name: '西药' },
346
-          { id: 3, name: '草药' },
347
-          { id: 4, name: '其他' }],
343
+        sign: [
344
+          { id: 1, name: '透析模式' },
345
+          { id: 2, name: '特殊护理' },
346
+          { id: 3, name: '抗凝剂' },
347
+          ],
348 348
         options: [{
349 349
           value: '1',
350 350
           label: '是'
@@ -463,7 +463,6 @@
463 463
       },
464 464
       getDataConfig(module, filed_name){
465 465
         return getDataConfig(module, filed_name)
466
-
467 466
       },
468 467
       _close: function(done) {
469 468
         // this.clear()
@@ -490,12 +489,7 @@
490 489
           }
491 490
 
492 491
           this.form.drug_classify = parseInt(this.form.drug_classify)
493
-          this.form.max_unit = parseInt(this.form.max_unit)
494
-          this.form.min_unit = parseInt(this.form.min_unit)
495
-
496 492
           this.form['id'] = id
497
-
498
-          console.log(this.form.drug_status.length)
499 493
           this.drug_status = []
500 494
           if(this.form.drug_status.length > 0){
501 495
             for (let i = 0; i <  this.form.drug_status.split(",").length; i++){

+ 4 - 0
src/xt_pages/data/components/consumables.vue View File

@@ -27,6 +27,10 @@
27 27
         </el-select>
28 28
         <span style="color: #909399;font-size:14px;">耗材种类 : &nbsp;</span>
29 29
         <el-select v-model="good_kind" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeKind">
30
+          <el-option
31
+            label="全部"
32
+            value="0">
33
+          </el-option>
30 34
           <el-option
31 35
             v-for="item,index in  getDictionaryDataConfig('system','good_kind')"
32 36
             :key="index"

+ 3 - 12
src/xt_pages/data/components/drugs.vue View File

@@ -57,8 +57,7 @@
57 57
           <div>{{scope.row.drug_spec}}</div>
58 58
         </template>
59 59
       </el-table-column>
60
-      <el-table-column label="单位" width="60" align="center">
61
-
60
+      <el-table-column label="最小单位" width="60" align="center">
62 61
         <template slot-scope="scope">
63 62
           <div>{{scope.row.min_unit}}</div>
64 63
         </template>
@@ -306,7 +305,7 @@
306 305
         return ''
307 306
       },
308 307
       goodInfoDialogComfirm: function(val) {
309
-        
308
+
310 309
         //修改自备药
311 310
         var untit = ""
312 311
         var untis = getDataConfig('hemodialysis','units')
@@ -371,7 +370,7 @@
371 370
         // this.$refs.maintain.show();
372 371
       },
373 372
       openForm(id) {
374
-        
373
+
375 374
         this.getAllManufacturer()
376 375
         if (id > 0) {
377 376
           this.current_id = id
@@ -388,23 +387,15 @@
388 387
               }
389 388
 
390 389
               if(this.formValue.is_special_diseases <= 0){
391
-
392 390
                 this.formValue.is_special_diseases = ''
393 391
               } else{
394
-
395 392
                 this.formValue.is_special_diseases = this.formValue.is_special_diseases.toString()
396
-
397
-
398 393
               }
399 394
 
400 395
               if(this.formValue.is_record <= 0){
401
-
402 396
                 this.formValue.is_record = ''
403 397
               } else{
404
-
405 398
                 this.formValue.is_record = this.formValue.is_record.toString()
406
-
407
-
408 399
               }
409 400
 
410 401
 

+ 12 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

@@ -108,6 +108,17 @@
108 108
           </template>
109 109
         </el-table-column>
110 110
 
111
+        <el-table-column min-width="35" align="center">
112
+          <template slot="header" slot-scope="scope">
113
+            <span>出库方式</span>
114
+          </template>
115
+          <template slot-scope="scope">
116
+            <span v-if="scope.row.is_sys == 1">{{"自动出库"}}</span>
117
+            <span v-if="scope.row.is_sys != 1">{{"手动出库"}}</span>
118
+
119
+          </template>
120
+        </el-table-column>
121
+
111 122
         <el-table-column label="厂家" align="center">
112 123
           <template slot-scope="scope">
113 124
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
@@ -120,6 +131,7 @@
120 131
           </template>
121 132
         </el-table-column>
122 133
 
134
+
123 135
         <el-table-column label="操作" align="center">
124 136
           <template slot-scope="scope">
125 137
             <el-tooltip

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

@@ -46,14 +46,7 @@
46 46
               <span >{{scope.row.count}}</span>
47 47
             </template>
48 48
           </el-table-column>
49
-          <el-table-column min-width="35" align="center">
50
-            <template slot="header" slot-scope="scope">
51
-              <span>出库方式</span>
52
-            </template>
53
-            <template slot-scope="scope">
54
-              <span v-if="scope.row.is_total == 0">{{"自动出库"}}</span>
55
-            </template>
56
-          </el-table-column>
49
+
57 50
           <el-table-column min-width="35" align="center">
58 51
             <template slot="header" slot-scope="scope">
59 52
               <span>使用时间</span>

+ 11 - 9
src/xt_pages/stock/drugs/query.vue View File

@@ -286,30 +286,32 @@
286 286
       },
287 287
       stockInCount: function(row) {
288 288
         let total = 0;
289
-        for (let i = 0; i < row.query_drug_warehousing_info.length; i++) {
290
-          total = total + row.query_drug_warehousing_info[i].warehousing_count;
289
+          for (let i = 0; i < row.query_drug_warehousing_info.length; i++) {
290
+            total = total + row.query_drug_warehousing_info[i].warehousing_count;
291 291
         }
292 292
         return total;
293 293
       },
294 294
       salesReturnCount: function(row) {
295 295
         let total = 0;
296
-        for (let i = 0; i < row.query_drug_sales_return_info.length; i++) {
297
-          total = total + row.query_drug_sales_return_info[i].count;
296
+
297
+          for (let i = 0; i < row.query_drug_sales_return_info.length; i++) {
298
+            total = total + row.query_drug_sales_return_info[i].count;
298 299
         }
299 300
         return total;
300 301
       },
301 302
       stockOutCount: function(row) {
302 303
         let total = 0;
303
-        for (let i = 0; i < row.query_drug_warehouseout_info.length; i++) {
304
-          total = total + row.query_drug_warehouseout_info[i].count;
304
+
305
+          for (let i = 0; i < row.query_drug_warehouseout_info.length; i++) {
306
+            total = total + row.query_drug_warehouseout_info[i].count;
305 307
         }
306 308
         return total;
307 309
       },
308 310
       cancelStockCount: function(row) {
309 311
         let total = 0;
310
-        for (let i = 0; i < row.query_drug_cancel_stock_info.length; i++) {
311
-          total = total + row.query_drug_cancel_stock_info[i].count;
312
-        }
312
+          for (let i = 0; i < row.query_drug_cancel_stock_info.length; i++) {
313
+            total = total + row.query_drug_cancel_stock_info[i].count;
314
+          }
313 315
         return total;
314 316
       },
315 317
       showStockInDetailDialog: function(val) {},

+ 1 - 18
src/xt_pages/stock/stockQuery.vue View File

@@ -186,24 +186,7 @@ export default {
186 186
         }
187 187
       });
188 188
     },
189
-    getSpecificationName: function(id) {
190
-      let name = "";
191
-      for (let i = 0; i < this.goodInfo.length; i++) {
192
-        if (this.goodInfo[i].id == id) {
193
-          name = this.goodInfo[i].specification_name;
194
-        }
195
-      }
196
-      return name;
197
-    },
198
-    getTypeName: function(id) {
199
-      let name = "";
200
-      for (let i = 0; i < this.goodType.length; i++) {
201
-        if (this.goodType[i].id == id) {
202
-          name = this.goodType[i].type_name;
203
-        }
204
-      }
205
-      return name;
206
-    },
189
+
207 190
     GetAllGoodType: function() {
208 191
       GetAllGoodType().then(response => {
209 192
         if (response.data.state == 0) {