yusijie
2026-04-13 b25be565b2d9b856179d207aa5099abd3ae3fa45
pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill.vue
@@ -622,7 +622,7 @@
                  this.hform.HQty = 1
                  // 获取检验规程
                  this.GetItemByEquipFile()
                  await this.GetItemByEquipFile()
               } else {
                  CommonUtils.showTips({
                     title: "温馨提示",
@@ -794,7 +794,7 @@
            }
         }
      },
      onLoad(e) {
      async onLoad(e) {
         console.log('e: ', e);
         if (!e.operationType) {
            this.operationType = 1
@@ -813,8 +813,20 @@
         } 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()