H5/Js/BarCf.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/BarCfBefore.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/IPQC_SJ/Add.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/PurchaseInventory.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/PurchaseReturn.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Scbg.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Scbl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Sccl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Scll.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Scllhb.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Sctl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/cprk.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Js/BarCf.js
@@ -87,10 +87,13 @@ //that.barMessage = json.data.tbBillList.message; //that.$refs.barcode.focus(); //that.formData.barcode = null; that.$playSound('success'); that.$refs.cfNum.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.barcode.focus(); that.formData.barcode = null; } @@ -100,6 +103,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); that.$refs.barcode.focus(); }); @@ -113,10 +117,12 @@ if (that.formData.cfNum * 1 <= 0) { that.$toast.fail("拆分数量不能为空!"); that.$playSound('error'); return; } if (that.formData.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } that.isLoading = true; @@ -134,10 +140,12 @@ that.$refs.barcode.focus(); that.formData.barcode = null; that.formData.cfNum = null; that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.cfNum.focus(); } that.isLoading = false; @@ -145,6 +153,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); }); }, H5/Js/BarCfBefore.js
@@ -87,10 +87,12 @@ //that.barMessage = json.data.tbBillList.message; //that.$refs.barcode.focus(); //that.formData.barcode = null; that.$playSound('success'); that.$refs.cfNum.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.barcode.focus(); that.formData.barcode = null; } @@ -100,6 +102,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); that.$refs.barcode.focus(); }); @@ -113,16 +116,19 @@ if (that.formData.cfNum * 1 <= 0) { that.$toast.fail("拆分数量不能为空!"); that.$playSound('error'); return; } // ... existing code ... if (parseFloat(that.formData.cfNum) > parseFloat(that.formData.sumQuantity)) { that.$toast.fail("拆分数量不能大于条码数量!"); that.$playSound('error'); return; } // ... existing code ... if (that.formData.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } that.isLoading = true; @@ -140,6 +146,7 @@ that.$refs.barcode.focus(); that.formData.barcode = null; that.formData.cfNum = null; that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { @@ -151,6 +158,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); }); }, H5/Js/IPQC_SJ/Add.js
@@ -186,9 +186,11 @@ }, true, 1).then(function (res1) { if (res1.rtnCode == 1) { that.tableMxData = res1.rtnData; that.$playSound('success'); } else { that.$toast.fail(res1.rtnMsg); that.$playSound('error'); } }).catch(function (error) { that.$toast.fail("网络错误,请重试!"); @@ -201,6 +203,7 @@ if (!that.inputValue) { this.$toast.fail("检验值不能为空"); that.$playSound('error'); that.isLoading = false; return; } @@ -222,12 +225,14 @@ that.$notify({ type: 'success', message: res1.rtnMsg }); that.$playSound('success'); that.refreshJYItem();//刷新检验项目 //that.handleTabClick();//刷新检验明细面板 //that.$refs.inputValue.focus(); that.inputValue = null; } else { that.$toast.fail(res1.rtnMsg); that.$playSound('error'); that.inputValue = null; } that.isLoading = false; @@ -311,9 +316,11 @@ }, true, 1).then(function (res1) { if (res1.rtnData.outSum == 1) { that.$notify({ type: 'success', message: '提交成功' }); that.$playSound('success'); that.init(); } else { that.$toast.fail(res1.rtnData.outMsg); that.$playSound('error'); } that.ttrre = false }).catch(function (error) { @@ -336,9 +343,11 @@ }, true, 1).then(res1 => { if (res1.rtnCode == 1) { that.$notify({ type: 'success', message: '重新加载成功' }); that.$playSound('success'); that.init(); } else { that.$toast.fail(res1.rtnMsg); that.$playSound('error'); } that.isLoading = false; }).catch(error => { H5/Js/PurchaseInventory.js
@@ -70,6 +70,7 @@ var json = res; if (json.status == 0) { that.depotData = json.data.tbBillList; that.$playSound('success'); that.$refs.barcode.focus(); } else { H5/Js/PurchaseReturn.js
@@ -55,6 +55,7 @@ var json = res; if (json.status == 0) { that.itemOutNoList = json.data.tbBillList; that.$playSound('success'); that.itemOutNoStr = that.itemOutNoList.map(s => { return { name: s.billNo } }); @@ -133,6 +134,7 @@ if (json.status == 0) { that.ItemDetail = json.data.tbBillList; that.$refs.barcode.focus(); that.$playSound('success'); } else { that.$playSound('error'); H5/Js/Scbg.js
@@ -68,15 +68,18 @@ 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); }); @@ -104,17 +107,20 @@ 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); }); }, @@ -218,6 +224,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); }); // 默认情况下点击选项时不会自动收起 @@ -248,16 +255,19 @@ 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; } @@ -301,6 +311,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); }); }, @@ -313,6 +324,7 @@ if (!that.userInfo.loginAccount) { this.$toast.fail("请重新检查登录状态"); that.$playSound('error'); that.load = false; return; } @@ -337,6 +349,7 @@ if (!that.sjBillNo) { this.$toast.fail("送检单号不能为空"); that.$playSound('error'); that.load = false; return; } @@ -365,6 +378,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); }); }, @@ -400,6 +414,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); }); // 默认情况下点击选项时不会自动收起 H5/Js/Scbl.js
@@ -56,12 +56,14 @@ } 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); }); }, @@ -88,9 +90,11 @@ that.ItemDetail = json.data.tbBillList; that.daa001 = json.data.tbBillList.daa001; that.$refs.barcode.focus(); that.$playSound('success'); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.billNo.focus(); that.billNo = ""; that.daa001 = ""; @@ -101,6 +105,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); //console.log(error); tthat.$refs.billNo.focus(); that.billNo = ""; @@ -121,24 +126,28 @@ if (!that.userInfo.loginAccount) { this.$toast.fail("请重新检查登录状态"); that.$playSound('error'); that.isLoading = false; return; } if (!that.barcode) { this.$toast.fail("条码不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.billNo) { this.$toast.fail("补料单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.daa001) { this.$toast.fail("工单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } @@ -203,30 +212,35 @@ if (!that.userInfo.loginAccount) { this.$toast.fail("请重新检查登录状态"); that.$playSound('error'); that.isLoading = false; return; } if (!that.barcode) { this.$toast.fail("条码不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.billNo) { this.$toast.fail("补料单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.daa001) { this.$toast.fail("工单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.splitNum) { this.$toast.fail("发货数量不能为空"); that.$playSound('error'); that.isLoading = false; return; } @@ -244,6 +258,7 @@ if (json.status == 0) { that.ItemBlDetail = json.data.pendingList; that.$notify({ type: 'success', message: '扫描成功' }); that.$playSound('success'); that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; @@ -252,6 +267,7 @@ } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.barcode.focus(); } that.isLoading = false; @@ -259,6 +275,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); //console.log(error); that.$refs.barcode.focus(); that.barcode = ""; H5/Js/Sccl.js
@@ -48,12 +48,14 @@ } 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); }); }, @@ -84,15 +86,18 @@ if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList.item; that.daa001 = json.data.tbBillList.bl001; that.$playSound('success'); } 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); }); }, @@ -105,24 +110,28 @@ if (!that.userInfo.loginAccount) { this.$toast.fail("请重新检查登录状态"); that.$playSound('error'); that.isLoading = false; return; } if (!that.barcode) { this.$toast.fail("条码不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.billNo) { this.$toast.fail("补料单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.daa001) { this.$toast.fail("工单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } @@ -143,16 +152,19 @@ that.sms = json.data.tbBillList.item.fum; that.num = json.data.tbBillList.item.num; that.ItemBlDetail = json.data.tbBillList.pendingList that.$playSound('error'); that.$notify({ type: 'success', message: '扫描成功' }); } 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); }); }, @@ -164,30 +176,35 @@ if (!that.userInfo.loginAccount) { this.$toast.fail("请重新检查登录状态"); that.$playSound('error'); that.isLoading = false; return; } if (!that.barcode) { this.$toast.fail("条码不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.billNo) { this.$toast.fail("补料单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.daa001) { this.$toast.fail("工单号不能为空"); that.$playSound('error'); that.isLoading = false; return; } if (!that.sms) { this.$toast.fail("发货数量不能为空"); that.$playSound('error'); that.isLoading = false; return; } @@ -204,16 +221,19 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList.pendingList; that.$playSound('success'); that.$notify({ type: 'success', message: '扫描成功' }); } 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); }); } H5/Js/Scll.js
@@ -48,10 +48,12 @@ console.log(json) that.ItemDetail = json.data.tbBillList; that.modeInfo.planNo = json.data.tbBillList.planNo; that.$playSound('success'); that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; that.modeInfo.planNo = ""; @@ -62,6 +64,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; @@ -76,10 +79,12 @@ var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("工单单号不能为空!"); that.$playSound('error'); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } @@ -101,6 +106,7 @@ } else if (json.status == 2) { that.$refs.splitNum.focus(); that.$playSound('success'); that.scanInfo.splitNum = json.data.tbBillList.splitNum; that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; } @@ -129,14 +135,17 @@ var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("工单单号不能为空!"); that.$playSound('error'); return; } if (that.scanInfo.splitNum * 1 <= 0) { that.$toast.fail("拆分数量不能为空!"); that.$playSound('error'); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } //that.ip = ""; H5/Js/Scllhb.js
@@ -48,10 +48,12 @@ console.log(json) that.ItemDetail = json.data.tbBillList; that.modeInfo.planNo = json.data.tbBillList.planNo; that.$playSound('success'); that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; that.modeInfo.planNo = ""; @@ -62,6 +64,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; @@ -76,10 +79,12 @@ var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("汇报单号不能为空!"); that.$playSound('error'); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } @@ -101,6 +106,7 @@ } else if (json.status == 2) { that.$refs.splitNum.focus(); that.$playSound('success'); that.scanInfo.splitNum = json.data.tbBillList.splitNum; that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; } @@ -129,14 +135,17 @@ var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("工单单号不能为空!"); that.$playSound('error'); return; } if (that.scanInfo.splitNum * 1 <= 0) { that.$toast.fail("拆分数量不能为空!"); that.$playSound('error'); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } //that.ip = ""; @@ -347,6 +356,7 @@ console.log('提取的DAA001:', this.modeInfo.daa001); } else { this.$toast.fail('工单号格式异常'); that.$playSound('error'); this.modeInfo.daa001 = ''; } this.getModel(); H5/Js/Sctl.js
@@ -50,12 +50,14 @@ } 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); }); }, @@ -83,9 +85,11 @@ if (json.status == 0) { that.ItemDetail = json.data.tbBillList; that.$refs.sectionCode.focus(); that.$playSound('success'); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.billNo.focus(); that.ItemDetail = null; that.billNo = null; @@ -95,6 +99,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); that.$refs.billNo.focus(); that.ItemDetail = null; that.billNo = null; @@ -115,10 +120,12 @@ var json = res; if (json.status == 0) { that.depot = json.data.tbBillList; that.$playSound('success'); that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.sectionCode.focus(); that.depotSectionCode = null; } @@ -127,6 +134,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); that.$refs.sectionCode.focus(); that.depotSectionCode = null; console.log(error); @@ -141,6 +149,7 @@ if (!that.billNo) { this.$toast.fail("申请单号不能为空"); that.$playSound('error'); that.$refs.billNo.focus(); that.isLoading = false; return; @@ -148,6 +157,7 @@ if (!that.depotSectionCode) { this.$toast.fail("库位编号不能为空"); that.$playSound('error'); that.$refs.sectionCode.focus(); that.depotSectionCode = null; that.isLoading = false; @@ -156,6 +166,7 @@ if (!that.barcode) { this.$toast.fail("条码编号不能为空"); that.$playSound('error'); that.$refs.barcode.focus(); that.barcode = null; that.isLoading = false; @@ -164,6 +175,7 @@ if (!that.userInfo.loginAccount) { this.$toast.fail(json.message); that.$playSound('error'); return; } @@ -179,16 +191,19 @@ that.itemNo = json.data.tbBillList.itemNo; that.sms = json.data.tbBillList.num; that.$playSound('success'); that.$notify({ type: 'success', message: '扫描成功' }); } 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); }); }, H5/Js/cprk.js
@@ -55,6 +55,7 @@ if (that.formData.barcode == "" || that.formData.barcode == null) { that.$refs.barcode.focus(); that.$playSound('success'); that.isLoading = false; } else { that.getScan(); @@ -62,6 +63,7 @@ } else { that.$toast.fail(json.message); that.$playSound('error'); that.formData.sectionCode = null; that.$refs.sectionCode.focus(); that.isLoading = false; @@ -72,6 +74,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); that.formData.sectionCode = null; that.$refs.sectionCode.focus(); @@ -97,6 +100,7 @@ //that.formData.sumQuantity = json.data.tbMesItems.quantity; if (that.formData.sectionCode == "" || that.formData.sectionCode == null) { that.$refs.sectionCode.focus(); that.$playSound('sucess'); that.isLoading = false; } else { that.getScan(); @@ -104,6 +108,7 @@ } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.barcode.focus(); that.formData.barcode = null; that.isLoading = false; @@ -112,6 +117,7 @@ }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("网络错误,请重试!"); console.log(error); that.$refs.barcode.focus(); @@ -122,10 +128,12 @@ if (that.formData.sectionCode.length * 1 <= 0) { that.$toast.fail("库位编码不能为空!"); that.$playSound('error'); return; } if (that.formData.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); that.$playSound('error'); return; } that.isLoading = true; @@ -141,9 +149,11 @@ that.$refs.barcode.focus(); that.formData.barcode = null; that.formData.cfNum = null; that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { that.$playSound('error'); that.$toast.fail(json.message); that.$refs.barcode.focus(); that.formData.barcode = null; @@ -152,6 +162,7 @@ }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("网络错误,请重试!"); console.log(error); }); @@ -199,6 +210,7 @@ this.Message = ""; if (this.tableData.length == 0) { this.Message = "条码为空,无法推送ERP"; that.$playSound('error'); return; } let userName = this.$loginInfo.account; @@ -237,6 +249,7 @@ this.messageCenter.dealWith = 0; this.messageCenter.status = 1; this.messageCenter.resultData = res.msg; that.$playSound('success'); this.updateMessage(this.messageCenter); } }); @@ -252,8 +265,10 @@ }).then(res => { if (res.data.tbBillList) { this.Message += " 审核成功!"; that.$playSound('success'); } else { this.Message += " 审核失败:"; that.$playSound('error'); } let entity = {