| | |
| | | getList(); |
| | | }); |
| | | } else { |
| | | // 单个合同提交逻辑 |
| | | // 单个合同提交逻辑 - 也以数组形式传递 |
| | | const singleContract = selectedRows.value[0]; |
| | | const singleForm = { |
| | | // 基础表单数据 |
| | | issueDate: form.value.issueDate, |
| | | createTime: form.value.createTime, |
| | | createUer: form.value.createUer, |
| | | invoiceNo: form.value.invoiceNo, |
| | | |
| | | // 合同实际信息 |
| | | id: singleContract.id, // 使用id作为字段名,值为salesLedgerId |
| | | salesContractNo: singleContract.salesContractNo, // 使用实际的销售合同号 |
| | | customerName: singleContract.customerName, // 使用实际的客户名称 |
| | | customerId: singleContract.customerId, // 添加客户ID |
| | | customerContractNo: singleContract.customerContractNo, // 使用实际的客户合同号 |
| | | projectName: singleContract.projectName, // 使用实际的项目名称 |
| | | salesman: singleContract.salesman, // 使用实际的业务员 |
| | | |
| | | // 产品数据 |
| | | productData: proxy.HaveJson(productData.value), |
| | | |
| | | // 批量标识 |
| | | isBatch: false |
| | | }; |
| | | invoiceRegistrationSave(singleForm).then((res) => { |
| | | const singleFormArray = [ |
| | | { |
| | | // 基础表单数据 |
| | | issueDate: form.value.issueDate, |
| | | createTime: form.value.createTime, |
| | | createUer: form.value.createUer, |
| | | invoiceNo: form.value.invoiceNo, |
| | | |
| | | // 合同实际信息 |
| | | id: singleContract.id, // 使用id作为字段名,值为salesLedgerId |
| | | salesContractNo: singleContract.salesContractNo, // 使用实际的销售合同号 |
| | | customerName: singleContract.customerName, // 使用实际的客户名称 |
| | | customerId: singleContract.customerId, // 添加客户ID |
| | | customerContractNo: singleContract.customerContractNo, // 使用实际的客户合同号 |
| | | projectName: singleContract.projectName, // 使用实际的项目名称 |
| | | salesman: singleContract.salesman, // 使用实际的业务员 |
| | | |
| | | // 产品数据 |
| | | productData: proxy.HaveJson(productData.value), |
| | | |
| | | // 批量标识 |
| | | isBatch: false |
| | | } |
| | | ]; |
| | | invoiceRegistrationSave(singleFormArray).then((res) => { |
| | | proxy.$modal.msgSuccess("提交成功"); |
| | | closeDia(); |
| | | getList(); |