代码更新:

1. 非计划领料优化
2. 拣选任务界面优化
This commit is contained in:
梁州 2024-09-28 17:04:32 +08:00
parent e723013ec2
commit c0f4b8c652
3 changed files with 32 additions and 3 deletions

View File

@ -241,6 +241,9 @@ export default {
methods: { methods: {
// //
getStockNumOfGoodsIdMethod() { getStockNumOfGoodsIdMethod() {
if (this.workFormEntity.goodsId == '') {
return
}
const request = { const request = {
goodsId: this.workFormEntity.goodsId, goodsId: this.workFormEntity.goodsId,
userName: store.getters.getUserName userName: store.getters.getUserName

View File

@ -178,7 +178,7 @@ export default {
this.$refs.goodsId.focus() this.$refs.goodsId.focus()
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.queryFinish() this.queryFinish()
}, 3000) }, 1000)
}, },
beforeUnmount() { beforeUnmount() {
clearInterval(this.timer) clearInterval(this.timer)

View File

@ -3,10 +3,12 @@
<el-config-provider :locale="zhCn"> <el-config-provider :locale="zhCn">
<div style="display: flex;justify-content: space-between;"> <div style="display: flex;justify-content: space-between;">
<el-row> <el-row>
<el-input v-model="vehicleIdQuery" style="width: 256px; margin-right: 10px;" placeholder="箱号" <el-input v-model="vehicleIdQuery" style="width: 158px; margin-right: 10px;" placeholder="箱号"
:suffix-icon="Search" /> :suffix-icon="Search" />
<el-input v-model="standQuery" style="width: 256px; margin-right: 10px;" placeholder="工站" <el-input v-model="standQuery" style="width: 158px; margin-right: 10px;" placeholder="工站"
:suffix-icon="Search" /> :suffix-icon="Search" />
<el-select-v2 v-model="pickStatusQuery" style="width: 158px; margin-right: 10px;"
placeholder="请选择状态" :options="pickStatusOptions" @change="search()"></el-select-v2>
<el-button type="primary" @click="search()">搜索</el-button> <el-button type="primary" @click="search()">搜索</el-button>
<el-button type="warning" @click="reset()">重置</el-button> <el-button type="warning" @click="reset()">重置</el-button>
</el-row> </el-row>
@ -103,6 +105,7 @@ export default {
total: 0, total: 0,
vehicleIdQuery: '', vehicleIdQuery: '',
standQuery: '', standQuery: '',
pickStatusQuery: -99,
loading: true, loading: true,
dialogVisible: false, dialogVisible: false,
pickTaskId: '', pickTaskId: '',
@ -128,6 +131,28 @@ export default {
label: '已到达' label: '已到达'
} }
], ],
pickStatusOptions: [
{
value: -99,
label: '全部'
},
{
value: -1,
label: '暂存'
},
{
value: 0,
label: '待下发'
},
{
value: 1,
label: '已下发'
},
{
value: 2,
label: '已到达'
}
],
} }
}, },
mounted() { mounted() {
@ -141,6 +166,7 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
vehicleId: this.vehicleIdQuery.trim(), vehicleId: this.vehicleIdQuery.trim(),
standId: this.standQuery.trim(), standId: this.standQuery.trim(),
pickStatus: this.pickStatusQuery == -99 ? null : this.pickStatusQuery,
userName: store.getters.getUserName userName: store.getters.getUserName
} }
getPickTasksByPage(request).then(res => { getPickTasksByPage(request).then(res => {