Browse Source

修改bug

lichao 3 years ago
parent
commit
1f3ea599e6
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/views/workManagement/warehousing/detail.vue

+ 4 - 3
src/views/workManagement/warehousing/detail.vue

@@ -361,8 +361,9 @@
 <script>
 import tableOption from "./config/customerContact.json";
 import goodsOption from "./config/commodity.json";
-import {getDeptLazyTree,
-  getGoods,} from "@/api/basicData/customerInquiry";
+// import {getDeptLazyTree,
+//   getGoods,} from "@/api/basicData/customerInquiry";
+import {getDeptLazyTree, getList as getGoods} from "@/api/basicData/commodityType";
 import {
   isDiscount,
   isPercentage,
@@ -784,7 +785,7 @@ export default {
     onLoad(page, params = {}) {
       let obj = this.deepClone(Object.assign(params, this.search));
       this.loading = true;
-      getGoods(page.currentPage, page.pageSize, this.treeDeptId, obj)
+      getGoods(page.currentPage, page.pageSize, obj, this.treeDeptId)
         .then(res => {
           const data = res.data.data;
           this.page.total = data.total;