rev: 盘点任务下发

This commit is contained in:
2023-06-05 15:29:52 +08:00
parent 28ae81907d
commit ae846b5fd6
10 changed files with 134 additions and 8 deletions

View File

@@ -79,7 +79,8 @@
type="primary"
icon="el-icon-plus"
size="mini"
@click="addrow"
:disabled="add_flag"
@click="sendTask"
>
下发任务
</el-button>
@@ -320,6 +321,12 @@ export default {
check_resultFormat(row, column) {
return this.dict.label.check_result[row.check_result]
},
sendTask() {
this.nowrow.is_antu_div = true // 是否自动分配盘点位
check.sendTask(this.nowrow).then( res => {
this.crud.notify('任务下发成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
})
},
addrow() {
if (this.nowrow === null) {
this.crud.notify('请先选中一条已存在的库存明细!', CRUD.NOTIFICATION_TYPE.INFO)

View File

@@ -127,6 +127,14 @@ export function processBox(data) {
})
}
export function sendTask(data) {
return request({
url: '/api/stIvtCheckmstCp/sendTask',
method: 'post',
data
})
}
export default {
add,
edit,
@@ -141,5 +149,6 @@ export default {
getOutBillDis,
process1,
getBucketrecord,
processBox
processBox,
sendTask
}