| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | //that.formData.sectionCode = json.data.tbBillList; |
| | | that.$refs.barcode.focus(); |
| | | |
| | | |
| | | if (that.formData.barcode == "" || that.formData.barcode == null) { |
| | | that.$refs.barcode.focus(); |
| | | that.isLoading = false; |
| | | } else { |
| | | that.getScan(); |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.sectionCode.focus(); |
| | | that.isLoading = false; |
| | | } |
| | | that.isLoading = false; |
| | | |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | |
| | | //that.formData.sumQuantity = json.data.tbMesItems.quantity; |
| | | if (that.formData.sectionCode == "" || that.formData.sectionCode == null) { |
| | | that.$refs.sectionCode.focus(); |
| | | that.isLoading = false; |
| | | } else { |
| | | that.getScan(); |
| | | } |
| | |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | that.isLoading = false; |
| | | } |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.isLoading = false; |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesBarCF/CPRK', { |
| | | that.AxiosHttp("post", 'MesCprk/CPRK', { |
| | | userName: that.userInfo.loginAccount, |
| | | sectionCode: that.formData.sectionCode, |
| | | barcode: that.formData.barcode, |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.cfNum.focus(); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | } |
| | | that.isLoading = false; |
| | | }) |