获取供应商对应产品的列表接口修改和联调+获取产品相关供应商的接口修改和联调
| | |
| | | // params: data |
| | | // }) |
| | | // } |
| | | export function getProductListTwo(data) { |
| | | return request({ |
| | | url: "/api-srm/s/getSupplierProductList", |
| | | method: "get", |
| | | params:data |
| | | }) |
| | | } |
| | | export function getProductList(data) { |
| | | return request({ |
| | | url: "/api-srm/p/getProductList", |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getProductList,getSupplierByNumber} from "@/api/productManage/product" |
| | | import { getProductListTwo,getSupplierByNumber} from "@/api/productManage/product" |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | import DetailSupplier from "@/views/supplierManage/supplier/DetailSupplier" |
| | | export default { |
| | |
| | | // 产品列表 |
| | | async getProductList(val, content) { |
| | | console.log(val, content) |
| | | await getProductList({ |
| | | await getProductListTwo({ |
| | | number: this.editConfig.infomation.number, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | |
| | | import AddSupplier from "@/views/supplierManage/supplier/AddSupplier" |
| | | import RaleteSupplierList from "@/views/supplierManage/supplier/RaleteSupplierList" |
| | | import AddNewProduct from "@/views/supplierManage/supplier/AddNewProduct" |
| | | import { getProductList, deleteProduct } from "@/api/productManage/product" |
| | | import { getProductListTwo, deleteProduct } from "@/api/productManage/product" |
| | | import AddPurchase from "@/views/purchaseManage/purchase/components/AddPurchase" |
| | | |
| | | export default { |
| | |
| | | // 产品列表 |
| | | async getProductList(val, content) { |
| | | console.log(val, content) |
| | | await getProductList({ |
| | | await getProductListTwo({ |
| | | [val]: content, |
| | | supplierId: this.supplierId, |
| | | page: this.productPagerOptions.currPage, |