From 7f5306d896fa0c541a83c4b62d0c533a604dd184 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期日, 28 四月 2024 18:23:23 +0800 Subject: [PATCH] 供应商管理模块 添加新产品的时候供应商对应的产品和已增加的产品都不可选的逻辑处理 --- src/views/other/commonDialog/SelectCommonDialog.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/other/commonDialog/SelectCommonDialog.vue b/src/views/other/commonDialog/SelectCommonDialog.vue index e0e3748..afff0b0 100644 --- a/src/views/other/commonDialog/SelectCommonDialog.vue +++ b/src/views/other/commonDialog/SelectCommonDialog.vue @@ -72,7 +72,8 @@ clientId: 0, isRequest: true, client_name: "", - tableInfomation: [] + tableInfomation: [], + supplierId:null, } } }, @@ -117,7 +118,7 @@ tableColumn: [], selectArray: [] } - }, + }, created() { this.setTable() this.getData() @@ -182,10 +183,11 @@ async getProductList() { let fn = this.sign == "purchase" ? getProductList : getProductListFromGrpc await fn({ - keyword: this.keyword, - page: this.pagerOptions.currPage, - pageSize: this.pagerOptions.pageSize - }).then((res) => { + keyword: this.keyword, + page: this.pagerOptions.currPage, + supplierId:this.editConfig.supplierId, + pageSize: this.pagerOptions.pageSize, + }).then((res) => { if (res.code === 200) { if (res.data.list && res.data.list.length > 0) { const list = res.data.list.map((item) => { -- Gitblit v1.8.0