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
922632ac
Commit
922632ac
authored
Nov 10, 2022
by
王向前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
外协管理
parent
559bc83c
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1904 additions
and
1997 deletions
+1904
-1997
index.vue
src/views/daily/nros/index.vue
+92
-96
login.vue
src/views/login.vue
+2
-3
edit.vue
src/views/outsourcingDirector/approve/edit.vue
+137
-87
index.vue
src/views/outsourcingDirector/approve/index.vue
+402
-465
edit.vue
src/views/outsourcingDirector/archives/edit.vue
+137
-87
index.vue
src/views/outsourcingDirector/archives/index.vue
+224
-176
edit.vue
src/views/outsourcingDirector/declare/edit.vue
+137
-87
index.vue
src/views/outsourcingDirector/declare/index.vue
+405
-465
edit.vue
src/views/outsourcingDirector/declare/new/edit.vue
+0
-182
index.vue
src/views/outsourcingDirector/declare/new/index.vue
+0
-122
edit.vue
src/views/outsourcingDirector/process/edit.vue
+165
-50
index.vue
src/views/outsourcingDirector/process/index.vue
+201
-170
participants.vue
src/views/outsourcingDirector/process/participants.vue
+1
-4
index.vue
src/views/riskPrecontrol/maintenanceRisk/index.vue
+1
-3
No files found.
src/views/daily/nros/index.vue
View file @
922632ac
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<!--
<div
class=
"search"
v-condition
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<!--
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
class=
"search-col"
>
...
...
@@ -11,106 +11,102 @@
</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>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
</div>
-->
<!-- 按钮操作-->
<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>
<EditButton
ref=
"edit"
:app=
"app"
></EditButton>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<FieldButton
:app=
"app"
></FieldButton>
<ExcelButton
:app=
"app"
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
"getData"
:ref=
"'TablePager'"
:app=
"app"
:query=
"query"
@
selectItem=
"selectItem"
@
getRow=
"getRow"
></TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/daily/nros.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'nros'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/rcgl/fcgzybz'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"作业活动"
,
prop
:
"zyhd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"事故后果"
,
prop
:
"sghg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"风险登记"
,
prop
:
"fxdj"
,
fieldType
:
"ftString"
,
width
:
100
},
{
label
:
"作业地点"
,
prop
:
"zydd"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "排查岗位ID", prop: "pcgwid", fieldType: "ftString",width:192},
{
label
:
"排查岗位"
,
prop
:
"pcgwName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"危害因素"
,
prop
:
"whys"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
"@/api/daily/nros.js"
;
/* edit页面*/
import
Edit
from
"./edit"
;
import
{
tableMixin
}
from
"common"
;
export
default
{
mixins
:
[
tableMixin
],
name
:
"nros"
,
}
},
components
:
{
Edit
,
}
}
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
"TablePager"
].
pageQuery
();
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
""
,
type
:
""
,
DialogTitle
:
""
,
/* 基础url*/
baseUrl
:
"/aqgl/rcgl/fcgzybz"
,
/* 查询参数*/
queryParams
:
{
info
:
""
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"作业活动"
,
prop
:
"zyhd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"事故后果"
,
prop
:
"sghg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"风险登记"
,
prop
:
"fxdj"
,
fieldType
:
"ftString"
,
width
:
100
},
{
label
:
"作业地点"
,
prop
:
"zydd"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "排查岗位ID", prop: "pcgwid", fieldType: "ftString",width:192},
{
label
:
"排查岗位"
,
prop
:
"pcgwName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"危害因素"
,
prop
:
"whys"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]
};
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{}
},
components
:
{
Edit
}
};
</
script
>
<
style
scoped
>
</
style
>
src/views/login.vue
View file @
922632ac
...
...
@@ -73,8 +73,8 @@ export default {
return
{
codeUrl
:
""
,
loginForm
:
{
username
:
"
visito
r"
,
password
:
"
visitor
"
,
username
:
"
superuse
r"
,
password
:
"
123456
"
,
rememberMe
:
false
,
code
:
""
,
uuid
:
""
...
...
@@ -142,7 +142,6 @@ export default {
Cookies
.
remove
(
'rememberMe'
);
}
this
.
$store
.
dispatch
(
"Login"
,
this
.
loginForm
).
then
(()
=>
{
debugger
this
.
$router
.
push
({
path
:
'index'
})
// this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
}).
catch
(()
=>
{
...
...
src/views/outsourcingDirector/approve/edit.vue
View file @
922632ac
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
class=
"table-form-border"
>
<RelDialog
:type=
"type"
:editApp=
"editApp"
:app=
"app"
:buttonApp=
"buttonApp"
class=
"table-form-border"
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"档案编号"
ref=
"xh"
prop=
"xh
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.xh"
></el-input>
<el-form-item
label=
"档案编号"
ref=
"code"
prop=
"code
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.code"
:disabled=
"true"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
prop=
"
mc
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
mc
"
></el-input>
<el-form-item
label=
"名称"
prop=
"
name
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
name
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.type"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<RelSelect
src=
"/aqgl/wxgl/wxdwsb/init/dwlx"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.dwlx"
>
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理责任单位"
prop=
"glzrdw"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glzrdw"
></el-input>
<RelSelect
style=
"width: 100%;"
src=
"kzzx/bm/query"
:readonly=
"readonly"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.zrdwid"
>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"fzr"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.fzr"
></el-input
>
<
personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
"userSelected"
></personSelector
>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址"
prop=
"
dwdz
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
dwdz
"
></el-input>
<el-form-item
label=
"单位地址"
prop=
"
address
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
address
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电子信箱"
prop=
"
mail"
>
<el-input
:readonly=
"readonly"
v-model=
"form.mail"
></el-input>
<el-form-item
label=
"电子信箱"
prop=
"
email"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
e
mail"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
...
...
@@ -57,6 +72,18 @@
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right"
>
<el-form-item
label=
"申报日期"
ref=
"sbrq"
prop=
"sbrq"
>
<el-date-picker
v-model=
"form.sbrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
...
...
@@ -65,89 +92,112 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</div>
-->
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
import
{
editMixin
}
from
"common"
;
import
{
initDwlx
}
from
"@/api/outsourcingDirector/wxdwsb"
;
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"roleManagementEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
code
:
""
,
name
:
""
,
sbrq
:
""
,
dwlx
:
""
,
zrdwid
:
""
,
fzrid
:
""
,
pfzrid
:
""
,
address
:
""
,
email
:
""
,
phone
:
""
,
lxr
:
""
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
email
:[
{
required
:
true
,
message
:
'请输入邮箱地址'
,
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
'请输入正确的邮箱地址'
,
trigger
:
[
'blur'
,
'change'
]
}
]
},
dwlxArray
:
[]
};
},
methods
:
{
userSelected
(
row
)
{
this
.
form
.
fzrid
=
row
.
id
;
},
methods
:
{
}
init
()
{}
},
mounted
()
{
this
.
init
();
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:none
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
}
}
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
::v-deep
.el-form-item__error
{
z-index
:
99
;
right
:
10px
!
important
;
top
:
25%
;
left
:
auto
;
}
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:
none
;
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
.el-row
.el-col.padding-right
{
padding-right
:
10px
!
important
;
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
;
}
}
</
style
>
src/views/outsourcingDirector/approve/index.vue
View file @
922632ac
This diff is collapsed.
Click to expand it.
src/views/outsourcingDirector/archives/edit.vue
View file @
922632ac
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
class=
"table-form-border"
>
<RelDialog
:type=
"type"
:editApp=
"editApp"
:app=
"app"
:buttonApp=
"buttonApp"
class=
"table-form-border"
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"档案编号"
ref=
"xh"
prop=
"xh
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.xh"
></el-input>
<el-form-item
label=
"档案编号"
ref=
"code"
prop=
"code
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.code"
:disabled=
"true"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
prop=
"
mc
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
mc
"
></el-input>
<el-form-item
label=
"名称"
prop=
"
name
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
name
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.type"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<RelSelect
src=
"/aqgl/wxgl/wxdwsb/init/dwlx"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.dwlx"
>
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理责任单位"
prop=
"glzrdw"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glzrdw"
></el-input>
<RelSelect
style=
"width: 100%;"
src=
"kzzx/bm/query"
:readonly=
"readonly"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.zrdwid"
>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"fzr"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.fzr"
></el-input
>
<
personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
"userSelected"
></personSelector
>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址"
prop=
"
dwdz
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
dwdz
"
></el-input>
<el-form-item
label=
"单位地址"
prop=
"
address
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
address
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电子信箱"
prop=
"
mail"
>
<el-input
:readonly=
"readonly"
v-model=
"form.mail"
></el-input>
<el-form-item
label=
"电子信箱"
prop=
"
email"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
e
mail"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
...
...
@@ -57,6 +72,18 @@
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right"
>
<el-form-item
label=
"申报日期"
ref=
"sbrq"
prop=
"sbrq"
>
<el-date-picker
v-model=
"form.sbrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
...
...
@@ -65,89 +92,112 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</div>
-->
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
import
{
editMixin
}
from
"common"
;
import
{
initDwlx
}
from
"@/api/outsourcingDirector/wxdwsb"
;
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"roleManagementEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
code
:
""
,
name
:
""
,
sbrq
:
""
,
dwlx
:
""
,
zrdwid
:
""
,
fzrid
:
""
,
pfzrid
:
""
,
address
:
""
,
email
:
""
,
phone
:
""
,
lxr
:
""
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
email
:[
{
required
:
true
,
message
:
'请输入邮箱地址'
,
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
'请输入正确的邮箱地址'
,
trigger
:
[
'blur'
,
'change'
]
}
]
},
dwlxArray
:
[]
};
},
methods
:
{
userSelected
(
row
)
{
this
.
form
.
fzrid
=
row
.
id
;
},
methods
:
{
}
init
()
{}
},
mounted
()
{
this
.
init
();
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:none
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
}
}
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
::v-deep
.el-form-item__error
{
z-index
:
99
;
right
:
10px
!
important
;
top
:
25%
;
left
:
auto
;
}
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:
none
;
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
.el-row
.el-col.padding-right
{
padding-right
:
10px
!
important
;
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
;
}
}
</
style
>
src/views/outsourcingDirector/archives/index.vue
View file @
922632ac
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
档案编号:
</span>
<el-input
v-model=
"queryParams.xh"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
单位名称:
</span>
<el-input
v-model=
"queryParams.dwmc"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
单位类型:
</span>
<el-select
v-model=
"queryParams.type"
placeholder=
"请选择"
>
<el-option
v-for=
"(item,index) in options"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
:delButton=
"false"
:isFontPage=
"true"
:allData=
"allData"
@
getRow=
'getRow'
>
<template
slot=
"tabCustom"
>
</
template
>
</TablePager>
</div>
</div>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
"app"
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
档案编号:
</span>
<el-input
v-model=
"queryParams.xh"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
单位名称:
</span>
<el-input
v-model=
"queryParams.dwmc"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
单位类型:
</span>
<el-select
v-model=
"queryParams.type"
placeholder=
"请选择"
>
<el-option
v-for=
"(item,index) in options"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
"app"
></PrintButton>
<ViewButton
ref=
"view"
:app=
"app"
></ViewButton>
<FieldButton
:app=
"app"
></FieldButton>
<ExcelButton
:app=
"app"
></ExcelButton>
<!-- 额外按钮-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
"getData"
:ref=
"'TablePager'"
:app=
"app"
:query=
"query"
@
selectItem=
"selectItem"
:delButton=
"false"
@
getRow=
"getRow"
>
<template
slot=
"tabCustom"
></
template
>
</TablePager>
</div>
</div>
</template>
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
Edit
from
'./edit'
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
initDwlx
}
from
"@/api/outsourcingDirector/wxdwsb"
;
/* edit页面*/
import
Edit
from
"./edit"
;
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
import
{
tableMixin
}
from
"common"
;
export
default
{
mixins
:
[
tableMixin
],
name
:
"appVersion"
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
allData
:[{
xh
:
"1"
}],
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
powerList
:
[{
name
:
'分配'
},
{
name
:
'复制'
},
{
name
:
'查看'
}],
/* 基础url*/
baseUrl
:
'kzzx/role'
,
/* 查询参数*/
queryParams
:
{
xh
:
''
,
dwmc
:
''
,
type
:
''
},
options
:
[{
value
:
'all'
,
label
:
'(空)'
},
{
value
:
'A'
,
label
:
'A类'
},
{
value
:
'B'
,
label
:
'B类'
},
{
value
:
'C'
,
label
:
'C类'
},
{
value
:
'D'
,
label
:
'D类'
}],
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'xh'
,
label
:
'档案编号'
,
width
:
'120'
},
{
prop
:
'mc'
,
label
:
'名称'
,
width
:
'160'
},
{
prop
:
'dwlx'
,
label
:
'单位类型'
,
width
:
'160'
},
{
prop
:
'rolename'
,
label
:
'管理责任单位'
,
width
:
'160'
},
{
prop
:
'rolename'
,
label
:
'负责人'
,
width
:
'160'
},
{
prop
:
'rolename'
,
label
:
'单位地址'
,
width
:
'160'
},
{
prop
:
'rolename'
,
label
:
'电子邮箱'
,
width
:
'160'
},
{
prop
:
'telephone'
,
label
:
'联系电话'
,
width
:
'120'
,
},
{
prop
:
'bz'
,
label
:
'备注'
,
}
],
}
},
methods
:
{
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础增*/
/* 初始化赋值操作*/
init
()
{
},
},
components
:
{
Edit
,
}
}
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
initDwlx
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
systemType
:[],
showDialog
:
false
,
DialogName
:
""
,
type
:
""
,
DialogTitle
:
""
,
readonly
:
true
,
powerList
:
[
{
name
:
"分配"
},
{
name
:
"复制"
},
{
name
:
"查看"
}
],
/* 基础url*/
baseUrl
:
"aqgl/wxgl/wxdwsb"
,
/* 查询参数*/
queryParams
:
{
code
:
""
,
name
:
""
,
dwlx
:
""
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
"ztName"
,
label
:
"状态"
,
width
:
"120"
,
show
:
false
},
{
prop
:
"code"
,
label
:
"档案编号"
,
width
:
"120"
},
{
prop
:
"name"
,
label
:
"名称"
,
width
:
"160"
},
{
prop
:
"sbrq"
,
label
:
"申报日期"
,
width
:
"160"
,
fieldType
:
"ftDate"
},
{
prop
:
"dwlx"
,
label
:
"单位类型"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"dwlxName"
,
label
:
"单位类型"
,
width
:
"160"
},
{
prop
:
"zrdwid"
,
label
:
"责任单位ID"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"zrbmName"
,
label
:
"责任单位"
,
width
:
"160"
},
{
prop
:
"pgdwid"
,
label
:
"评估单位ID"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"pgbmName"
,
label
:
"评估单位"
,
width
:
"160"
},
{
prop
:
"fzrid"
,
label
:
"负责人"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"fzrName"
,
label
:
"负责人"
,
width
:
"160"
},
{
prop
:
"address"
,
label
:
"单位地址"
,
width
:
"160"
},
{
prop
:
"email"
,
label
:
"电子邮箱"
,
width
:
"160"
},
{
prop
:
"lxr"
,
label
:
"联系人"
,
width
:
"120"
},
{
prop
:
"phone"
,
label
:
"联系电话"
,
width
:
"120"
},
{
prop
:
"bz"
,
label
:
"备注"
}
],
form
:
{}
};
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
apiAdd
:
doAdd
,
apiUpdate
:
doUpdate
,
apiDelete
:
doDelete
,
init
()
{},
getRow
(
currentRow
,
oldCurrentRow
){
this
.
form
=
currentRow
;
}
},
components
:
{
Edit
}
};
</
script
>
<
style
scoped
>
</
style
>
src/views/outsourcingDirector/declare/edit.vue
View file @
922632ac
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
class=
"table-form-border"
>
<RelDialog
:type=
"type"
:editApp=
"editApp"
:app=
"app"
:buttonApp=
"buttonApp"
class=
"table-form-border"
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"档案编号"
ref=
"xh"
prop=
"xh
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.xh"
></el-input>
<el-form-item
label=
"档案编号"
ref=
"code"
prop=
"code
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.code"
:disabled=
"true"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
prop=
"
mc
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
mc
"
></el-input>
<el-form-item
label=
"名称"
prop=
"
name
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
name
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.type"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<RelSelect
src=
"/aqgl/wxgl/wxdwsb/init/dwlx"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.dwlx"
>
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理责任单位"
prop=
"glzrdw"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glzrdw"
></el-input>
<RelSelect
style=
"width: 100%;"
src=
"kzzx/bm/query"
:readonly=
"readonly"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.zrdwid"
>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"fzr"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.fzr"
></el-input
>
<
personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
"userSelected"
></personSelector
>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址"
prop=
"
dwdz
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
dwdz
"
></el-input>
<el-form-item
label=
"单位地址"
prop=
"
address
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
address
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电子信箱"
prop=
"
mail"
>
<el-input
:readonly=
"readonly"
v-model=
"form.mail"
></el-input>
<el-form-item
label=
"电子信箱"
prop=
"
email"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
e
mail"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
...
...
@@ -57,6 +72,18 @@
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right"
>
<el-form-item
label=
"申报日期"
ref=
"sbrq"
prop=
"sbrq"
>
<el-date-picker
v-model=
"form.sbrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
...
...
@@ -65,89 +92,112 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</div>
-->
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
import
{
editMixin
}
from
"common"
;
import
{
initDwlx
}
from
"@/api/outsourcingDirector/wxdwsb"
;
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"roleManagementEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
code
:
""
,
name
:
""
,
sbrq
:
""
,
dwlx
:
""
,
zrdwid
:
""
,
fzrid
:
""
,
pfzrid
:
""
,
address
:
""
,
email
:
""
,
phone
:
""
,
lxr
:
""
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
email
:[
{
required
:
true
,
message
:
'请输入邮箱地址'
,
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
'请输入正确的邮箱地址'
,
trigger
:
[
'blur'
,
'change'
]
}
]
},
dwlxArray
:
[]
};
},
methods
:
{
userSelected
(
row
)
{
this
.
form
.
fzrid
=
row
.
id
;
},
methods
:
{
}
init
()
{}
},
mounted
()
{
this
.
init
();
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:none
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
}
}
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
::v-deep
.el-form-item__error
{
z-index
:
99
;
right
:
10px
!
important
;
top
:
25%
;
left
:
auto
;
}
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:
none
;
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
.el-row
.el-col.padding-right
{
padding-right
:
10px
!
important
;
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
;
}
}
</
style
>
src/views/outsourcingDirector/declare/index.vue
View file @
922632ac
This diff is collapsed.
Click to expand it.
src/views/outsourcingDirector/declare/new/edit.vue
deleted
100644 → 0
View file @
559bc83c
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"编号"
ref=
"code"
prop=
"code"
>
<el-input
:readonly=
"readonly"
v-model=
"form.code"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"申报日期"
ref=
"sbrq"
prop=
"sbrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.sbrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"单位类型"
ref=
"dwlx"
prop=
"dwlx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.dwlx"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"责任单位"
ref=
"zrdwid"
prop=
"zrdwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zrdwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"负责人"
ref=
"fzrid"
prop=
"fzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"评估单位"
ref=
"pgdwid"
prop=
"pgdwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pgdwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"单位地址"
ref=
"address"
prop=
"address"
>
<el-input
:readonly=
"readonly"
v-model=
"form.address"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"电子邮箱"
ref=
"email"
prop=
"email"
>
<el-input
:readonly=
"readonly"
v-model=
"form.email"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"联系电话"
ref=
"phone"
prop=
"phone"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"联系人"
ref=
"lxr"
prop=
"lxr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"附件数"
ref=
"attachcount"
prop=
"attachcount"
>
<el-input
:readonly=
"readonly"
v-model=
"form.attachcount"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"工作流状态"
ref=
"wfpname"
prop=
"wfpname"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wfpname"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqglWxdwsbEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//编号
code
:
''
,
//名称
name
:
''
,
//申报日期
sbrq
:
new
Date
().
getTime
(),
//单位类型
dwlx
:
''
,
//责任单位
zrdwid
:
''
,
//负责人
fzrid
:
''
,
//评估单位
pgdwid
:
''
,
//单位地址
address
:
''
,
//电子邮箱
email
:
''
,
//联系电话
phone
:
''
,
//联系人
lxr
:
''
,
//备注
bz
:
''
,
//附件数
attachcount
:
''
,
//状态
zt
:
''
,
//工作流ID
wfid
:
''
,
//工作流实例号
wfinstid
:
''
,
//工作流状态ID
wfpid
:
''
,
//工作流状态
wfpname
:
''
,
//待处理人id
wfwuserid
:
''
,
//待处理人
wfwusername
:
''
,
//已处理人id
wfhuserid
:
''
,
//已处理人
wfhusername
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/outsourcingDirector/declare/new/index.vue
deleted
100644 → 0
View file @
559bc83c
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.info"
></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>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/outsourcingDirector/wxdwsb.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglWxdwsb'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/wxgl/wxdwsb'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"编号"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"申报日期"
,
prop
:
"sbrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"单位类型"
,
prop
:
"dwlxName"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"责任单位"
,
prop
:
"zrbmName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"负责人"
,
prop
:
"fzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"评估单位"
,
prop
:
"pgbmName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"单位地址"
,
prop
:
"address"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"电子邮箱"
,
prop
:
"email"
,
fieldType
:
"ftString"
,
width
:
240
},
{
label
:
"联系电话"
,
prop
:
"phone"
,
fieldType
:
"ftString"
,
width
:
66
},
{
label
:
"联系人"
,
prop
:
"lxr"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"状态"
,
prop
:
"ztName"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/outsourcingDirector/process/edit.vue
View file @
922632ac
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<RelDialog
:type=
"type"
:editApp=
"editApp"
:app=
"app"
:buttonApp=
"buttonApp"
class=
"table-form-border"
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"
标题"
ref=
"roleid"
prop=
"roleid
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid
"
></el-input>
<el-form-item
label=
"
档案编号"
ref=
"code"
prop=
"code
"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.code"
:disabled=
"true
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
v-model=
"form.roleid"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
prop=
"type"
>
<RelSelect
src=
"/aqgl/wxgl/wxdwsb/init/dwlx"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.dwlx"
>
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理责任单位"
prop=
"glzrdw"
>
<RelSelect
style=
"width: 100%;"
src=
"kzzx/bm/query"
:readonly=
"readonly"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.zrdwid"
>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"fzr"
>
<personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
"userSelected"
></personSelector>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"有效期至"
>
<el-date-picker
style=
"width: 100%;"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
<el-form-item
label=
"单位地址"
prop=
"address"
>
<el-input
:readonly=
"readonly"
v-model=
"form.address"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"编制单位"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
<el-form-item
label=
"电子信箱"
prop=
"email"
>
<el-input
:readonly=
"readonly"
v-model=
"form.email"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系人"
prop=
"lxr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right"
>
<el-form-item
label=
"申报日期"
ref=
"sbrq"
prop=
"sbrq"
>
<el-date-picker
v-model=
"form.sbrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</div>
-->
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
import
{
editMixin
}
from
"common"
;
import
{
initDwlx
}
from
"@/api/outsourcingDirector/wxdwsb"
;
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{},
/* 组件名称*/
name
:
"roleManagementEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 额外初始化,根据需求*/
systemType
:
[],
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
code
:
""
,
name
:
""
,
sbrq
:
""
,
dwlx
:
""
,
zrdwid
:
""
,
fzrid
:
""
,
pfzrid
:
""
,
address
:
""
,
email
:
""
,
phone
:
""
,
lxr
:
""
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
email
:[
{
required
:
true
,
message
:
'请输入邮箱地址'
,
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
'请输入正确的邮箱地址'
,
trigger
:
[
'blur'
,
'change'
]
}
]
},
dwlxArray
:
[]
};
},
methods
:
{
userSelected
(
row
)
{
this
.
form
.
fzrid
=
row
.
id
;
},
methods
:
{
}
init
()
{}
},
mounted
()
{
this
.
init
();
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
::v-deep
.el-form-item__error
{
z-index
:
99
;
right
:
10px
!
important
;
top
:
25%
;
left
:
auto
;
}
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:
none
;
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
.el-row
.el-col.padding-right
{
padding-right
:
10px
!
important
;
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
;
}
}
</
style
>
src/views/outsourcingDirector/process/index.vue
View file @
922632ac
This diff is collapsed.
Click to expand it.
src/views/outsourcingDirector/process/participants.vue
View file @
922632ac
...
...
@@ -4,9 +4,6 @@
<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>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
...
...
@@ -87,7 +84,7 @@
},
/* 注册组件*/
components
:
{
Edit
Edit
}
}
</
script
>
...
...
src/views/riskPrecontrol/maintenanceRisk/index.vue
View file @
922632ac
...
...
@@ -110,9 +110,7 @@
}
},
methods
:
{
query
:
doQuery
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
...
...
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