diff --git a/src/pages/business/discountApply.vue b/src/pages/business/discountApply.vue index 69b5bfa..0594451 100644 --- a/src/pages/business/discountApply.vue +++ b/src/pages/business/discountApply.vue @@ -119,7 +119,9 @@ style="display: flex; align-items: center; margin-bottom: 10px" > - {{ id ? '确认修改' : '减免申请' }} + {{ + id ? '确认修改' : '减免申请' + }} 一键去除 @@ -521,13 +523,19 @@ const selectMaCode = (e) => { getDirefList(obj) .then((res) => { const paramList = res.data + const existingIds = new Set(typeList.value.map((e) => e.id)) paramList.forEach((item) => { item.reduceNum = item.num item.reduceDays = 0 item.reduceLeaseMoney = 0 item.reduceStartTime = null item.reduceEndTime = null - typeList.value.push(item) + // typeList.value.push(item) + + if (!existingIds.has(item.id)) { + typeList.value.push(item) + existingIds.add(item.id) + } }) }) .catch((error) => {