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

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

@@ -336,7 +336,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="投标人" prop="投标人">
<el-input v-model="form2.投标人" size="small" placeholder="请输入投标人" style="width: 200px;" clearable readonly @dblclick.native="dialogFormVisiblePeople = true;flag2 = 2;searchPer()" @clear="clear()"/>
<el-input v-model="form2.投标人" size="small" placeholder="请选择投标人" style="width: 200px;" clearable readonly @dblclick.native="dialogFormVisiblePeople = true;flag2 = 2;searchPer()" @clear="clear()"/>
</el-form-item>
</el-col>
</el-row>
@@ -377,7 +377,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="small" icon="el-icon-circle-close" @click="callOff('form2')">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="submit('form2')"> </el-button>
<el-button :disabled="submitDisabled" type="distribution" size="small" icon="el-icon-circle-check" @click="submit('form2')"> </el-button>
</div>
</el-dialog>
@@ -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) {