From fe95d034e69c59d3e1a003615a65a0fb945ba55f Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 25 四月 2024 17:07:57 +0800 Subject: [PATCH] 获取供应商对应产品的列表接口修改和联调+获取产品相关供应商的接口修改和联调 --- src/views/supplierManage/supplier/index.vue | 4 ++-- src/api/productManage/product.js | 7 +++++++ src/views/supplierManage/supplier/RaleteSupplierList.vue | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/api/productManage/product.js b/src/api/productManage/product.js index fb8638d..00e2dbd 100644 --- a/src/api/productManage/product.js +++ b/src/api/productManage/product.js @@ -7,6 +7,13 @@ // 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", diff --git a/src/views/supplierManage/supplier/RaleteSupplierList.vue b/src/views/supplierManage/supplier/RaleteSupplierList.vue index 3dd1a88..c888f6b 100644 --- a/src/views/supplierManage/supplier/RaleteSupplierList.vue +++ b/src/views/supplierManage/supplier/RaleteSupplierList.vue @@ -23,7 +23,7 @@ </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 { @@ -101,7 +101,7 @@ // 浜у搧鍒楄〃 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 diff --git a/src/views/supplierManage/supplier/index.vue b/src/views/supplierManage/supplier/index.vue index 6846206..501c717 100644 --- a/src/views/supplierManage/supplier/index.vue +++ b/src/views/supplierManage/supplier/index.vue @@ -124,7 +124,7 @@ 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 { @@ -317,7 +317,7 @@ // 浜у搧鍒楄〃 async getProductList(val, content) { console.log(val, content) - await getProductList({ + await getProductListTwo({ [val]: content, supplierId: this.supplierId, page: this.productPagerOptions.currPage, -- Gitblit v1.8.0