Browse Source

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 years ago
parent
commit
0a2c222d3e

+ 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 - 8
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: '是'

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

+ 1 - 2
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>

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

@@ -119,6 +119,14 @@
119 119
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
120 120
           </template>
121 121
         </el-table-column>
122
+        <el-table-column min-width="35" align="center">
123
+          <template slot="header" slot-scope="scope">
124
+            <span>出库方式</span>
125
+          </template>
126
+          <template slot-scope="scope">
127
+            <span v-if="scope.row.is_sys == 1">{{"自动出库"}}</span>
128
+          </template>
129
+        </el-table-column>
122 130
 
123 131
         <el-table-column label="操作" align="center">
124 132
           <template slot-scope="scope">

+ 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) {