diff --git a/src/views/material/cost/component/applyDetail.vue b/src/views/material/cost/component/applyDetail.vue index 21657fcb..092d1703 100644 --- a/src/views/material/cost/component/applyDetail.vue +++ b/src/views/material/cost/component/applyDetail.vue @@ -487,6 +487,7 @@ export default { }, data() { return { + loading: false, // 往来单位数据 unitList: [], // 工程数据 @@ -674,6 +675,7 @@ export default { this.$modal .confirm('是否确认提交?') .then(() => { + this.loading = true let params = { agreementIds: Array.isArray(this.rowData) ? this.rowData.map(item => item.agreementId) : [], totalCostAll: this.costAll, @@ -685,7 +687,7 @@ export default { settlementType: this.rowData[0].settlementType || '' } console.log('2222222222222', params) - this.loading = true + submitCosts(params).then(response => { this.loading = false this.$message({