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");