From 84d9de8968ea6675ecb57fa7c59a7bf2fede8f4d Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 06 十二月 2023 16:45:44 +0800
Subject: [PATCH] 采购管理新增和编辑时供应商是否可以提供当前产品提示优化
---
src/views/purchaseManage/purchase/components/AddPurchase.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/views/purchaseManage/purchase/components/AddPurchase.vue b/src/views/purchaseManage/purchase/components/AddPurchase.vue
index 90bfa28..a69d2d1 100644
--- a/src/views/purchaseManage/purchase/components/AddPurchase.vue
+++ b/src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -521,6 +521,7 @@
const params = this.saveParams();
//鏂板缓
if (this.editConfig.title === "鍒涘缓") {
+ this.lacks=[]
this.tableData.forEach((item)=>{
if(this.productTableList.tableProductList.map(obj => obj.number).includes(item.number)) {
console.log(`${item.name} 鍦ㄦ暟缁勪腑瀛樺湪`);
@@ -563,6 +564,7 @@
pageSize:100
}).then((res)=>{
if(res.code===200){
+ this.lacks=[]
// 缂栬緫鍓嶅厛鐪嬬湅褰撳墠渚涘簲鍟嗗搴旂殑浜у搧鍒楄〃
this.productTableList.tableProductList = res.data.list
//褰撳墠浜у搧鏄惁鍦ㄥ綋鍓嶄緵搴斿晢涓嬪瓨鍦�
@@ -691,7 +693,16 @@
selClientClick() {
this.editSelectSupplierConfig.editVisible = true;
},
- selClient(row) {
+ async selClient(row) {
+ await getProductList({
+ supplierId:row.ID,
+ page:1,
+ pageSize:100
+ }).then((res)=>{
+ if(res.code===200){
+ this.productTableList.tableProductList = res.data.list
+ }
+ })
this.$set(this.editConfig.infomation,'supplierName',row.name)
this.editConfig.infomation.contact = row.contact;
this.editConfig.infomation.phone = row.phone;
--
Gitblit v1.8.0