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

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

parent ba20be2d
......@@ -427,6 +427,7 @@
<div slot="footer" class="dialog-footer">
<el-button
type="primary"
:disabled="scheduleBtnDis"
@click="handleSumbitScheduleList"
>确 定</el-button>
<el-button @click="scheduleVisible = false">取 消</el-button>
......@@ -528,6 +529,7 @@ export default {
quantity: 1,
workunitName: ''
},
scheduleBtnDis: false,
taskWorkunitId: null,
arrangCodeVisible: false,
scheduleVisible: false,
......@@ -795,6 +797,7 @@ export default {
arrangeCode: item.arrangeCode
}
});
this.scheduleBtnDis = true
const m = this.$message({
message: '执行中...',
duration: 0,
......@@ -804,9 +807,11 @@ export default {
makeSchedule(formData).then(response => {
this.$modal.msgSuccess("排程成功");
this.scheduleVisible = false
this.scheduleBtnDis = false
this.getList();
m.close()
}).catch(()=>{
this.scheduleBtnDis = false
m.close()
});
} 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