联调承载能力评估
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
<TableHeader area datePicker ref="TableHeaderRef">
|
||||
<template #select>
|
||||
<el-form-item label="问题来源">
|
||||
<el-select v-model="tableStore.table.params.problemSources" placeholder="请选择问题来源">
|
||||
<el-select v-model="tableStore.table.params.problemSources" clearable placeholder="请选择问题来源">
|
||||
<el-option
|
||||
v-for="item in problemData"
|
||||
:key="item.id"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
:value="item.code"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="填报进度">
|
||||
<el-select v-model="tableStore.table.params.reportProcess" placeholder="请选择填报进度">
|
||||
<el-select v-model="tableStore.table.params.reportProcess" clearable placeholder="请选择填报进度">
|
||||
<el-option
|
||||
v-for="item in fillingProgress"
|
||||
:key="item.id"
|
||||
@@ -22,7 +22,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核状态">
|
||||
<el-select v-model="tableStore.table.params.reportProcessStatus" placeholder="请选择审核状态">
|
||||
<el-select v-model="tableStore.table.params.reportProcessStatus" clearable placeholder="请选择审核状态">
|
||||
<el-option
|
||||
v-for="item in auditStatus"
|
||||
:key="item.id"
|
||||
@@ -42,17 +42,15 @@
|
||||
</template>
|
||||
<template #operation>
|
||||
<el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
|
||||
<!-- <el-button icon="el-icon-EditPen" type="primary" @click="filling">填报</el-button> -->
|
||||
<el-button icon="el-icon-Delete" type="primary">删除</el-button>
|
||||
<!-- <el-button icon="el-icon-SuccessFilled" type="primary">归档</el-button>
|
||||
<el-button icon="el-icon-PieChart" type="primary">历史审核记录</el-button> -->
|
||||
<el-button icon="el-icon-SuccessFilled" type="primary">归档</el-button>
|
||||
<el-button icon="el-icon-PieChart" type="primary">历史审核记录</el-button>
|
||||
</template>
|
||||
</TableHeader>
|
||||
<Table ref="tableRef" />
|
||||
<!-- 新增 -->
|
||||
<NewlyAdd v-if="showNewlyAdded" @handleClose="handleClose" @onSubmit="onSubmit" />
|
||||
<NewlyAdd v-if="showNewlyAdded" @handleClose="handleClose" @onSubmit="tableStore.index()" />
|
||||
<!-- 填报 -->
|
||||
<Filling ref="FillingRef" />
|
||||
<Filling ref="FillingRef" @onSubmit="tableStore.index()" />
|
||||
<!-- 详情 -->
|
||||
<Detail ref="detailRef" />
|
||||
</template>
|
||||
@@ -99,23 +97,23 @@ const tableStore: any = new TableStore({
|
||||
{ field: 'powerQualityProblemNo', title: '问题编号' },
|
||||
{ field: 'problemName', title: '问题名称' },
|
||||
{ field: 'dataDate', title: '问题新建时间' },
|
||||
// {
|
||||
// field: 'reportProcess',
|
||||
// title: '填报进度',
|
||||
// formatter: (row: any) => {
|
||||
// return fillingProgress.filter(item => item.code == row.cellValue)[0]?.name
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// field: 'reportProcessStatus',
|
||||
// title: '审核状态',
|
||||
// formatter: (row: any) => {
|
||||
// return auditStatus.filter(item => item.code == row.cellValue)[0]?.name
|
||||
// }
|
||||
// },
|
||||
{
|
||||
title: '详情',
|
||||
width: '120',
|
||||
field: 'reportProcess',
|
||||
title: '填报进度',
|
||||
formatter: (row: any) => {
|
||||
return fillingProgress.filter(item => item.code == row.cellValue)[0]?.name
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'reportProcessStatus',
|
||||
title: '审核状态',
|
||||
formatter: (row: any) => {
|
||||
return auditStatus.filter(item => item.code == row.cellValue)[0]?.name
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: '150',
|
||||
render: 'buttons',
|
||||
buttons: [
|
||||
{
|
||||
@@ -123,7 +121,7 @@ const tableStore: any = new TableStore({
|
||||
title: '查看',
|
||||
type: 'primary',
|
||||
// disabled: row => {
|
||||
// return row.reportProcess != 'Not_Reported' && row.reportProcess != 'Archived'
|
||||
// return !(row.reportProcess != 'Not_Reported' && row.reportProcess != 'Archived')
|
||||
// },
|
||||
icon: 'el-icon-Plus',
|
||||
render: 'basicButton',
|
||||
@@ -131,6 +129,19 @@ const tableStore: any = new TableStore({
|
||||
detailRef.value.open(row)
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'edit',
|
||||
title: '填报',
|
||||
disabled: row => {
|
||||
return row.reportProcessStatus == 'Auditt'
|
||||
},
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Plus',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
filling(row)
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'del',
|
||||
text: '删除',
|
||||
@@ -152,11 +163,14 @@ const tableStore: any = new TableStore({
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
|
||||
tableStore.table.params.dataDate = tableStore.table.params.searchBeginTime
|
||||
tableStore.table.params.dataType = TableHeaderRef.value.datePickerRef.interval
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
tableStore.table.params.orgNo = dictData.state.area[0].id
|
||||
tableStore.table.params.problemName = ''
|
||||
tableStore.table.params.problemSources = ''
|
||||
tableStore.table.params.reportProcess = ''
|
||||
@@ -170,66 +184,44 @@ onMounted(() => {
|
||||
{ label: '月', value: 3 }
|
||||
])
|
||||
|
||||
setTimeout(() => {
|
||||
tableStore.table.params.dataType = TableHeaderRef.value.datePickerRef.interval
|
||||
tableStore.table.params.dataDate = TableHeaderRef.value.datePickerRef.timeValue[0]
|
||||
tableStore.index()
|
||||
}, 100)
|
||||
tableStore.index()
|
||||
})
|
||||
// 新增
|
||||
const add = () => {
|
||||
showNewlyAdded.value = true
|
||||
}
|
||||
const onSubmit = () => {
|
||||
tableStore.index()
|
||||
}
|
||||
|
||||
// 填报
|
||||
const filling = () => {
|
||||
if (tableStore.table.selection.length == 1) {
|
||||
FillingRef.value.open(tableStore.table.selection[0])
|
||||
if (tableStore.table.selection[0].reportProcess == 'Not_Reported') {
|
||||
// 原因分析
|
||||
// this.showCauseAnalysisJP = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.CauseAnalysisJP.causeAnalysis = true
|
||||
// }, 0)
|
||||
} else if (
|
||||
tableStore.table.selection[0].reportProcess == 'Cause_Analysis' &&
|
||||
tableStore.table.selection[0].reportProcessStatus == 'Success'
|
||||
) {
|
||||
// 计划整改措施
|
||||
// this.showPlannedRectification = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.PlannedRectification.rectificationMeasures = true
|
||||
// }, 0)
|
||||
} else if (
|
||||
tableStore.table.selection[0].reportProcess == 'Plan_Measures' &&
|
||||
tableStore.table.selection[0].reportProcessStatus == 'Success'
|
||||
) {
|
||||
// 实际采取措施
|
||||
// this.showActualMeasures = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.ActualMeasures.rectificationMeasures = true
|
||||
// }, 0)
|
||||
} else if (
|
||||
tableStore.table.selection[0].reportProcess == 'Actual_Measures' &&
|
||||
tableStore.table.selection[0].reportProcessStatus == 'Success'
|
||||
) {
|
||||
// 成效分析
|
||||
// this.showEffectiveness = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.Effectiveness.effectivenessAnalysis = true
|
||||
// }, 0)
|
||||
} else if (
|
||||
tableStore.table.selection[0].reportProcess == 'Insights' &&
|
||||
tableStore.table.selection[0].reportProcessStatus == 'Success'
|
||||
) {
|
||||
ElMessage.warning('填报已结束,无需填报!')
|
||||
} else {
|
||||
ElMessage.warning('审核未通过,不能进行填报!')
|
||||
}
|
||||
const filling = (row: any) => {
|
||||
FillingRef.value.open(row)
|
||||
if (row.reportProcess == 'Not_Reported') {
|
||||
// 原因分析
|
||||
// this.showCauseAnalysisJP = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.CauseAnalysisJP.causeAnalysis = true
|
||||
// }, 0)
|
||||
} else if (row.reportProcess == 'Cause_Analysis' && row.reportProcessStatus == 'Success') {
|
||||
// 计划整改措施
|
||||
// this.showPlannedRectification = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.PlannedRectification.rectificationMeasures = true
|
||||
// }, 0)
|
||||
} else if (row.reportProcess == 'Plan_Measures' && row.reportProcessStatus == 'Success') {
|
||||
// 实际采取措施
|
||||
// this.showActualMeasures = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.ActualMeasures.rectificationMeasures = true
|
||||
// }, 0)
|
||||
} else if (row.reportProcess == 'Actual_Measures' && row.reportProcessStatus == 'Success') {
|
||||
// 成效分析
|
||||
// this.showEffectiveness = true
|
||||
// setTimeout(() => {
|
||||
// this.$refs.Effectiveness.effectivenessAnalysis = true
|
||||
// }, 0)
|
||||
} else if (row.reportProcess == 'Insights' && row.reportProcessStatus == 'Success') {
|
||||
ElMessage.warning('填报已结束,无需填报!')
|
||||
} else {
|
||||
ElMessage.warning('请选择1条数据,进行填报!')
|
||||
ElMessage.warning('审核未通过,不能进行填报!')
|
||||
}
|
||||
}
|
||||
// 关闭弹框
|
||||
|
||||
Reference in New Issue
Block a user