| | |
| | | that.$refs.barcode.focus(); |
| | | } else { |
| | | that.$toast("未找到匹配的 用户名称"); |
| | | that.$playSound('error'); |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | }); |
| | |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { name: item.staffName } |
| | | }); |
| | | that.$playSound('success'); |
| | | |
| | | that.stafList = json.data.tbBillList; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | }); |
| | | |
| | | that.stafList = json.data.result.rksqOrderList; |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | |
| | | this.$refs.sjBillNo.focus(); |
| | | } else { |
| | | this.$toast("未找到匹配的送检单号"); |
| | | that.$playSound('error'); |
| | | } |
| | | //this.GetMesItemBlDetailByBillNo(); |
| | | //this.$toast(item.name); |
| | |
| | | }); |
| | | |
| | | that.stafList = json.data.tbBillList; |
| | | that.$playSound('success'); |
| | | console.log('DAWDADWDADADADWD' + that.stafList); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | // 默认情况下点击选项时不会自动收起 |
| | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | | if (!that.barcode) { |
| | | this.$toast.fail("条码不能为空"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | | if (!that.stafId) { |
| | | that.$toast.fail("员工不允许为空"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | |
| | | console.log(entity.barcodesDetail); |
| | | console.log(that.BarcodesDetail); |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$playSound('success'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | | that.$playSound('error'); |
| | | that.load = false; |
| | | return; |
| | | } |
| | |
| | | |
| | | if (!that.sjBillNo) { |
| | | this.$toast.fail("送检单号不能为空"); |
| | | that.$playSound('error'); |
| | | that.load = false; |
| | | return; |
| | | } |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.$notify({ type: 'success', message: '送检成功' }); |
| | | |
| | | that.BarcodesDetail = []; |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | that.load = false; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | console.log(that.BarcodesDetail); |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$refs.sjBillNo.focus(); |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.sjBillNo.focus(); |
| | | that.$playSound('error'); |
| | | that.barcode = null; |
| | | } |
| | | that.isLoading = false; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | // 默认情况下点击选项时不会自动收起 |