From 446909448e77be9c61c072aa52178a50b8e8a292 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 22 十二月 2023 17:49:55 +0800 Subject: [PATCH] 报价单和销售明细单的产品信息新增为可以多选的功能 --- src/components/makepager/CommonFormTableView.vue | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 1b9765c..4476b95 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -201,6 +201,7 @@ :edit-common-config="editSelCommonConfig" :quotationNumber="quotationNumber" @selClient="selClient" + @getSelectArray="getSelectArray" /> </div> </template> @@ -224,6 +225,11 @@ pageName:{ type:String, default:'' + }, + // 鍒楄〃鏂板鏄惁澶氶�� + addTypeIdMultiple:{ + type:Boolean, + default:false, }, // 鏍规嵁鎶ヤ环鍗曟煡璇骇鍝� quotationNumber:{ @@ -268,6 +274,7 @@ tableList: [], editSelCommonConfig: { editVisible: false, + isSelectBox:false, title: "", infomation: {} }, @@ -399,7 +406,13 @@ }, // 鏂板 add() { - this.$emit("addProductClick") + if(this.addTypeIdMultiple){ + this.editSelCommonConfig.title = "浜у搧鍚嶇О" + this.editSelCommonConfig.isSelectBox=true; + this.editSelCommonConfig.editVisible = true + }else{ + this.$emit("addProductClick") + } }, commonInputChange(val, prop, row,scope) { if (prop === "amount") { @@ -487,6 +500,7 @@ console.log(row, prop) this.productIndex = row.productId - 1 this.editSelCommonConfig.title = "浜у搧鍚嶇О" + this.editSelCommonConfig.isSelectBox=false; this.editSelCommonConfig.editVisible = true }, selClient(item) { @@ -505,6 +519,9 @@ } }) }, + getSelectArray(val){ + this.$emit("getSelectArray",val) + }, // 娓呴櫎宸查�夋嫨鐢ㄦ埛 clearupClient(row) { this.productIndex = row.productId - 1 -- Gitblit v1.8.0