Explorar el Código

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

XMLWAN hace 4 años
padre
commit
46ed0cd203

+ 1 - 1
src/api/drug/drug_stock.js Ver fichero

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

+ 8 - 14
src/xt_pages/data/components/addDrugs.vue Ver fichero

84
                   v-for="item,index in getDataConfig('hemodialysis','units')"
84
                   v-for="item,index in getDataConfig('hemodialysis','units')"
85
                   :key="index"
85
                   :key="index"
86
                   :label="item.name"
86
                   :label="item.name"
87
-                  :value="item.id">
87
+                  :value="item.name">
88
                 </el-option>
88
                 </el-option>
89
               </el-select>
89
               </el-select>
90
             </el-form-item>
90
             </el-form-item>
94
                   v-for="item,index in getDataConfig('hemodialysis','units')"
94
                   v-for="item,index in getDataConfig('hemodialysis','units')"
95
                   :key="index"
95
                   :key="index"
96
                   :label="item.name"
96
                   :label="item.name"
97
-                  :value="item.id">
97
+                  :value="item.name">
98
                 </el-option>
98
                 </el-option>
99
               </el-select>
99
               </el-select>
100
             </el-form-item>
100
             </el-form-item>
253
           <el-form-item label="标签:" prop="label">
253
           <el-form-item label="标签:" prop="label">
254
             <el-select v-model="form.label" style="width:160px;" placeholder="请选择">
254
             <el-select v-model="form.label" style="width:160px;" placeholder="请选择">
255
               <el-option
255
               <el-option
256
-                v-for="item,index in getDictionaryDataConfig('system','sign')"
256
+                v-for="item,index in sign"
257
                 :key="index"
257
                 :key="index"
258
                 :label="item.name"
258
                 :label="item.name"
259
                 :value="item.id">
259
                 :value="item.id">
340
         formTitle: '',
340
         formTitle: '',
341
         activeName: 'first',
341
         activeName: 'first',
342
         manufacturers:[],
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
         options: [{
348
         options: [{
349
           value: '1',
349
           value: '1',
350
           label: '是'
350
           label: '是'
463
       },
463
       },
464
       getDataConfig(module, filed_name){
464
       getDataConfig(module, filed_name){
465
         return getDataConfig(module, filed_name)
465
         return getDataConfig(module, filed_name)
466
-
467
       },
466
       },
468
       _close: function(done) {
467
       _close: function(done) {
469
         // this.clear()
468
         // this.clear()
490
           }
489
           }
491
 
490
 
492
           this.form.drug_classify = parseInt(this.form.drug_classify)
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
           this.form['id'] = id
492
           this.form['id'] = id
497
-
498
-          console.log(this.form.drug_status.length)
499
           this.drug_status = []
493
           this.drug_status = []
500
           if(this.form.drug_status.length > 0){
494
           if(this.form.drug_status.length > 0){
501
             for (let i = 0; i <  this.form.drug_status.split(",").length; i++){
495
             for (let i = 0; i <  this.form.drug_status.split(",").length; i++){

+ 4 - 0
src/xt_pages/data/components/consumables.vue Ver fichero

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

+ 3 - 12
src/xt_pages/data/components/drugs.vue Ver fichero

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

108
           </template>
108
           </template>
109
         </el-table-column>
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
         <el-table-column label="厂家" align="center">
122
         <el-table-column label="厂家" align="center">
112
           <template slot-scope="scope">
123
           <template slot-scope="scope">
113
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
124
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
120
           </template>
131
           </template>
121
         </el-table-column>
132
         </el-table-column>
122
 
133
 
134
+
123
         <el-table-column label="操作" align="center">
135
         <el-table-column label="操作" align="center">
124
           <template slot-scope="scope">
136
           <template slot-scope="scope">
125
             <el-tooltip
137
             <el-tooltip

+ 1 - 8
src/xt_pages/stock/drugs/drugStockUserDetail.vue Ver fichero

46
               <span >{{scope.row.count}}</span>
46
               <span >{{scope.row.count}}</span>
47
             </template>
47
             </template>
48
           </el-table-column>
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
           <el-table-column min-width="35" align="center">
50
           <el-table-column min-width="35" align="center">
58
             <template slot="header" slot-scope="scope">
51
             <template slot="header" slot-scope="scope">
59
               <span>使用时间</span>
52
               <span>使用时间</span>

+ 11 - 9
src/xt_pages/stock/drugs/query.vue Ver fichero

286
       },
286
       },
287
       stockInCount: function(row) {
287
       stockInCount: function(row) {
288
         let total = 0;
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
         return total;
292
         return total;
293
       },
293
       },
294
       salesReturnCount: function(row) {
294
       salesReturnCount: function(row) {
295
         let total = 0;
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
         return total;
300
         return total;
300
       },
301
       },
301
       stockOutCount: function(row) {
302
       stockOutCount: function(row) {
302
         let total = 0;
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
         return total;
308
         return total;
307
       },
309
       },
308
       cancelStockCount: function(row) {
310
       cancelStockCount: function(row) {
309
         let total = 0;
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
         return total;
315
         return total;
314
       },
316
       },
315
       showStockInDetailDialog: function(val) {},
317
       showStockInDetailDialog: function(val) {},

+ 1 - 18
src/xt_pages/stock/stockQuery.vue Ver fichero

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
     GetAllGoodType: function() {
190
     GetAllGoodType: function() {
208
       GetAllGoodType().then(response => {
191
       GetAllGoodType().then(response => {
209
         if (response.data.state == 0) {
192
         if (response.data.state == 0) {