From 64ed5318392936f56eb51ffefc0f3f93776f4b74 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Fri, 24 Nov 2023 17:23:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../investmentPayment/components/transformInfo1.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/goverment/huizhou/progressManagement/investmentPayment/components/transformInfo1.vue b/src/views/goverment/huizhou/progressManagement/investmentPayment/components/transformInfo1.vue index f3e87f8..941de3d 100644 --- a/src/views/goverment/huizhou/progressManagement/investmentPayment/components/transformInfo1.vue +++ b/src/views/goverment/huizhou/progressManagement/investmentPayment/components/transformInfo1.vue @@ -72,7 +72,7 @@ { } else { requestData.engineeringSn = props.snValue; } + if (newTitle.value == "编辑") { + requestData.applyIds = formData.value.applyIdList; + } const res = await govermentApplyTimeList(requestData); console.log(res, "------------未支付申报时段"); if (res && res.result.length > 0) { @@ -274,7 +278,7 @@ const saveItem = async (form: any) => { getSubItemList(); addVisible.value = false; }; -const openAdd = () => { +const openAdd = async () => { formData.value = reactive({ totalAmount: "", payAmount: "", @@ -285,6 +289,8 @@ const openAdd = () => { meetStandards: 1, suggest: "" }); + newTitle.value = "新增"; + await getApplyTimeData(); addVisible.value = true; }; // 页面的分页 @@ -316,6 +322,8 @@ const arraySpanMethod = ({ row, column, rowIndex, columnIndex }) => { const handleEditItem = async (row: any) => { formData.value = reactive({ ...row }); console.log(formData.value); + newTitle.value = "编辑"; + await getApplyTimeData(); addVisible.value = true; }; // 查看数据按钮 @@ -340,7 +348,6 @@ watch( visible1.value = n; if (n) { formConfig.formItemConfig[5].data = []; - getApplyTimeData(); getSubItemList(); } else { emits("confirm");