Commit 737b3f9a authored by 李苏's avatar 李苏 💬

zrdw调整

parent 7b934f10
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<el-form style="height: 70vh;overflow: auto;overflow-x: hidden;" slot="form" ref="form" :model="form" <el-form style="height: 70vh;overflow: auto;overflow-x: hidden;" slot="form" ref="form" :model="form"
label-width="140px" :rules="rules"> label-width="140px" :rules="rules">
<el-row :gutter="20" :app="this"> <el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
<EditColItem v-if='item.show!==false' :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" 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" /> :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row> </el-row>
...@@ -215,13 +216,23 @@ ...@@ -215,13 +216,23 @@
} }
} }
}, },
{
"label": "其他责任单位",
"prop": "isqtzrdw",
// required: true,
"span": 12,
"type": "checkbox",
"value": "N",
},
{ {
"label": "责任单位", "label": "责任单位",
"prop": "zrdw", "prop": "zrdw",
required: true, // required: true,
"span": 12, "span": 12,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
show:true,
"typeConfig": { "typeConfig": {
clearable:true, clearable:true,
"src": "sbgl/zdrw/query", "src": "sbgl/zdrw/query",
...@@ -231,14 +242,14 @@ ...@@ -231,14 +242,14 @@
} }
} }
}, },
// { {
// "label": "责任单位(其他)", "label": "责任单位(其他)",
// "prop": "zrdwName", "prop": "zrdwname",
// required: true, show:false,
// "span": 12, "span": 12,
// "type": "input", "type": "input",
// "value": "", "value": "",
// }, },
// { // {
// "label": "期间", // "label": "期间",
// "prop": "qj", // "prop": "qj",
...@@ -442,6 +453,23 @@ ...@@ -442,6 +453,23 @@
] ]
} }
}, },
computed:{
isqtzrdw(){
return this.form.isqtzrdw
}
},
watch:{
isqtzrdw(val){
if(val!=='N'){
this.editColItemList[12].show=false
this.editColItemList[13].show=true
}else{
this.editColItemList[12].show=true
this.editColItemList[13].show=false
}
}
},
methods: { methods: {
changeEditParams(params) { changeEditParams(params) {
let attachments = [] let attachments = []
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2025-07-24 16:20:18 * @LastEditTime: 2025-07-24 17:36:41
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue * @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
--> -->
<template> <template>
...@@ -30,19 +30,23 @@ ...@@ -30,19 +30,23 @@
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'yhlywpc/uywxx', url: 'yhlywpc/uywxx',
tableTitle: [ tableTitle: [{
{ fixed: 'left',
fixed:'left',
label: "机组号", label: "机组号",
prop: "jzh", prop: "jzh",
width: 190 width: 190
}, },
{ {
fixed:'left', fixed: 'left',
label: "责任单位", label: "责任单位",
prop: "zrdwname", prop: "zrdw",
formatter(a,b,v){
return v||b.zrdwname
},
width: 100 width: 100
}, },
{ {
label: "功能位置", label: "功能位置",
prop: "gnwz", prop: "gnwz",
...@@ -270,14 +274,13 @@ ...@@ -270,14 +274,13 @@
} }
], ],
queryParams: [ queryParams: [
[ [{
{
label: '是否关闭', label: '是否关闭',
prop: 'sfgb', prop: 'sfgb',
span: 6, span: 6,
type: 'RelSelect', type: 'RelSelect',
typeConfig:{ typeConfig: {
src:'yhlywpc/uywxx/init/istrue' src: 'yhlywpc/uywxx/init/istrue'
}, },
value: '' value: ''
}, },
...@@ -286,8 +289,8 @@ ...@@ -286,8 +289,8 @@
prop: 'fmefj', prop: 'fmefj',
span: 6, span: 6,
type: 'RelSelect', type: 'RelSelect',
typeConfig:{ typeConfig: {
src:'yhlywpc/uywxx/init/fme/fj' src: 'yhlywpc/uywxx/init/fme/fj'
}, },
value: '' value: ''
}, },
...@@ -303,12 +306,12 @@ ...@@ -303,12 +306,12 @@
prop: 'month', prop: 'month',
span: 6, span: 6,
type: 'RelSelect', type: 'RelSelect',
typeConfig:{ typeConfig: {
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
}, },
optionsData:[{ optionsData: [{
id: 1, id: 1,
name: "一月份" name: "一月份"
}, },
...@@ -400,8 +403,7 @@ ...@@ -400,8 +403,7 @@
], ],
[ [{
{
label: '机组号', label: '机组号',
prop: 'jzh', prop: 'jzh',
span: 6, span: 6,
......
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