Commit c9ecd7bb by zeven

优化条码查询接口

parent 8ccaadf1
...@@ -634,6 +634,7 @@ const CounterMixins = ComposeComponent => { ...@@ -634,6 +634,7 @@ const CounterMixins = ComposeComponent => {
} }
this.setDelay(); this.setDelay();
let {goodsArr} = this.state; let {goodsArr} = this.state;
this.barcode = '';
let {data} = goods let {data} = goods
? {data: {code: 1, data: goods}} ? {data: {code: 1, data: goods}}
: await this.props.dispatch({ : await this.props.dispatch({
...@@ -644,7 +645,6 @@ const CounterMixins = ComposeComponent => { ...@@ -644,7 +645,6 @@ const CounterMixins = ComposeComponent => {
return; return;
} }
if (data.code < 0) { if (data.code < 0) {
this.barcode = '';
this.speak(data.msg); this.speak(data.msg);
return; return;
} }
......
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 to comment