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 f27b9f04
authored
May 08, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加问查询界面
1 parent
ae4021fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
266 deletions
src/views/postConcentrationCheck/problemLlistQuery.vue
src/views/postConcentrationCheck/problemLlistQuery.vue
View file @
f27b9f0
<!-- 问题清单
查询
-->
<!-- 问题清单 -->
<
template
>
<
template
>
<div
class=
"main"
>
<div
class=
"main"
>
<el-form
:model=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
ref=
"formName"
>
<el-form
:model=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
ref=
"formName"
>
...
@@ -25,11 +25,13 @@
...
@@ -25,11 +25,13 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"项目环节:"
prop=
"projectLink"
class=
"fromItem"
>
<el-form-item
label=
"项目环节:"
prop=
"projectLink"
class=
"fromItem"
>
<el-select
v-model=
"ruleForm.projectLink"
placeholder=
"请选择"
>
<el-select
v-model=
"ruleForm.projectLink"
placeholder=
"请选择"
>
<el-option
label=
"实施"
value=
"1"
></el-option>
<el-option
label=
"可研"
value=
"1"
></el-option>
<el-option
label=
"结决算"
value=
"2"
></el-option>
<el-option
label=
"计划"
value=
"2"
></el-option>
<el-option
label=
"合同"
value=
"3"
></el-option>
<el-option
label=
"采购"
value=
"3"
></el-option>
<el-option
label=
"结决算"
value=
"4"
></el-option>
<el-option
label=
"合同"
value=
"4"
></el-option>
<el-option
label=
"计划"
value=
"5"
></el-option>
<el-option
label=
"执行"
value=
"5"
></el-option>
<el-option
label=
"结决算"
value=
"6"
></el-option>
<el-option
label=
"转资"
value=
"7"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否申诉:"
prop=
"appealFlag"
class=
"fromItem"
>
<el-form-item
label=
"是否申诉:"
prop=
"appealFlag"
class=
"fromItem"
>
...
@@ -161,14 +163,7 @@
...
@@ -161,14 +163,7 @@
<
script
>
<
script
>
import
{
import
{
expertInfo
,
expert
,
sendEvalBatchInfo
,
adEvalBatchInfo
,
updEvalBatchInfo
,
evalBatchInfo
,
evalBatchInfo
,
delEvalBatchInfo
,
chEvalBatchInfo
,
}
from
"@/api/index"
;
}
from
"@/api/index"
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -191,18 +186,6 @@
...
@@ -191,18 +186,6 @@
planReviewDate
:
""
,
planReviewDate
:
""
,
fullName
:
""
,
fullName
:
""
,
},
},
ruleFormZJ
:
{
fields
:
""
,
expertState
:
""
,
fullName
:
""
,
},
ruleFormdialogAdd
:
{
batchYear
:
""
,
batchName
:
""
,
planReviewDate
:
""
,
description
:
""
,
remark
:
""
,
},
ruleFormdialogBJ
:
{
ruleFormdialogBJ
:
{
batchYear
:
""
,
batchYear
:
""
,
batchName
:
""
,
batchName
:
""
,
...
@@ -210,25 +193,6 @@
...
@@ -210,25 +193,6 @@
description
:
""
,
description
:
""
,
remark
:
""
,
remark
:
""
,
},
},
rules
:
{
batchYear
:
[
{
required
:
true
,
message
:
"请选择批次年度"
,
trigger
:
"change"
},
],
batchName
:
[
{
required
:
true
,
message
:
"请选择后评估批次名称"
,
trigger
:
"change"
,
},
],
planReviewDate
:
[
{
required
:
true
,
message
:
"请选择计划评审日期"
,
trigger
:
"change"
,
},
],
},
xfParams
:
""
,
//下发入参
xfParams
:
""
,
//下发入参
tableData
:
[],
tableData
:
[],
tableDataQD
:
[],
//清单列表
tableDataQD
:
[],
//清单列表
...
@@ -240,13 +204,10 @@
...
@@ -240,13 +204,10 @@
dialogXQ
:
false
,
dialogXQ
:
false
,
currentPageBJ
:
1
,
currentPageBJ
:
1
,
pageSizeBJ
:
10
,
pageSizeBJ
:
10
,
dialogAdd
:
false
,
dialogAdd
:
false
,
dialogAddzj
:
false
,
dialogAddzj
:
false
,
pageSize
:
10
,
pageSize
:
10
,
current
:
1
,
current
:
1
,
pageSizeZJ
:
10
,
currentZJ
:
1
,
addtotal
:
0
,
addtotal
:
0
,
currentAdd
:
1
,
currentAdd
:
1
,
pageSizeAdd
:
10
,
pageSizeAdd
:
10
,
...
@@ -259,9 +220,6 @@
...
@@ -259,9 +220,6 @@
addZJList
:
[],
addZJList
:
[],
expertState
:
""
,
expertState
:
""
,
fields
:
""
,
fields
:
""
,
zjfullName
:
""
,
zjtotal
:
0
,
zjtableData
:
[],
addcurrentPage
:
1
,
addcurrentPage
:
1
,
addtableData
:
[],
addtableData
:
[],
message
:
{},
message
:
{},
...
@@ -284,14 +242,31 @@
...
@@ -284,14 +242,31 @@
if
(
res
.
code
==
"200"
)
{
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
(
item
=>
{
this
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
postEvalState
==
''
||
item
.
postEvalState
==
null
){
if
(
item
.
projectPhase
==
''
||
item
.
projectPhase
==
null
){
// this.$set( item,'postEvalState','')
}
else
if
(
item
.
projectPhase
==
'1'
){
}
else
if
(
item
.
postEvalState
==
'0'
){
this
.
$set
(
item
,
'projectPhase'
,
'项目验收'
)
this
.
$set
(
item
,
'postEvalState'
,
'未下发'
)
}
else
if
(
item
.
projectPhase
==
'2'
){
}
else
if
(
item
.
postEvalState
==
'2'
){
this
.
$set
(
item
,
'projectPhase'
,
'项目建设'
)
this
.
$set
(
item
,
'postEvalState'
,
'已撤回'
)
}
else
{
}
else
{
this
.
$set
(
item
,
'postEvalState'
,
'已下发'
)
this
.
$set
(
item
,
'projectPhase'
,
'项目前期'
)
}
}),
this
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
projectLink
==
''
||
item
.
projectLink
==
null
){
}
else
if
(
item
.
projectLink
==
'1'
){
this
.
$set
(
item
,
'projectLink'
,
'可研'
)
}
else
if
(
item
.
projectLink
==
'2'
){
this
.
$set
(
item
,
'projectLink'
,
'计划'
)
}
else
if
(
item
.
projectLink
==
'3'
){
this
.
$set
(
item
,
'projectLink'
,
'采购'
)
}
else
if
(
item
.
projectLink
==
'4'
){
this
.
$set
(
item
,
'projectLink'
,
'合同'
)
}
else
if
(
item
.
projectLink
==
'5'
){
this
.
$set
(
item
,
'projectLink'
,
'执行'
)
}
else
if
(
item
.
projectLink
==
'6'
){
this
.
$set
(
item
,
'projectLink'
,
'结决算'
)
}
else
{
this
.
$set
(
item
,
'projectLink'
,
'转资'
)
}
}
})
})
this
.
total
=
res
.
data
.
total
*
1
;
this
.
total
=
res
.
data
.
total
*
1
;
...
@@ -303,11 +278,6 @@
...
@@ -303,11 +278,6 @@
this
.
pageSize
=
10
;
this
.
pageSize
=
10
;
this
.
submitForm
();
this
.
submitForm
();
},
},
//点击新增
async
add
()
{
this
.
dialogAdd
=
true
;
this
.
addtableData
=
[];
//每次新增清空不然点了还是这几个人
},
//详情
//详情
async
detailsForm
()
{
async
detailsForm
()
{
if
(
this
.
checkedList
.
length
!=
1
)
{
if
(
this
.
checkedList
.
length
!=
1
)
{
...
@@ -386,210 +356,6 @@
...
@@ -386,210 +356,6 @@
cancel
()
{
cancel
()
{
this
.
dialog
=
false
;
this
.
dialog
=
false
;
},
},
async
save
(
type
)
{
this
.
dialog
=
false
;
if
(
type
==
"add"
)
{
let
params
=
{};
let
res
=
await
qrscevaluationMaterials
(
params
);
}
},
//保存专家
saveZJ
()
{
if
(
this
.
addZJList
.
length
<
1
)
{
this
.
$message
(
"请选择专家"
);
return
;
}
this
.
addtableData
=
this
.
addZJList
;
console
.
log
(
this
.
addtableData
,
"addtableData"
);
this
.
addtotal
=
this
.
addtableData
.
length
;
this
.
dialogAddzj
=
false
;
},
cancelZJ
()
{
this
.
dialogAddzj
=
false
;
},
cancelBJ
()
{
this
.
dialogedit
=
false
;
},
async
xzExperts
()
{
this
.
dialogAddzj
=
true
;
let
params
=
{
current
:
this
.
currentZJ
,
pageSize
:
this
.
pageSizeZJ
,
};
Object
.
assign
(
params
,
this
.
ruleFormZJ
);
console
.
log
(
"查询专家"
,
params
);
let
res
=
await
expertInfo
(
params
);
this
.
zjtableData
=
res
.
data
.
records
;
this
.
zjtotal
=
res
.
data
.
total
*
1
;
console
.
log
(
res
,
"xxx"
);
},
cancelBJ
()
{
this
.
dialogedit
=
false
;
},
saveXZ
()
{
console
.
log
(
"保存验证"
,
this
.
$refs
);
this
.
$refs
.
formName
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
console
.
log
(
"error submit!!"
);
return
false
;
}
else
{
if
(
this
.
addtableData
.
length
<
1
)
{
this
.
$message
(
"请选择专家"
);
}
console
.
log
(
this
.
addZJList
,
"this.addZJList"
);
let
expertIdList
=
[];
let
expertStr
=
''
;
this
.
addtableData
.
forEach
((
item
)
=>
{
expertIdList
.
push
(
item
.
expertId
);
expertStr
=
JSON
.
stringify
(
expertIdList
).
slice
(
1
,
-
1
);
});
let
params
=
{
expertStr
:
expertStr
,
};
Object
.
assign
(
params
,
this
.
ruleFormdialogAdd
);
this
.
xfParams
=
JSON
.
parse
(
JSON
.
stringify
(
params
));
console
.
log
(
params
,
"222"
);
adEvalBatchInfo
(
params
).
then
((
res
)
=>
{
this
.
dialogAdd
=
false
;
this
.
expertIdList
=
expertIdList
this
.
resetForm
();
});
}
});
// this.$emit("listenToChildEvent", "reset");
// }
},
cancelXZ
()
{
this
.
dialogAdd
=
false
;
},
saveBJ
()
{
console
.
log
(
"保存编辑验证"
,
this
.
$refs
.
formNameBJ
);
this
.
$refs
.
formNameBJ
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
console
.
log
(
"error submit!!"
);
return
false
;
}
else
{
if
(
this
.
addtableData
.
length
<
1
)
{
this
.
$message
(
"请选择专家"
);
}
console
.
log
(
this
.
addtableData
,
'addtableData'
)
let
expertIdList
=
[];
let
expertStr
=
''
;
this
.
addtableData
.
forEach
((
item
)
=>
{
expertIdList
.
push
(
item
.
expertId
);
expertStr
=
JSON
.
stringify
(
expertIdList
).
slice
(
1
,
-
1
);
});
console
.
log
(
expertStr
,
'expertStr'
)
let
params
=
{
expertStr
:
expertStr
,
};
Object
.
assign
(
this
.
ruleFormdialogBJ
,
params
);
// this.xfParams = JSON.parse(JSON.stringify(params));
console
.
log
(
this
.
ruleFormdialogBJ
,
"222"
);
updEvalBatchInfo
(
this
.
ruleFormdialogBJ
).
then
((
res
)
=>
{
this
.
dialogedit
=
false
;
this
.
resetForm
();
});
}
});
},
//选中的专家
handleSelectionChangeZJ
()
{
this
.
addZJList
=
this
.
$refs
.
multipleTableZJ
.
selection
;
console
.
log
(
this
.
$refs
.
multipleTableZJ
.
selection
,
"2222"
);
},
//点击编辑
async
edit
()
{
//只能选择编辑未下发 待增加
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
if
(
this
.
checkedList
[
0
].
postEvalState
==
'已下发'
){
this
.
$message
(
"不能编辑已下发的项目"
);
return
;
}
this
.
ruleFormdialogBJ
=
this
.
checkedList
[
0
]
this
.
dialogedit
=
true
let
params
=
{
current
:
this
.
currentedit
,
pageSize
:
this
.
pageSizeedit
,
batchId
:
this
.
checkedList
[
0
].
batchId
};
console
.
log
(
params
,
'params'
)
let
res
=
await
expert
(
params
);
this
.
addtableData
=
res
.
data
.
records
this
.
totalBJ
=
res
.
data
.
total
*
1
;
this
.
addtableData
.
forEach
(
item
=>
{
this
.
expertIdList
.
push
(
item
.
expertId
)
})
},
//点击删除
async
deletes
()
{
console
.
log
(
"删除"
)
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
let
res
=
await
delEvalBatchInfo
(
this
.
checkedList
[
0
]);
this
.
resetForm
()
},
//点击下发
async
sendMsg
(){
//只能选择未下发的 这块需要加一下
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
if
(
this
.
checkedList
[
0
].
postEvalState
==
'已下发'
){
this
.
$message
(
"该项目已下发"
);
return
;
}
// if(this.checkedList[0].postEvalState=='已撤回'){
// this.$message("该项目已撤回");
// return;
// }
if
(
this
.
checkedList
[
0
].
postEvalState
==
'已撤回'
){
this
.
$set
(
this
.
checkedList
[
0
],
'postEvalState'
,
'2'
)
}
else
{
this
.
$set
(
this
.
checkedList
[
0
],
'postEvalState'
,
'0'
)
}
let
res
=
await
sendEvalBatchInfo
(
this
.
checkedList
[
0
])
if
(
res
.
code
==
'200'
){
this
.
resetForm
()
}
},
//点击撤回
async
withdraw
(){
//只能选择已下发未确认的 这块需要加一下
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
if
(
this
.
checkedList
[
0
].
postEvalState
==
'未下发'
){
this
.
$message
(
"该项目未下发"
);
return
;
}
if
(
this
.
checkedList
[
0
].
postEvalState
==
'已撤回'
){
this
.
$message
(
"该项目已撤回"
);
return
;
}
this
.
$set
(
this
.
checkedList
[
0
],
'postEvalState'
,
'2'
)
let
res
=
await
chEvalBatchInfo
(
this
.
checkedList
[
0
])
if
(
res
.
code
==
'200'
){
this
.
resetForm
()
}
},
},
},
};
};
</
script
>
</
script
>
...
...
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