Commit 20902d50 authored by 李苏's avatar 李苏 💬

开发作业新增模块

parent f6ed897a
......@@ -2460,7 +2460,47 @@ export const powerRoutes = [{
},
name: 'declare',
path: "declare"
}]
},
{
component: 'spaceOperations/aqcslx/index',
hidden: false,
meta: {
"title": "安全措施类型",
"icon": "",
"noCache": false,
"link": null,
"mkid": 905005000,
},
name: 'aqcslx',
path: "aqcslx"
},
{
component: 'spaceOperations/whbslx/index',
hidden: false,
meta: {
"title": "危害辨识类型",
"icon": "",
"noCache": false,
"link": null,
"mkid": 905004000,
},
name: 'whbslx',
path: "whbslx"
},
{
component: 'spaceOperations/aqxkz/index',
hidden: false,
meta: {
"title": "安全许可证",
"icon": "",
"noCache": false,
"link": null,
"mkid":905003000,
},
name: 'aqxkz',
path: "aqxkz"
}
]
},
{
path: '/aqjkgl',
......
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<template>
<BasePage class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
name: 'aqcslx',
data() {
return {
config: {
/* 基本配置*/
url: 'aqgl/uaqcslx',
tableTitle: [{
title: "编码",
field: "code",
fieldType: "upper",
width: 140
},
{
title: "名称",
field: "name",
width: 140
},
{
title: "备注",
field: "bz",
width: 300
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '编码',
prop: 'code',
span: 6,
type: 'input',
value: ''
},
{
label: '名称',
prop: 'name',
span: 6,
type: 'input',
value: ''
}
]
],
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '申请单位',
prop: 'sqdwid',
type: 'RelSelect',
span: 12,
required:true,
"typeConfig": {
"src": "/jcsj/common/bm/queryBz",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '作业名称',
prop: 'zymc',
span: 12,
type: 'input',
required:true,
},
{
label: '作业地点',
prop: 'zydd',
span: 24,
type: 'input',
required:true,
},
{
label: '作业证编码',
prop: 'zyzbm',
span: 12,
type: 'input',
required:true,
},
{
label: '原有介质名称',
prop: 'yyjzmc',
span: 12,
type: 'input',
},
{
label: '作业开始时间',
prop: 'zykssj',
span: 12,
type: 'datetime',
required:true,
},
{
label: '作业结束时间',
prop: 'zyjssj',
span: 12,
type: 'datetime',
required:true,
},
{
label: '作业方案',
prop: 'zyfa',
span: 24,
type: 'input',
},
{
label: '特殊作业',
prop: 'qttszy',
span: 24,
type: 'input',
},
{
label: '危险辨识',
prop: 'wxbsids',
span: 12,
type: 'RelMulSelect',
"typeConfig": {
"src": "aqgl/uwhbslx/query",
"match": {
"value": "id",
"label": "name"
}
},
},
{
label: '安全措施',
prop: 'aqcsids',
span: 12,
type: 'RelMulSelect',
"typeConfig": {
"src": "aqgl/uaqcslx/query",
"match": {
"value": "id",
"label": "name"
}
},
}
]
}
}
}
</script>
<template>
<BasePage :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<AttachFileShow :app='ctx.basePage'></AttachFileShow>
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
power: {
add: true,
copy: true,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false,
},
config: {
/* 基本配置*/
url: 'aqgl/uyxkjzyaqxkz',
tableTitle: [{
title: "申请单位",
field: "sqdwid",
width: 140,
transform: {
url: '/jcsj/common/bm/queryBz',
label: 'name',
value: 'id'
},
},
{
title: "申请时间",
field: "cjsj",
fieldType: "ftDateTime"
},
{
title: "作业地点",
field: "zydd",
width: 140
},
{
title: "作业名称",
field: "zymc",
width: 140
},
{
title: "作业证编码",
field: "zyzbm",
width: 140
},
{
title: "作业内原有介质名称",
field: "yyjzmc",
width: 140
},
{
title: "作业开始时间",
field: "zykssj",
fieldType: "ftDateTime",
width: 140
},
{
title: "作业结束时间",
field: "zyjssj",
fieldType: "ftDateTime",
width: 140
},
{
title: "作业方案",
field: "zyfa",
width: 300
},
{
title: "特殊作业",
field: "qttszy",
width: 300
},
{
title: "危险辨识",
field: "whbslxName",
width: 250
},
{
title: "安全措施",
field: "aqcslxName",
width: 250
},
/* 分割*/
{
title: "维护人",
field: "whr"
},
],
queryParams: [
[{
"label": "申请单位",
"prop": "sqdwid",
"span": 4,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/bm/queryBz",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '开始时间',
prop: 'kssj',
span: 6,
type: 'datetime',
value: ''
},
{
label: '结束时间',
prop: 'jssj',
span: 6,
type: 'datetime',
value: ''
}
],
// [
// ]
],
/* 默认启停用 */
showqt: false,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<template>
<BasePage class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
name: 'whbslx',
data() {
return {
config: {
/* 基本配置*/
url: 'aqgl/uwhbslx',
tableTitle: [{
title: "编码",
field: "code",
fieldType: "upper",
width: 140
},
{
title: "名称",
field: "name",
width: 140
},
{
title: "备注",
field: "bz",
width: 300
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '编码',
prop: 'code',
span: 6,
type: 'input',
value: ''
},
{
label: '名称',
prop: 'name',
span: 6,
type: 'input',
value: ''
}
]
],
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment