全局替换终端
This commit is contained in:
@@ -68,13 +68,13 @@
|
||||
placeholder="请选择工程投产日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="false" for="-" label="所属地市:" prop="city">
|
||||
<el-form-item v-if="false" for="-" label="所在地市:" prop="city">
|
||||
<el-select
|
||||
v-model="form.city"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
:disabled="true"
|
||||
placeholder="请选择所属地市"
|
||||
placeholder="请选择所在地市"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in areaOptionList"
|
||||
@@ -111,13 +111,13 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="关联设备:" prop="monitoringTerminalCode">
|
||||
<el-form-item for="-" label="关联终端:" prop="monitoringTerminalCode">
|
||||
<el-select
|
||||
v-model="form.monitoringTerminalCode"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
filterable
|
||||
placeholder="请选择关联设备"
|
||||
placeholder="请选择关联终端"
|
||||
@change="changeDevice"
|
||||
>
|
||||
<el-option
|
||||
@@ -219,14 +219,14 @@
|
||||
<template #append>MVA</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="设备容量:" prop="devCapacity">
|
||||
<el-form-item for="-" label="终端容量:" prop="devCapacity">
|
||||
<el-input
|
||||
v-model="form.devCapacity"
|
||||
autocomplete="off"
|
||||
oninput="value=value.replace(/[^\-?\d.]/g,'')
|
||||
.replace(/^\./g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')
|
||||
.replace('-','$#$').replace(/\-/g,'').replace('$#$','-')"
|
||||
placeholder="请输入设备容量"
|
||||
placeholder="请输入终端容量"
|
||||
>
|
||||
<template #append>MVA</template>
|
||||
</el-input>
|
||||
@@ -379,7 +379,7 @@ const title = ref('')
|
||||
const ruleFormRef: any = ref(null)
|
||||
// acceptType .doc,.docx,.xlsx,.xls,.pdf
|
||||
const acceptType = ''
|
||||
//字典获取所属地市
|
||||
//字典获取所在地市
|
||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||
//字典获取监测点电压等级
|
||||
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand')
|
||||
@@ -521,13 +521,13 @@ const userNameList = ref([])
|
||||
const projectList = ref([])
|
||||
|
||||
const monitoringTerminalList = ref([])
|
||||
//获取关联设备
|
||||
//获取关联终端
|
||||
const findAllMonitoringTerminalList = () => {
|
||||
getDeviceList().then(res => {
|
||||
monitoringTerminalList.value = res.data
|
||||
})
|
||||
}
|
||||
//查询关联设备下拉框
|
||||
//查询关联终端下拉框
|
||||
const changeDevice = () => {
|
||||
const obj = monitoringTerminalList.value.find(item => {
|
||||
return form.value.monitoringTerminalCode == item.id
|
||||
@@ -549,9 +549,9 @@ const resetForm = () => {
|
||||
orgId: '', //填报部门id
|
||||
orgName: '', //填报部门名称
|
||||
expectedProductionDate: '', //工程投产日期
|
||||
city: areaOptionList[0].name, //所属地市
|
||||
city: areaOptionList[0].name, //所在地市
|
||||
userStatus: userStateList[1].id, //用户状态
|
||||
monitoringTerminalCode: monitoringTerminalList.value[0]?.id, //关联设备
|
||||
monitoringTerminalCode: monitoringTerminalList.value[0]?.id, //关联终端
|
||||
monitoringTerminalName: monitoringTerminalList.value[0]?.monitoringTerminalName,
|
||||
userName: projectList.value[0]?.id, //用户名称关联干扰源
|
||||
userId: '', //工程id
|
||||
@@ -564,7 +564,7 @@ const resetForm = () => {
|
||||
pt2: 1, // PT变比2
|
||||
shortCapacity: '10', // 短路容量
|
||||
dealCapacity: '10', //协议容量
|
||||
devCapacity: '10', //设备容量
|
||||
devCapacity: '10', //终端容量
|
||||
standardCapacity: '10', //基准容量
|
||||
isGridConnectionPoint: 0, //是否并网点
|
||||
isStatistical: 0, // 是否参与统计
|
||||
@@ -695,7 +695,7 @@ const changeUserName = () => {
|
||||
...form.value,
|
||||
shortCapacity: obj.userReportSubstationPO?.minShortCircuitCapacity, // 短路容量
|
||||
dealCapacity: obj.userReportSubstationPO?.userAgreementCapacity, //协议容量
|
||||
devCapacity: obj.userReportSubstationPO?.pccEquipmentCapacity, //设备容量
|
||||
devCapacity: obj.userReportSubstationPO?.pccEquipmentCapacity, //终端容量
|
||||
standardCapacity: obj.userReportSubstationPO?.baseShortCircuitCapacity //基准容量
|
||||
}
|
||||
})
|
||||
@@ -735,7 +735,7 @@ const rules = ref({
|
||||
city: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择所属地市',
|
||||
message: '请选择所在地市',
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
@@ -756,7 +756,7 @@ const rules = ref({
|
||||
monitoringTerminalCode: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择关联设备',
|
||||
message: '请选择关联终端',
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
@@ -799,7 +799,7 @@ const rules = ref({
|
||||
devCapacity: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入设备容量',
|
||||
message: '请输入终端容量',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<el-descriptions-item label="工程投产日期">
|
||||
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="所属地市">
|
||||
<el-descriptions-item label="所在地市">
|
||||
{{ detailData.city }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="用户状态">
|
||||
@@ -33,7 +33,7 @@
|
||||
<el-descriptions-item label="关联干扰源">
|
||||
{{ detailData.userName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="关联设备">
|
||||
<el-descriptions-item label="关联终端">
|
||||
{{ detailData.monitoringTerminalName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="监测点名称">
|
||||
@@ -55,7 +55,7 @@
|
||||
<el-descriptions-item label="协议容量">
|
||||
{{ detailData.dealCapacity }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="设备容量">
|
||||
<el-descriptions-item label="终端容量">
|
||||
{{ detailData.devCapacity }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="基准容量">
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<template>
|
||||
<TableHeader area datePicker ref="TableHeaderRef">
|
||||
<template #select>
|
||||
<el-form-item label="审核状态">
|
||||
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择审核状态">
|
||||
<el-form-item label="流程状态">
|
||||
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择流程状态">
|
||||
<el-option
|
||||
v-for="item in statusSelect"
|
||||
:key="item.id"
|
||||
@@ -65,7 +65,7 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
{ field: 'connectedBus', title: '关联母线', minWidth: 170 },
|
||||
{ field: 'monitoringTerminalName', title: '所属装置', minWidth: 170 },
|
||||
{ field: 'monitoringTerminalName', title: '所属终端', minWidth: 170 },
|
||||
{ field: 'lineName', title: '监测点名称', minWidth: 150 },
|
||||
{ field: 'reportDate', title: '填报日期', minWidth: 150 },
|
||||
{
|
||||
@@ -78,7 +78,7 @@ const tableStore = new TableStore({
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '审核状态',
|
||||
title: '流程状态',
|
||||
minWidth: 100,
|
||||
render: 'tag',
|
||||
custom: {
|
||||
|
||||
Reference in New Issue
Block a user