no message

main
HUOJIN\92525 2025-03-10 12:30:42 +08:00
parent 2773182117
commit 594e1e84c8
2 changed files with 42 additions and 4 deletions

View File

@ -1,10 +1,12 @@
import request from '@/utils/request'
export function getTaskInfo(id) {
return request({
url: 'api/task/queryAsnTask?asnDetailId='+id ,
url: 'api/task/queryAsnTask?asnDetailId=' + id,
method: 'get'
})
}
export function add(data) {
return request({
url: 'api/task',
@ -20,6 +22,7 @@ export function del(ids) {
data: ids
})
}
// 拣货确认
export function jhQr(ids) {
return request({
@ -39,9 +42,16 @@ export function edit(data) {
export function queryPickTask(id) {
return request({
url: 'api/task/queryPickTask?pickDetailId='+id ,
url: 'api/task/queryPickTask?pickDetailId=' + id,
method: 'get'
})
}
export default { add, edit, del ,getTaskInfo,queryPickTask,jhQr}
export function cancelAllocate(pickDetailId, quantity) {
return request({
url: 'api/task/cancelAllocate?pickDetailId=' + pickDetailId + "&quantity=" + quantity,
method: 'get'
})
}
export default {add, edit, del, getTaskInfo, queryPickTask, jhQr, cancelAllocate}

View File

@ -167,11 +167,21 @@
<el-table-column prop="planQty" label="计划数量"/>
<el-table-column prop="moveQty" label="移位数量"/>
<el-table-column prop="createTime" label="创建时间"/>
<el-table-column label="操作" align="center">
<el-table-column label="操作" align="center" width="190">
<template slot-scope="scope">
<el-button type="primary" align="center" size="mini" :disabled="scope.row.taskStatus!='ARRIVED' "
@click="fbPicking(scope.row)">翻包拣货
</el-button>
<el-button type="danger"
:disabled="scope.row.taskStatus!='ARRIVED' "
align="center"
size="mini"
@click="cancelTask(scope.row)"
>
手工取消
</el-button>
</template>
</el-table-column>
</el-table>
@ -364,6 +374,24 @@ export default {
}
})
},
cancelTask(data) {
this.$confirm('此操作将删除该任务, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
crudTask.cancelAllocate(data.pickDetail.id, data.planQty).then(res => {
if (res.status == 200) {
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
} else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR)
}
})
}).catch(() => {
this.crud.notify('取消操作', CRUD.NOTIFICATION_TYPE.INFO)
});
},
resetQuery() {
this.radio3 = '已到站';
this.crud.resetQuery()