更新
This commit is contained in:
@@ -143,5 +143,13 @@ export function reload() {
|
||||
})
|
||||
}
|
||||
|
||||
export function manual_finish(data) {
|
||||
return request({
|
||||
url: 'api/produceshiftorder/manual_finish',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, importExcel, getDtl, send, device_pause, device_restore, clear, stop, order_pause, order_force_complete, detail_pause, detail_force_complete,
|
||||
selectTemplateList, selectColortypeList, reload, send_letteringMess, send_labelingMess }
|
||||
selectTemplateList, selectColortypeList, reload, send_letteringMess, send_labelingMess, manual_finish }
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button v-if="scope.row.is_flag ==='1'" type="text" size="small" @click="handleClick(scope.row,'1')">暂停工单</el-button>-->
|
||||
<el-button v-if="scope.row.is_flag ==='1'" type="text" size="small" @click="handleClick(scope.row,'2')">强制完成工单</el-button>
|
||||
<!-- <el-button v-if="scope.row.is_flag ==='0'" type="text" size="small" @click="handleClick(scope.row,'3')">暂停明细</el-button>-->
|
||||
<el-button v-if="scope.row.is_flag ==='0'" type="text" size="small" @click="handleClick(scope.row,'3')">手动完成</el-button>
|
||||
<el-button v-if="scope.row.is_flag ==='0'" type="text" size="small" @click="handleClick(scope.row,'4')">强制完成明细</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -309,7 +309,7 @@ export default {
|
||||
}
|
||||
} else {
|
||||
if (flag === '3') {
|
||||
crudProduceshiftorder.detail_pause(row).then(res => {
|
||||
crudProduceshiftorder.manual_finish(row).then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify(status + '成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user