add: 添加强制完成提示
This commit is contained in:
@@ -458,11 +458,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mandFinish() {
|
mandFinish() {
|
||||||
crudProducetask.mandFinish({ producetask_id: this.currentRow.producetask_id }).then(res => {
|
this.$confirm('是否强制完成此生产任务?', '提示', {
|
||||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
confirmButtonText: '确定',
|
||||||
this.crud.toQuery()
|
cancelButtonText: '取消',
|
||||||
this.copy_add = true
|
type: 'warning'
|
||||||
this.mind_finish = true
|
}).then(() => {
|
||||||
|
crudProducetask.mandFinish({ producetask_id: this.currentRow.producetask_id }).then(res => {
|
||||||
|
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.copy_add = true
|
||||||
|
this.mind_finish = true
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
this.crud.notify('已取消', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
is_sue() {
|
is_sue() {
|
||||||
|
|||||||
Reference in New Issue
Block a user