From cfa8a00451d70915cbf3d9b48969856fc09f76b1 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Thu, 18 Aug 2022 13:50:32 +0800
Subject: [PATCH] Default Changelist
---
src/views/specialWorkSystem/workApplyManage/workTicket/index.vue | 113 +++++++++++++++-----------------------------------------
1 files changed, 30 insertions(+), 83 deletions(-)
diff --git a/src/views/specialWorkSystem/workApplyManage/workTicket/index.vue b/src/views/specialWorkSystem/workApplyManage/workTicket/index.vue
index f73f27d..6310e43 100644
--- a/src/views/specialWorkSystem/workApplyManage/workTicket/index.vue
+++ b/src/views/specialWorkSystem/workApplyManage/workTicket/index.vue
@@ -2,32 +2,20 @@
<div class="home-container">
<div style="height: 100%">
<el-form :model="form" label-width="150px" :rules="applyRules" ref="ruleFormRef2">
-<!-- <blind-panel-form :bpForm="form.addForm" ref="additionalForm"></blind-panel-form>-->
-<!-- <cut-line-form :clForm="form.addForm" ref="additionalForm"></cut-line-form>-->
-<!-- <dirt-work-form :dwForm="form.addForm" ref="additionalForm"></dirt-work-form>-->
- <fire-work-form :fwForm="form.addForm" ref="additionalForm"></fire-work-form>
-<!-- <hang-load-form :hlForm="form.addForm" ref="additionalForm"></hang-load-form>-->
-<!-- <high-work-form :hwForm="form.addForm" ref="additionalForm"></high-work-form>-->
-<!-- <limited-space-form :lsForm="form.addForm" ref="additionalForm"></limited-space-form>-->
-<!-- <temp-elect-form :teForm="form.addForm" ref="additionalForm"></temp-elect-form>-->
- <div>
<div class="homeCard">
<el-row>
- <el-col :span="3"><el-button type="primary" size="default" @click="dialogAddWorker = true">添加作业人</el-button></el-col>
- <el-col :span="21">
- <el-table :data="form.workerList" style="width: 100%">
- <el-table-column type="index" label="序号" width="100"/>
- <el-table-column prop="worker" label="作业人"/>
- <el-table-column prop="role" label="作业人角色" width="180"/>
- <el-table-column prop="unit" label="所属单位" width="180" />
- <el-table-column prop="certificate" label="证书名称" width="180" />
- <el-table-column prop="certificateId" label="证书号" />
- <el-table-column fixed="right" label="操作" align="center" width="180">
- <template #default="scope">
- <el-button link type="danger" size="small" @click="deleteRow(scope.$index)">删除</el-button>
+ <el-col :span="12">
+ <el-form-item label="作业人" prop="operatorUid">
+ <el-input
+ v-model="form.operatorUid"
+ placeholder="请输入"
+ class="input-with-select"
+ >
+ <template #append>
+ <el-button :icon="Search" />
</template>
- </el-table-column>
- </el-table>
+ </el-input>
+ </el-form-item>
</el-col>
</el-row>
<el-row>
@@ -216,7 +204,6 @@
</el-col>
</el-row>
</div>
- </div>
</el-form>
<div class="applyBtn">
<el-button type="primary" size="large" plain @click="handleApply(ruleFormRef2)">发起申请</el-button>
@@ -350,56 +337,34 @@
import { Search } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import type { FormInstance, FormRules } from 'element-plus'
- let global: any = {
- homeChartOne: null,
- homeChartTwo: null,
- homeCharThree: null,
- dispose: [null, '', undefined],
- };
+ import { fireApplyApi } from '/@/api/specialWorkSystem/workApply/fire';
+
interface stateType {
- homeOne: Array <type>
- }
- interface type {
-
+ form: Object
}
export default defineComponent({
- name: 'workApplyForm',
- components: {
- fireWorkForm: defineAsyncComponent(() => import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/fireWorkForm.vue')),
- limitedSpaceForm: defineAsyncComponent(() => import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/limitedSpaceForm.vue')),
- hangLoadForm: defineAsyncComponent(()=> import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/hangLoadForm.vue')),
- dirtWorkForm: defineAsyncComponent(()=> import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/dirtWorkForm.vue')),
- cutLineForm: defineAsyncComponent(()=> import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/cutLineForm.vue')),
- highWorkForm: defineAsyncComponent(()=> import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/highWorkForm.vue')),
- tempElectForm: defineAsyncComponent(()=> import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/tempElectForm.vue')),
- blindPanelForm: defineAsyncComponent(()=> import('/@/views/specialWorkSystem/workApplyManage/workApplyForm/components/blindPanelForm.vue'))
- },
+ name: 'workTicket',
+ components: {},
setup() {
const userInfo = useUserInfo()
const { userInfos } = storeToRefs(userInfo);
const state = reactive<stateType>({
- homeOne:[{id:1,name:'安全基础信息系统'},{id:2,name:'双重预防系统'},{id:3,name:'系统2'},{id:4,name:'系统3'},{id:5,name:'系统4'}],
+ form: {
+ operatorUid: [],
+ workType: null,
+ workLevel: null,
+ workContent: '',
+ workLocation: '',
+ workDetail:{
+ hotMethod: '',
+ otherSpecialWork: []
+ },
+ expStartTime: '',
+ expEndTime: ''
+ },
+
});
- const form = reactive({
- addForm: {},
- workerList: [],
- workLocation: '',
- workTimeLine: '',
- workContent: '',
- workUnit: '',
- responsor: '',
- monitor: '',
- workMonitor: '',
- monitorStation: '',
- workhouseLeader: '',
- applyDate: '',
- otherSpecialWorks: [],
- protections: '',
- saftyFile: {},
- safetyMan: '',
- educated: ''
- })
const dialogAddWorker = ref(false)
const dialogAddFile = ref(false)
const addWorkerForm = ref({
@@ -480,23 +445,6 @@
const ruleFormRef = ref<FormInstance>()
const ruleFormRef2 = ref<FormInstance>()
const ruleFormRef3 = ref<FormInstance>()
- const applyRules = reactive<FormRules>({
- extraForm: [{type: 'object', required: true,message: '此处不能为空'}],
- workLocation: [{required: true,message: '此处不能为空'}],
- workTimeLine: [{required: true,message: '此处不能为空'}],
- workContent: [{required: true,message: '此处不能为空'}],
- workUnit: [{required: true,message: '此处不能为空'}],
- responsor: [{required: true,message: '此处不能为空'}],
- monitor: [{required: true,message: '此处不能为空'}],
- workMonitor: [{required: true,message: '此处不能为空'}],
- monitorStation: [{required: true,message: '此处不能为空'}],
- workhouseLeader: [{required: true,message: '此处不能为空'}],
- applyDate: [{required: true,message: '此处不能为空'}],
- otherSpecialWorks: [{type: 'array', required: true,message: '此处不能为空'}],
- protections: [{required: true,message: '此处不能为空'}],
- safetyMan: [{required: true,message: '此处不能为空'}],
- educated: [{required: true,message: '此处不能为空'}]
- })
const addWorkerRules = reactive<FormRules>({
worker: [{required: true,message: '此处不能为空'}],
role: [{required: true,message: '此处不能为空'}],
@@ -599,7 +547,6 @@
additionalForm,
addWorkerRules,
saftyFileRules,
- applyRules,
isValid,
handleApply,
cancleAddFile,
--
Gitblit v1.9.2