123 lines
4.5 KiB
JavaScript
123 lines
4.5 KiB
JavaScript
import { reactive } from 'vue'
|
|
|
|
// 静态选项(可后续替换为接口下拉)
|
|
const stationOptions = [
|
|
{ label: '昆明运检站', value: 1 },
|
|
{ label: '大理运检站', value: 2 },
|
|
]
|
|
|
|
const majorOptions = [
|
|
{ label: '输电专业', value: 1 },
|
|
{ label: '变电专业', value: 2 },
|
|
]
|
|
|
|
const businessTypeOptions = [
|
|
{ label: '日常巡视', value: 1 },
|
|
{ label: '缺陷处理', value: 2 },
|
|
]
|
|
|
|
const riskLevelOptions = [
|
|
{ label: '低风险', value: 1 },
|
|
{ label: '中风险', value: 2 },
|
|
{ label: '高风险', value: 3 },
|
|
]
|
|
|
|
// 月计划列表搜索表单配置
|
|
export const buildFormColumns = () => [
|
|
{
|
|
type: 'month',
|
|
prop: 'month',
|
|
placeholder: '请选择月份',
|
|
},
|
|
|
|
{
|
|
type: 'input',
|
|
prop: 'keyword',
|
|
placeholder: '请输入关键字',
|
|
},
|
|
{
|
|
type: 'input',
|
|
prop: 'keyword',
|
|
placeholder: '请输入项目名称',
|
|
},
|
|
{
|
|
type: 'input',
|
|
prop: 'keyword',
|
|
placeholder: '请输入工作任务',
|
|
},
|
|
{
|
|
type: 'select',
|
|
prop: 'riskLevel',
|
|
placeholder: '请选择计划状态',
|
|
options: riskLevelOptions,
|
|
},
|
|
]
|
|
|
|
// 月计划列表表格列
|
|
export const tableColumns = [
|
|
{ prop: 'stationName', label: '日期', fixed: true },
|
|
{ prop: 'majorName', label: '运检站', fixed: true },
|
|
{ prop: 'businessTypeName', label: '专业', fixed: true },
|
|
{ prop: 'projectName', label: '项目名称', fixed: true },
|
|
{ prop: 'workTask', label: '工作任务' },
|
|
{ prop: 'riskLevelName', label: '风险等级' },
|
|
{ prop: 'categoryName', label: '计划工作量(基)' },
|
|
]
|
|
export const tableColumns_1 = [
|
|
{ prop: 'stationName', label: '拟投入作业人员数量', fixed: false },
|
|
{ prop: 'majorName', label: '拟投入作业人员姓名', fixed: false },
|
|
{ prop: 'businessTypeName', label: '拟投入车辆', fixed: false },
|
|
{ prop: 'projectName', label: '实际投入作业人员数量', fixed: false },
|
|
{ prop: 'workTask', label: '实际投入作业人员姓名', fixed: false },
|
|
{ prop: 'riskLevelName', label: '实际投入车辆', fixed: false },
|
|
{ prop: 'categoryName', label: '实际完成工作量明细', fixed: false },
|
|
{ prop: 'categoryName', label: '实际完成工作量(基)', fixed: false },
|
|
{ prop: 'categoryName', label: '完成比例', fixed: false },
|
|
{ prop: 'categoryName', label: '作业计划完成情况', fixed: false },
|
|
{ prop: 'categoryName', label: '计划变更及未完成情况说明', fixed: false },
|
|
]
|
|
export const tableColumns_2 = [
|
|
{ prop: 'stationName', label: '拟投入高处作业人员数量', fixed: false },
|
|
{ prop: 'majorName', label: '高处作业人员姓名', fixed: false },
|
|
{ prop: 'businessTypeName', label: '拟投入地面作业人员数量', fixed: false },
|
|
{ prop: 'projectName', label: '地面作业人员姓名', fixed: false },
|
|
{ prop: 'workTask', label: '拟投入检修熟练工数量(分包高空作业人员)', fixed: false },
|
|
{ prop: 'riskLevelName', label: '拟投入检修辅助工数量(分包地面作业人员)', fixed: false },
|
|
{ prop: 'categoryName', label: '拟投入车辆', fixed: false },
|
|
{ prop: 'categoryName', label: '实际投入高处作业人员数量', fixed: false },
|
|
{ prop: 'categoryName', label: '高处作业人员姓名', fixed: false },
|
|
{ prop: 'categoryName', label: '实际投入地面作业人员数量', fixed: false },
|
|
{ prop: 'categoryName', label: '地面作业人员姓名', fixed: false },
|
|
{
|
|
prop: 'categoryName',
|
|
label: '实际投入检修熟练工数量(分包高空作业人员)',
|
|
fixed: false,
|
|
},
|
|
{
|
|
prop: 'categoryName',
|
|
label: '实际投入检修辅助工数量(分包高空作业人员)',
|
|
fixed: false,
|
|
},
|
|
{ prop: 'categoryName', label: '实际投入车辆', fixed: false },
|
|
{ prop: 'categoryName', label: '实际完成工作内容', fixed: false },
|
|
{ prop: 'categoryName', label: '完成比例', fixed: false },
|
|
{ prop: 'categoryName', label: '作业计划完成情况', fixed: false },
|
|
{ prop: 'categoryName', label: '计划变更及未完成情况说明', fixed: false },
|
|
]
|
|
|
|
export const dialogConfig = reactive({
|
|
outerVisible: false,
|
|
outerTitle: '新增计划',
|
|
outerWidth: '70%', // 根据图片缩小宽度更美观
|
|
minHeight: '70vh',
|
|
maxHeight: '90vh',
|
|
})
|
|
|
|
export default {
|
|
tableColumns,
|
|
tableColumns_1,
|
|
tableColumns_2,
|
|
dialogConfig,
|
|
buildFormColumns,
|
|
}
|