| | |
| | | HUpDateDate: '', |
| | | HChecker: '', |
| | | HCheckDate: '', |
| | | |
| | | HICMOInterID: 0, |
| | | HICMOEntryID: 0, |
| | | HICMOBillNo: '', |
| | | |
| | | HProcExchInterID: 0, |
| | | HProcExchEntryID: 0, |
| | | HProcExchBillNo: '', |
| | | |
| | | HBarCode: '', |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.getMaxNum() |
| | | this.set_Sc_ICMOBillStatus(e.HSourceBillNo, e.HType, e.HSourceName); //回填信息 |
| | | this.hform.HContext = e.HType |
| | | this.hform.HBillTypeName = e.HSouceBillType |
| | | this.hform.HBillTypeName = e.HSouceBillType |
| | | this.eData = e |
| | | } else if (this.OperationType == 5) { |
| | | // 检验单跳转 |
| | | console.log('e: ', e); |
| | | this.getMaxNum() |
| | | this.set_CheckBillStatus(e.linterid, e.HType, e.HSourceName, e.HSouceBillType, e.HBarCode || ''); //回填信息 |
| | | this.hform.HContext = e.HType |
| | | this.hform.HBillTypeName = e.HSouceBillType |
| | | this.eData = e |
| | | } |
| | | }, |
| | |
| | | }, |
| | | dynamicDesc: { |
| | | get() { |
| | | return '异常反馈单号:' + this.hform.HBillNo + ',异常类型:' + this.eData.HType + ',订单号:' + this |
| | | .eData.HICMOBillNo + ',流转卡号:' + this.eData.HICMOBillNo + |
| | | ', 产品编码:' + this.hform.HMaterNumber + ',产品名称:' + this.hform.HMaterName + ',规格型号:' + this |
| | | .hform.HMaterModel + |
| | | ',发送人:' + this.hform.HMaker + ',发生时间:' + this.hform.HDate + ',生产资源:' + this.hform |
| | | .HSourceName + ',设备编码:' + this.hform.EquipNumber + ',对应处理人:' + this.hform.HHandleEmpName |
| | | if (this.OperationType == 4) { |
| | | return '异常反馈单号:' + this.hform.HBillNo + ',异常类型:' + this.eData.HType + ',订单号:' + this |
| | | .eData.HICMOBillNo + ',流转卡号:' + this.eData.HICMOBillNo + |
| | | ', 产品编码:' + this.hform.HMaterNumber + ',产品名称:' + this.hform.HMaterName + ',规格型号:' + this |
| | | .hform.HMaterModel + |
| | | ',发送人:' + this.hform.HMaker + ',发生时间:' + this.hform.HDate + ',生产资源:' + this.hform |
| | | .HSourceName + ',设备编码:' + this.hform.EquipNumber + ',对应处理人:' + this.hform.HHandleEmpName |
| | | } |
| | | if (this.OperationType == 5) { |
| | | return '异常反馈单号:' + this.hform.HBillNo + ',异常类型:' + this.eData.HType + ',订单号:' + this |
| | | .eData.HICMOBillNo + ',流转卡号:' + this.eData.HICMOBillNo + |
| | | ', 产品编码:' + this.hform.HMaterNumber + ',产品名称:' + this.hform.HMaterName + ',规格型号:' + this |
| | | .hform.HMaterModel + |
| | | ',发送人:' + this.hform.HMaker + ',发生时间:' + this.hform.HDate + ',生产资源:' + this.hform |
| | | .HSourceName + ',设备编码:' + this.hform.EquipNumber + ',对应处理人:' + this.hform.HHandleEmpName |
| | | + `,检验单号: ${this.hform.HMainSourceBillNo}` |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | // 检验单跳转 |
| | | async set_CheckBillStatus(HSourceInterID, HType, HSourceName, HSourceBillType, HBarCode) { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Web/getCheckBillStatus', |
| | | data: { |
| | | HInterID: HSourceInterID, |
| | | HBillType: HSourceBillType |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | data, |
| | | count, |
| | | message |
| | | } = res.data |
| | | if (count == 1) { |
| | | this.hform.HMaterNumber = data[0].产品内码 //产品名称 |
| | | this.hform.HMaterName = data[0].产品名称 //产品名称 |
| | | this.hform.HMaterModel = data[0].产品型号 //产品规格 |
| | | this.hform.HMainSourceBillNo = data[0].单据号 //源单单号 |
| | | this.hform.HMainSourceInterID = data[0].hmainid //源单主内码 |
| | | this.hform.HMainSourceEntryID = data[0].hsubid //源单子内码 |
| | | this.hform.HMainSourceBillType = HSourceBillType //源单类型 |
| | | this.hform.HQty = data[0].检验数量 //计划数量 |
| | | this.hform.HSourceID = data[0].HSourceID //生产资源id |
| | | this.hform.HSourceName = data[0].生产资源名称 //生产资源 |
| | | this.hform.HProcExchBillNo = data[0].工序流转卡号 //源单单号 |
| | | this.hform.HProcExchEntryID = data[0].HProcExchInterID //源单主内码 |
| | | this.hform.HProcExchInterID = data[0].HProcExchEntryID //源单子内码 |
| | | this.hform.HICMOBillNo = data[0].生产订单号 |
| | | this.hform.HICMOInterID = data[0].HICMOInterID |
| | | this.hform.HICMOEntryID = data[0].HICMOEntryID |
| | | |
| | | this.hform.HBarCode = data[0]["条码"] || '' |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `下推异常反馈单失败: ${message}` |
| | | }) |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/Get_ErrMsgBackType', |
| | | type: "GET", |
| | | data: { |
| | | "TypeName": HType |
| | | }, |
| | | success: (res) => { |
| | | var data = res.data.data[0] |
| | | if (res.data.count == 1) { |
| | | this.hform.HErrMsgBackTypeID = data.HItemID |
| | | this.hform.HErrMsgBackTypeName = data.HName |
| | | } else { |
| | | uni.showToast({ |
| | | title: '获取异常类型数据失败', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '获取异常类型失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/set_EquipFile', |
| | | type: "GET", |
| | | data: { |
| | | "HSourceName": HSourceName |
| | | }, |
| | | success: (res) => { |
| | | var data = res.data.data[0] |
| | | console.log(res.data) |
| | | if (res.data.count == 1) { |
| | | this.hform.EquipNumber = data.设备编码 |
| | | |
| | | this.getEquipBindingEmpInfo() |
| | | } else { |
| | | uni.showToast({ |
| | | title: '获取设备编码失败', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '获取设备编码失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | |
| | | setTimeout(() => { |
| | | uni.hideLoading() |
| | | }, 1000) |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `下推异常反馈单失败: ${err}` |
| | | }) |
| | | } |
| | | }, |
| | | //报工台跳转 |
| | | set_Sc_ICMOBillStatus(HSourceBill, HType, HSourceName) { |
| | | uni.request({ |
| | |
| | | uni.showLoading({ |
| | | title: '请稍候' |
| | | }) |
| | | if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) { |
| | | if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4 || this.OperationType == 5) { |
| | | this.refSav = "Add"; |
| | | } |
| | | //若为编辑-保存,则更新修改人和修改时间 |