diff --git a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue index fb31b69..ff64679 100644 --- a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue +++ b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue @@ -87,7 +87,7 @@ - 来款 + 来款 开票 @@ -98,6 +98,7 @@ ref="arriveStage" @ok="modalFormOk" :project-id="selectProjectId" + :project-type="selectProjectType" :visible.sync="arriveVisible"> @@ -115,6 +116,7 @@ :selected-data="selectedProject" :selected-company="selectedCompany" is-financial + @ok="modalFormOk" :visible.sync="batchInvoicingVisible"> @@ -263,10 +265,11 @@ export default { methods: { /** * 来款 - * @param id + * @param record */ - incomePayment(id) { - this.selectProjectId = id + incomePayment(record) { + this.selectProjectType = record.projectType + this.selectProjectId = record.id this.arriveVisible = true }, /** @@ -329,7 +332,6 @@ export default { id: arr[0].chargeCompanyId, companyName: arr[0].chargeCompanyTemporaryName } - console.log(this.selectedCompany) } // 来款 if (operateType === 'incomePayment') { diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/ArriveModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/ArriveModule.vue index f51acd3..d607c49 100644 --- a/src/views/financialManagement/arriveAndInvoicing/modules/ArriveModule.vue +++ b/src/views/financialManagement/arriveAndInvoicing/modules/ArriveModule.vue @@ -59,6 +59,12 @@ export default { type: String, required: false, default: null + }, + // 项目类型 + projectType: { + type: Number, + required: false, + default: null } }, data() { @@ -106,15 +112,17 @@ export default { this.form.validateFields((err, values) => { if (!err) { values.projectId = this.projectId - const formData = Object.assign(this.model, values) - console.log('表单提交数据', formData) + values.projectType = this.projectType + const obj = Object.assign(this.model, values) let okHttpMethod if (this.model.id) { - okHttpMethod = editAmountPhase + okHttpMethod = editAmountPhase(obj) } else { - okHttpMethod = addPaymentPhase + let arr = [] + arr.push(obj) + okHttpMethod = addPaymentPhase(arr) } - okHttpMethod(formData).then(res => { + okHttpMethod.then(res => { if (res.success) { this.$message.success(res.message) this.$emit('ok') diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/ArriveStageModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/ArriveStageModule.vue index bbf00ea..9d8a2fe 100644 --- a/src/views/financialManagement/arriveAndInvoicing/modules/ArriveStageModule.vue +++ b/src/views/financialManagement/arriveAndInvoicing/modules/ArriveStageModule.vue @@ -45,7 +45,7 @@ 添加阶段 - + diff --git a/src/views/packManagement/modules/BatchIncomePaymentModule.vue b/src/views/packManagement/modules/BatchIncomePaymentModule.vue index 0ab6d59..6bb929b 100644 --- a/src/views/packManagement/modules/BatchIncomePaymentModule.vue +++ b/src/views/packManagement/modules/BatchIncomePaymentModule.vue @@ -46,9 +46,9 @@ class="j-table-force-nowrap"> -