diff --git a/src/config/getData2.js b/src/config/getData2.js index dd7ef4c..b683752 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -103,8 +103,9 @@ export const bindingMaterialConfirm = (id, code, mname, pcsn, qty, vcode) => pos export const queryDevice = () => post2('api/hand/queryDevice', { }) // 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, + emptypallet_num: num, start_devicecode: scode, next_devicecode: ncode }) diff --git a/src/pages/proj/FixedPointTask.vue b/src/pages/proj/FixedPointTask.vue index 154c40d..ba28a4b 100644 --- a/src/pages/proj/FixedPointTask.vue +++ b/src/pages/proj/FixedPointTask.vue @@ -15,6 +15,12 @@ +
+
托盘个数
+
+ +
+
起点
@@ -83,7 +89,8 @@ export default { endCode: '', active3: '', open3: false, - disabled1: false + disabled1: false, + val4: '1' } }, created () { @@ -108,13 +115,16 @@ export default { }, /** 确认 */ async _handTask () { + if (this.val4 <= 0) { + this.val4 = 1 + } this.disabled1 = true if (this.active1 === '' || this.active2 === '' || this.active3 === '') { this.disabled1 = false return } 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.toCancle() this.disabled1 = false @@ -132,6 +142,7 @@ export default { this.startCode = '' this.val3 = '' this.endCode = '' + this.val4 = '1' }, toggleItem1 () { if (!this.open1) {