| | |
| | | getModel() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001', { |
| | | that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001User', { |
| | | daa001: that.modeInfo.daa001, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | |
| | | that.modeInfo.daa001 = ""; |
| | | }); |
| | | }, |
| | | getModelAll() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001', { |
| | | daa001: that.modeInfo.daa001, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | |
| | | if (json.status == 0) { |
| | | console.log(json) |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.modeInfo.planNo = json.data.tbBillList.planNo; |
| | | that.$playSound('success'); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.daa001.focus(); |
| | | that.modeInfo.daa001 = ""; |
| | | that.modeInfo.planNo = ""; |
| | | that.ItemDetail = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | that.$refs.daa001.focus(); |
| | | that.modeInfo.daa001 = ""; |
| | | }); |
| | | }, |
| | | getScan() { |
| | | |
| | | if (this.isLoading) { |