| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | var that = this; |
| | | let that = this; |
| | | //读取扫码beg 2025-7-25 |
| | | window.msgFromUniapp = function (arg) { |
| | | //alert(arg.txtName); |
| | | //alert("扫码的结果:" + arg.msg); |
| | | //alert("工位码:" + that.jyGw); |
| | | if (arg.txtName === "GW") { |
| | | that.jyGw = arg.msg; |
| | | that.selIpqcItemsByGw(); |
| | | } |
| | | else if (arg.txtName === "DAA") { |
| | | that.formData.lotNo = arg.msg; |
| | | that.createByWomdaa(); |
| | | } |
| | | |
| | | |
| | | } |
| | | //读取扫码end |
| | | this.userInfo = { |
| | | loginGuid: this.GetLoginInfor().loginGuid, |
| | | loginAccount: this.GetLoginInfor().loginAccount, |
| | |
| | | this.formData.id = this.Request("id"), |
| | | this.formData.releaseNo = this.Request("releaseNo"); |
| | | this.formData.lotNo = this.Request("lotNo"); |
| | | |
| | | ////读取扫码beg 2025-7-25 |
| | | //let that = this; |
| | | //window.msgFromUniapp = function (arg) { |
| | | // alert("扫码的结果:" + arg.msg); |
| | | //} |
| | | ////读取扫码end |
| | | |
| | | this.init(); |
| | | |
| | | }, |
| | | methods: { |
| | | // 输入过滤 |
| | |
| | | }, |
| | | |
| | | addJyzIpqc(input) { |
| | | |
| | | var that = this; |
| | | var guid1 = that.formData.guid;//主表id |
| | | var mxguid = that.tableData[that.tabActive].guid;//检验项目的guid |
| | |
| | | inP1: input,//或者0k-19,或者ng-19,或实际检验值 |
| | | }, true, 1).then(function (res1) { |
| | | if (res1.rtnCode > 0) { |
| | | that.$notify({ |
| | | type: 'success', message: res1.rtnMsg |
| | | //that.$notify({ |
| | | // type: 'success', message: res1.rtnMsg |
| | | //}); |
| | | that.$toast.success({ |
| | | duration: 1000, // 持续展示 toast |
| | | message: '操作成功', |
| | | }); |
| | | that.refreshJYItem();//刷新检验项目 |
| | | //that.handleTabClick();//刷新检验明细面板 |
| | |
| | | }, |
| | | //检验项目扫描工位可做检验 |
| | | selIpqcItemsByGw() { |
| | | //alert("开始工位"); |
| | | const that = this; |
| | | var guid1 = that.formData.guid;//主表id |
| | | return that.AxiosHttp("post", 'Ipqc/selIpqcItemsByGw', { |
| | |
| | | console.error('Refresh error:', error); |
| | | }); |
| | | }, |
| | | |
| | | //扫描工位 |
| | | scanOnH5GW() { |
| | | let sendData = { |
| | | Type: 'Scan', |
| | | txtName: 'GW', |
| | | Barcode: '', |
| | | Detail: '', |
| | | Ip: '', |
| | | Port: '', |
| | | } |
| | | uni.webView.postMessage({ |
| | | data: JSON.stringify(sendData) |
| | | }) |
| | | }, |
| | | |
| | | //扫描工单 |
| | | scanOnH5DAA() { |
| | | let sendData = { |
| | | Type: 'Scan', |
| | | txtName: 'DAA', |
| | | Barcode: '', |
| | | Detail: '', |
| | | Ip: '', |
| | | Port: '', |
| | | } |
| | | uni.webView.postMessage({ |
| | | data: JSON.stringify(sendData) |
| | | }) |
| | | }, |
| | | } |
| | | }) |