1.海川开心-销售台账/采购台账,有可能同一个公司不同单子,但是开票登记的时候会一起,一对多或者多对一
| | |
| | | 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("登记成功"); |
| | |
| | | getList(); |
| | | }); |
| | | } else { |
| | | // 单个合同提交逻辑 |
| | | // 单个合同提交逻辑 - 也以数组形式传递 |
| | | const singleContract = selectedRows.value[0]; |
| | | const singleForm = { |
| | | const singleFormArray = [ |
| | | { |
| | | // 基础表单数据 |
| | | issueDate: form.value.issueDate, |
| | | createTime: form.value.createTime, |
| | |
| | | |
| | | // 批量标识 |
| | | isBatch: false |
| | | }; |
| | | invoiceRegistrationSave(singleForm).then((res) => { |
| | | } |
| | | ]; |
| | | invoiceRegistrationSave(singleFormArray).then((res) => { |
| | | proxy.$modal.msgSuccess("提交成功"); |
| | | closeDia(); |
| | | getList(); |