Sfoglia il codice sorgente

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 anni fa
parent
commit
737fc2e2d0
1 ha cambiato i file con 7 aggiunte e 29 eliminazioni
  1. 7 29
      src/xt_pages/stock/drugs/query.vue

+ 7 - 29
src/xt_pages/stock/drugs/query.vue Vedi File

264
         }
264
         }
265
         return name;
265
         return name;
266
       },
266
       },
267
-      GetAllGoodType: function() {
268
-        GetAllGoodType().then(response => {
269
-          if (response.data.state == 0) {
270
-            this.$message.error(response.data.msg);
271
-            return false;
272
-          } else {
273
-            for (let i = 0; i < response.data.data.goodType.length; i++) {
274
-              this.goodType.push(response.data.data.goodType[i]);
275
-            }
276
-          }
277
-        });
278
-      },
279
-      GetAllGoodInfo: function() {
280
-        GetAllGoodInfo().then(response => {
281
-          if (response.data.state == 0) {
282
-            this.$message.error(response.data.msg);
283
-            return false;
284
-          } else {
285
-            for (let i = 0; i < response.data.data.goodInfo.length; i++) {
286
-              this.goodInfo.push(response.data.data.goodInfo[i]);
287
-            }
288
-          }
289
-        });
290
-      },
267
+
268
+
291
       handleBack: function() {
269
       handleBack: function() {
292
         this.$router.go(-1);
270
         this.$router.go(-1);
293
       },
271
       },
294
       handleSizeChange(val) {
272
       handleSizeChange(val) {
295
         this.limit = val;
273
         this.limit = val;
296
-        this.GetAllStockQuery();
274
+        this.GetAllDrugStockQueryList();
297
       },
275
       },
298
       handleCurrentChange(val) {
276
       handleCurrentChange(val) {
299
         this.page = val;
277
         this.page = val;
300
-        this.GetAllStockQuery();
278
+        this.GetAllDrugStockQueryList();
301
       },
279
       },
302
       calculate: function(val) {
280
       calculate: function(val) {
303
         return Math.round(parseFloat(val) * 100) / 100;
281
         return Math.round(parseFloat(val) * 100) / 100;
304
       },
282
       },
305
       startTimeChange: function() {
283
       startTimeChange: function() {
306
-        this.GetAllStockQuery();
284
+        this.GetAllDrugStockQueryList();
307
       },
285
       },
308
       endTimeChange: function() {
286
       endTimeChange: function() {
309
-        this.GetAllStockQuery();
287
+        this.GetAllDrugStockQueryList();
310
       },
288
       },
311
       stockInCount: function(row) {
289
       stockInCount: function(row) {
312
         let total = 0;
290
         let total = 0;
341
       showStockOutDetailDialog: function() {},
319
       showStockOutDetailDialog: function() {},
342
       showCancelStockDetailDialog: function() {},
320
       showCancelStockDetailDialog: function() {},
343
       search: function() {
321
       search: function() {
344
-        this.GetAllStockQuery();
322
+        this.GetAllDrugStockQueryList();
345
       },setting:function() {
323
       },setting:function() {
346
         this.$refs.dialog.show()
324
         this.$refs.dialog.show()
347
       }
325
       }