全局替换终端
This commit is contained in:
@@ -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"
|
||||
@@ -82,7 +82,7 @@ const tableStore = new TableStore({
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '审核状态',
|
||||
title: '流程状态',
|
||||
minWidth: 100,
|
||||
render: 'tag',
|
||||
custom: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
placeholder="请选择工程投产日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="所属地市:" prop="city">
|
||||
<el-select v-model="form.city" clearable style="width: 100%" placeholder="请选择所属地市">
|
||||
<el-form-item for="-" label="所在地市:" prop="city">
|
||||
<el-select v-model="form.city" clearable style="width: 100%" placeholder="请选择所在地市">
|
||||
<el-option
|
||||
v-for="item in areaOptionList"
|
||||
:key="item.id"
|
||||
@@ -270,7 +270,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
for="-"
|
||||
label="监测装置安装位置:"
|
||||
label="监测终端安装位置:"
|
||||
prop="monitoringDeviceInstallationPosition"
|
||||
class="label_over_warp"
|
||||
>
|
||||
@@ -279,7 +279,7 @@
|
||||
v-model="form.monitoringDeviceInstallationPosition"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
placeholder="请选择监测装置安装位置"
|
||||
placeholder="请选择监测终端安装位置"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in monitoringDeviceInstallationPositionList"
|
||||
@@ -396,8 +396,8 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="厂家设备编号:" prop="manufacturerDeviceNumber">
|
||||
<el-input v-model="form.manufacturerDeviceNumber" autocomplete="off" placeholder="请输入厂家设备编号" />
|
||||
<el-form-item for="-" label="厂家终端编号:" prop="manufacturerDeviceNumber">
|
||||
<el-input v-model="form.manufacturerDeviceNumber" autocomplete="off" placeholder="请输入厂家终端编号" />
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item for="-" label="经度:" prop="longitude">
|
||||
@@ -621,7 +621,7 @@ const ruleFormRef: any = ref(null)
|
||||
const title = ref('')
|
||||
// acceptType .xls,.xlsx
|
||||
const acceptType = ''
|
||||
//字典获取所属地市
|
||||
//字典获取所在地市
|
||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||
//字典获取电压互感器类型
|
||||
const voltageTransformerTypeList = dictData.getBasicData('Voltage_Transformer')
|
||||
@@ -673,11 +673,11 @@ const userStateList = reactive([
|
||||
const terminalModelList = [
|
||||
{
|
||||
id: '0',
|
||||
name: '虚拟设备'
|
||||
name: '虚拟终端'
|
||||
},
|
||||
{
|
||||
id: '1',
|
||||
name: '实际设备'
|
||||
name: '实际终端'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
@@ -698,7 +698,7 @@ const communicationStatusList = [
|
||||
name: '正常'
|
||||
}
|
||||
]
|
||||
//定义监测装置安装位置下拉框数据
|
||||
//定义监测终端安装位置下拉框数据
|
||||
const monitoringDeviceInstallationPositionList = [
|
||||
{
|
||||
id: '0',
|
||||
@@ -814,7 +814,7 @@ const resetForm: any = async () => {
|
||||
reportDate: new Date(), //填报日期
|
||||
orgId: '', //填报部门
|
||||
expectedProductionDate: '', //工程投产日期
|
||||
city: areaOptionList[0].id, //所属地市
|
||||
city: areaOptionList[0].id, //所在地市
|
||||
userStatus: userStateList[1].id, //用户状态
|
||||
userName: '', //用户名称
|
||||
userId: '',
|
||||
@@ -840,8 +840,8 @@ const resetForm: any = async () => {
|
||||
// latitude: '0', //纬度
|
||||
// longitude: '0', //经度
|
||||
manufacturer: manufacturerList[0].id, //厂家
|
||||
manufacturerDeviceNumber: '', // 厂家设备编号
|
||||
monitoringDeviceInstallationPosition: monitoringDeviceInstallationPositionList[0].id, //监测装置安装位置
|
||||
manufacturerDeviceNumber: '', // 厂家终端编号
|
||||
monitoringDeviceInstallationPosition: monitoringDeviceInstallationPositionList[0].id, //监测终端安装位置
|
||||
monitoringTerminalCode: '', //监测终端编码
|
||||
monitoringTerminalName: '', //监测终端名称
|
||||
neutralPointWiringMethod: neutralPointWiringMethodList[0].id, // 中性点接线方式
|
||||
@@ -873,7 +873,7 @@ const devReportForm: any = ref({
|
||||
reportDate: new Date(), //填报日期
|
||||
orgId: '', //填报部门
|
||||
expectedProductionDate: '', //工程投产日期
|
||||
city: areaOptionList[0].name, //所属地市
|
||||
city: areaOptionList[0].name, //所在地市
|
||||
userStatus: userStateList[1].id, //用户状态
|
||||
userName: '', //用户名称
|
||||
userId: '',
|
||||
@@ -903,8 +903,8 @@ const devReportForm: any = ref({
|
||||
// latitude: '0', //纬度
|
||||
// longitude: '0', //经度
|
||||
manufacturer: manufacturerList[0].id, //厂家
|
||||
manufacturerDeviceNumber: '', // 厂家设备编号
|
||||
monitoringDeviceInstallationPosition: monitoringDeviceInstallationPositionList[0].id, //监测装置安装位置
|
||||
manufacturerDeviceNumber: '', // 厂家终端编号
|
||||
monitoringDeviceInstallationPosition: monitoringDeviceInstallationPositionList[0].id, //监测终端安装位置
|
||||
monitoringTerminalCode: '', //监测终端编码
|
||||
monitoringTerminalName: '', //监测终端名称
|
||||
neutralPointWiringMethod: neutralPointWiringMethodList[0].id, // 中性点接线方式
|
||||
@@ -958,7 +958,7 @@ const rules = ref({
|
||||
city: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择所属地市',
|
||||
message: '请选择所在地市',
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
@@ -1057,7 +1057,7 @@ const rules = ref({
|
||||
manufacturerDeviceNumber: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入厂家设备编号',
|
||||
message: '请输入厂家终端编号',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
@@ -1183,7 +1183,7 @@ const rules = ref({
|
||||
monitoringDeviceInstallationPosition: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择监测装置安装位置',
|
||||
message: '请选择监测终端安装位置',
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -12,7 +12,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="用户状态">
|
||||
@@ -70,7 +70,7 @@
|
||||
})?.name
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="厂家设备编号">
|
||||
<el-descriptions-item label="厂家终端编号">
|
||||
{{ detailData.supervisionTempDeviceReport?.manufacturerDeviceNumber }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="终端IP">
|
||||
@@ -159,7 +159,7 @@
|
||||
: '-'
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="监测装置安装位置">
|
||||
<el-descriptions-item label="监测终端安装位置">
|
||||
{{
|
||||
monitoringDeviceInstallationPositionList.find(item => {
|
||||
return item.id == detailData.supervisionTempDeviceReport?.monitoringDeviceInstallationPosition
|
||||
@@ -284,9 +284,9 @@ const userStateList = reactive([
|
||||
}
|
||||
])
|
||||
const dictData = useDictData()
|
||||
//字典获取所属地市
|
||||
//字典获取所在地市
|
||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||
//定义监测装置安装位置下拉框数据
|
||||
//定义监测终端安装位置下拉框数据
|
||||
const monitoringDeviceInstallationPositionList = [
|
||||
{
|
||||
id: '0',
|
||||
@@ -312,15 +312,15 @@ const summonFlagList = [
|
||||
const terminalModelList = [
|
||||
{
|
||||
id: '0',
|
||||
name: '虚拟设备'
|
||||
name: '虚拟终端'
|
||||
},
|
||||
{
|
||||
id: '1',
|
||||
name: '虚拟设备'
|
||||
name: '虚拟终端'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
name: '虚拟设备'
|
||||
name: '虚拟终端'
|
||||
}
|
||||
]
|
||||
//定义通讯状态下拉框数据
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<!---终端入网检测-->
|
||||
<template>
|
||||
<TableHeader area datePicker ref="TableHeaderRef">
|
||||
<TableHeader area datePicker nextFlag 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"
|
||||
@@ -72,8 +72,8 @@ const tableStore = new TableStore({
|
||||
return row.cellValue
|
||||
}
|
||||
},
|
||||
{ field: 'monitoringTerminalName', title: '设备名称', minWidth: 170 },
|
||||
{ field: 'monitoringTerminalCode', title: '设备编号', minWidth: 170 },
|
||||
{ field: 'monitoringTerminalName', title: '终端名称', minWidth: 170 },
|
||||
{ field: 'monitoringTerminalCode', title: '终端编号', minWidth: 170 },
|
||||
{ field: 'reportDate', title: '填报日期', minWidth: 170 },
|
||||
{
|
||||
field: 'createBy',
|
||||
@@ -85,7 +85,7 @@ const tableStore = new TableStore({
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '审核状态',
|
||||
title: '流程状态',
|
||||
minWidth: 100,
|
||||
render: 'tag',
|
||||
custom: {
|
||||
|
||||
Reference in New Issue
Block a user