| | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | that.KbBar = ""; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | that.KbBar = ""; |
| | | }); |
| | |
| | | // 检查是否超过装箱数 |
| | | if (that.XbarInfo.length >= that.Xvalue) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(`已达到装箱数限制(${that.Xvalue})`); |
| | | //that.$toast.fail(`已达到装箱数限制(${that.Xvalue})`); |
| | | that.$dialog.alert({ |
| | | message: `已达到装箱数限制(${that.Xvalue})`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | |
| | | // 检查是否超过装箱数 |
| | | if (that.Xvalue > Dvalue) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(`装箱数(${that.Xvalue}) 不能大于 卡板待装数(${Dvalue})`); |
| | | //that.$toast.fail(`装箱数(${that.Xvalue}) 不能大于 卡板待装数(${Dvalue})`); |
| | | that.$dialog.alert({ |
| | | message: `装箱数(${that.Xvalue}) 不能大于 卡板待装数(${Dvalue})`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | |
| | | const isExist = that.XbarInfo.some(item => item.iteM_BARCODE === that.XBar); |
| | | if (isExist) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("该箱条码已存在,请勿重复扫描"); |
| | | //that.$toast.fail("该箱条码已存在,请勿重复扫描"); |
| | | that.$dialog.alert({ |
| | | message: "该箱条码已存在,请勿重复扫描", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | |
| | | else { |
| | | that.$playSound('error'); |
| | | that.XBar = ""; |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | |
| | | that.isLoading = false; |
| | | that.XBar = ""; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | }); |
| | | }, |
| | | productBinding() { |
| | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.ZsBar = null; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.ZsBar = null; |
| | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | }); |
| | | } |
| | | } else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("未找到匹配的箱条码"); |
| | | //that.$toast.fail("未找到匹配的箱条码"); |
| | | that.$dialog.alert({ |
| | | message: "未找到匹配的箱条码", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | |
| | | that.LsBar = ""; // 清空输入框 |
| | |
| | | that.getKbBarInfo(); |
| | | } else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XbarInfo = []; |
| | | that.XBar = ""; |
| | | that.LsBar = ""; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("绑定失败,请重试!"); |
| | | //that.$toast.fail("绑定失败,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | }); |
| | | }, |
| | | handleSubmit() { |
| | |
| | | |
| | | if (oldqty !== ySum) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(`装板未完成,待装数:${oldqty - ySum}`); |
| | | //that.$toast.fail(`装板未完成,待装数:${oldqty - ySum}`); |
| | | that.$dialog.alert({ |
| | | message: `装板未完成,待装数:${oldqty - ySum}`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | return; |
| | | } |
| | | |
| | |
| | | that.$refs.KbBar.focus(); |
| | | } else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("提交失败,请重试!"); |
| | | //that.$toast.fail("提交失败,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | }); |
| | | }, |
| | |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | |
| | | |
| | | if (oldqty !== ySum) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(`装板未完成,待装数:${oldqty - ySum}`); |
| | | //that.$toast.fail(`装板未完成,待装数:${oldqty - ySum}`); |
| | | that.$dialog.alert({ |
| | | message: `装板未完成,待装数:${oldqty - ySum}`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | return; |
| | | } |
| | | |
| | |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | } else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("AGV送检失败,请重试!"); |
| | | //that.$toast.fail("AGV送检失败,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "AGV送检失败,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | }); |
| | | }, |
| | |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | } else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("AGV呼叫失败,请重试!"); |
| | | //that.$toast.fail("AGV呼叫失败,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "AGV呼叫失败,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | }); |
| | | } |