pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue
@@ -752,7 +752,7 @@
                    if (code == 1) {
                        data = data.h_v_Sb_EquipConkBookBillList_Edit[0]
                        this.enableEdit = false
                    } else {
                        CommonUtils.showTips({
@@ -765,6 +765,46 @@
                    CommonUtils.showTips({
                        title: '温馨提示',
                        message: `获取故障登记单失败: ${err}`
                    })
                }
            },
            async GetEquipInfo(HEquipID) {
                try {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/Gy_EquipFileMain/getSb_EquipList",
                        data: {
                            HInterID: HEquipID,
                            user: getUserInfo()["Czymc"]
                        }
                    })
                    let {
                        data,
                        Message,
                        count
                    } = res.data
                    if (count == 1) {
                        console.log('data: ',data);
                        Object.assign(this.hform, {
                            HDeptID: data[0]["HDeptID"],
                            HDeptName: data[0]["使用部门"],
                            HEquipID: data[0]["hmainid"],
                            HBarName: data[0]["设备名称"],
                            HBarModel: data[0]["设备规格"],
                            HBarSpec: data[0]["设备型号"],
                            HEmpID: getUserInfo()["HEmpID"],
                            HManagerID: data[0]["HRepairEmpID"]
                        })
                    } else {
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: `获取设备数据失败: ${Message}`
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: "温馨提示",
                        message: `获取设备数据失败: ${err}`
                    })
                }
            }
@@ -788,7 +828,10 @@
                this.getEditData(hmainid)
            } else if (this.operationType == 4) {
                // 浏览
                // 报工平台下推
                let HEquipID = e.HEquipID
                this.getMaxNum()
                this.GetEquipInfo(HEquipID)
            }