| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.$refs.sectionCode.focus(); |
| | | //that.$refs.sectionCode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.billNo.focus(); |
| | | that.ItemDetail = null; |
| | | that.ItemDetail = []; |
| | | that.billNo = null; |
| | | } |
| | | that.isLoading = false; |
| | |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$refs.billNo.focus(); |
| | | that.ItemDetail = null; |
| | | that.ItemDetail = []; |
| | | that.billNo = null; |
| | | console.log(error); |
| | | }); |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | console.log(error); |
| | | }); |
| | | }, |