opt:
优化出库与入库任务下发后先执行入库任务造成出库双取问题;物料同步增加更新; 拣选异常手动完成;
This commit is contained in:
@@ -90,6 +90,17 @@
|
||||
>
|
||||
作业下发
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="warning"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
:disabled="!currentRow"
|
||||
@click="confirm"
|
||||
>
|
||||
处理完成
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- slot="right"-->
|
||||
<!-- class="filter-item"-->
|
||||
@@ -198,6 +209,7 @@ import crudPick from './pick'
|
||||
// import UploadDialog from './UploadDialog'
|
||||
|
||||
const defaultForm = {
|
||||
currentRow: null,
|
||||
id: null,
|
||||
code: null,
|
||||
proc_inst_id: null,
|
||||
@@ -336,6 +348,21 @@ export default {
|
||||
this.crud.toQuery()
|
||||
this.dis_flag = true
|
||||
this.task_flag = true
|
||||
}, confirm() {
|
||||
if (this.currentRow.length === 0) {
|
||||
this.crud.notify('请选择一行单据', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
const ids = Array.isArray(this.currentRow)
|
||||
? this.currentRow.map(row => row.id)
|
||||
: [this.currentRow.id];
|
||||
const param = {
|
||||
data: ids
|
||||
}
|
||||
crudPick.confirm(param).then(res => {
|
||||
this.crud.notify('单据处理成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,13 @@ export function taskopen(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export function confirm(data) {
|
||||
return request({
|
||||
url: '/api/pmFormData/confirmStatus',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateDtl(data) {
|
||||
return request({
|
||||
@@ -54,4 +61,4 @@ export function updateDtl(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default {add, edit, del, savePickTask, updateStatus, taskopen, updateDtl}
|
||||
export default {add, edit, del, savePickTask, updateStatus, taskopen, updateDtl,confirm}
|
||||
|
||||
Reference in New Issue
Block a user