| | |
| | | // that.scanInfo = json.data.tbBillList; |
| | | that.getModel(); |
| | | } |
| | | else if (json.status == 2) { |
| | | that.$refs.splitNum.focus(); |
| | | that.scanInfo.splitNum = json.data.tbBillList.splitNum; |
| | | that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/ScanCode', { |
| | | that.AxiosHttp("post", 'Womdaa/ScanCodeCF', { |
| | | daa001: that.modeInfo.daa001, |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.scanInfo.barcode, |
| | | Num: that.scanInfo.splitNum, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | // that.modeInfo = json.data.tbBillList; |
| | | // that.modeInfo = json.data.tbBillList; |
| | | that.scanInfo.splitNum = null; |
| | | that.scanInfo.barcodeNum = null; |
| | | that.scanInfo.barcode = null; |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.$refs.barcode.focus(); |
| | | that.getModel(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |