托盘个数

This commit is contained in:
2022-11-24 15:56:56 +08:00
parent 056da80081
commit 85bfebaf72
2 changed files with 15 additions and 3 deletions

View File

@@ -103,8 +103,9 @@ export const bindingMaterialConfirm = (id, code, mname, pcsn, qty, vcode) => pos
export const queryDevice = () => post2('api/hand/queryDevice', { export const queryDevice = () => post2('api/hand/queryDevice', {
}) })
// 1.2任务生成 // 1.2任务生成
export const handTask = (type, scode, ncode) => post2('api/hand/task', { export const handTask = (type, num, scode, ncode) => post2('api/hand/task', {
task_type: type, task_type: type,
emptypallet_num: num,
start_devicecode: scode, start_devicecode: scode,
next_devicecode: ncode next_devicecode: ncode
}) })

View File

@@ -15,6 +15,12 @@
</dropdown-menu> </dropdown-menu>
</div> </div>
</div> </div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">托盘个数</div>
<div class="fxcol mgl20">
<input type="number" class="filter-input filter-scan-input" v-model="val4">
</div>
</div>
<div class="bottom-filter-tip"> <div class="bottom-filter-tip">
<div class="filter-label txtjustify">起点</div> <div class="filter-label txtjustify">起点</div>
<div class="fxcol mgl20 visible" > <div class="fxcol mgl20 visible" >
@@ -83,7 +89,8 @@ export default {
endCode: '', endCode: '',
active3: '', active3: '',
open3: false, open3: false,
disabled1: false disabled1: false,
val4: '1'
} }
}, },
created () { created () {
@@ -108,13 +115,16 @@ export default {
}, },
/** 确认 */ /** 确认 */
async _handTask () { async _handTask () {
if (this.val4 <= 0) {
this.val4 = 1
}
this.disabled1 = true this.disabled1 = true
if (this.active1 === '' || this.active2 === '' || this.active3 === '') { if (this.active1 === '' || this.active2 === '' || this.active3 === '') {
this.disabled1 = false this.disabled1 = false
return return
} }
try { try {
let res = await handTask(this.option1[this.active1].value, this.startCode, this.endCode) let res = await handTask(this.option1[this.active1].value, this.val4, this.startCode, this.endCode)
this.toast(res.desc) this.toast(res.desc)
this.toCancle() this.toCancle()
this.disabled1 = false this.disabled1 = false
@@ -132,6 +142,7 @@ export default {
this.startCode = '' this.startCode = ''
this.val3 = '' this.val3 = ''
this.endCode = '' this.endCode = ''
this.val4 = '1'
}, },
toggleItem1 () { toggleItem1 () {
if (!this.open1) { if (!this.open1) {