From f56ee2a5f95b4128b8232bdee6411fe8f1e6341e Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 14 十二月 2023 20:36:56 +0800 Subject: [PATCH] 采购管理修改id大小写 --- 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