Commit b0131f25 authored by 沈翠玲's avatar 沈翠玲

生产排产->排程,确认按钮禁用

parent ba20be2d
...@@ -427,6 +427,7 @@ ...@@ -427,6 +427,7 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button <el-button
type="primary" type="primary"
:disabled="scheduleBtnDis"
@click="handleSumbitScheduleList" @click="handleSumbitScheduleList"
>确 定</el-button> >确 定</el-button>
<el-button @click="scheduleVisible = false">取 消</el-button> <el-button @click="scheduleVisible = false">取 消</el-button>
...@@ -528,6 +529,7 @@ export default { ...@@ -528,6 +529,7 @@ export default {
quantity: 1, quantity: 1,
workunitName: '' workunitName: ''
}, },
scheduleBtnDis: false,
taskWorkunitId: null, taskWorkunitId: null,
arrangCodeVisible: false, arrangCodeVisible: false,
scheduleVisible: false, scheduleVisible: false,
...@@ -795,6 +797,7 @@ export default { ...@@ -795,6 +797,7 @@ export default {
arrangeCode: item.arrangeCode arrangeCode: item.arrangeCode
} }
}); });
this.scheduleBtnDis = true
const m = this.$message({ const m = this.$message({
message: '执行中...', message: '执行中...',
duration: 0, duration: 0,
...@@ -804,9 +807,11 @@ export default { ...@@ -804,9 +807,11 @@ export default {
makeSchedule(formData).then(response => { makeSchedule(formData).then(response => {
this.$modal.msgSuccess("排程成功"); this.$modal.msgSuccess("排程成功");
this.scheduleVisible = false this.scheduleVisible = false
this.scheduleBtnDis = false
this.getList(); this.getList();
m.close() m.close()
}).catch(()=>{ }).catch(()=>{
this.scheduleBtnDis = false
m.close() m.close()
}); });
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment