获取供应商对应产品的列表接口修改和联调+获取产品相关供应商的接口修改和联调
3个文件已修改
15 ■■■■ 已修改文件
src/api/productManage/product.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/RaleteSupplierList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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",
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
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,