1.海川开心-销售台账/采购台账,有可能同一个公司不同单子,但是开票登记的时候会一起,一对多或者多对一
已修改2个文件
18 ■■■■■ 文件已修改
src/views/procurementManagement/invoiceEntry/components/Modal.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/invoiceRegistration/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/invoiceEntry/components/Modal.vue
@@ -586,9 +586,9 @@
                    proxy.$modal.msgError("批量登记失败");
                });
            } else {
                // 单个合同提交逻辑
                    // 单个合同提交逻辑 - 以数组格式传递
                const singleContract = selectedContracts.value[0];
                const singleForm = {
                    const singleFormArray = [{
                    // 基础表单数据
                    invoiceNumber: form.invoiceNumber,
                    invoiceAmount: form.invoiceAmount,
@@ -611,10 +611,10 @@
                    // 批量标识
                    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("登记成功");
src/views/salesManagement/invoiceRegistration/index.vue
@@ -634,9 +634,10 @@
                    getList();
                });
            } else {
                // 单个合同提交逻辑
                // 单个合同提交逻辑 - 也以数组形式传递
                const singleContract = selectedRows.value[0];
                const singleForm = {
                const singleFormArray = [
                    {
                    // 基础表单数据
                    issueDate: form.value.issueDate,
                    createTime: form.value.createTime,
@@ -657,8 +658,9 @@
                    
                    // 批量标识
                    isBatch: false
                };
                invoiceRegistrationSave(singleForm).then((res) => {
                    }
                ];
                invoiceRegistrationSave(singleFormArray).then((res) => {
                    proxy.$modal.msgSuccess("提交成功");
                    closeDia();
                    getList();