浏览代码

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 年前
父节点
当前提交
737fc2e2d0
共有 1 个文件被更改,包括 7 次插入29 次删除
  1. 7 29
      src/xt_pages/stock/drugs/query.vue

+ 7 - 29
src/xt_pages/stock/drugs/query.vue 查看文件

@@ -264,49 +264,27 @@
264 264
         }
265 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 269
       handleBack: function() {
292 270
         this.$router.go(-1);
293 271
       },
294 272
       handleSizeChange(val) {
295 273
         this.limit = val;
296
-        this.GetAllStockQuery();
274
+        this.GetAllDrugStockQueryList();
297 275
       },
298 276
       handleCurrentChange(val) {
299 277
         this.page = val;
300
-        this.GetAllStockQuery();
278
+        this.GetAllDrugStockQueryList();
301 279
       },
302 280
       calculate: function(val) {
303 281
         return Math.round(parseFloat(val) * 100) / 100;
304 282
       },
305 283
       startTimeChange: function() {
306
-        this.GetAllStockQuery();
284
+        this.GetAllDrugStockQueryList();
307 285
       },
308 286
       endTimeChange: function() {
309
-        this.GetAllStockQuery();
287
+        this.GetAllDrugStockQueryList();
310 288
       },
311 289
       stockInCount: function(row) {
312 290
         let total = 0;
@@ -341,7 +319,7 @@
341 319
       showStockOutDetailDialog: function() {},
342 320
       showCancelStockDetailDialog: function() {},
343 321
       search: function() {
344
-        this.GetAllStockQuery();
322
+        this.GetAllDrugStockQueryList();
345 323
       },setting:function() {
346 324
         this.$refs.dialog.show()
347 325
       }