Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-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
李苏
sgaqgl-vue
Commits
b4f26974
Commit
b4f26974
authored
Nov 19, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患整改
parent
29dca19d
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
491 additions
and
480 deletions
+491
-480
edit.vue
...views/dangerManagement/dangerRectificationRecord/edit.vue
+55
-32
index.vue
...iews/dangerManagement/dangerRectificationRecord/index.vue
+63
-31
edit.vue
src/views/dangerManagement/dangerReviewRecord/edit.vue
+54
-118
index.vue
src/views/dangerManagement/dangerReviewRecord/index.vue
+67
-41
edit.vue
src/views/dangerManagement/enterSafetyRecords/edit.vue
+14
-10
index.vue
src/views/dangerManagement/enterSafetyRecords/index.vue
+7
-5
edit.vue
src/views/dangerManagement/queryDangerRecords/edit.vue
+56
-115
index.vue
src/views/dangerManagement/queryDangerRecords/index.vue
+75
-44
edit.vue
src/views/dangerManagement/safetyDisposalRecord/edit.vue
+45
-35
index.vue
src/views/dangerManagement/safetyDisposalRecord/index.vue
+55
-49
No files found.
src/views/dangerManagement/dangerRectificationRecord/edit.vue
View file @
b4f26974
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"
8
0px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"
10
0px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"发现日期"
ref=
"fxrq"
prop=
"fxrq"
>
...
...
@@ -14,46 +14,64 @@
<el-form-item
label=
"风险点"
ref=
"fxd"
prop=
"fxd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
24
"
>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"隐患地点"
ref=
"yhdd"
prop=
"yhdd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yhdd"
></el-input>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"上报级别"
ref=
"sbjb"
prop=
"sbjb"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'/aqgl/fxyk/fxpc/init/glcj'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.sbjb' >
</RelSelect>
</el-form-item>
</el-col>
-->
<el-col
:span=
"12"
>
<el-form-item
label=
"
上报人"
ref=
"sbjb"
prop=
"sbjb
"
>
<personSelector
:label=
"form.sbrName||'暂无'"
@
selected=
'sbrSelected'
></personSelector
>
<el-form-item
label=
"
隐患类型"
ref=
"flid"
prop=
"flid
"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
src=
'aqgl/yhgl/yhfl/query'
:match=
"
{value:'id',label:'name'}" v-model='form.flid' >
</RelSelect
>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryBz'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"dj"
prop=
"dj"
>
<RelSelect
style=
'width: 100%;'
src=
'aqgl/fxyk/fxpc/init/wxdj'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.dj' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryBz'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"隐患内容"
ref=
"nr"
prop=
"nr"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.nr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr"
>
<personSelector
:label=
"form.zrrName||'暂无'"
@
selected=
'zrrSelected'
></personSelector>
<el-col
:span=
"24"
>
<el-form-item
label=
"整改措施"
ref=
"zgfa"
prop=
"zgfa"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.zgfa"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"管控措施"
ref=
"gkcs"
prop=
"gkcs"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.gkcs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"整改说明"
ref=
"clff"
prop=
"clff"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.clff"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"dj"
prop=
"dj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.dj"
></el-input>
<el-form-item
label=
"整改完成日期"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"
隐患分类"
ref=
"flid"
prop=
"flid
"
>
<RelSelect
style=
'width:100%'
src=
'aqgl/yhgl/yhfl/query'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.flid' >
</RelSelect
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.flid"
></el-input>
--
>
<el-form-item
label=
"
上报人"
ref=
"sbr"
prop=
"sbr
"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
--
>
<personSelector
:label=
"form.sbrName||'暂无'"
@
selected=
'sbrSelected'
></personSelector
>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
...
...
@@ -71,8 +89,9 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
this
.
form
.
sbr
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
sbrName
=
localStorage
.
getItem
(
'username'
)
/* 赋值*/
this
.
form
.
sbr
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
sbrName
=
localStorage
.
getItem
(
'username'
)
},
/* 组件名称*/
name
:
"aqgl/yhglYhjlEdit"
,
...
...
@@ -81,11 +100,18 @@
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
sbr
:
""
,
clff
:
''
,
sbr
:
''
,
sbrName
:
''
,
gkcs
:
''
,
zgfa
:
''
,
zrrName
:
''
,
id
:
''
,
...
...
@@ -110,7 +136,7 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
(),
clsj
:
new
Date
().
getTime
(),
clff
:
''
,
...
...
@@ -171,12 +197,9 @@
}
},
methods
:
{
sbrSelected
(
row
){
sbrSelected
(
row
){
this
.
form
.
sbr
=
row
.
id
},
zrrSelected
(
row
){
this
.
form
.
zrr
=
row
.
id
}
}
}
}
</
script
>
...
...
src/views/dangerManagement/dangerRectificationRecord/index.vue
View file @
b4f26974
<
template
>
<div
class=
"min_full"
>
<Zgwc
:app=
'this'
v-if=
"showDialog"
></Zgwc>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
...
...
@@ -25,8 +26,9 @@
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
隐患分类:
</span>
<RelSelect
src=
'aqgl/yhgl/yhfl/query'
clearable
:match=
"
{value:'id',label:'name'}" v-model='queryParams.flid' >
</RelSelect>
<span
class=
"search-span"
>
上报人:
</span>
<el-input
v-model=
'queryParams.sbr'
></el-input>
<!--
<RelSelect
src=
'aqgl/yhgl/yhfl/query'
clearable
:match=
"
{value:'id',label:'name'}" v-model='queryParams.flid' >
</RelSelect>
-->
</div>
</el-col>
</el-row>
...
...
@@ -37,8 +39,9 @@
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<DeleteButton
:app=
'app'
></DeleteButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
<el-button
size=
'mini'
@
click=
"zdzrr"
type=
"primary"
>
整改完成
</el-button>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
-->
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 权限-->
...
...
@@ -57,6 +60,7 @@
<
script
>
/* 引入需要的接口*/
import
Zgwc
from
'./zgwc'
import
{
doQuery
,
doAdd
,
...
...
@@ -77,6 +81,9 @@
},
data
()
{
return
{
DialogTitle
:
'整改完成'
,
/*需要的额外参数 */
showDialog
:
false
,
/* 基础url*/
baseUrl
:
'/aqgl/yhgl/yhjl'
,
/* 查询参数*/
...
...
@@ -84,7 +91,7 @@
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
(),
bmid
:
''
,
flid
:
''
sbr
:
''
},
/* 树的标题 */
treeTitle
:
'隐患标准分类'
,
...
...
@@ -93,40 +100,65 @@
label
:
'bmmc'
},
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
//
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
transform
:{
url
:
'aqgl/yhgl/yhjl/init/zt'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"整改说明"
,
prop
:
"clff"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"整改完成时间"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
// {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"隐患类型"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/yhgl/yhfl/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/fxyk/fxpc/init/wxdj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"pidName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理人", prop: "clr", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods
:
{
zdzrr
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
selectedTree
(
e
){
this
.
queryParams
.
bmid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
...
...
@@ -153,7 +185,7 @@
},
components
:{
Edit
Edit
,
Zgwc
}
...
...
src/views/dangerManagement/dangerReviewRecord/edit.vue
View file @
b4f26974
This diff is collapsed.
Click to expand it.
src/views/dangerManagement/dangerReviewRecord/index.vue
View file @
b4f26974
<
template
>
<div
class=
"min_full"
>
<Fcjg
:app=
'this'
v-if=
"showDialog"
></Fcjg>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
...
...
@@ -36,13 +36,13 @@
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<!--
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
-->
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton
>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
--
>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<WorkFlowButton
:app=
'app'
></WorkFlowB
utton>
<el-button
size=
'mini'
@
click=
"zdzrr"
type=
"primary"
>
复查结果
</el-b
utton>
<!-- 额外按钮-->
<!-- 表头设置 -->
...
...
@@ -59,6 +59,7 @@
</
template
>
<
script
>
import
Fcjg
from
'./fcjg'
/* 引入需要的接口*/
import
{
doQuery
,
...
...
@@ -82,11 +83,10 @@
data
()
{
return
{
DialogTitle
:
'复查'
,
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
showDialog
:
false
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'kzzx/role'
,
/* 查询参数*/
...
...
@@ -97,41 +97,67 @@
sbr
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
// {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:192},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"yhflName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理时间"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{
label
:
"处置人"
,
prop
:
"czrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
tableTitle
:
[
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
//
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
transform
:{
url
:
'aqgl/yhgl/yhjl/init/zt'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"复查时间"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
{
label
:
"复查说明"
,
prop
:
"fcsm"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"整改说明"
,
prop
:
"clff"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"整改完成时间"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患类型"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/yhgl/yhfl/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/fxyk/fxpc/init/wxdj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods
:
{
zdzrr
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
...
...
@@ -147,7 +173,7 @@
},
components
:
{
Edit
,
Edit
,
Fcjg
}
...
...
src/views/dangerManagement/enterSafetyRecords/edit.vue
View file @
b4f26974
...
...
@@ -22,7 +22,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患类型"
ref=
"flid"
prop=
"flid"
>
<RelSelect
:readonly=
"readonly"
src=
'aqgl/yhgl/yhfl/query'
:match=
"
{value:'id',label:'name'}" v-model='form.flid' >
</RelSelect>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
src=
'aqgl/yhgl/yhfl/query'
:match=
"
{value:'id',label:'name'}" v-model='form.flid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -54,14 +54,16 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成日期"
ref=
"zdzgfa"
prop=
"zdzgfa"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zdzgfa"
></el-input>
<el-form-item
label=
"整改完成日期"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"
责任人"
ref=
"zrr"
prop=
"zr
r"
>
<el-form-item
label=
"
上报人"
ref=
"sbr"
prop=
"sb
r"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
-->
<personSelector
:label=
"form.
zrrName||'暂无'"
@
selected=
'zr
rSelected'
></personSelector>
<personSelector
:label=
"form.
sbrName||'暂无'"
@
selected=
'sb
rSelected'
></personSelector>
</el-form-item>
</el-col>
...
...
@@ -83,8 +85,8 @@
/* 存放index页面传递的额外参数*/
mounted
()
{
/* 赋值*/
this
.
form
.
zr
r
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
zr
rName
=
localStorage
.
getItem
(
'username'
)
this
.
form
.
sb
r
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
sb
rName
=
localStorage
.
getItem
(
'username'
)
},
/* 组件名称*/
name
:
"aqgl/yhglYhjlEdit"
,
...
...
@@ -100,6 +102,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
sbr
:
''
,
sbrName
:
''
,
gkcs
:
''
,
zgfa
:
''
,
zrrName
:
''
,
...
...
@@ -126,7 +130,7 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
(),
clsj
:
new
Date
().
getTime
(),
clff
:
''
,
...
...
@@ -187,8 +191,8 @@
}
},
methods
:
{
zr
rSelected
(
row
){
this
.
form
.
zr
r
=
row
.
id
sb
rSelected
(
row
){
this
.
form
.
sb
r
=
row
.
id
}
}
}
...
...
src/views/dangerManagement/enterSafetyRecords/index.vue
View file @
b4f26974
...
...
@@ -39,8 +39,8 @@
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<DeleteButton
:app=
'app'
></DeleteButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
-->
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 权限-->
...
...
@@ -82,7 +82,7 @@
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
...
...
@@ -116,12 +116,14 @@
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
/* 要求整改完成时间 */
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
...
...
@@ -142,7 +144,7 @@
methods
:
{
selectedTree
(
e
){
this
.
queryParams
.
flid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
tybz
(
a
)
{
let
nTy
=
false
...
...
src/views/dangerManagement/queryDangerRecords/edit.vue
View file @
b4f26974
This diff is collapsed.
Click to expand it.
src/views/dangerManagement/queryDangerRecords/index.vue
View file @
b4f26974
<
template
>
<div
style=
"display: flex;"
>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;"
>
<TreeBase
:app=
'app'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"width: calc(100% - 200px)"
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
...
...
@@ -35,15 +32,28 @@
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<el-checkbox
v-model=
"queryParams.yq"
true-label=
'Y'
false-label=
"N"
>
逾期
</el-checkbox>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
风险点:
</span>
<el-input
v-model=
"queryParams.fxd"
></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<!--
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<DeleteButton
:app=
'app'
></DeleteButton
>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
-->
<!--
<DeleteButton
:app=
'app'
></DeleteButton>
--
>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
...
...
@@ -52,13 +62,12 @@
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</div>
</
template
>
...
...
@@ -85,7 +94,7 @@
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
...
...
@@ -102,7 +111,9 @@
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
(),
bmid
:
''
,
zt
:
''
zt
:
''
,
yq
:
'N'
,
fxd
:
''
},
/* 树的标题 */
treeTitle
:
'单位列表'
,
...
...
@@ -112,38 +123,58 @@
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "责任部门", prop: "bmid", fieldType: "ftString",width:192},
{
label
:
"制定整改方案"
,
prop
:
"zdzgfa"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理时间"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处理方法"
,
prop
:
"clff"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{
label
:
"处置人"
,
prop
:
"czrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
},
{
label
:
"要求整改日期"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftString"
},
{
label
:
"处罚金额"
,
prop
:
"cfje"
,
fieldType
:
"ftString"
},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
//
// {label: "状态", prop: "zt", fieldType: "ftString",transform:{
// url:'aqgl/yhgl/yhjl/init/zt',label:'name',value:'id'
// }},
// {label: "整改说明", prop: "clff", fieldType: "ftString",width:300},
// {label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
/* */
{
label
:
"整改日期"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查日期"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
/* */
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患类型"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/yhgl/yhfl/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/fxyk/fxpc/init/wxdj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods
:
{
...
...
src/views/dangerManagement/safetyDisposalRecord/edit.vue
View file @
b4f26974
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"
8
0px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"
10
0px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"发现日期"
ref=
"fxrq"
prop=
"fxrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.fxrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -15,51 +15,59 @@
<el-input
:readonly=
"readonly"
v-model=
"form.fxd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
24
"
>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"隐患地点"
ref=
"yhdd"
prop=
"yhdd"
>
<el-input
style=
'width: 100%;'
:readonly=
"readonly"
v-model=
"form.yhdd"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.yhdd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"nr"
prop=
"nr"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.nr"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患类型"
ref=
"flid"
prop=
"flid"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
src=
'aqgl/yhgl/yhfl/query'
:match=
"
{value:'id',label:'name'}" v-model='form.flid' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryBz'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"dj"
prop=
"dj"
>
<RelSelect
style=
'width: 100%;'
src=
'aqgl/fxyk/fxpc/init/wxdj'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.dj' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryBz'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"隐患内容"
ref=
"nr"
prop=
"nr"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.nr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr
"
>
<
personSelector
:label=
"form.zrrName||'暂无'"
@
selected=
'zrrSelected'
></personSelector
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"整改措施"
ref=
"zgfa"
prop=
"zgfa
"
>
<
el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.zgfa"
></el-input
>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"隐患等级"
ref=
"dj"
prop=
"dj"
>
<RelSelect
style=
'width: 100%;'
src=
'aqgl/fxyk/fxpc/init/wxdj'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.dj' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.dj"
></el-input>
-->
<el-form-item
label=
"管控措施"
ref=
"gkcs"
prop=
"gkcs"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.gkcs"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"处理人"
ref=
"clr"
prop=
"clr"
>
<personSelector
:label=
"form.clrName||'暂无'"
@
selected=
'clrSelected'
></personSelector>
<el-form-item
label=
"整改完成日期"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"复查时间"
ref=
"fcsj"
prop=
"fcsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.fcsj"
placeholder=
"选择日期"
>
</el-date-picker>
<el-form-item
label=
"上报人"
ref=
"sbr"
prop=
"sbr"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
-->
<personSelector
:label=
"form.sbrName||'暂无'"
@
selected=
'sbrSelected'
></personSelector>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
...
...
@@ -76,7 +84,9 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
/* 赋值*/
this
.
form
.
sbr
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
sbrName
=
localStorage
.
getItem
(
'username'
)
},
/* 组件名称*/
name
:
"aqgl/yhglYhjlEdit"
,
...
...
@@ -92,7 +102,10 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
clrName
:
''
,
sbr
:
''
,
sbrName
:
''
,
gkcs
:
''
,
zgfa
:
''
,
zrrName
:
''
,
id
:
''
,
...
...
@@ -117,7 +130,7 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
(),
clsj
:
new
Date
().
getTime
(),
clff
:
''
,
...
...
@@ -178,12 +191,9 @@
}
},
methods
:
{
zrrSelected
(
row
){
this
.
form
.
zrr
=
row
.
id
},
clrSelected
(
row
){
this
.
form
.
clr
=
row
.
id
}
sbrSelected
(
row
){
this
.
form
.
sbr
=
row
.
id
}
}
}
</
script
>
...
...
src/views/dangerManagement/safetyDisposalRecord/index.vue
View file @
b4f26974
<
template
>
<div
style=
"display: flex;"
>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;"
>
<TreeBase
:app=
'app'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"width: calc(100% - 200px)"
>
<div
class=
"min_full"
>
<Zdzrr
:app=
'this'
v-if=
"showDialog"
></Zdzrr>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
...
...
@@ -20,14 +18,12 @@
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.jsrq"
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
责任单位:
</span>
<RelSelect
style=
"width: 100%;"
src=
'/kzzx/bm/query'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.zrdw' >
</RelSelect>
<!--
<el-input
v-model=
"queryParams.zrdw"
size=
"small"
class=
"search-input"
></el-input>
-->
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
班组:
</span>
<RelSelect
style=
"width: 100%;"
src=
'jcsj/common/bm/queryBz'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.bmid' >
</RelSelect>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
隐患分类:
</span>
...
...
@@ -40,6 +36,7 @@
<el-row
class=
"tool-bar"
>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<el-button
size=
'mini'
@
click=
"zdzrr"
type=
"primary"
>
指定责任人
</el-button>
<!-- 权限-->
</el-row>
...
...
@@ -51,12 +48,12 @@
</div>
</div>
</div>
</
template
>
<
script
>
import
Zdzrr
from
'./zdzrr'
/* 引入需要的接口*/
import
{
doQuery
,
...
...
@@ -78,68 +75,76 @@
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
DialogTitle
:
'指定责任人'
,
/*需要的额外参数 */
showDialog
:
false
,
/* 基础url*/
baseUrl
:
'/aqgl/yhgl/yhjl'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
new
Date
().
getTime
()
-
60
*
1000
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
(),
zrdw
:
''
,
bmid
:
''
,
flid
:
''
},
/* 树的标题 */
treeTitle
:
'单位列表'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'bmmc'
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"隐患类型"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/yhgl/yhfl/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/fxyk/fxpc/init/wxdj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患等级"
,
prop
:
"yhdjName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
{
label
:
"复查时间"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods
:
{
selectedTree
(
e
){
this
.
queryParams
.
bmid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
zdzrr
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
...
...
@@ -158,7 +163,8 @@
},
components
:{
Edit
Edit
,
Zdzrr
}
...
...
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