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
cecda52d
Commit
cecda52d
authored
Oct 21, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1021 功能调整
parent
f2d1b927
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
518 additions
and
366 deletions
+518
-366
index.js
src/router/index.js
+107
-87
edit.vue
src/views/jyfkgl/ywsjlr/edit.vue
+203
-122
index.vue
src/views/jyfkgl/ywsjlr/index.vue
+36
-55
addbpbjmx.vue
src/views/sbjxgl/sbjxxx/addbpbjmx.vue
+7
-1
addgjmx.vue
src/views/sbjxgl/sbjxxx/addgjmx.vue
+11
-25
addhcmx.vue
src/views/sbjxgl/sbjxxx/addhcmx.vue
+13
-32
edit.vue
src/views/sbjxgl/sbjxxx/edit.vue
+113
-26
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+28
-18
No files found.
src/router/index.js
View file @
cecda52d
...
@@ -253,24 +253,6 @@ export const powerRoutes = [
...
@@ -253,24 +253,6 @@ export const powerRoutes = [
name
:
'ywsjlr'
,
name
:
'ywsjlr'
,
path
:
"ywsjlr"
,
path
:
"ywsjlr"
,
},
},
],
},
{
path
:
'/fmegl'
,
component
:
"Layout"
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'fmerwgl'
,
meta
:
{
title
:
"FME管理"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
'920060000'
},
children
:
[
/* 基础数据 */
{
{
erpComponent
:
false
,
erpComponent
:
false
,
component
:
'fmegl/fmerwgl/index'
,
component
:
'fmegl/fmerwgl/index'
,
...
@@ -280,7 +262,7 @@ export const powerRoutes = [
...
@@ -280,7 +262,7 @@ export const powerRoutes = [
"icon"
:
""
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
'9200
610
00'
,
"mkid"
:
'9200
503
00'
,
},
},
name
:
'fmerwgl'
,
name
:
'fmerwgl'
,
path
:
"fmerwgl"
,
path
:
"fmerwgl"
,
...
@@ -294,7 +276,7 @@ export const powerRoutes = [
...
@@ -294,7 +276,7 @@ export const powerRoutes = [
"icon"
:
""
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
'9200
620
00'
,
"mkid"
:
'9200
504
00'
,
},
},
name
:
'fmeglxs'
,
name
:
'fmeglxs'
,
path
:
"fmeglxs"
,
path
:
"fmeglxs"
,
...
@@ -308,59 +290,97 @@ export const powerRoutes = [
...
@@ -308,59 +290,97 @@ export const powerRoutes = [
"icon"
:
""
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
'9200
630
00'
,
"mkid"
:
'9200
505
00'
,
},
},
name
:
'fmesjhpcecfx'
,
name
:
'fmesjhpcecfx'
,
path
:
"fmesjhpcecfx"
,
path
:
"fmesjhpcecfx"
,
},
},
],
},
{
path
:
'/glqwpdj'
,
component
:
"Layout"
,
hidden
:
false
,
alwaysShow
:
false
,
redirect
:
'fmerwgl'
,
meta
:
{
title
:
"隔离区物品登记"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
'920070000'
},
children
:[]
},
{
path
:
'/yhlywsytst'
,
component
:
"Layout"
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'yhlywsytst'
,
meta
:
{
title
:
"一回路异物溯源态势图"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
'920060000'
},
children
:
[
/* 基础数据 */
{
{
erpComponent
:
false
,
erpComponent
:
false
,
component
:
'
yhlywsytst/yhlywsytst
/index'
,
component
:
'
fmegl/glqwpdj
/index'
,
hidden
:
false
,
hidden
:
false
,
meta
:
{
meta
:
{
"title"
:
"
一回路异物溯源态势图
"
,
"title"
:
"
隔离区物品登记
"
,
"icon"
:
""
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
'9200
610
00'
,
"mkid"
:
'9200
506
00'
,
},
},
name
:
'
yhlywsytst
'
,
name
:
'
glqwpdj
'
,
path
:
"
yhlywsytst
"
,
path
:
"
glqwpdj
"
,
}
}
,
],
],
},
},
// {
// path: '/fmegl',
// component: "Layout",
// hidden: false,
// alwaysShow: true,
// redirect: 'fmerwgl',
// meta: {
// title: "FME管理",
// icon: "fa-cog",
// noCache: false,
// link: null,
// mkid: '920060000'
// },
// children: [
// ],
// },
// {
// path: '/glqwpdj',
// component: "Layout",
// hidden: false,
// alwaysShow: false,
// redirect: 'fmerwgl',
// meta: {
// title: "隔离区物品登记",
// icon: "fa-cog",
// noCache: false,
// link: null,
// mkid: '920070000'
// },
// children:[]
// },
// {
// path: '/yhlywsytst',
// component: "Layout",
// hidden: false,
// alwaysShow: true,
// redirect: 'yhlywsytst',
// meta: {
// title: "一回路异物溯源态势图",
// icon: "fa-cog",
// noCache: false,
// link: null,
// mkid: '920060000'
// },
// children: [
// /* 基础数据 */
// {
// erpComponent: false,
// component: 'yhlywsytst/yhlywsytst/index',
// hidden: false,
// meta: {
// "title": "一回路异物溯源态势图",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid": '920061000',
// },
// name: 'yhlywsytst',
// path: "yhlywsytst",
// }
// ],
// },
{
{
path
:
'/sbjxgl'
,
path
:
'/sbjxgl'
,
component
:
"Layout"
,
component
:
"Layout"
,
...
@@ -376,34 +396,34 @@ export const powerRoutes = [
...
@@ -376,34 +396,34 @@ export const powerRoutes = [
},
},
children
:
[
children
:
[
/* 基础数据 */
/* 基础数据 */
{
//
{
erpComponent
:
false
,
//
erpComponent: false,
component
:
'jcxxgl/gjxx/index'
,
//
component: 'jcxxgl/gjxx/index',
hidden
:
false
,
//
hidden: false,
meta
:
{
//
meta: {
"title"
:
"工具信息"
,
//
"title": "工具信息",
"icon"
:
""
,
//
"icon": "",
"noCache"
:
false
,
//
"noCache": false,
"link"
:
null
,
//
"link": null,
"mkid"
:
'920030100'
,
//
"mkid": '920030100',
},
//
},
name
:
'gjxx'
,
//
name: 'gjxx',
path
:
"gjxx"
,
//
path: "gjxx",
},
//
},
{
//
{
erpComponent
:
false
,
//
erpComponent: false,
component
:
'jcxxgl/wlxx/index'
,
//
component: 'jcxxgl/wlxx/index',
hidden
:
false
,
//
hidden: false,
meta
:
{
//
meta: {
"title"
:
"物料信息"
,
//
"title": "物料信息",
"icon"
:
""
,
//
"icon": "",
"noCache"
:
false
,
//
"noCache": false,
"link"
:
null
,
//
"link": null,
"mkid"
:
'920030200'
,
//
"mkid": '920030200',
},
//
},
name
:
'wlxx'
,
//
name: 'wlxx',
path
:
"wlxx"
,
//
path: "wlxx",
},
//
},
{
{
erpComponent
:
false
,
erpComponent
:
false
,
component
:
'sbjxgl/sbjxxx/index'
,
component
:
'sbjxgl/sbjxxx/index'
,
...
...
src/views/jyfkgl/ywsjlr/edit.vue
View file @
cecda52d
<!--
* @Description:生成基础baseEdit组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 15:52:21
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/edit.vue
-->
<
template
>
<
template
>
<!-- prop 穿透赋值 -->
<RelDialog
@
getForm=
'getForm'
width=
"50%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<BaseEdit
v-bind=
"$attrs"
:config=
'editConfig'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<template
#
dialog=
"ctx"
>
<el-row
:gutter=
"20"
:app=
"this"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
</
template
>
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
<
template
#
toolbar=
"ctx"
>
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 嵌入默认页面从表上方插槽 ctx.editPage来操作默认页面 -->
</el-row>
<!--
<el-button
@
click=
"demo(ctx.editPage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
<el-row
:gutter=
"20"
>
<!--
<AuxButton
:dynamic=
'true'
:queryParams=
"
{
<el-form-item
label=
"异物图片"
>
sbxxTreeId:that.form.sbxxTreeId,
<el-upload
ref=
"upload"
:headers=
'
{
zt:'N'
Gtoken
}" :component='Qxsj' rename='选择缺陷数据' code='dynamic' @save="saveQxsj" /> -->
}' :action="`${baseurl}/ywxxgl/uywsjlr/attachment/upload`" list-type="picture-card"
</
template
>
:on-preview="handlePictureCardPreview" :on-success='success' :on-remove="handleRemove" :data="{
</BaseEdit>
groupid:'',
</template>
folder:'uywsjlr'
}">
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-form-item>
</el-row>
<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"
>
<div>
<el-image
:preview-src-list=
"showList.map(item=>item.url)"
style=
"width: 146.22px; height: 146.22px;margin-right: 10px;"
:src=
"item.url"
fit=
"fill"
>
</el-image>
<div
v-show=
"type=='edit'"
@
click=
'delfile(item.id,index)'
style=
"width: 146.22px;line-height: 15px;font-size: 13px;color: red;text-align: center;cursor: pointer;"
>
删除
</div>
</div>
</div>
</div>
</el-form-item>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
<
script
>
import
{
autoAttachDownload
}
from
"common/src/api/system/dmgSystem.js"
;
const
baseurl
=
process
.
env
.
VUE_APP_BASE_API
const
Gtoken
=
localStorage
.
getItem
(
'Gtoken'
)
import
{
editMixin
}
from
'common'
export
default
{
export
default
{
mixins
:
[
editMixin
],
data
()
{
data
()
{
return
{
return
{
editConfig
:
{
showList
:[],
/* 生成form表单 */
baseurl
:
baseurl
,
editColItemList
:
[{
Gtoken
:
Gtoken
,
label
:
'异物区域'
,
editColItemList
:
[{
prop
:
'ywqy'
,
label
:
'异物区域'
,
span
:
24
,
prop
:
'ywqy'
,
type
:
'input'
,
span
:
24
,
required
:
true
,
type
:
'input'
,
},
required
:
true
,
{
},
label
:
'异物是否取出'
,
{
prop
:
'ywsfqc'
,
label
:
'异物是否取出'
,
span
:
12
,
prop
:
'ywsfqc'
,
type
:
'checkbox'
,
span
:
12
,
},
type
:
'checkbox'
,
{
},
label
:
'异物发生时间'
,
{
prop
:
'ywfssj'
,
label
:
'异物发生时间'
,
span
:
12
,
prop
:
'ywfssj'
,
type
:
'datetime'
,
span
:
12
,
},
type
:
'datetime'
,
{
},
"label"
:
"检修事件"
,
{
"prop"
:
"jxsj"
,
label
:
'异物产生原因'
,
"span"
:
12
,
prop
:
'ywcsyy'
,
"type"
:
"RelSelect"
,
span
:
12
,
"value"
:
""
,
type
:
'input'
,
"typeConfig"
:
{
},
"src"
:
"ywxxgl/uywsjlr/init/ywJxsj"
,
{
"match"
:
{
label
:
'是否大修'
,
"value"
:
"id"
,
prop
:
'sfdx'
,
"label"
:
"name"
span
:
4
,
}
type
:
'checkbox'
,
}
value
:
'Y'
},
},
{
{
label
:
'异物产生原因'
,
label
:
'大修编码'
,
prop
:
'ywcsyy'
,
prop
:
'dxdm'
,
span
:
24
,
span
:
24
,
type
:
'input'
,
type
:
'input'
,
},
},
{
{
"label"
:
"异物影响后果"
,
label
:
'异物产生细节'
,
"prop"
:
"ywyxhg"
,
prop
:
'ywcsxj'
,
"span"
:
12
,
span
:
24
,
"type"
:
"RelSelect"
,
type
:
'input'
,
"value"
:
""
,
},
"typeConfig"
:
{
{
"src"
:
"ywxxgl/uywsjlr/init/ywyxhg"
,
label
:
'机组损害'
,
"match"
:
{
prop
:
'jzsh'
,
"value"
:
"id"
,
span
:
24
,
"label"
:
"name"
type
:
'checkbox'
,
}
value
:
'Y'
}
},
},
{
{
label
:
'关键路径延误时间'
,
label
:
'备注'
,
prop
:
'gjljywsj'
,
prop
:
'bz'
,
span
:
12
,
span
:
24
,
type
:
'datetime'
,
type
:
'input'
},
},
{
],
label
:
'集体计量增加量'
,
/* 生成主从表,为空数组默认不展示 */
prop
:
'jtjlzjl'
,
editTableTitle
:
[
span
:
12
,
// {
type
:
'input'
,
// title: "序号",
},
// field: "xh",
{
// width: 50,
label
:
'备注'
,
// align: "center"
prop
:
'bz'
,
// },
span
:
24
,
// {
type
:
'input'
// title: "点检部位",
}
// field: "bw",
// width: 180,
]
// },
// {
// title: "点检项目",
// field: "project",
// width: 160
// },
// {
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
/* 子表名,可选 同editTableTitle一起用*/
detailTable
:
''
}
}
}
},
},
methods
:
{
methods
:
{
/**
handleRemove
(
file
,
fileList
)
{
* @description:示例按钮
let
attachmentList
=
[]
* @param {*} ctx操作edit实例内容
fileList
.
forEach
(
item
=>
{
* @return {*}
if
(
item
.
status
==
'success'
)
{
* @author: lisu
attachmentList
.
push
(
item
.
response
.
data
.
id
)
*/
}
// demo(ctx){}
})
this
.
form
.
attachmentList
=
attachmentList
console
.
log
(
this
.
form
.
attachmentList
)
},
handlePictureCardPreview
(
file
)
{
this
.
dialogImageUrl
=
file
.
url
;
this
.
dialogVisible
=
true
;
},
success
(
res
,
file
,
fileList
)
{
if
(
res
.
success
)
{
this
.
$success
(
'上传成功'
)
/* 成功后同步fileList数据到form表单*/
let
attachmentList
=
[]
fileList
.
forEach
(
item
=>
{
if
(
item
.
status
==
'success'
)
{
attachmentList
.
push
(
item
.
response
.
data
.
id
)
}
})
this
.
form
.
attachmentList
=
attachmentList
}
else
{
const
delIndex
=
fileList
.
findIndex
(
item
=>
item
.
uid
===
file
.
uid
);
if
(
delIndex
!==
-
1
)
{
fileList
.
splice
(
delIndex
,
1
);
this
.
$error
(
res
.
message
||
'未知错误'
);
}
}
},
delfile
(
id
,
index
)
{
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'ywxxgl/uywsjlr/attachment/delete'
,
{
id
:
[
id
]
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
showList
.
splice
(
index
,
1
)
this
.
$success
(
'操作成功'
)
}
})
})
},
getForm
(
data
)
{
this
.
$post
(
'ywxxgl/uywsjlr/attachment/list'
,
{
groupid
:
data
.
id
,
}).
then
(
res
=>
{
res
.
data
.
records
.
forEach
(
item
=>
{
autoAttachDownload
({},
'ywxxgl/uywsjlr'
,
item
.
id
).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/'
+
item
.
type
+
';charset=UTF-8'
,
});
let
url
=
URL
.
createObjectURL
(
blob
)
let
uitem
=
{
url
,
id
:
item
.
id
}
this
.
showList
.
push
(
uitem
)
})
})
})
},
}
}
}
}
</
script
>
</
script
>
<
style
>
</
style
>
src/views/jyfkgl/ywsjlr/index.vue
View file @
cecda52d
...
@@ -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-
14 16:11:19
* @LastEditTime: 2024-10-
21 14:01:30
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
-->
-->
<
template
>
<
template
>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<AttachFileShow
:app=
'ctx.basePage'
></AttachFileShow>
<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>
-->
</
template
>
</
template
>
...
@@ -44,30 +44,41 @@
...
@@ -44,30 +44,41 @@
field
:
"ywfssj"
,
field
:
"ywfssj"
,
fieldType
:
"ftDateTime"
fieldType
:
"ftDateTime"
},
},
{
title
:
"检修事件"
,
field
:
"jxsj"
,
width
:
200
,
"transform"
:
{
"url"
:
"ywxxgl/uywsjlr/init/ywJxsj"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
{
title
:
"异物产生原因"
,
title
:
"异物产生原因"
,
field
:
"ywcsyy"
,
field
:
"ywcsyy"
,
width
:
300
width
:
300
},
},
{
{
title
:
"异物影响后果"
,
title
:
"是否大修"
,
field
:
"ywyxhg"
,
field
:
"sfdx"
,
fieldType
:
"checkbox"
},
{
title
:
"大修编码"
,
field
:
"dxdm"
,
width
:
300
},
{
title
:
"异物产生细节"
,
field
:
"ywcsxj"
,
width
:
300
},
{
title
:
"机组损害"
,
field
:
"jzsh"
,
fieldType
:
"checkbox"
},
{
title
:
"关键路径延误时间"
,
field
:
"gjljywsj"
,
width
:
200
,
width
:
200
,
"transform"
:
{
fieldType
:
"ftDateTime"
"url"
:
"ywxxgl/uywsjlr/init/ywyxhg"
,
},
"label"
:
"name"
,
{
"value"
:
"id"
title
:
"集体计量增加量"
,
}
field
:
"jtjlzjl"
,
width
:
120
},
},
{
{
title
:
"备注"
,
title
:
"备注"
,
...
@@ -86,42 +97,12 @@
...
@@ -86,42 +97,12 @@
],
],
queryParams
:
[
queryParams
:
[
[{
[{
label
:
'异物发生时间'
,
label
:
'异物发生时间'
,
prop
:
'ywfssj'
,
prop
:
'ywfssj'
,
span
:
6
,
span
:
6
,
type
:
'datetime'
,
type
:
'datetime'
,
value
:
''
value
:
''
},
}]
{
"label"
:
"检修事件"
,
"prop"
:
"jxsj"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsjlr/init/ywJxsj"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"影响后果"
,
"prop"
:
"ywyxhg"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsjlr/init/ywyxhg"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
]
],
],
/* 默认启停用 */
/* 默认启停用 */
...
...
src/views/sbjxgl/sbjxxx/addbpbjmx.vue
View file @
cecda52d
...
@@ -53,11 +53,17 @@
...
@@ -53,11 +53,17 @@
type
:
'input'
,
type
:
'input'
,
},
},
{
{
label
:
'
备件
规格'
,
label
:
'规格'
,
prop
:
'gg'
,
prop
:
'gg'
,
span
:
12
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
label
:
'型号'
,
prop
:
'xh'
,
span
:
12
,
type
:
'input'
,
},
{
{
label
:
'备件材质'
,
label
:
'备件材质'
,
prop
:
'cz'
,
prop
:
'cz'
,
...
...
src/views/sbjxgl/sbjxxx/addgjmx.vue
View file @
cecda52d
...
@@ -39,51 +39,37 @@
...
@@ -39,51 +39,37 @@
data
()
{
data
()
{
return
{
return
{
readonly
:
false
,
readonly
:
false
,
editColItemList
:
[{
editColItemList
:
[
{
label
:
'检修工具'
,
label
:
'检修工具'
,
prop
:
'gjxxid'
,
prop
:
'name'
,
span
:
24
,
span
:
12
,
required
:
true
,
type
:
'input'
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
false
,
dynamic
:
true
,
code
:
true
,
component
:
gjxx
,
label
:
'name'
,
transform
:
{
value
:
'id'
,
label
:
'name'
},
give
:(
row
)
=>
{
this
.
form
.
code
=
row
.
code
this
.
form
.
cz
=
row
.
cz
this
.
form
.
gg
=
row
.
gg
}
}
},
},
{
{
label
:
'工具编码'
,
label
:
'工具编码'
,
readonly
:
true
,
prop
:
'code'
,
prop
:
'code'
,
span
:
12
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
{
label
:
'材质'
,
label
:
'材质'
,
readonly
:
true
,
prop
:
'cz'
,
prop
:
'cz'
,
span
:
12
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
{
label
:
'规格型号'
,
label
:
'规格型号'
,
readonly
:
true
,
prop
:
'gg'
,
prop
:
'gg'
,
span
:
12
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
label
:
'型号'
,
prop
:
'xh'
,
span
:
12
,
type
:
'input'
,
},
]
]
...
...
src/views/sbjxgl/sbjxxx/addhcmx.vue
View file @
cecda52d
...
@@ -41,47 +41,28 @@ import wlxx from '@/views/auxinput/wlxx'
...
@@ -41,47 +41,28 @@ import wlxx from '@/views/auxinput/wlxx'
readonly
:
false
,
readonly
:
false
,
editColItemList
:
[
editColItemList
:
[
{
{
label
:
'耗材名称'
,
label
:
'耗材名称'
,
prop
:
'wlid'
,
prop
:
'name'
,
span
:
24
,
required
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
false
,
dynamic
:
true
,
code
:
true
,
component
:
wlxx
,
label
:
'name'
,
transform
:
{
value
:
'id'
,
label
:
'name'
},
give
:(
row
)
=>
{
this
.
form
.
name
=
row
.
name
this
.
form
.
cz
=
row
.
cz
this
.
form
.
gg
=
row
.
gg
}
}
},
// {
// label: '耗材名称',
// prop: 'wlxxName',
// span: 12,
// type: 'input',
// },
{
label
:
'耗材规格/型号'
,
prop
:
'gg'
,
span
:
12
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
{
label
:
'耗材材质'
,
label
:
'耗材材质'
,
prop
:
'cz'
,
prop
:
'cz'
,
span
:
12
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
label
:
'规格'
,
prop
:
'gg'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'型号'
,
prop
:
'xh'
,
}
]
]
...
...
src/views/sbjxgl/sbjxxx/edit.vue
View file @
cecda52d
...
@@ -47,19 +47,15 @@
...
@@ -47,19 +47,15 @@
<el-tab-pane
label=
"完工附件"
name=
"4"
>
<el-tab-pane
label=
"完工附件"
name=
"4"
>
<!-- 上传div-->
<!-- 上传div-->
<div
style=
"border-bottom: 1px solid #eee;padding-bottom: 20px;"
>
<div
style=
"border-bottom: 1px solid #eee;padding-bottom: 20px;"
>
<span
style=
"line-height: 40px;font-size: 1
6
px;font-weight: 700;color: #666;"
>
附件上传
</span>
<span
style=
"line-height: 40px;font-size: 1
2
px;font-weight: 700;color: #666;"
>
附件上传
</span>
<div
class=
"upload padding-10"
>
<div
class=
"upload padding-10"
>
<el-upload
<el-upload
ref=
"upload"
:headers=
'{
ref=
"upload"
:headers=
'{
Gtoken
Gtoken
}'
}'
:data=
"{
:data=
"{
groupid:'',
groupid:'',
folder:'usbjx'
folder:'usbjx'
}"
}"
class=
"upload-demo"
:action=
"`${baseurl}/jxgl/usbjx/attachment/upload`"
class=
"upload-demo"
:action=
"`${baseurl}/jxgl/usbjx/attachment/upload`"
:on-success=
'success'
:on-remove=
"handleRemove"
:on-success=
'success'
:on-remove=
"handleRemove"
:file-list=
"fileList"
>
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
</el-upload>
...
@@ -67,8 +63,28 @@
...
@@ -67,8 +63,28 @@
</div>
</div>
<div
v-if=
"type!='add'"
>
<div
v-if=
"type!='add'"
>
<span
style=
"line-height: 40px;font-size: 1
6
px;font-weight: 700;color: #666;"
>
附件列表
</span>
<span
style=
"line-height: 40px;font-size: 1
2
px;font-weight: 700;color: #666;"
>
附件列表
</span>
<div
class=
"download padding-10"
>
<div
class=
"download padding-10"
>
<div
class=
"fileList"
style=
"font-weight: 800;background-color: #666;color: #eee;"
>
<div
class=
"index"
>
序号
</div>
<div
class=
"name"
>
文件名称
</div>
<div
class=
"size"
>
文件大小
</div>
<div
class=
"down"
>
</div>
<div
class=
"del"
>
</div>
</div>
<div
v-for=
"(item,index) in downList"
:key=
"index"
class=
"fileList"
>
<div
v-for=
"(item,index) in downList"
:key=
"index"
class=
"fileList"
>
<div
class=
"index"
>
<div
class=
"index"
>
{{index+1}}
{{index+1}}
...
@@ -80,11 +96,10 @@
...
@@ -80,11 +96,10 @@
{{item.size}}
{{item.size}}
</div>
</div>
<div
class=
"down"
>
<div
class=
"down"
>
<span
style=
"color: cornflowerblue;cursor: pointer;"
>
下载
</span>
<el-button
@
click=
"download(item)"
size=
"mini"
type=
"success"
>
下载文件
</el-button>
</div>
</div>
<div
class=
"del"
>
<div
class=
"del"
>
<
span
style=
"color: red;cursor: pointer;"
>
删除
</spa
n>
<
el-button
@
click=
"delitem(item.id,index)"
size=
"mini"
type=
"danger"
>
删除文件
</el-butto
n>
</div>
</div>
</div>
</div>
...
@@ -97,7 +112,7 @@
...
@@ -97,7 +112,7 @@
</el-form>
</el-form>
<div
slot=
"reFooter"
class=
"refooter"
>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- <el-button @click="app.showDialog=false">取 消</el-button> -->
<!-- <el-button @click="app.showDialog=false">取 消</el-button> -->
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</span>
</div>
</div>
...
@@ -149,11 +164,11 @@
...
@@ -149,11 +164,11 @@
},
},
data
()
{
data
()
{
return
{
return
{
form
:{
form
:
{
attachmentList
:[]
attachmentList
:
[]
},
},
Gtoken
:
Gtoken
,
Gtoken
:
Gtoken
,
baseurl
:
baseurl
,
baseurl
:
baseurl
,
fileList
:
[],
fileList
:
[],
downList
:
[{
downList
:
[{
name
:
'测试1'
,
name
:
'测试1'
,
...
@@ -185,9 +200,12 @@
...
@@ -185,9 +200,12 @@
width
:
'260'
width
:
'260'
},
},
{
{
label
:
'规格
型号
'
,
label
:
'规格'
,
prop
:
'gg'
,
prop
:
'gg'
,
},
{
label
:
'型号'
,
prop
:
'xh'
,
}
}
],
],
editTableTitle2
:
[{
editTableTitle2
:
[{
...
@@ -217,14 +235,18 @@
...
@@ -217,14 +235,18 @@
width
:
'260'
width
:
'260'
},
},
{
{
label
:
'耗材
规格/型号
'
,
label
:
'耗材
材质
'
,
prop
:
'
gg
'
,
prop
:
'
cz
'
,
width
:
'260'
width
:
'260'
},
},
{
{
label
:
'
耗材材质
'
,
label
:
'
规格
'
,
prop
:
'
cz
'
,
prop
:
'
gg
'
,
width
:
'260'
width
:
'260'
},
{
label
:
'型号'
,
prop
:
'xh'
,
}
}
],
],
editTableData1
:
[],
editTableData1
:
[],
...
@@ -301,6 +323,26 @@
...
@@ -301,6 +323,26 @@
}
}
},
},
methods
:
{
methods
:
{
download
(
item
){
let
url
=
`jxgl/usbjx/attachment/download/
${
item
.
id
}
`
this
.
$cDownload
(
url
,
{},
item
.
name
)
},
delitem
(
id
,
index
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$post
(
'jxgl/usbjx/attachment/delete'
,
{
id
:
[
id
]
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
downList
.
splice
(
index
,
1
)
this
.
$success
(
'操作成功'
)
}
})
})
},
handleRemove
(
file
,
fileList
)
{
handleRemove
(
file
,
fileList
)
{
let
attachmentList
=
[]
let
attachmentList
=
[]
fileList
.
forEach
(
item
=>
{
fileList
.
forEach
(
item
=>
{
...
@@ -312,7 +354,7 @@
...
@@ -312,7 +354,7 @@
},
},
success
(
res
,
file
,
fileList
)
{
success
(
res
,
file
,
fileList
)
{
console
.
log
(
res
,
'asdasdas'
)
console
.
log
(
res
,
'asdasdas'
)
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'上传成功'
)
this
.
$success
(
'上传成功'
)
...
@@ -405,9 +447,53 @@
...
@@ -405,9 +447,53 @@
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'添加成功'
)
this
.
$success
(
'添加成功'
)
this
.
$refs
.
reldialog
.
closeAll
()
this
.
$refs
.
reldialog
.
closeAll
()
this
.
app
.
refresh
()
let
newData
=
this
.
form
this
.
app
.
$refs
.
TablePager
.
tableData
.
unshift
(
newData
)
/* 总数据++ */
this
.
app
.
$refs
.
TablePager
.
total
+=
1
/* 选中当前行 */
this
.
app
.
$refs
.
TablePager
.
setCurrent
(
newData
)
}
}
})
})
}
else
if
(
this
.
type
==
'edit'
){
let
params
=
{
details
:
[{
id
:
'U_JXGJ'
,
records
:
[...
this
.
editTableData1
]
||
[]
},
{
id
:
'U_JXWL'
,
records
:
[...
this
.
editTableData3
]
||
[]
},
{
id
:
'U_BPBJ'
,
records
:
[...
this
.
editTableData2
]
||
[]
}
],
master
:
this
.
form
}
this
.
$post
(
'jxgl/usbjx/update'
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'修改成功'
)
this
.
$refs
.
reldialog
.
closeAll
()
let
nowIndex
=
false
let
tableData
=
this
.
app
.
$refs
[
'TablePager'
].
tableData
tableData
.
forEach
((
data
,
index
)
=>
{
if
(
data
.
id
==
params
.
master
.
id
)
{
nowIndex
=
index
}
})
if
(
nowIndex
!==
false
)
{
this
.
app
.
$refs
[
'TablePager'
].
tableData
.
splice
(
nowIndex
,
1
,
params
.
master
)
this
.
app
.
$refs
[
'TablePager'
].
setCurrent
(
params
.
master
)
}
}
})
}
}
...
@@ -462,6 +548,7 @@
...
@@ -462,6 +548,7 @@
width
:
100%
;
width
:
100%
;
border-bottom
:
1px
solid
#eee
;
border-bottom
:
1px
solid
#eee
;
text-align
:
center
;
text-align
:
center
;
font-size
:
12px
;
.index
{
.index
{
width
:
5%
;
width
:
5%
;
...
...
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
cecda52d
...
@@ -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-10-
18 12:26:53
* @LastEditTime: 2024-10-
21 15:29:58
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
-->
-->
<
template
>
<
template
>
...
@@ -16,43 +16,49 @@
...
@@ -16,43 +16,49 @@
<!-- 视角工具栏-->
<!-- 视角工具栏-->
<div
class=
"toolButton"
>
<div
class=
"toolButton"
>
<div
class=
"flex1 text-center"
>
<div
class=
"flex1 text-center"
>
<div
class=
"menu"
><router-link
to=
"/jyfkgl/jyfkgl"
>
<div
class=
"menu"
>
经验反馈信息
<span
style=
"cursor: pointer;"
@
click=
"toFullPage('jyfkgl/jyfkgl')"
>
</router-link></div>
经验反馈信息
</span>
</div>
</div>
</div>
<div
class=
"flex1 text-center"
>
<div
class=
"flex1 text-center"
>
<div
class=
"menu"
>
<div
class=
"menu"
>
<router-link
to=
"/sbjxgl/gjxx"
>
基础数据
<span
style=
"cursor: pointer;"
@
click=
"toFullPage('sbjxgl/gjxx')"
>
</router-link>
基础数据
</span>
</div>
</div>
</div>
</div>
<div
class=
"flex1 text-center"
>
<div
class=
"flex1 text-center"
>
<div
class=
"menu"
>
<div
class=
"menu"
>
<
router-link
to=
"/system/menuManage
"
>
<
span
style=
"cursor: pointer;"
@
click=
"toFullPage('system/menuManage')
"
>
系统管理
系统管理
</
router-link
>
</
span
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"toolButton2"
>
<div
class=
"toolButton2"
>
<div
class=
"flex1 text-center"
>
<div
class=
"flex1 text-center"
>
<div
class=
"menu"
>
<
router-link
to=
"/sbxxgl/sbxx
"
>
<div
class=
"menu"
>
<
span
style=
"cursor: pointer;"
@
click=
"toFullPage('sbxxgl/sbxx')
"
>
设备信息
设备信息
</
router-link
>
</
span
>
</div>
</div>
</div>
</div>
<div
class=
"flex1 text-center"
>
<div
class=
"flex1 text-center"
>
<div
class=
"menu"
>
<div
class=
"menu"
>
<
router-link
to=
"/sbjxgl/sbjxxx
"
>
<
span
style=
"cursor: pointer;"
@
click=
"toFullPage('sbjxgl/sbjxxx')
"
>
设备检修信息
设备检修信息
</router-link
>
</span
>
</div>
</div>
</div>
</div>
<div
class=
"flex1 text-center"
>
<div
class=
"flex1 text-center"
>
<div
class=
"menu"
>
<router-link
to=
"/ywxxgl/ywxxgl"
>
<div
class=
"menu"
>
异物信息
<span
style=
"cursor: pointer;"
@
click=
"toFullPage('ywxxgl/ywxxgl')"
>
</router-link>
异物信息
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -681,6 +687,10 @@
...
@@ -681,6 +687,10 @@
}
}
},
},
methods
:
{
methods
:
{
toFullPage
(
hash
)
{
const
url
=
`
${
location
.
origin
}
/#/
${
hash
}
`
window
.
open
(
url
,
'_blank'
);
// 第二个参数 '_blank' 表示在新窗口或标签页中打开
},
kshZtChange
(
va
){
kshZtChange
(
va
){
if
(
!
va
){
if
(
!
va
){
this
.
sypcQueryParams
.
byZts
=
''
this
.
sypcQueryParams
.
byZts
=
''
...
...
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