| | |
| | | proxy.$modal.msgError("批量登记失败"); |
| | | }); |
| | | } else { |
| | | // 单个合同提交逻辑 |
| | | // 单个合同提交逻辑 - 以数组格式传递 |
| | | const singleContract = selectedContracts.value[0]; |
| | | const singleForm = { |
| | | const singleFormArray = [{ |
| | | // 基础表单数据 |
| | | invoiceNumber: form.invoiceNumber, |
| | | invoiceAmount: form.invoiceAmount, |
| | |
| | | // 批量标识 |
| | | isBatch: false, |
| | | type: 4 |
| | | }; |
| | | }]; |
| | | |
| | | modalLoading.value = true; |
| | | addOrUpdateRegistration(singleForm).then((res) => { |
| | | addOrUpdateRegistration(singleFormArray).then((res) => { |
| | | modalLoading.value = false; |
| | | if (res.code === 200) { |
| | | proxy.$modal.msgSuccess("登记成功"); |