Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
c8f1e735
Commit
c8f1e735
authored
Jan 03, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
6be14290
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
388 additions
and
143 deletions
+388
-143
index.js
src/router/index.js
+2
-2
edit.vue
src/views/jyfkgl/ywsjlr/edit.vue
+230
-70
index.vue
src/views/jyfkgl/ywsjlr/index.vue
+150
-65
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+1
-1
index.vue
src/views/ywxxgl/ywsjgl/index.vue
+1
-1
edit.vue
src/views/ywxxgl/ywxxgl/edit.vue
+1
-1
index.vue
src/views/ywxxgl/ywxxgl/index.vue
+3
-3
No files found.
src/router/index.js
View file @
c8f1e735
...
...
@@ -234,7 +234,7 @@ export const powerRoutes = [
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920050
1
00'
,
"mkid"
:
'920050
2
00'
,
},
name
:
'ywxxgl'
,
path
:
"ywxxgl"
,
...
...
@@ -248,7 +248,7 @@ export const powerRoutes = [
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920050
2
00'
,
"mkid"
:
'920050
1
00'
,
},
name
:
'ywsjlr'
,
path
:
"ywsjlr"
,
...
...
src/views/jyfkgl/ywsjlr/edit.vue
View file @
c8f1e735
<
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=
"12
0px"
: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=
"14
0px"
: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-row
v-if=
"type!='view'"
:gutter=
"20"
>
<el-row
v-if=
"type!='view'"
:gutter=
"20"
>
<el-form-item
label=
"异物图片"
>
<el-upload
ref=
"upload"
:headers=
'
{
Gtoken
...
...
@@ -22,7 +22,7 @@
</el-upload>
</el-form-item>
</el-row>
<el-row
v-if=
"showList.length!=0"
>
<el-row
v-if=
"showList.length!=0"
>
<el-form-item
label=
"已上传附件"
>
<div
class=
"demo-image"
>
<div
style=
"display: inline-block;"
v-for=
"(item,index) in showList"
:key=
"item.id"
>
...
...
@@ -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
:
'gjljywsj'
,
span
:
12
,
type
:
'datetime'
,
"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
:
'jtjlzjl'
,
span
:
12
,
type
:
'input'
,
"label"
:
"责任专业"
,
"prop"
:
"zrzy"
,
required
:
true
,
"span"
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"yhlywpc/uywxx/init/zrzy"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
"label"
:
"期间"
,
"prop"
:
"qj"
,
"span"
:
12
,
"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
)
{
...
...
@@ -202,16 +362,16 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
showList
.
splice
(
index
,
1
)
this
.
showList
.
splice
(
index
,
1
)
})
},
getForm
(
data
)
{
this
.
$post
(
'y
wxxgl/uywsjlr
/attachment/list'
,
{
this
.
$post
(
'y
hlywpc/uywxx
/attachment/list'
,
{
groupid
:
data
.
id
,
}).
then
(
res
=>
{
res
.
data
.
records
.
forEach
(
item
=>
{
autoAttachDownload
({},
'y
wxxgl/uywsjlr
'
,
item
.
id
).
then
(
res
=>
{
autoAttachDownload
({},
'y
hlywpc/uywxx
'
,
item
.
id
).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/'
+
item
.
type
+
';charset=UTF-8'
,
});
...
...
src/views/jyfkgl/ywsjlr/index.vue
View file @
c8f1e735
...
...
@@ -3,18 +3,18 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 202
4-10-22 10:07:54
* @LastEditTime: 202
5-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,103 +23,188 @@
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
name
:
'ywsj
lr
'
,
name
:
'ywsj
gl
'
,
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
},
{
title
:
"异物是否取出
"
,
field
:
"ywsfqc
"
,
fieldType
:
"checkbox"
label
:
"年度
"
,
prop
:
"year
"
,
width
:
100
},
{
title
:
"异物发生时间"
,
field
:
"ywfssj"
,
label
:
"月份"
,
prop
:
"month"
,
width
:
100
},
{
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
},
{
title
:
"维护人"
,
field
:
"whr"
label
:
"完整性"
,
prop
:
"wzx"
,
"transform"
:
{
"url"
:
"yhlywpc/uywxx/init/istrue"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
80
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
label
:
"IOE"
,
prop
:
"ioe"
,
"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
:
[
[{
label
:
'异物发生时间
'
,
prop
:
'ywfssj
'
,
span
:
6
,
type
:
'datetime
'
,
value
:
''
}]
label
:
'事件描述
'
,
prop
:
'sjms
'
,
span
:
6
,
type
:
'input
'
,
value
:
''
}]
],
/* 默认启停用
*/
/* 默认启停用 */
}
}
...
...
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
c8f1e735
...
...
@@ -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
>
...
...
src/views/ywxxgl/ywsjgl/index.vue
View file @
c8f1e735
...
...
@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 202
4-10-29 17:50:09
* @LastEditTime: 202
5-01-03 17:38:02
* @FilePath: /zghywpc-vue/src/views/ywxxgl/ywsjgl/index.vue
-->
<
template
>
...
...
src/views/ywxxgl/ywxxgl/edit.vue
View file @
c8f1e735
...
...
@@ -123,7 +123,7 @@
span
:
12
,
"type"
:
"RelSelect"
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uyw
xx
/init/ldtx"
,
"src"
:
"ywxxgl/uyw
pclsjl
/init/ldtx"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
...
...
src/views/ywxxgl/ywxxgl/index.vue
View file @
c8f1e735
...
...
@@ -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/uyw
xx
/import'" />
<ImportButton
@
success=
"()=>
{ctx.basePage.refresh()}" :url="'jywxxgl/uyw
pclsjl
/import'" />
</
template
>
</BasePage>
...
...
@@ -20,7 +20,7 @@
return
{
config
:
{
/* 基本配置*/
url
:
'ywxxgl/uyw
xx
'
,
url
:
'ywxxgl/uyw
pclsjl
'
,
tableTitle
:
[{
label
:
"名称"
,
prop
:
"name"
,
...
...
@@ -32,7 +32,7 @@
prop
:
"ldtx"
,
width
:
120
,
transform
:
{
"url"
:
"ywxxgl/uyw
xx
/init/ldtx"
,
"url"
:
"ywxxgl/uyw
pclsjl
/init/ldtx"
,
"label"
:
"name"
,
"value"
:
"id"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment