pages/MJGL/Sb_EqpMaintenance/Sb_EqpMaintenanceBill.vue
@@ -783,7 +783,7 @@
               })
               return
            }
            try {
               let oMain = JSON.stringify(this.hform);
               this.HDetailList[0].HManagerID = this.hform.HManagerID
@@ -795,8 +795,8 @@
               this.HDetailList[0].HSourceBillNo = this.hform.HMainSourceBillNo
               let sSubStr = JSON.stringify(this.HDetailList);
               let sMainSub = oMain + ';' + sSubStr + `;-1;${this.operationType}` + ';' + getUserInfo()[
                  'Czymc'];
               let sMainSub = oMain + ';' + sSubStr;
                    console.log('sMainSub: ',sMainSub);
               let res = await CommonUtils.doRequest2Sync({
                  url: "/Sb_PDA_EqpRepairWorkBill/SaveGetEqpRepairWorkBillList",
                  data: {
@@ -912,7 +912,42 @@
                  message: err
               })
            }
         }
         },
            async getSourceBillInfo(HSourceBillType, HInterID, HBillNo) {
                // 下推单据类型为设备故障登记单
                if(HSourceBillType == 3907) {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/Sb_EqpRepairWorkBill/Sb_EqpConkBookBillListCheckDetai",
                        data: {
                            HID: HInterID
                        }
                    })
                    let {data,code, count, Message} = res.data
                    if(code == 1) {
                        console.log('data: ',data.h_v_Sb_EquipConkBookBillList_Edit);
                        let data1 = data.h_v_Sb_EquipConkBookBillList_Edit[0]
                        this.hform.HMainSourceBillType = HSourceBillType
                        this.HMainSourceBillType = '设备故障登记单'
                        this.hform.HMainSourceBillNo = data1.单据号
                        this.hform.HMainSourceInterID = data1.hmainid
                        this.hform.HMainSourceEntryID = data1.hsubid
                        this.hform.HEquipID = data1.HEquipID
                        this.hform.HManagerName = data1.负责人
                        this.hform.HManagerID = data1.HManagerID
                        this.hform.HBarName = data1.设备名称
                        this.hform.HBarModel = data1.设备型号
                        this.hform.HBarSpec = data1.设备规格
                    }
                    else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取源单失败: ${Message}`
                        })
                    }
                }
            }
      },
      onLoad(e) {
         console.log('e: ', e);
@@ -935,7 +970,12 @@
            let HEquipID = e.HEquipID
            this.getMaxNum()
            this.getEquipFileMain(HEquipID)
         }
         } else if(this.operationType == 5) {
                let {HSourceBillType, HInterID, HBillNo} = e
                // 下推
                this.getMaxNum()
                this.getSourceBillInfo(HSourceBillType, HInterID, HBillNo)
            }
         this.getHDeptList()
         this.getEmpList()