From 184202cf5b197e194123fcb143e6bf093fb63972 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Mon, 7 Jul 2025 11:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=96=B0=E5=A2=9E=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=8F=AA=E5=9C=A8=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisQuotePrice/transQuotePriceList.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/emis/emisQuotePrice/transQuotePriceList.vue b/src/views/emis/emisQuotePrice/transQuotePriceList.vue index d55bfed0..a0d94ce7 100644 --- a/src/views/emis/emisQuotePrice/transQuotePriceList.vue +++ b/src/views/emis/emisQuotePrice/transQuotePriceList.vue @@ -158,6 +158,7 @@ type="primary" plain size="mini" + :disabled="batchAdd" @click="handleBatchAdd" >批量新增 @@ -400,6 +401,8 @@ export default { tmpDataList: [], selectionList:[], selectionIndexList: [], + //非批量新增禁用 + batchAdd:true, // 查询参数 queryParams: { pageNum: 1, @@ -479,6 +482,7 @@ export default { /** 搜索按钮操作 */ handleQuery() { + this.batchAdd = true; this.queryParams.pageNum = 1; this.getList(); }, @@ -494,7 +498,7 @@ export default { let [lastObj]=selection.slice(-1); this.currentQuote=lastObj; this.single = selection.length!==1 - this.multiple = !selection.length + this.multiple = !selection.length }, handleSelectionSiteChange(selection) { this.ids = selection.map(item => item.baseSiteId) @@ -531,7 +535,8 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if( row.quoteId || this.ids.length>1){ + //ids去掉空元素 + if( row.quoteId || this.ids.filter(Boolean).length>1){ this.resetRefreshId="vipquote-"+this.getUUID(); this.currentId = row.quoteId || this.ids; this.openForm = true; @@ -702,6 +707,7 @@ export default { loadingInstance.close() }, batchImpDataForm() { + this.batchAdd = false; // 判断是否有数据 if(this.tmpDataList.length==0){ this.$modal.msgError('表格中没有数据');