Commit e511c4b1 by liangjianmin

fix(scanTally): 更新扫码理货功能以处理批次信息

- 在扫码响应中新增批次信息的处理,确保在表单中正确传递日期代码
- 优化数据解析逻辑,提升表单数据的完整性和准确性
parent 9cc3339f
Showing with 2 additions and 2 deletions
......@@ -599,7 +599,7 @@
this.request(API.scanQrCode, 'POST', { data: this.keyword, type: 'DigiKey', device: device.deviceModel }, true).then(res => {
this.isRequestSent = false;
if (res.err_code === 0) {
var { model, model2, putaway_sn, origin, qty } = res.data;
var { model, model2, putaway_sn, origin, qty, batch } = res.data;
var goodsModel = model || model2;
if (goodsModel) {
this.keyword = goodsModel;
......@@ -608,6 +608,7 @@
}
this.parsed_origin = origin || '';
this.parsed_qty = qty || '';
this.tallyFormParams.date_code = batch || '';
this.getWaitTallyList();
} else {
......@@ -926,7 +927,6 @@
if (res.data.list.length > 0) {
this.tallyDetail = res.data.list[0];
this.tallyFormParams.tally_qty = res.data.list[0].wait_tally_qty;
this.tallyFormParams.date_code = res.data.list[0].expect_date_code;
if (res.data.list[0].mobile_default_img) {
this.tallyImageList = res.data.list[0].mobile_default_img.split(',');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment