| | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/getZsBarInfo', { |
| | | Xt: that.GX, |
| | | GX: that.GX, |
| | | Zsbarcode: that.ZsBar |
| | | }, false) |
| | | .then(function (res) { |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = ""; |
| | | that.ZsBarInfo = []; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = ""; |
| | | that.ZsBarInfo = []; |
| | |
| | | var that = this; |
| | | if (that.ZsBar.length <= 0) { |
| | | that.$toast.fail("追溯码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | if (that.LsBar.length <= 0) { |
| | | that.$toast.fail("后盖码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | |
| | | if (json.status == 0) { |
| | | // that.scanInfo = json.data.tbBillList; |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.$playSound('success'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.LsBar = null; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.LsBar = null; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.LsBar = null; |