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

调整

parent 6be14290
......@@ -234,7 +234,7 @@ export const powerRoutes = [
"icon": "",
"noCache": false,
"link": null,
"mkid": '920050100',
"mkid": '920050200',
},
name: 'ywxxgl',
path: "ywxxgl",
......@@ -248,7 +248,7 @@ export const powerRoutes = [
"icon": "",
"noCache": false,
"link": null,
"mkid": '920050200',
"mkid": '920050100',
},
name: 'ywsjlr',
path: "ywsjlr",
......
<template>
<RelDialog :changeAddParams='changeAddParams' :changeEditParams='changeEditParams' @getForm='getForm'
width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form style="height: 70vh;overflow: auto;overflow-x: hidden;" slot="form" ref="form" :model="form" label-width="120px" :rules="rules">
<RelDialog :changeAddParams='changeAddParams' :changeEditParams='changeEditParams' @getForm='getForm' width="50%"
:type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form style="height: 70vh;overflow: auto;overflow-x: hidden;" slot="form" ref="form" :model="form"
label-width="140px" :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"
......@@ -44,6 +44,7 @@
</RelDialog>
</template>
<script>
import sbxx from '@/views/auxinput/sbxx'
import {
autoAttachDownload
} from "common/src/api/system/dmgSystem.js";
......@@ -57,107 +58,266 @@
data() {
return {
attachmentList:[],
showList:[],
attachmentList: [],
showList: [],
baseurl: baseurl,
Gtoken: Gtoken,
editColItemList: [{
label: '异物区域',
prop: 'ywqy',
span: 24,
type: 'input',
"label": "功能位置",
"prop": "gnwz",
"span": 12,
"type": "AuxInput",
typeConfig: {
isRequest: false,
dynamic: true,
code: true,
component: sbxx,
label: 'gnwz',
transform: {
value: 'id',
label: 'name'
},
give(res) {
this.form.gnwz = res.code
}
},
required: true,
},
{
label: '异物是否取出',
prop: 'ywsfqc',
span: 12,
type: 'checkbox',
"label": "异物发现时间",
"prop": "ywfxsj",
"span": 12,
"type": "date",
required: true,
},
{
label: '异物发生时间',
prop: 'ywfssj',
span: 12,
type: 'datetime',
"label": "机组号",
"prop": "jzh",
"span": 12,
"type": "input",
required: true,
},
{
label: '异物产生原因',
prop: 'ywcsyy',
span: 12,
type: 'input',
"label": "事件描述",
"prop": "sjms",
"span": 24,
"type": "input" // 假设为普通文本输入,如果需要多行文本,请替换为'textarea'
},
{
label: '是否大修',
prop: 'sfdx',
span: 4,
type: 'checkbox',
value: 'Y'
"label": "通知单号",
"prop": "tzdh",
"span": 12,
"type": "input"
},
{
label: '大修编码',
prop: 'dxdm',
span: 24,
type: 'input',
"label": "分类",
"prop": "fl",
"span": 12,
required: true,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "yhlywpc/uywxx/init/fl",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '异物产生细节',
prop: 'ywcsxj',
span: 24,
type: 'input',
"label": "异物是否取出",
"prop": "ywsfqc",
"span": 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '机组损害',
prop: 'jzsh',
span: 24,
type: 'checkbox',
value: 'Y'
"label": "FME分级",
"prop": "fmefj",
required: true,
"span": 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "yhlywpc/uywxx/init/fme/fj",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "是否关闭",
"prop": "sfgb",
"span": 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '关键路径延误时间',
prop: 'gjljywsj',
span: 12,
type: 'datetime',
"label": "责任专业",
"prop": "zrzy",
required: true,
"span": 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "yhlywpc/uywxx/init/zrzy",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '集体计量增加量',
prop: 'jtjlzjl',
span: 12,
type: 'input',
"label": "期间",
"prop": "qj",
"span": 12,
"type": "input"
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
"label": "完整性",
"prop": "wzx",
"span": 12,
"type": "RelSelect",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "IOE",
"prop": "ioe",
"span": 12,
"type": "RelSelect",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "是否一回路或二次侧",
"prop": "sfyhlhecc",
"span": 12,
"type": "RelSelect",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "异物事件单是否签字",
"prop": "ywsjdsfqz",
"span": 12,
"type": "RelSelect",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "SAP任务是否关闭",
"prop": "saprwsfgb",
"span": 12,
"type": "RelSelect",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "SAP通知单是否关闭",
"prop": "saptzdsfgb",
"span": 12,
"type": "RelSelect",
"typeConfig": {
hasValue:false,
clearable:true,
"src": "yhlywpc/uywxx/init/istrue",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "备注",
"prop": "bz",
"span": 24,
"type": "input" // 假设为普通文本输入,根据实际需求可以调整
}
]
}
},
methods: {
changeEditParams(params){
let attachments=[]
this.attachmentList.forEach(item=>{
changeEditParams(params) {
let attachments = []
this.attachmentList.forEach(item => {
attachments.push({
id:item
id: item
})
})
this.showList.forEach(item=>{
this.showList.forEach(item => {
attachments.push({
id:item.id
id: item.id
})
})
params.attachments=attachments
params.attachments = attachments
},
changeAddParams(params){
let attachments=[]
this.attachmentList.forEach(item=>{
changeAddParams(params) {
let attachments = []
this.attachmentList.forEach(item => {
attachments.push({
id:item
id: item
})
})
params.attachments=attachments
params.attachments = attachments
},
handleRemove(file, fileList) {
......@@ -207,11 +367,11 @@
})
},
getForm(data) {
this.$post('ywxxgl/uywsjlr/attachment/list', {
this.$post('yhlywpc/uywxx/attachment/list', {
groupid: data.id,
}).then(res => {
res.data.records.forEach(item => {
autoAttachDownload({}, 'ywxxgl/uywsjlr', item.id).then(res => {
autoAttachDownload({}, 'yhlywpc/uywxx', item.id).then(res => {
let blob = new Blob([res], {
type: 'application/' + item.type + ';charset=UTF-8',
});
......
......@@ -3,18 +3,18 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-22 10:07:54
* @LastEditTime: 2025-01-03 18:00:32
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
-->
<template>
<BasePage :power='power' class="min_full" :config="config">
<BasePage class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- <AttachFileShow :app='ctx.basePage'></AttachFileShow> -->
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'yhlywpc/uywxx/import'" />
</template>
</BasePage>
......@@ -23,99 +23,184 @@
<script>
import Edit from './edit.vue'
export default {
name: 'ywsjlr',
name: 'ywsjgl',
data() {
return {
power: {
add: true,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'ywxxgl/uywsjlr',
tableTitle: [{
title: "异物区域",
field: "ywqy",
width: 300
url: 'yhlywpc/uywxx',
tableTitle: [
{
label: "功能位置",
prop: "gnwz",
fieldType: "ftString",
width: 180
},
{
label: "年度",
prop: "year",
width: 100
},
{
title: "异物是否取出",
field: "ywsfqc",
fieldType: "checkbox"
label: "月份",
prop: "month",
width: 100
},
{
title: "异物发生时间",
field: "ywfssj",
label: "异物发现时间",
prop: "ywfxsj",
fieldType: "ftDateTime"
},
{
title: "异物产生原因",
field: "ywcsyy",
label: "机组号",
prop: "jzh",
width: 190
},
{
label: "事件描述",
prop: "sjms",
width: 300
},
{
title: "是否大修",
field: "sfdx",
fieldType: "checkbox"
label: "通知单号",
prop: "tzdh",
width: 190
},
{
title: "大修编码",
field: "dxdm",
width: 300
label: "分类",
prop: "fl",
"transform": {
"url": "yhlywpc/uywxx/init/fl",
"label": "name",
"value": "id"
},
width: 192
},
{
title: "异物产生细节",
field: "ywcsxj",
width: 300
label: "异物是否取出",
prop: "ywsfqc",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 100
},
{
title: "机组损害",
field: "jzsh",
fieldType: "checkbox"
label: "FME分级",
prop: "fmefj",
"transform": {
"url": "yhlywpc/uywxx/init/fme/fj",
"label": "name",
"value": "id"
},
width: 192
},
{
title: "关键路径延误时间",
field: "gjljywsj",
width: 200,
fieldType: "ftDateTime"
label: "是否关闭",
prop: "sfgb",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 100
},
{
title: "集体计量增加量",
field: "jtjlzjl",
width: 120
label: "责任专业",
prop: "zrzy",
"transform": {
"url": "yhlywpc/uywxx/init/zrzy",
"label": "name",
"value": "id"
},
width: 192
},
{
title: "备注",
field: "bz",
width: 300
label: "期间",
prop: "qj",
fieldType: "ftString",
width: 192
},
{
label: "完整性",
prop: "wzx",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 80
},
{
label: "IOE",
prop: "ioe",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 80
},
{
title: "维护人",
field: "whr"
label: "是否一回路或二次侧",
prop: "sfyhlhecc",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 80
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
label: "异物事件单是否签字",
prop: "ywsjdsfqz",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 80
},
{
label: "SAP任务是否关闭",
prop: "saprwsfgb",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 80
},
{
label: "SAP通知单是否关闭",
prop: "saptzdsfgb",
"transform": {
"url": "yhlywpc/uywxx/init/istrue",
"label": "name",
"value": "id"
},
width: 80
},
{
label: "备注",
prop: "bz",
width: 200
}
],
queryParams: [
[{
label: '异物发生时间',
prop: 'ywfssj',
label: '事件描述',
prop: 'sjms',
span: 6,
type: 'datetime',
type: 'input',
value: ''
}]
],
......
......@@ -2,7 +2,7 @@
* @Description:
* @Author: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-12-27 10:36:43
* @LastEditTime: 2024-12-27 10:43:36
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
-->
<template>
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 17:50:09
* @LastEditTime: 2025-01-03 17:38:02
* @FilePath: /zghywpc-vue/src/views/ywxxgl/ywsjgl/index.vue
-->
<template>
......
......@@ -123,7 +123,7 @@
span: 12,
"type": "RelSelect",
"typeConfig": {
"src": "ywxxgl/uywxx/init/ldtx",
"src": "ywxxgl/uywpclsjl/init/ldtx",
"match": {
"value": "id",
"label": "name"
......
......@@ -6,7 +6,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'jywxxgl/uywxx/import'" />
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'jywxxgl/uywpclsjl/import'" />
</template>
</BasePage>
......@@ -20,7 +20,7 @@
return {
config: {
/* 基本配置*/
url: 'ywxxgl/uywxx',
url: 'ywxxgl/uywpclsjl',
tableTitle: [{
label: "名称",
prop: "name",
......@@ -32,7 +32,7 @@
prop: "ldtx",
width: 120,
transform: {
"url": "ywxxgl/uywxx/init/ldtx",
"url": "ywxxgl/uywpclsjl/init/ldtx",
"label": "name",
"value": "id"
}
......
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