修改 技术监督 现场问题
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
type="date"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
|
||||
placeholder="请选择工程投产日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -787,12 +786,29 @@ getFrontEndMachineList()
|
||||
//定义所属供电公司数据
|
||||
const powerCompanyList: any = ref([])
|
||||
//获取所属供电公司,区域列表第三层数据
|
||||
const getPowerCompanyList = async () => {
|
||||
const getPowerCompanyList = async (flag: any) => {
|
||||
getAllDeptList().then(res => {
|
||||
powerCompanyList.value = res.data[0].children[0].children
|
||||
form.value.powerCompany = powerCompanyList.value[0]?.id
|
||||
findSubstationVoltageLevel()
|
||||
changeSubstation()
|
||||
if (flag) {
|
||||
console.log(
|
||||
`123`,
|
||||
powerCompanyList.value.find(item => item.name == form.value.supervisionTempDeviceReport.powerCompany)
|
||||
)
|
||||
|
||||
getSubstationVoltageLevel({
|
||||
orgIds: [
|
||||
powerCompanyList.value.find(
|
||||
item => item.name == form.value.supervisionTempDeviceReport.powerCompany
|
||||
).id
|
||||
]
|
||||
}).then(res => {
|
||||
substationList.value = res.data
|
||||
})
|
||||
} else {
|
||||
form.value.powerCompany = powerCompanyList.value[0]?.id
|
||||
findSubstationVoltageLevel()
|
||||
changeSubstation()
|
||||
}
|
||||
})
|
||||
}
|
||||
//根据所选供电公司查询所选获取变电站与变电站电压等级
|
||||
@@ -800,6 +816,7 @@ const getPowerCompanyList = async () => {
|
||||
const findSubstationVoltageLevel = async () => {
|
||||
getSubstationVoltageLevel({ orgIds: [form.value.powerCompany] }).then(res => {
|
||||
substationList.value = res.data
|
||||
|
||||
form.value.substation = substationList.value[0]?.id
|
||||
form.value.substationVoltageLevel = substationList.value[0]?.voltageLevel
|
||||
})
|
||||
@@ -1373,13 +1390,15 @@ const disabledDate = time => {
|
||||
const activeName = ref('0')
|
||||
const resendId = ref('')
|
||||
const open = async (row: any) => {
|
||||
await getPowerCompanyList()
|
||||
let flag = row.row ? true : false
|
||||
if (!flag) await getPowerCompanyList(false)
|
||||
title.value = row.title
|
||||
dialogFormVisible.value = true
|
||||
if (row.row) {
|
||||
resendId.value = row.row.id
|
||||
await getTerminalDetailsById({ id: row.row.id }).then((res: any) => {
|
||||
form.value = { customSubstationFlag: 0, ...res.data, ...res.data.supervisionTempDeviceReport }
|
||||
getPowerCompanyList(true)
|
||||
let list = [
|
||||
'deviceFilePath',
|
||||
// 'acceptanceInspectionReportSingle',
|
||||
|
||||
Reference in New Issue
Block a user