'更新营销中心按钮禁用'

This commit is contained in:
2020-04-08 11:31:42 +08:00
parent 0d0e0dcb6f
commit 46f9db9c1c
7 changed files with 44 additions and 8 deletions

View File

@@ -435,7 +435,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="small" icon="el-icon-circle-close" @click="callOff('form')">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="submit1('form')"> </el-button>
<el-button :disabled="submit1Disabled" type="distribution" size="small" icon="el-icon-circle-check" @click="submit1('form')"> </el-button>
<!--<el-button @click="callOff('form')">取消</el-button>-->
<!--<el-button type="primary" @click="submit1('form')"> </el-button>-->
</div>
@@ -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
})
}
}