diff --git a/src/views/MarketingCenter/BidBond/index.vue b/src/views/MarketingCenter/BidBond/index.vue
index 8610cbe1..371b4762 100644
--- a/src/views/MarketingCenter/BidBond/index.vue
+++ b/src/views/MarketingCenter/BidBond/index.vue
@@ -336,7 +336,7 @@
-
+
@@ -377,7 +377,7 @@
@@ -490,6 +490,7 @@ export default {
}
}
return {
+ submitDisabled: false,
dateRange: '',
check1: '',
pickerOptions: {
@@ -814,11 +815,13 @@ export default {
} else {
this.$message.error('信息更新失败')
}
+ this.submitDisabled = false
})
},
submit(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
+ this.submitDisabled = true
if (this.flag1 === 1) {
this.submitTakeBack()
this.flag1 = null
@@ -859,6 +862,7 @@ export default {
this.addForm('form2')
this.title = '新增投标保证金'
this.dialogFormVisible2 = true
+ this.submitDisabled = false
},
addTableData1() {
addBidBond(this.form2.招标企业, this.form2.联系人, this.form2.联系电话, this.form2.保证金金额, this.peopleid, this.form2.保证金类型, this.form2.投标日期, this.form2.备注, this.form2.提前X天提醒我).then(response => {
@@ -870,11 +874,13 @@ export default {
} else {
this.$message.error('添加失败,请检查金额于提醒天数是否为数字')
}
+ this.submitDisabled = false
})
},
editBidBond(row) {
this.editForm(row, 'form2')
this.title = '编辑投标保证金'
+ this.submitDisabled = false
this.dialogFormVisible2 = true
this.form2.招标企业 = row.招标企业
this.form2.联系人 = row.联系人
@@ -900,6 +906,7 @@ export default {
} else {
this.$message.error('编辑失败')
}
+ this.submitDisabled = false
})
},
delBidBond(row) {
diff --git a/src/views/MarketingCenter/CRM/index.vue b/src/views/MarketingCenter/CRM/index.vue
index a7f2539f..60b639b0 100644
--- a/src/views/MarketingCenter/CRM/index.vue
+++ b/src/views/MarketingCenter/CRM/index.vue
@@ -341,7 +341,7 @@
@@ -358,6 +358,7 @@ export default {
},
data() {
return {
+ addCustomerDisabled: false,
dialogVisible: false,
treeData: [7],
a: '', // 营销经理地区流水号
@@ -618,6 +619,7 @@ export default {
if (this.AdressID === '' || this.AdressID === null) {
this.$message.warning('请选择一个省份')
} else {
+ this.addCustomerDisabled = false
this.dialogFormVisible2 = true
this.title2 = '新增客户'
}
@@ -629,6 +631,7 @@ export default {
this.dialogFormVisible2 = false
},
handleEdit(row) {
+ this.addCustomerDisabled = false
this.dialogFormVisible2 = true
this.title2 = '编辑客户'
this.form2.省份 = row.省份
@@ -646,6 +649,7 @@ export default {
this.form2.开户行 = row.开户行
},
submit2() {
+ this.addCustomerDisabled = true
function a() {
this.dialogFormVisible2 = false
this.getTable(selectCustomer, [this.AdressID, this.pageCurrent, this.pageSize], ['tableData2', 'total', 'loading2'])
diff --git a/src/views/MarketingCenter/ContractCapitalManagement/index.vue b/src/views/MarketingCenter/ContractCapitalManagement/index.vue
index 07f307bc..4f7e07ab 100644
--- a/src/views/MarketingCenter/ContractCapitalManagement/index.vue
+++ b/src/views/MarketingCenter/ContractCapitalManagement/index.vue
@@ -119,7 +119,7 @@
- 收款
+ 收款
@@ -221,6 +221,7 @@ export default {
},
data() {
return {
+ addMoneyDisabled: false,
dateRange: '',
check1: '',
pickerOptions: {
@@ -466,6 +467,7 @@ export default {
})
},
addMoney(row) {
+ this.addMoneyDisabled = true
this.maxnomoney = Number(row.未收金额)
this.tableData2 = []
this.moneyID = row.资金id
@@ -486,6 +488,7 @@ export default {
} else {
this.$message.error('收款失败')
}
+ this.addMoneyDisabled = false
})
},
cancelEdit(index, row) {
diff --git a/src/views/MarketingCenter/ContractInformationManagement/index.vue b/src/views/MarketingCenter/ContractInformationManagement/index.vue
index 47c53c8d..0a3966da 100644
--- a/src/views/MarketingCenter/ContractInformationManagement/index.vue
+++ b/src/views/MarketingCenter/ContractInformationManagement/index.vue
@@ -1172,8 +1172,8 @@ export default {
this.dialogFormVisible2 = false
},
submitMachine() {
- this.submitMachineDisabled = true
function a() {
+ this.submitMachineDisabled = true
selectMachine(this.projectNum).then(response => {
this.tableData2 = response.data
this.submitMachineDisabled = false
diff --git a/src/views/MarketingCenter/InvoiceRecord/index.vue b/src/views/MarketingCenter/InvoiceRecord/index.vue
index b0fb171d..e2a5cf00 100644
--- a/src/views/MarketingCenter/InvoiceRecord/index.vue
+++ b/src/views/MarketingCenter/InvoiceRecord/index.vue
@@ -311,7 +311,7 @@
取消
- 确 定
+ 确 定
@@ -397,6 +397,7 @@ export default {
}
}
return {
+ submitDisable: false,
dateRange: '',
check1: '',
pickerOptions: {
@@ -724,6 +725,7 @@ export default {
this.$message.error('请先选择合同')
} else {
console.log(this.row1)
+ this.submitDisable = false
this.projectid = this.row1.项目流水号
this.timetime = this.row1.合同签订日期
this.changeTime()
@@ -782,6 +784,7 @@ export default {
submit(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
+ this.submitDisable = true
if (this.flag === 1) {
this.addSubmit()
} else if (this.flag === 2) {
@@ -826,6 +829,7 @@ export default {
this.form.开票时间 = row.开票时间
this.form.备注 = row.备注
this.invoiceRecordingCode = row.开票记录流水号
+ this.submitDisable = false
},
editSubmit() {
editSubmit(this.CustomerCode, this.form.开票金额, this.form.开票时间, this.form.备注, this.invoiceRecordingCode).then(response => {
diff --git a/src/views/MarketingCenter/PerformanceBond/index.vue b/src/views/MarketingCenter/PerformanceBond/index.vue
index 310237d2..db88beb1 100644
--- a/src/views/MarketingCenter/PerformanceBond/index.vue
+++ b/src/views/MarketingCenter/PerformanceBond/index.vue
@@ -370,7 +370,7 @@
@@ -395,6 +395,7 @@ export default {
}
}
return {
+ submitPerformanceBondDisabled: false,
dateRange: '',
check1: '',
pickerOptions: {
@@ -726,6 +727,7 @@ export default {
openPerformanceBondDialog(row) {
this.addForm('form2')
this.title1 = '新增履约保证金'
+ this.submitPerformanceBondDisabled = false
this.dialogFormVisible1 = true
this.projectId = row.项目流水号
this.tableData2 = []
@@ -741,6 +743,7 @@ export default {
submitPerformanceBondDialog(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
+ this.submitPerformanceBondDisabled = true
if (this.flag === 1) {
addPerformanceBond(this.projectId, this.form2.保证金金额, this.form2.保证金类型, this.form2.收回条件, this.form2.截止时间, this.form2.timer).then(response => {
if (response.data[0].result === '1') {
@@ -786,6 +789,7 @@ export default {
} else {
this.$message.error('操作失败')
}
+ this.submitPerformanceBondDisabled = false
})
} else if (this.flag === 2) {
editPerformanceBond(this.projectId, this.form2.保证金金额, this.form2.保证金类型, this.form2.收回条件, this.form2.截止时间, this.performanceBondCode, this.form2.timer).then(response => {
@@ -831,12 +835,14 @@ export default {
} else {
this.$message.error('操作失败')
}
+ this.submitPerformanceBondDisabled = false
})
}
}
})
},
openEditPerformanceBondDialog(row) {
+ this.submitPerformanceBondDisabled = false
this.dialogFormVisible1 = true
this.performanceBondCode = row.履约保证金流水号
this.form2.保证金金额 = row.履约保证金总额
diff --git a/src/views/MarketingCenter/SafetyMargin/index.vue b/src/views/MarketingCenter/SafetyMargin/index.vue
index b4ac28fd..dc41a37e 100644
--- a/src/views/MarketingCenter/SafetyMargin/index.vue
+++ b/src/views/MarketingCenter/SafetyMargin/index.vue
@@ -435,7 +435,7 @@
@@ -656,6 +656,7 @@ export default {
}
}
return {
+ submit1Disabled: false,
dateRange: '',
check1: '',
pickerOptions: {
@@ -950,6 +951,7 @@ export default {
this.projectName = row.项目名称
this.getTable(searchTable2, [this.PageCurrent2, this.PageSize2, this.code], ['tableData2', 'total2', 'tableData2Loading'])
this.dialogFormVisible5 = true
+ this.submit1Disabled = false
},
handleSizeChange(val) {
this.PageCurrent = 1
@@ -974,6 +976,7 @@ export default {
this.fetchTableData2()
},
addSafetyMargin(row) {
+ this.submit1Disabled = false
this.title = '新增安全保证金'
this.timetime = row.合同签订日期
this.changeTime()
@@ -982,6 +985,7 @@ export default {
this.addForm('form')
},
editSafetyMargin(row) {
+ this.submit1Disabled = false
this.editForm(row, 'form')
this.title = '编辑安全保证金'
this.dialogFormVisible1 = true
@@ -1005,6 +1009,7 @@ export default {
} else {
this.$message.error('添加失败')
}
+ this.submit1Disabled = false
})
},
editTableData1() {
@@ -1018,12 +1023,14 @@ export default {
} else {
this.$message.error('信息更新失败')
}
+ this.submit1Disabled = false
})
},
// 提交保证金信息添加或者修改
submit1(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
+ this.submit1Disabled = true
if (this.flag1 === 1) {
this.addTableData1()
this.flag1 = null
@@ -1081,6 +1088,7 @@ export default {
console.log(row)
this.changeTime1()
this.dialogFormVisible2 = true
+ this.submit1Disabled = false
this.code = row.安全保证金流水号
this.projectName = row.项目名称
this.maxMoney = parseFloat(row.应收回金额)
@@ -1099,11 +1107,13 @@ export default {
} else {
this.$message.error('扣款失败')
}
+ this.submit1Disabled = false
})
},
editWithdrawing(row) {
this.editForm(row, 'form3')
this.dialogFormVisible3 = true
+ this.submit1Disabled = false
this.maxMoney1 = parseFloat(this.SurplusAmount) + parseFloat(row.扣款金额)
this.form3.扣款金额 = row.扣款金额
this.form3.被扣款人 = row.被扣款人
@@ -1132,6 +1142,7 @@ export default {
this.form4.剩余金额 = parseFloat(row.应收回金额)
this.dialogFormVisible4 = true
this.form4.回收金额 = 0
+ this.submit1Disabled = false
},
submitTakeBack() {
TakeBack(this.code, this.form4.收回日期, this.form4.回收金额).then(response => {
@@ -1143,6 +1154,7 @@ export default {
} else {
this.$message.error('信息更新失败')
}
+ this.submit1Disabled = false
})
}
}