From 3a67ace107e4a29b830669b0b42e18bfd735d6a7 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 24 十一月 2023 11:08:20 +0800
Subject: [PATCH] 联调查询单条供应商数据接口
---
src/api/productManage/product.js | 8 ++++++++
src/views/supplierManage/supplier/RaleteSupplierList.vue | 20 ++++++++++++++------
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/src/api/productManage/product.js b/src/api/productManage/product.js
index fc2a10d..4c60183 100644
--- a/src/api/productManage/product.js
+++ b/src/api/productManage/product.js
@@ -14,6 +14,14 @@
params:data
})
}
+// 鏌ヨ鍗曟潯渚涘簲鍟嗘暟鎹�
+export function getSupplierByNumber(data) {
+ return request({
+ url: `/api/s/getSupplierByNumber/${data}`,
+ method: "get",
+ data
+ })
+}
// 鍒涘缓浜у搧
export function createProduct(data) {
return request({
diff --git a/src/views/supplierManage/supplier/RaleteSupplierList.vue b/src/views/supplierManage/supplier/RaleteSupplierList.vue
index 371fbe2..3dd1a88 100644
--- a/src/views/supplierManage/supplier/RaleteSupplierList.vue
+++ b/src/views/supplierManage/supplier/RaleteSupplierList.vue
@@ -23,7 +23,7 @@
</template>
<script>
-import { getProductList } from "@/api/productManage/product"
+import { getProductList,getSupplierByNumber} from "@/api/productManage/product"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
import DetailSupplier from "@/views/supplierManage/supplier/DetailSupplier"
export default {
@@ -58,7 +58,8 @@
{ label: "閲囪喘浠锋牸", prop: "purchasePrice", min: 130 },
{ label: "渚涜揣澶╂暟", prop: "deliveryTime", min: 130 },
{ label: "鐗╂祦鏃堕暱(澶�)", prop: "shippingDuration", min: 130 }
- ]
+ ],
+ thatNumber:''
}
},
created() {
@@ -102,7 +103,6 @@
console.log(val, content)
await getProductList({
number: this.editConfig.infomation.number,
- supplierId: this.editConfig.infomation.supplierId,
page: this.pagerOptions.currPage,
pageSize: this.pagerOptions.pageSize
}).then((res) => {
@@ -118,13 +118,21 @@
this.pagerOptions.totalCount = res.data.total
})
},
+ // 鍗曟潯渚涘簲鍟嗘暟鎹�-璇︽儏
+ async getSupplierByNumber() {
+ await getSupplierByNumber(
+ this.thatNumber
+ ).then((res) => {
+ this.commonDetail.infomation = { ...res.data.res }
+ })
+ },
handleClose() {
this.editConfig.visible = false
},
- selCommonClick(row) {
- console.log(row)
+ async selCommonClick(row) {
+ this.thatNumber=row.supplier.number
+ await this.getSupplierByNumber()
this.commonDetail.visible = true
- this.commonDetail.infomation = { ...row.supplier }
}
}
}
--
Gitblit v1.8.0