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

调整

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