|
@@ -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;
|