Commit ba782a13 authored by 李苏's avatar 李苏 💬

非常规作业单维护

parent 6a9be9f7
......@@ -781,6 +781,19 @@ export const powerRoutes=[
name:'nrtm',
path:"nrtm"
},
{
component:'daily/fcgzysqd/index',
hidden:false,
meta:{
"title": "非常规作业申请单",
"icon": "",
"noCache": false,
"link": null,
"mkid":905100500,
},
name:'fcgzysqd',
path:"fcgzysqd"
},
{
component:'daily/nros/index',
hidden:false,
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</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: 'gsid',
type: 'RelSelect',
span: 8,
"typeConfig": {
"src": "jcsj/common/bm/queryGs",
"match": {
"value": "id",
"label": "bmmc"
},
change:(row)=>{
this.form.pid=row.id
}
}
},
{
required: true,
label: '部门',
prop: 'bmid',
type: 'RelSelect',
span: 8,
"typeConfig": {
"src": "jcsj/common/bm/queryBz",
"match": {
"value": "id",
"label": "name"
},
linkage:true,
linkParams: ['pid'],
}
},
{
required: true,
label: '作业类型',
prop: 'ufcgzylxid',
span: 8,
type: 'RelSelect',
"typeConfig": {
"src": "aqgl/rcgl/ufcgzylx/query",
"match": {
"value": "id",
"label": "name"
}
},
},
{
required: true,
label: '作业内容',
prop: 'zynr',
span: 24,
type: 'textarea'
},
{
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 {
data() {
return {
config: {
/* 基本配置*/
url: 'aqgl/rcgl/uwhfcgzyqd',
tableTitle: [{
title: "单号",
field: "dh",
fieldType: "upper",
width: 140
},
{
title: "公司",
field: "gsName",
width: 140
},
{
title: "部门",
field: "bmName",
width: 140
},
{
title: "非常规作业类型",
field: "fcgzylxName",
width: 140
},
{
title: "作业内容",
field: "zynr",
width: 250
},
{
title: "备注",
field: "bz",
width: 250
},
{
title: "维护人",
field: "whr"
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '单号',
prop: 'dh',
span: 6,
type: 'input',
value: ''
},
{
"label": "作业类型",
"prop": "ufcgzylxid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "aqgl/rcgl/ufcgzylx/query",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "部门",
"prop": "bmid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/bm/queryBz",
"match": {
"value": "id",
"label": "name"
}
}
},
]
],
/* 默认启停用 */
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>
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