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
 
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 - 8
src/xt_pages/data/components/addDrugs.vue View File

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

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

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"

+ 1 - 2
src/xt_pages/data/components/drugs.vue View File

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>

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

119
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
119
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
120
           </template>
120
           </template>
121
         </el-table-column>
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
         <el-table-column label="操作" align="center">
131
         <el-table-column label="操作" align="center">
124
           <template slot-scope="scope">
132
           <template slot-scope="scope">

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

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 View File

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 View File

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