Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
project_progress
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4c4e4722
authored
Sep 19, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查规则编制暂存
1 parent
dd9fab11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
872 additions
and
563 deletions
src/api/index.js
src/utils/leftBarRules.js
src/views/compliance/checkRules.vue
src/api/index.js
View file @
4c4e472
...
...
@@ -295,14 +295,38 @@ export function RectificationFeedbackQuery(params) {
return
post
(
`
${
ARCH_EVALUATION
}
/projectInspectionIssues/iPageRectificationFeedbackQuery`
,
params
)
}
//检查规则编制
// //分页
// export function ruleFormulation(params) {
// return post(`${ARCH_EVALUATION}/ruleFormulation/ipage`, params)
// }
// //详情
// export function iPageRorm(params) {
// return post(`${ARCH_EVALUATION}/ruleFormulation/iPageRorm`, params)
// }
//分页
export
function
ruleFormulation
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/ruleFormulation/
ipage
`
,
params
)
return
post
(
`
${
ARCH_EVALUATION
}
/ruleFormulation/`
,
params
)
}
//详情
export
function
iPageRorm
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/ruleFormulation/iPageRorm`
,
params
)
}
//问题列表
export
function
addSelWtqd
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
postEvalQuesInfo/adSelWtqd`
,
params
)
}
//添加
export
function
addruleFormulation
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/ruleFormulation/addRuleFormulation`
,
params
)
}
//编制
export
function
addiPageRorm
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/ruleFormulation/ipage`
,
params
)
}
//自动稽核任务配置 分页
export
function
auditTasks
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/auditTasks/`
,
params
)
...
...
src/utils/leftBarRules.js
View file @
4c4e472
...
...
@@ -325,92 +325,92 @@ export function trendsRules(type) {
},
],
},
//
{
//
name: '后评估合规性管理',
//
url: '',
//
children: [
//
{
//
name: '合规性检查实时提醒',
//
url: '',
//
children: [
//
{ name: '合规性检查提醒', url: '/checkCompliance/automaticCheck', children: [] },
//
],
//
},
//
{
//
name: '合规性检查规则库构建',
//
url: '',
//
children: [
//
{ name: '检查规则编制', url: '/compliance/checkRules', children: [] },
//
{ name: '自动稽核任务配置', url: '/compliance/taskConfigure', children: [] },
//
],
//
},
//
{
//
name: '项目合规检查',
//
url: '',
//
children: [
//
{ name: '合规检查结果', url: '/projectCheck/checkResault', children: [] },
//
{ name: '合规问题整改', url: '/projectCheck/problemRectify', children: [] },
//
{
//
name: '合规问题整改核验',
//
url: '/projectCheck/verificationRectify',
//
children: [],
//
},
//
],
//
},
//
],
//
},
//
{
//
name: '后评估结果管理',
//
url: '',
//
children: [
//
{
//
name: '后评估结果发布',
//
url: '',
//
children: [
//
{
//
name: '检查结果公示及评价',
//
url: '/managementResult/releaseResultpublicity',
//
children: [],
//
},
//
],
//
},
//
{
//
name: '后评估结果情况',
//
url: '',
//
children: [
//
{
//
name: '后评估进度情况',
//
url: '/managementResult/situationResaultschedule',
//
children: [],
//
},
//
{
//
name: '后评估各环节问题分布',
//
url: '/managementResult/situationResaultissuesLink',
//
children: [],
//
},
//
{
//
name: '合规检查问题情况',
//
url: '/managementResult/issuesInspection',
//
children: [],
//
},
//
],
//
},
//
{
//
name: '后评估检查报告管理',
//
url: '',
//
children: [
//
{
//
name: '后评估检查报告维护',
//
url: '/managementResult/maintenancePg',
//
children: [],
//
},
//
{ name: '后评估报告模板管理', url: '/managementResult/managementPg', children: [] },
//
// { name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] },
//
// { name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] },
//
],
//
},
//
],
//
},
{
name
:
'后评估合规性管理'
,
url
:
''
,
children
:
[
{
name
:
'合规性检查实时提醒'
,
url
:
''
,
children
:
[
{
name
:
'合规性检查提醒'
,
url
:
'/checkCompliance/automaticCheck'
,
children
:
[]
},
],
},
{
name
:
'合规性检查规则库构建'
,
url
:
''
,
children
:
[
{
name
:
'检查规则编制'
,
url
:
'/compliance/checkRules'
,
children
:
[]
},
{
name
:
'自动稽核任务配置'
,
url
:
'/compliance/taskConfigure'
,
children
:
[]
},
],
},
{
name
:
'项目合规检查'
,
url
:
''
,
children
:
[
{
name
:
'合规检查结果'
,
url
:
'/projectCheck/checkResault'
,
children
:
[]
},
{
name
:
'合规问题整改'
,
url
:
'/projectCheck/problemRectify'
,
children
:
[]
},
{
name
:
'合规问题整改核验'
,
url
:
'/projectCheck/verificationRectify'
,
children
:
[],
},
],
},
],
},
{
name
:
'后评估结果管理'
,
url
:
''
,
children
:
[
{
name
:
'后评估结果发布'
,
url
:
''
,
children
:
[
{
name
:
'检查结果公示及评价'
,
url
:
'/managementResult/releaseResultpublicity'
,
children
:
[],
},
],
},
{
name
:
'后评估结果情况'
,
url
:
''
,
children
:
[
{
name
:
'后评估进度情况'
,
url
:
'/managementResult/situationResaultschedule'
,
children
:
[],
},
{
name
:
'后评估各环节问题分布'
,
url
:
'/managementResult/situationResaultissuesLink'
,
children
:
[],
},
{
name
:
'合规检查问题情况'
,
url
:
'/managementResult/issuesInspection'
,
children
:
[],
},
],
},
{
name
:
'后评估检查报告管理'
,
url
:
''
,
children
:
[
{
name
:
'后评估检查报告维护'
,
url
:
'/managementResult/maintenancePg'
,
children
:
[],
},
{
name
:
'后评估报告模板管理'
,
url
:
'/managementResult/managementPg'
,
children
:
[]
},
// { name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] },
// { name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] },
],
},
],
},
]
}
}
...
...
src/views/compliance/checkRules.vue
View file @
4c4e472
<
template
>
<div
class=
"main"
>
<div
class=
"main"
>
<el-form
:model=
"ruleForm"
ref=
"formName"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"规则状态:"
prop=
"ruleStatus"
class=
"fromItem"
>
<el-select
v-model=
"ruleForm.ruleStatus"
placeholder=
"请选择"
clearable
@
input=
"numberVal"
>
<el-option
label=
"开启"
value=
"0"
></el-option>
<el-option
label=
"关闭"
value=
"1"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"创建人:"
prop=
"creator"
class=
"fromItem"
>
<el-input
v-model=
"ruleForm.creator"
placeholder=
"请输入"
clearable
@
input=
"numberVal"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"创建时间:"
prop=
"createTime"
class=
"fromItem"
>
<el-date-picker
@
input=
"numberVal"
@
change=
"timeChange"
v-model=
"ruleForm.dates"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
-->
<el-form-item
label=
"创建时间:"
prop=
"planReviewDate"
class=
"fromItem"
>
<el-date-picker
v-model=
"ruleForm.dates"
type=
"datetime"
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item
class=
"button"
>
<el-button
@
click=
"submitForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/cx.png"
/>
查询
</el-button
>
<el-button
@
click=
"resetForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/cz.png"
/>
重置
</el-button
>
<el-button
@
click=
"detailsForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/ck.png"
/>
详情
</el-button
>
<el-button
@
click=
"add()"
>
<img
class=
"buttonIcon"
src=
"../../assets/xz.png"
/>
添加
</el-button>
</el-form-item>
</el-form>
<div
class=
"setscrollOne"
>
<el-table
@
selection-change=
"handleSelectionChange"
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
class=
"eltable"
:row-class-name=
"tableRowClassName"
border
>
<el-table-column
label=
"序号"
width=
"55"
type=
"index"
>
</el-table-column>
<el-table-column
type=
"selection"
>
</el-table-column>
<!--
<el-table-column
prop=
"projectStagetext"
label=
"项目环节"
>
</el-table-column>
-->
<el-table-column
label=
"规则名称"
prop=
"ruleName"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"ruleStatus"
label=
"规则状态"
>
<template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.ruleStatus"
active-color=
"#13ce66"
inactive-color=
"#C0C0C0"
active-value=
"0"
inactive-value=
"1"
active-text=
""
inactive-text=
""
disabled
>
<template
v-slot:active
>
<span>
开启
</span>
</
template
>
<
template
v-slot:inactive
>
<span>
关闭
</span>
</
template
>
</el-switch>
</template>
</el-table-column>
<el-table-column
label=
"创建人"
prop=
"creator"
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createTime"
>
</el-table-column>
</el-table>
</div>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[10, 15, 20, 50, 100]"
:page-size=
"1000"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
class=
"elpagination"
>
</el-pagination>
<el-dialog
title=
"详情"
:visible
.
sync=
"dialog"
width=
"90%"
:modal-append-to-body=
"false"
:append-to-body=
"false"
class=
"dialog"
>
<el-form
:model=
"ruleForm"
ref=
"
formName
"
:model=
"ruleForm
dialog
"
ref=
"
ruleFormdialog
"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"项目环节:"
prop=
"projectStage"
class=
"fromItem"
>
<el-select
v-model=
"ruleForm.projectStage"
placeholder=
"请选择"
clearable
>
<el-option
label=
"可研"
value=
"1"
></el-option>
<el-option
label=
"计划"
value=
"2"
></el-option>
<el-option
label=
"采购"
value=
"3"
></el-option>
<el-option
label=
"合同"
value=
"4"
></el-option>
<el-option
label=
"执行"
value=
"5"
></el-option>
<el-option
label=
"结决算及转资"
value=
"6"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"问题检查项:"
prop=
"quesCheckItem"
class=
"fromItem"
>
<el-input
v-model=
"ruleForm.quesCheckItem"
placeholder=
"请输入"
clearable
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"规则状态:"
prop=
"ruleStatus"
class=
"fromItem"
>
<el-select
v-model=
"ruleForm.ruleStatus"
placeholder=
"请选择"
clearable
>
<el-option
label=
"开启"
value=
"0"
></el-option>
<el-option
label=
"关闭"
value=
"1"
></el-option>
</el-select>
<el-form-item
label=
"规则名称:"
prop=
"ruleName"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.ruleName"
placeholder=
"请输入"
clearable
@
input=
"numberVal"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"创建人:"
prop=
"creator"
class=
"fromItem"
>
<el-input
v-model=
"ruleForm.creator"
v-model=
"ruleForm
dialog
.creator"
placeholder=
"请输入"
clearable
@
input=
"numberVal"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"创建时间:"
prop=
"createTime"
class=
"fromItem"
>
<el-date-picker
@
change=
"timeChange"
v-model=
"ruleForm.dates"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
-->
<el-form-item
class=
"button"
>
<el-button
@
click=
"submitForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/cx.png"
/>
查询
</el-button
>
<el-button
@
click=
"resetForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/cz.png"
/>
重置
</el-button
>
<el-button
@
click=
"detailsForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/ck.png"
/>
详情
</el-button
<el-form-item
label=
"规则状态:"
prop=
"ruleStatus"
class=
"fromItem"
>
<el-switch
disabled
v-model=
"ruleFormdialog.ruleStatus"
active-color=
"#13ce66"
inactive-color=
"#C0C0C0"
active-value=
"0"
inactive-value=
"1"
active-text=
""
inactive-text=
""
>
<
template
v-slot:active
>
<span>
开启
</span>
</
template
>
<
template
v-slot:inactive
>
<span>
关闭
</span>
</
template
>
</el-switch>
</el-form-item>
</el-form>
<div
class=
"setscroll
One
"
>
<div
class=
"setscroll
dialogAdd
"
>
<el-table
@
selection-change=
"handleSelectionChange"
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark myTooltips"
:data=
"tableDataXQ"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
class=
"eltable"
...
...
@@ -74,84 +184,101 @@
>
<el-table-column
label=
"序号"
width=
"55"
type=
"index"
>
</el-table-column>
<el-table-column
type=
"selection"
>
</el-table-column>
<el-table-column
label=
"项目环节"
prop=
"projectStagetext"
>
</el-table-column>
<el-table-column
prop=
"quesCheckItem"
label=
"问题检查项"
show-overflow-tooltip
>
<el-table-column
label=
"问题检查项"
prop=
"quesCheckItem"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"检查说明"
prop=
"checkDesc"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"详细列表"
prop=
"checkDesc"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
v-if=
"scope.row.configValue == 1"
type=
"primary"
class=
"btn-search"
@
click=
"edit(scope.row,scope.$index, '详情')"
>
编制
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"检查说明"
prop=
"checkDesc"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"判断规则"
prop=
"fullRule"
show-overflow-tooltip
>
</el-table-column>
</el-table>
</div>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[
10, 15, 20, 50,10
0]"
@
size-change=
"handleSizeChange
XQ
"
@
current-change=
"handleCurrentChange
XQ
"
:current-page=
"
XQ
currentPage"
:page-sizes=
"[
5, 10, 20, 5
0]"
:page-size=
"1000"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
:total=
"total
XQ
"
class=
"elpagination"
>
</el-pagination>
<el-dialog
title=
"详情"
:visible
.
sync=
"dialog"
width=
"90%"
:modal-append-to-body=
"false"
:append-to-body=
"false"
class=
"dialog"
>
<el-form
:model=
"ruleFormdialog"
ref=
"ruleFormdialog"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"项目环节:"
prop=
"projectStagetext"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.projectStagetext"
placeholder=
"请输入"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"问题检查项:"
prop=
"quesCheckItem"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.quesCheckItem"
placeholder=
"请输入"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"检查说明:"
prop=
"checkDesc"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.checkDesc"
placeholder=
"请输入"
type=
"textarea"
disabled
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"规则名称:"
prop=
"ruleName"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.ruleName"
placeholder=
"请输入"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"规则类型:"
prop=
"ruleType"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.ruleType"
placeholder=
"请输入"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"规则状态:"
prop=
"ruleStatus"
class=
"fromItem"
>
<el-select
v-model=
"ruleFormdialog.ruleStatus"
placeholder=
"请选择"
disabled
>
<el-option
label=
"开启"
value=
"0"
></el-option>
<el-option
label=
"关闭"
value=
"1"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"创建人:"
prop=
"creator"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialog.creator"
placeholder=
"请输入"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"创建时间:"
prop=
"createTime"
class=
"fromItem"
>
<el-date-picker
v-model=
"ruleFormdialog.createTime"
type=
"date"
disabled
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
-->
<p
class=
"close"
><span
@
click=
"cancel()"
>
关闭
</span></p>
</el-dialog>
<!-- 新增弹窗 -->
<el-dialog
title=
"添加检查规则"
:visible
.
sync=
"dialogAdd"
width=
"90%"
:modal-append-to-body=
"false"
:append-to-body=
"false"
>
<div
class=
"dialog"
>
<el-form
ref=
"formNameAD"
:model=
"ruleFormdialogAdd"
label-width=
"100px"
class=
"demo-ruleForm"
:rules=
"rules"
>
<el-form-item
label=
"规则名称:"
prop=
"ruleName"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialogAdd.ruleName"
placeholder=
"请输入"
clearable
@
input=
"numberVal"
></el-input>
</el-form-item>
<el-form-item
label=
"创建人:"
prop=
"creator"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialogAdd.creator"
placeholder=
"请输入"
clearable
@
input=
"numberVal"
></el-input>
</el-form-item>
<el-form-item
label=
"规则状态:"
prop=
"ruleStatus"
class=
"fromItem"
>
<el-switch
v-model=
"ruleFormdialogAdd.ruleStatus"
active-color=
"#13ce66"
inactive-color=
"#C0C0C0"
active-value=
"0"
inactive-value=
"1"
active-text=
""
inactive-text=
""
>
<
template
v-slot:active
>
<span>
开启
</span>
</
template
>
<
template
v-slot:inactive
>
<span>
关闭
</span>
</
template
>
</el-switch>
</el-form-item>
</el-form>
<p
class=
"zjBtn"
>
判断规则名称
</p>
<div
class=
"setscrolldialog
Add
"
>
<p
class=
"zjBtn"
>
检查规则编制
</p>
<div
class=
"setscrolldialog"
>
<el-table
:data=
"tableData
XQ
"
:data=
"tableData
QR
"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
...
...
@@ -159,438 +286,558 @@
:row-class-name=
"tableRowClassName"
border
>
<!-- <el-table-column label="材料类别" prop="projectStagetext" width="100">
</el-table-column> -->
<el-table-column
label=
"序号"
width=
"55"
type=
"index"
>
</el-table-column>
<el-table-column
type=
"selection"
>
</el-table-column>
<el-table-column
label=
"判断规则名称"
prop=
"ruleName"
>
<el-table-column
label=
"问题检查项"
prop=
"quesCheckItem"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"ruleStatus
"
label=
"规则状态
"
label=
"检查说明
"
prop=
"checkDesc
"
show-overflow-tooltip
>
</el-table-column>
<!-- v-if="scope.row.questionId==1" -->
<el-table-column
prop=
"lishi"
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.ruleStatus"
active-color=
"#13ce66"
inactive-color=
"#C0C0C0"
active-value=
"0"
inactive-value=
"1"
active-text=
""
inactive-text=
""
disabled
<el-button
size=
"small"
v-if=
"scope.row.questionId == 1"
type=
"primary"
class=
"btn-search"
@
click=
"edit(scope.row,scope.$index)"
>
<template
v-slot:active
>
<span>
开启
</span>
</
template
>
<
template
v-slot:inactive
>
<span>
关闭
</span>
</
template
>
</el-switch>
编制
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"creator"
label=
"创建人"
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
>
</el-table-column>
</el-table>
</div>
<el-pagination
@
size-change=
"handleSizeChangeXQ"
@
current-change=
"handleCurrentChangeXQ"
:current-page=
"XQcurrentPage"
:page-sizes=
"[5, 10, 20, 50]"
:page-size=
"1000"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalXQ"
class=
"elpagination"
>
</el-pagination>
<p
class=
"close"
><span
@
click=
"cancel()"
>
关闭
</span></p>
</el-dialog>
</div>
</template>
<p
class=
"midBtn"
>
<span
@
click=
"cancelXZ()"
>
取消
</span
><span
@
click=
"saveXZ()"
>
保存
</span>
</p>
</div>
</el-dialog>
<!-- 编辑弹窗 -->
<el-dialog
title=
"检查规则编制"
:visible
.
sync=
"dialogedit"
width=
"60%"
class=
"tips"
:modal-append-to-body=
"false"
:append-to-body=
"false"
>
<div
class=
"bjrule"
>
<el-checkbox-group
v-model=
"checkList"
>
<el-checkbox
label=
"1"
>
应有可研报告或项目说明书
</el-checkbox>
<el-checkbox
label=
"2"
>
可研评审意见
</el-checkbox>
<el-checkbox
label=
"3"
>
可研批复
</el-checkbox>
</el-checkbox-group>
<p
class=
"midBtn bjBtn"
>
<span
@
click=
"cancelBJ()"
>
取消
</span
><span
@
click=
"saveBJ()"
>
保存
</span>
</p>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
MaterialsList
}
from
'@/utils/cache'
import
{
ruleFormulation
,
iPageRorm
import
{
MaterialsList
}
from
"@/utils/cache"
;
import
{
ruleFormulation
,
iPageRorm
,
addruleFormulation
,
addSelWtqd
,
addiPageRorm
,
}
from
"@/api/index"
;
import
{
getCurrentDate
}
from
"@/utils/format"
;
export
default
{
data
()
{
return
{
listData
:
{},
qdtableData
:
JSON
.
parse
(
JSON
.
stringify
(
MaterialsList
())),
tableDataNew
:
MaterialsList
(),
xxtableData
:[],
showButton
:
true
,
ruleForm
:
{
batchYear
:
""
,
batchName
:
""
,
postEvalState
:
""
,
projectName
:
""
,
projectId
:
""
,
// dates:[]
},
ruleFormdialog
:
{
batchYear
:
""
,
batchName
:
""
,
planReviewDate
:
""
,
fullName
:
""
,
},
tableData
:
[],
checkedList
:
[],
currentPage
:
1
,
pageSize
:
10
,
currentPagetjcl
:
1
,
pageSizetjcl
:
10
,
total
:
0
,
dialog
:
false
,
activeName
:
"first"
,
mergingRows
:
[],
lctableData
:[],
tableDataXQ
:[],
totalXQ
:
0
,
pageSizeXQ
:
5
,
XQcurrentPage
:
1
,
};
export
default
{
data
()
{
return
{
editIndex
:
99999999
,
checkList
:
[],
tableDataQR
:
[],
ruleFormdialogAdd
:
{},
listData
:
{},
qdtableData
:
JSON
.
parse
(
JSON
.
stringify
(
MaterialsList
())),
tableDataNew
:
MaterialsList
(),
xxtableData
:
[],
showButton
:
true
,
ruleForm
:
{},
ruleFormdialog
:
{
batchYear
:
""
,
batchName
:
""
,
planReviewDate
:
""
,
fullName
:
""
,
},
tableData
:
[],
checkedList
:
[],
currentPage
:
1
,
pageSize
:
10
,
currentPagetjcl
:
1
,
pageSizetjcl
:
10
,
total
:
0
,
dialog
:
false
,
activeName
:
"first"
,
mergingRows
:
[],
lctableData
:
[],
tableDataXQ
:
[],
totalXQ
:
0
,
pageSizeXQ
:
5
,
XQcurrentPage
:
1
,
dialogAdd
:
false
,
dialogedit
:
false
,
rules
:
{
ruleName
:
[
{
required
:
true
,
message
:
"请输入规则名称"
,
trigger
:
"change"
,
},
],
ruleStatus
:
[
{
required
:
true
,
message
:
"请选择规则状态"
,
trigger
:
"change"
,
},
],
creator
:
[
{
required
:
true
,
message
:
"请输入创建人"
,
trigger
:
"change"
,
},
],
},
configInfo
:
''
,
//编制的入参信息
};
},
filters
:
{
isProblemFilter
(
val
)
{
if
(
val
==
1
)
{
return
"关闭"
;
}
else
{
return
"开启"
;
}
},
mounted
()
{
this
.
submitForm
();
},
mounted
()
{
this
.
submitForm
();
},
methods
:
{
async
saveXZ
()
{
console
.
log
(
this
.
tableDataQR
,
' this.tableDataQR'
)
this
.
$refs
.
formNameAD
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
console
.
log
(
"error submit!!"
);
return
false
;
}
else
{
let
params
=
{
createTime
:
getCurrentDate
(),
};
let
paramsArr
=
this
.
tableDataQR
.
filter
(
items
=>
{
return
items
.
configValue
});
let
namesString
=
paramsArr
.
map
(
obj
=>
obj
.
configValue
).
join
(
'-'
);
let
quesStr
=
paramsArr
.
map
(
obj
=>
obj
.
questionId
).
join
(
'-'
);
console
.
log
(
namesString
,
'222222'
)
//下边字符串转好在传过来
if
(
namesString
)
{
params
.
questionId
=
quesStr
;
params
.
configValue
=
namesString
}
Object
.
assign
(
params
,
this
.
ruleFormdialogAdd
);
addruleFormulation
(
params
).
then
((
res
)
=>
{
this
.
dialogAdd
=
false
;
this
.
resetForm
();
});
}
});
},
cancelXZ
()
{
this
.
dialogAdd
=
false
;
},
numberVal
(
val
)
{
this
.
$forceUpdate
();
},
//点击新增
async
add
()
{
this
.
dialogAdd
=
true
;
let
res
=
await
addSelWtqd
();
this
.
tableDataQR
=
res
.
data
.
records
;
},
methods
:
{
timeChange
(
time
)
{
//点击编辑
async
edit
(
info
,
index
)
{
console
.
log
(
info
,
index
,
"2222"
);
this
.
editIndex
=
index
this
.
dialogedit
=
true
;
if
(
info
.
questionId
==
1
&&
info
.
configValue
)
{
this
.
checkList
=
info
.
configValue
.
split
(
","
);
}
console
.
log
(
this
.
checkList
,
"3333"
);
},
timeChange
(
time
)
{
if
(
time
)
{
//给后端的参数
this
.
ruleForm
.
auditStartTime
=
time
[
0
];
this
.
ruleForm
.
auditEndTime
=
time
[
1
];
}
else
{
}
else
{
this
.
ruleForm
.
auditStartTime
=
""
;
this
.
ruleForm
.
auditEndTime
=
""
;
}
},
async
submitForm
()
{
let
params
=
{
current
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
};
Object
.
assign
(
params
,
this
.
ruleForm
);
console
.
log
(
params
);
let
res
=
await
ruleFormulation
(
params
);
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
(
item
=>
{
switch
(
item
.
projectStage
)
{
case
1
:
async
submitForm
()
{
let
params
=
{
current
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
};
Object
.
assign
(
params
,
this
.
ruleForm
);
console
.
log
(
params
);
let
res
=
await
ruleFormulation
(
params
);
console
.
log
(
res
,
"reslll11"
);
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
((
item
)
=>
{
switch
(
item
.
projectStage
)
{
case
"1"
:
this
.
$set
(
item
,
"projectStagetext"
,
"可研"
);
break
;
case
2
:
case
"2"
:
this
.
$set
(
item
,
"projectStagetext"
,
"计划"
);
break
;
case
3
:
case
"3"
:
this
.
$set
(
item
,
"projectStagetext"
,
"采购"
);
break
;
case
4
:
case
"4"
:
this
.
$set
(
item
,
"projectStagetext"
,
"合同"
);
break
;
case
5
:
case
"5"
:
this
.
$set
(
item
,
"projectStagetext"
,
"执行"
);
break
;
case
6
:
case
"6"
:
this
.
$set
(
item
,
"projectStagetext"
,
"结决算及转资"
);
break
;
}
})
this
.
total
=
res
.
data
.
total
*
1
;
}
},
resetForm
()
{
this
.
$refs
.
formName
.
resetFields
();
this
.
currentPage
=
1
;
this
.
pageSize
=
10
;
this
.
ruleForm
.
auditStartTime
=
""
;
this
.
ruleForm
.
auditEndTime
=
""
;
// this.ruleForm.datas=[]
this
.
submitForm
();
},
//详情
async
detailsForm
()
{
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
this
.
dialog
=
true
this
.
ruleFormdialog
=
this
.
checkedList
[
0
]
let
params
=
{
current
:
this
.
XQcurrentPage
,
pageSize
:
this
.
pageSizeXQ
,
projectStage
:
this
.
checkedList
[
0
].
questionId
}
let
res
=
await
iPageRorm
(
params
)
this
.
tableDataXQ
=
res
.
data
.
records
this
.
totalXQ
=
res
.
data
.
total
},
//表格颜色
tableRowClassName
({
row
,
rowIndex
})
{
if
(
rowIndex
%
2
==
1
)
{
return
"warning-row"
;
}
return
""
;
},
});
this
.
total
=
res
.
data
.
total
*
1
;
}
},
resetForm
()
{
this
.
$refs
.
formName
.
resetFields
();
this
.
currentPage
=
1
;
this
.
pageSize
=
10
;
this
.
ruleForm
.
auditStartTime
=
""
;
this
.
ruleForm
.
auditEndTime
=
""
;
this
.
ruleForm
.
dates
=
[];
this
.
submitForm
();
},
//详情
async
detailsForm
()
{
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
this
.
dialog
=
true
;
this
.
ruleFormdialog
=
this
.
checkedList
[
0
];
let
params
=
{
current
:
this
.
XQcurrentPage
,
pageSize
:
this
.
pageSizeXQ
,
projectStage
:
this
.
checkedList
[
0
].
questionId
,
};
let
res
=
await
iPageRorm
(
params
);
this
.
tableDataXQ
=
res
.
data
.
records
;
this
.
totalXQ
=
res
.
data
.
total
;
},
//主列表选中行信息
handleSelectionChange
(
selection
)
{
if
(
Array
.
isArray
(
selection
)
&&
selection
.
length
>
1
)
{
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
selection
[
0
],
false
);
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
selection
[
1
],
true
);
}
this
.
checkedList
=
this
.
$refs
.
multipleTable
.
selection
;
this
.
ruleFormdialog
=
this
.
checkedList
[
0
];
console
.
log
(
this
.
checkedList
,
"2222"
);
},
handleSizeChange
(
val
)
{
console
.
log
(
`每页
${
val
}
条`
);
this
.
pageSize
=
val
;
this
.
submitForm
()
},
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
this
.
currentPage
=
val
;
this
.
submitForm
()
},
cancel
()
{
this
.
dialog
=
false
;
},
handleSizeChangeXQ
(
val
)
{
//表格颜色
tableRowClassName
({
row
,
rowIndex
})
{
if
(
rowIndex
%
2
==
1
)
{
return
"warning-row"
;
}
return
""
;
},
//主列表选中行信息
handleSelectionChange
(
selection
)
{
if
(
Array
.
isArray
(
selection
)
&&
selection
.
length
>
1
)
{
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
selection
[
0
],
false
);
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
selection
[
1
],
true
);
}
this
.
checkedList
=
this
.
$refs
.
multipleTable
.
selection
;
this
.
ruleFormdialog
=
this
.
checkedList
[
0
];
console
.
log
(
this
.
checkedList
,
"2222"
);
},
handleSizeChange
(
val
)
{
console
.
log
(
`每页
${
val
}
条`
);
this
.
pageSize
=
val
;
this
.
submitForm
();
},
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
this
.
currentPage
=
val
;
this
.
submitForm
();
},
cancel
()
{
this
.
dialog
=
false
;
},
handleSizeChangeXQ
(
val
)
{
this
.
pageSizeXQ
=
val
;
this
.
detailsForm
()
this
.
detailsForm
()
;
},
handleCurrentChangeXQ
(
val
)
{
this
.
XQcurrentPage
=
val
;
this
.
detailsForm
()
this
.
detailsForm
()
;
},
cancelBJ
()
{
this
.
dialogedit
=
false
;
this
.
checkList
=
[];
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.main
{
font-size
:
14px
;
position
:
relative
;
height
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
overflow-x
:
hidden
;
}
.el-form
{
display
:
flex
;
width
:
100%
;
flex-wrap
:
wrap
;
border-top
:
2px
solid
#23c6c8
;
border-left
:
1px
solid
#dee5e7
;
border-right
:
1px
solid
#dee5e7
;
border-bottom
:
1px
solid
#dee5e7
;
padding
:
20px
10px
;
margin-bottom
:
20px
;
.fromItem
{
min-width
:
24%
;
margin
:
0
0.5%
;
margin-bottom
:
20px
;
.el-input
{
width
:
226px
;
saveBJ
()
{
this
.
dialogedit
=
false
;
if
(
Array
.
isArray
(
this
.
checkList
)){
this
.
configInfo
=
this
.
checkList
.
sort
().
join
();
}
.el-select
{
width
:
226px
;
if
(
this
.
configInfo
)
{
this
.
tableDataQR
[
this
.
editIndex
].
configValue
=
this
.
configInfo
}
console
.
log
(
"选了什么"
,
this
.
configInfo
);
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.main
{
font-size
:
14px
;
position
:
relative
;
height
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
overflow-x
:
hidden
;
}
.el-form
{
display
:
flex
;
width
:
100%
;
flex-wrap
:
wrap
;
border-top
:
2px
solid
#23c6c8
;
border-left
:
1px
solid
#dee5e7
;
border-right
:
1px
solid
#dee5e7
;
border-bottom
:
1px
solid
#dee5e7
;
padding
:
20px
10px
;
margin-bottom
:
20px
;
.fromItem
{
min-width
:
24%
;
margin
:
0
0.5%
;
margin-bottom
:
20px
;
.el-input
{
width
:
226px
;
}
/
deep
/
.el-form-item__content
{
text-align
:
left
;
display
:
inline-block
;
margin-left
:
10px
!important
;
}
/
deep
/
.el-form-item__label
{
font-weight
:
bold
;
color
:
#000
;
width
:
160px
!important
;
}
.button
{
display
:
inline-block
;
width
:
100%
;
text-align
:
left
;
/deep/
.el-form-item__content
{
margin-left
:
20px
!important
;
text-align
:
left
;
img
{
width
:
14px
;
height
:
14px
;
margin-right
:
15px
;
vertical-align
:
middle
;
}
}
.el-button
{
background-color
:
#23c6c8
;
border-color
:
#23c6c8
;
color
:
#fff
;
}
.el-select
{
width
:
226px
;
}
}
.eltable
{
width
:
100%
;
box-sizing
:
border-box
;
}
/
deep
/
.el-table
.warning-row
{
background
:
#f0ffff
;
//
color
:
#2785e6
;
}
.elpagination
{
text-align
:
center
;
margin-right
:
100px
;
}
/
deep
/
.el-dialog
{
border-radius
:
10px
;
margin-top
:
3vh
!important
;
margin-left
:
3vw
!important
;
//
height
:
500px
;
//
box-sizing
:
border-box
;
//
overflow-y
:
auto
;
}
/
deep
/
.el-dialog__wrapper
{
position
:
absolute
;
}
/
deep
/
.v-modal
{
position
:
absolute
;
}
/
deep
/
.el-dialog__header
{
background-color
:
#0d867f
;
//
padding-bottom
:
20px
;
/
deep
/
.el-form-item__content
{
text-align
:
left
;
border-radius
:
10px
10px
0
0
;
.el-dialog__title
{
color
:
#fff
;
}
display
:
inline-block
;
margin-left
:
10px
!important
;
}
/
deep
/
.el-table__header
th
{
background-color
:
#f5f5f5
;
/
deep
/
.el-form-item__label
{
font-weight
:
bold
;
.cell
{
color
:
#333
;
}
}
/
deep
/
.el-table
{
width
:
100%
;
.el-table__header-wrapper
table,
.el-table__body-wrapper
table
{
width
:
100%
!important
;
}
.el-table__body
,
.el-table__footer
,
.el-table__header
{
table-layout
:
auto
;
}
color
:
#000
;
width
:
160px
!important
;
}
.textarea
{
.button
{
display
:
inline-block
;
width
:
100%
;
.el-textarea
{
width
:
60%
;
}
}
.Btn
{
width
:
200px
;
margin
:
0
auto
;
span
{
display
:
inline-block
;
width
:
80px
;
height
:
25px
;
line-height
:
25px
;
text-align
:
center
;
border-radius
:
4px
;
margin-right
:
12px
;
}
span
:first-of-type
{
border
:
1px
solid
#000
;
text-align
:
left
;
/deep/
.el-form-item__content
{
margin-left
:
20px
!important
;
text-align
:
left
;
img
{
width
:
14px
;
height
:
14px
;
margin-right
:
15px
;
vertical-align
:
middle
;
}
}
span
:last-of-type
{
background-color
:
#
0d867f
;
border
:
1px
solid
#0d867f
;
.el-button
{
background-color
:
#
23c6c8
;
border
-color
:
#23c6c8
;
color
:
#fff
;
}
}
/
deep
/
.el-dialog__headerbtn
.el-dialog__close
{
}
.eltable
{
width
:
100%
;
box-sizing
:
border-box
;
}
/
deep
/
.el-table
.warning-row
{
background
:
#f0ffff
;
//
color
:
#2785e6
;
}
.elpagination
{
text-align
:
center
;
margin-right
:
100px
;
}
/
deep
/
.el-dialog
{
border-radius
:
10px
;
margin-top
:
3vh
!important
;
margin-left
:
3vw
!important
;
//
height
:
500px
;
//
box-sizing
:
border-box
;
//
overflow-y
:
auto
;
}
/
deep
/
.el-dialog__wrapper
{
position
:
absolute
;
}
/
deep
/
.v-modal
{
position
:
absolute
;
}
/
deep
/
.el-dialog__header
{
background-color
:
#0d867f
;
//
padding-bottom
:
20px
;
text-align
:
left
;
border-radius
:
10px
10px
0
0
;
.el-dialog__title
{
color
:
#fff
;
}
/
deep
/
.el-table
th
.el-table__cell.is-leaf
,
.el-table
td
.el-table__cell
{
text-align
:
center
;
}
/
deep
/
.el-table__header
th
{
background-color
:
#f5f5f5
;
font-weight
:
bold
;
.cell
{
color
:
#333
;
}
/
deep
/
.el-table__cell
{
text-align
:
center
;
}
/
deep
/
.el-table
{
width
:
100%
;
.el-table__header-wrapper
table,
.el-table__body-wrapper
table
{
width
:
100%
!important
;
}
h3
{
text-align
:
left
;
.el-table__body
,
.el-table__footer
,
.el-table__header
{
table-layout
:
auto
;
}
/
deep
/
.el-dialog__body
{
padding
:
0
10px
;
h3
{
margin
:
10px
0
;
}
}
.textarea
{
width
:
100%
;
.el-textarea
{
width
:
60%
;
}
/
deep
/
.el-descriptions-item__container
.el-descriptions-item__label
{
font-weight
:
bold
;
width
:
100px
;
text-align
:
right
;
}
.Btn
{
width
:
200px
;
margin
:
0
auto
;
span
{
display
:
inline-block
;
width
:
80px
;
height
:
25px
;
line-height
:
25px
;
text-align
:
center
;
border-radius
:
4px
;
margin-right
:
12px
;
}
/
deep
/
.el-tabs__content
{
overflow
:
auto
;
height
:
500px
;
padding-bottom
:
20px
;
span
:first-of-type
{
border
:
1px
solid
#000
;
}
.close
{
width
:
100%
;
height
:
40px
;
line-height
:
20px
;
span
{
display
:
inline-block
;
width
:
80px
;
height
:
30px
;
line-height
:
30px
;
border
:
1px
solid
grey
;
border-radius
:
5px
;
}
span
:last-of-type
{
background-color
:
#0d867f
;
border
:
1px
solid
#0d867f
;
color
:
#fff
;
}
.setscrolldialog
{
width
:
100%
;
height
:
300px
;
overflow
:
auto
;
box-sizing
:
border-box
;
/deep/
.el-table
{
width
:
96%
!important
;
height
:
300px
;
overflow
:
auto
;
}
}
/
deep
/
.el-dialog__headerbtn
.el-dialog__close
{
color
:
#fff
;
}
/
deep
/
.el-table
th
.el-table__cell.is-leaf
,
.el-table
td
.el-table__cell
{
text-align
:
center
;
}
/
deep
/
.el-table__cell
{
text-align
:
center
;
}
h3
{
text-align
:
left
;
}
/
deep
/
.el-dialog__body
{
padding
:
0
10px
;
h3
{
margin
:
10px
0
;
}
}
/
deep
/
.el-descriptions-item__container
.el-descriptions-item__label
{
font-weight
:
bold
;
width
:
100px
;
text-align
:
right
;
}
/
deep
/
.el-tabs__content
{
overflow
:
auto
;
height
:
500px
;
padding-bottom
:
20px
;
}
.close
{
width
:
100%
;
height
:
40px
;
line-height
:
20px
;
span
{
display
:
inline-block
;
width
:
80px
;
height
:
30px
;
line-height
:
30px
;
border
:
1px
solid
grey
;
border-radius
:
5px
;
}
/
deep
/
.el-switch__core
:after
{
height
:
17px
;
top
:
0
;
}
.setscrolldialog
{
width
:
100%
;
height
:
550px
;
overflow
:
auto
;
box-sizing
:
border-box
;
/deep/
.el-table
{
width
:
96%
!important
;
height
:
550px
;
overflow
:
auto
;
}
.dialog
{
.el-form{
border
:
none
!important
;
}
/
deep
/
.el-switch__core
:after
{
height
:
17px
;
top
:
0
;
}
.dialog
{
.el-form
{
border
:
none
!important
;
border-top
:
none
;
border-left
:
none
;
border-right
:
none
;
border-bottom
:
none
;
}
}
.zjBtn
{
}
.zjBtn
{
width
:
400px
;
text-align
:
left
;
vertical-align
:
middle
;
...
...
@@ -610,4 +857,42 @@
margin-left
:
10px
;
}
}
</
style
>
\ No newline at end of file
.midBtn
{
margin
:
0
auto
;
height
:
50px
;
line-height
:
50px
;
span
{
display
:
inline-block
;
width
:
80px
;
height
:
25px
;
line-height
:
25px
;
text-align
:
center
;
margin-right
:
10px
;
border-radius
:
5px
;
}
span
:first-of-type
{
border
:
1px
solid
grey
;
}
span
:last-of-type
{
background-color
:
#4ca6a7
;
color
:
#fff
;
}
}
.tips
{
margin-left
:
19vw
;
height
:
1000px
;
//
margin-top
:
30vh
;
}
.bjrule
{
height
:
200px
;
padding-top
:
50px
;
padding-bottom
:
50px
;
position
:
relative
;
}
.bjBtn
{
position
:
absolute
;
bottom
:
10px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment