| | |
| | | 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); |
| | | }); |
| | | }, |
| | |
| | | .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; |
| | | } |
| | | |
| | |
| | | .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; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | // 默认情况下点击选项时不会自动收起 |