代码更新:
1. 整理大盒子界面增加整理结束的功能 2. 入库界面防呆增加
This commit is contained in:
parent
399192c527
commit
80dc563108
|
|
@ -154,6 +154,15 @@ const requestSortBox = (params) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const finishSortBox = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/task/finishSortBox',
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
timeout: 10000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const requestSumOfBox = (params) => {
|
const requestSumOfBox = (params) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/task/requestSumOfBox',
|
url: '/task/requestSumOfBox',
|
||||||
|
|
@ -226,5 +235,6 @@ export {
|
||||||
deletePickTasks,
|
deletePickTasks,
|
||||||
updatePickTasks,
|
updatePickTasks,
|
||||||
clcNoPlan,
|
clcNoPlan,
|
||||||
clcNoPlanConfirmBack
|
clcNoPlanConfirmBack,
|
||||||
|
finishSortBox
|
||||||
}
|
}
|
||||||
|
|
@ -182,7 +182,7 @@ export default {
|
||||||
errorBox('请下发之前料箱的任务后再继续绑定新的料箱')
|
errorBox('请下发之前料箱的任务后再继续绑定新的料箱')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.workFormEntity.goodsNum == 9999) {
|
if (this.workFormEntity.goodsNum >= 9999) {
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
'当前数量达最大值9999。\n是否继续',
|
'当前数量达最大值9999。\n是否继续',
|
||||||
'警告',
|
'警告',
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,7 @@ export default {
|
||||||
errorBox('请下发之前料箱的任务后再继续绑定新的料箱')
|
errorBox('请下发之前料箱的任务后再继续绑定新的料箱')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.workFormEntity.goodsNum == 9999) {
|
if (this.workFormEntity.goodsNum >= 9999) {
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
'当前数量达最大值9999。\n是否继续',
|
'当前数量达最大值9999。\n是否继续',
|
||||||
'警告',
|
'警告',
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,12 @@
|
||||||
style="margin-left: 25px; align-self: center; font-weight: bold;font-size: 45px; writing-mode: vertical-lr;">完成确认</span>
|
style="margin-left: 25px; align-self: center; font-weight: bold;font-size: 45px; writing-mode: vertical-lr;">完成确认</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin: 10px;">
|
||||||
|
<div class="arrow" @click="finishSort()">
|
||||||
|
<span
|
||||||
|
style="margin-left: 25px; align-self: center; font-weight: bold;font-size: 45px; writing-mode: vertical-lr;">整理结束</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
@ -88,7 +94,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { requestSortBox, requestSumOfBox } from '@/api/task'
|
import { requestSortBox, requestSumOfBox, finishSortBox } from '@/api/task'
|
||||||
import { getBigBoxList } from '@/api/kateWork'
|
import { getBigBoxList } from '@/api/kateWork'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import { errorBox } from '@/utils/myMessageBox.js'
|
import { errorBox } from '@/utils/myMessageBox.js'
|
||||||
|
|
@ -180,6 +186,23 @@ export default {
|
||||||
errorBox('请求发生异常。')
|
errorBox('请求发生异常。')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
finishSort() {
|
||||||
|
const request = {
|
||||||
|
standId: this.standId,
|
||||||
|
userName: store.getters.getUserName
|
||||||
|
}
|
||||||
|
finishSortBox(request).then(res => {
|
||||||
|
const response = res.data
|
||||||
|
if (response.code == 0) {
|
||||||
|
ElMessage.success('整理结束,站台已解锁。')
|
||||||
|
} else {
|
||||||
|
errorBox(response.message)
|
||||||
|
}
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
|
errorBox('请求发生异常。')
|
||||||
|
})
|
||||||
|
},
|
||||||
getCurrentRow(row) {
|
getCurrentRow(row) {
|
||||||
this.bigBoxNo = row.bigBoxNo
|
this.bigBoxNo = row.bigBoxNo
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user