技术监督计划联调
This commit is contained in:
@@ -22,27 +22,20 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划名称:" prop="workPlanName">
|
||||
<el-input v-model="form.workPlanName" autocomplete="off" place-holder="请输入计划名称" />
|
||||
<el-input v-model="form.workPlanName" autocomplete="off" placeholder="请输入计划名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="监督单位:" prop="supvOrgId">
|
||||
<el-select v-model="form.supvOrgId" clearable style="width: 100%" placeholder="请选择监督单位">
|
||||
<el-option
|
||||
v-for="item in areaOptionList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<Area ref="areaRef" v-model="form.supvOrgId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划编制单位:" prop="planOrgId">
|
||||
<el-input v-model="form.planOrgId" autocomplete="off" />
|
||||
<Area ref="areaRef" v-model="form.planOrgId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
@@ -50,7 +43,7 @@
|
||||
<el-form-item label="监督类型:" prop="supvType">
|
||||
<el-select v-model="form.supvType" clearable style="width: 100%" placeholder="请选择监督类型">
|
||||
<el-option
|
||||
v-for="item in areaOptionList"
|
||||
v-for="item in supvTypeList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -64,7 +57,7 @@
|
||||
<el-form-item label="监督阶段:" prop="supvStage">
|
||||
<el-select v-model="form.supvStage" clearable style="width: 100%" placeholder="请选择监督阶段">
|
||||
<el-option
|
||||
v-for="item in areaOptionList"
|
||||
v-for="item in supvStageList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -96,7 +89,7 @@
|
||||
placeholder="请选择监督对象类型"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in powerCompanyList"
|
||||
v-for="item in supvObjTypeList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -106,7 +99,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="监督对象名称:" prop="supvObjName">
|
||||
<el-input v-model="form.supvObjName" autocomplete="off" place-holder="请输入监督对象名称" />
|
||||
<el-input v-model="form.supvObjName" autocomplete="off" placeholder="请输入监督对象名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -150,7 +143,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="监督对象属性名称:" prop="objTypeName">
|
||||
<el-input v-model="form.objTypeName" autocomplete="off" place-holder="请输入监督对象属性名称" />
|
||||
<el-input v-model="form.objTypeName" autocomplete="off" placeholder="请输入监督对象属性名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
@@ -159,7 +152,7 @@
|
||||
<el-input
|
||||
v-model="form.objCapacity"
|
||||
autocomplete="off"
|
||||
place-holder="请输入监督对象监督对象协议容量"
|
||||
placeholder="请输入监督对象监督对象协议容量"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -170,7 +163,7 @@
|
||||
<el-input
|
||||
v-model="form.substationName"
|
||||
autocomplete="off"
|
||||
place-holder="请输入监督对象关联电站"
|
||||
placeholder="请输入监督对象关联电站"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -188,7 +181,7 @@
|
||||
placeholder="请选择监督对象关联电站电压等级"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in neutralPointWiringMethodList"
|
||||
v-for="item in voltageLevelList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -207,7 +200,7 @@
|
||||
placeholder="请选择实施状态"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in manufacturerList"
|
||||
v-for="item in effectStatusList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -284,7 +277,7 @@
|
||||
placeholder="请选择实施人员"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in frontEndMachineList"
|
||||
v-for="item in effectUserIdList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -299,7 +292,7 @@
|
||||
<el-form-item label="计划状态:">
|
||||
<el-select v-model="form.planStatus" clearable style="width: 100%" placeholder="请选择计划状态">
|
||||
<el-option
|
||||
v-for="item in frontEndMachineList"
|
||||
v-for="item in planStatusList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -311,7 +304,7 @@
|
||||
<el-col :span="12" class="required_position">
|
||||
<span class="required_icon_white">*</span>
|
||||
<el-form-item label="其他要求:">
|
||||
<el-input v-model="form.otherRemark" autocomplete="off" place-holder="请输入其他要求" />
|
||||
<el-input v-model="form.otherRemark" autocomplete="off" placeholder="请输入其他要求" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -464,21 +457,26 @@ import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
|
||||
import { queryByAllCode } from '@/api/system-boot/dictTree'
|
||||
import { useAdminInfo } from '@/stores/adminInfo'
|
||||
import { uploadFile } from '@/api/system-boot/file'
|
||||
import { addPlanFormData } from '@/api/supervision-boot/plan/index'
|
||||
import { addPlanFormData, getUserByDeptId } from '@/api/supervision-boot/plan/index'
|
||||
import { getAreaList } from '@/api/common'
|
||||
import Area from '@/components/form/area/index.vue'
|
||||
const emits = defineEmits(['onSubmit'])
|
||||
const dictData = useDictData()
|
||||
const dialogFormVisible = ref(false)
|
||||
const form: any = ref({})
|
||||
const ruleFormRef = ref(null)
|
||||
//获取登陆用户姓名和部门
|
||||
const adminInfo = useAdminInfo()
|
||||
//字典获取监督类型
|
||||
const supvTypeList = dictData.getBasicData('supv_type')
|
||||
//字典获取监督阶段
|
||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||
//字典获取监督对象关联电站电压等级
|
||||
const neutralPointWiringMethodList = dictData.getBasicData('Neutral_Point')
|
||||
const supvStageList = dictData.getBasicData('supv_stage')
|
||||
//字典获取监督对象类型
|
||||
const supvObjTypeList = dictData.getBasicData('supv_obj_type')
|
||||
//字典获取实施状态
|
||||
const manufacturerList = dictData.getBasicData('Dev_Manufacturers')
|
||||
//字典获取实施人员
|
||||
const frontEndMachineList = dictData.getBasicData('Front_Type')
|
||||
const effectStatusList = dictData.getBasicData('effect_status')
|
||||
//字典获取计划状态
|
||||
const planStatusList = dictData.getBasicData('plan_status')
|
||||
//字典获取电压等级
|
||||
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand')
|
||||
//
|
||||
@@ -492,29 +490,37 @@ const objTypeList = [
|
||||
name: '新(改、扩)建站'
|
||||
}
|
||||
]
|
||||
const effectUserIdList: any = ref([])
|
||||
//根据当前登陆用户的部门id查询实施人员
|
||||
const getEffectUserList = () => {
|
||||
getUserByDeptId({ deptId: adminInfo.$state.deptId }).then(res => {
|
||||
effectUserIdList.value = res.data
|
||||
})
|
||||
}
|
||||
getEffectUserList()
|
||||
const resetForm = () => {
|
||||
form.value = {
|
||||
workPlanName: '', //计划名称
|
||||
supvOrgId: '', //监督单位
|
||||
planOrgId: '', //计划编制单位
|
||||
supvType: '', //监督类型
|
||||
supvStage: areaOptionList[0].id, //监督阶段
|
||||
supvStage: supvStageList[0]?.id, //监督阶段
|
||||
planSupvDate: '', //计划监督时间
|
||||
supvObjType: areaOptionList[0].id, //监督对象类型
|
||||
supvObjType: supvObjTypeList[0]?.id, //监督对象类型
|
||||
supvObjName: '', //监督对象名称
|
||||
objVoltageLevel: voltageLevelList[0].id, // 监督对象电压等级
|
||||
objType: '', //监督对象属性
|
||||
objType: objTypeList[0].id, //监督对象属性
|
||||
objTypeName: '', //监督对象属性名称
|
||||
objCapacity: '', //监督对象协议容量
|
||||
objCapacity: '0', //监督对象协议容量
|
||||
substationName: '', //监督对象关联电站
|
||||
substationVoltageLevel: voltageLevelList[0].id, // 监督对象关联电站电压等级
|
||||
effectStatus: '0', //实施状态
|
||||
effectStatus: effectStatusList[0].id, //实施状态
|
||||
effectStartTime: '', //开始实施时间
|
||||
effectEndTime: '', //结束实施时间
|
||||
reportIssueTime: '', //报告出具时间
|
||||
problemOcTime: '', //电能质量问题发生时间
|
||||
effectUserId: '', //实施人员
|
||||
planStatus: '', //计划状态
|
||||
effectUserId: effectUserIdList.value[0]?.id, //实施人员
|
||||
planStatus: planStatusList[0].id, //计划状态
|
||||
otherRemark: '', //其他要求
|
||||
planUserId: '' //计划编制人,挡墙登陆用户
|
||||
// sealReport: '', //盖章报告
|
||||
@@ -718,8 +724,6 @@ const choose = (e: any) => {
|
||||
const disabledDate = time => {
|
||||
return time.getTime() < Date.now() - 8.64e7 // 8.64e7 毫秒数代表一天
|
||||
}
|
||||
//获取登陆用户姓名和部门
|
||||
const adminInfo = useAdminInfo()
|
||||
//提交
|
||||
const confirmForm = () => {
|
||||
// 提交终端信息
|
||||
|
||||
Reference in New Issue
Block a user