Commit 70d4dcff by liangjianmin

refactor(scanTally): 移除调试用的硬编码返回数据

- 删除扫码理货功能中的调试用硬编码返回数据,确保接口调用返回真实数据
- 优化代码结构,提升可读性和维护性
parent 8e4b48d7
Showing with 0 additions and 16 deletions
...@@ -598,22 +598,6 @@ ...@@ -598,22 +598,6 @@
this.isRequestSent = true; this.isRequestSent = true;
this.request(API.scanQrCode, 'POST', { data: this.keyword, type: 'DigiKey', device: device.deviceModel }, true).then(res => { this.request(API.scanQrCode, 'POST', { data: this.keyword, type: 'DigiKey', device: device.deviceModel }, true).then(res => {
this.isRequestSent = false; this.isRequestSent = false;
// 调试用:写死返回数据
res = {
err_code: 0,
err_msg: '操作成功',
data: {
goods: '',
brand: '',
model: 'ADXL879800',
model2: '',
qty: 9,
origin: 'CN',
batch: '2421',
putaway_sn: 'C2506040005'
}
};
if (res.err_code === 0) { if (res.err_code === 0) {
var { model, model2, putaway_sn, origin, qty } = res.data; var { model, model2, putaway_sn, origin, qty } = res.data;
var goodsModel = model || model2; var goodsModel = model || model2;
......
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