| | |
| | | this.hform.HQty = 1 |
| | | |
| | | // 获取检验规程 |
| | | this.GetItemByEquipFile() |
| | | await this.GetItemByEquipFile() |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | |
| | | } |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | async onLoad(e) { |
| | | console.log('e: ', e); |
| | | if (!e.operationType) { |
| | | this.operationType = 1 |
| | |
| | | } else if (this.operationType == 4) { |
| | | // 下推 |
| | | let HBarCode = e.HBarCode |
| | | let HPlanHInterID = e.HPlanHInterID |
| | | let HPlanHEntryID = e.HPlanHEntryID |
| | | this.getMaxNum() |
| | | this.GetMessageByBarCode(HBarCode) |
| | | //this.GetMessageByBarCode(HBarCode) |
| | | if (HBarCode) { |
| | | await this.GetMessageByBarCode(HBarCode) |
| | | if(uni.getStorageSync('Organization')=='宁波市华舟包装有限公司'){ |
| | | //保养计划的ID根据保养任务下推的实际id进行赋值 |
| | | this.hform.HEquipMaintainPlanInterID = (HPlanHInterID == null ? this.hform.HEquipMaintainPlanInterID : HPlanHInterID) =="" ? this.hform.HEquipMaintainPlanInterID : HPlanHInterID |
| | | this.hform.HEquipMaintainPlanEntryID = (HPlanHEntryID == null ? this.hform.HEquipMaintainPlanEntryID : HPlanHEntryID) =="" ? this.hform.HEquipMaintainPlanEntryID : HPlanHEntryID |
| | | this.hform.HMainSourceInterID = (HPlanHInterID == null ? this.hform.HMainSourceInterID : HPlanHInterID) =="" ? this.hform.HMainSourceInterID : HPlanHInterID |
| | | this.hform.HMainSourceEntryID = (HPlanHEntryID == null ? this.hform.HMainSourceEntryID : HPlanHEntryID) =="" ? this.hform.HMainSourceEntryID : HPlanHEntryID |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.getHDeptList() |