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 1467ef07
authored
Aug 13, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加退回功能
1 parent
70454be9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
173 additions
and
70 deletions
src/api/index.js
src/api/indexzc.js
src/views/assessChecks/auxiliaryInspection.vue
src/views/assessChecks/materialAcquisition.vue
src/views/assessZC/auxiliaryInspection.vue
src/views/assessZC/materialAcquisition.vue
src/api/index.js
View file @
1467ef0
...
...
@@ -458,4 +458,13 @@ export function postExist(params){
export
function
xzwtpostEvalQuesInfo
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfo/xzwt`
,
params
)
}
//材料退回
export
function
postEvalQuesInfoTh
(
params
){
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfo/th`
,
params
)
}
//重新长传状态
export
function
postEvalQuesInfocxtj
(
params
){
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfo/cxtj`
,
params
)
}
src/api/indexzc.js
View file @
1467ef0
...
...
@@ -455,4 +455,14 @@ export function HistoryVersion(params){
return
post
(
`
${
ARCH_EVALUATION
}
/pmProInitiation/HistoryVersion`
,
params
)
}
//材料退回
export
function
postEvalQuesInfoTh
(
params
){
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfoZc/th`
,
params
)
}
//重新长传状态
export
function
postEvalQuesInfocxtj
(
params
){
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfoZc/cxtj`
,
params
)
}
src/views/assessChecks/auxiliaryInspection.vue
View file @
1467ef0
...
...
@@ -106,6 +106,12 @@
<i
class=
"el-icon-chat-dot-square"
></i
>
整改复核
</el-button
>
<el-button
@
click=
"inspectBack()"
:disabled=
"inspectdisabled"
:class=
"inspectdisabled ? 'noclick' : ''"
><i
class=
"el-icon-document-delete"
></i>
材料退回
</el-button
>
</el-form-item>
</el-form>
<div
class=
"setscroll"
>
...
...
@@ -229,10 +235,10 @@
<el-table-column
label=
"项目环节"
prop=
"projectStagetext"
width=
"1
2
0"
width=
"1
0
0"
>
</el-table-column>
<el-table-column
label=
"序号"
width=
"
7
0"
type=
"index"
>
<el-table-column
label=
"序号"
width=
"
4
0"
type=
"index"
>
</el-table-column>
<el-table-column
...
...
@@ -455,7 +461,8 @@ import {
MaterialWarehous
,
downloadObjectStr
,
selWtqdFZ
,
xzwtpostEvalQuesInfo
xzwtpostEvalQuesInfo
,
postEvalQuesInfoTh
}
from
"@/api/index"
;
import
{
generateYearOptions
,
constructionFormText
}
from
"@/utils/cache"
;
export
default
{
...
...
@@ -779,7 +786,7 @@ export default {
if
(
item
.
postEvalState
==
""
||
item
.
postEvalState
==
null
)
{
// this.$set(item, "postEvalStateText", "材料未上传");
}
else
if
(
item
.
postEvalState
==
"0"
)
{
// this.$set(item, "postEvalStateText", "材料未上传
");
this
.
$set
(
item
,
"postEvalStateText"
,
"已退回
"
);
}
else
if
(
item
.
postEvalState
==
1
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"待评估"
);
}
else
if
(
item
.
postEvalState
==
2
)
{
...
...
@@ -1016,6 +1023,30 @@ export default {
}
this
.
innerVisible
=
true
},
async
inspectBack
(){
this
.
$confirm
(
"是否材料不全,将退回重新上传?"
,
"提示"
,
{
confirmButtonText
:
"是"
,
cancelButtonText
:
"否"
,
type
:
"warning"
,
}
).
then
(
async
()
=>
{
let
params
=
{
...
this
.
checkedList
[
0
]
}
let
res
=
await
postEvalQuesInfoTh
(
params
)
if
(
res
.
code
==
"200"
)
{
this
.
$message
(
"已成功退回"
);
this
.
resetForm
();
}
else
{
this
.
$message
(
"退回失败"
);
}
});
}
},
};
</
script
>
...
...
src/views/assessChecks/materialAcquisition.vue
View file @
1467ef0
...
...
@@ -101,9 +101,8 @@
<el-button
@
click=
"detailsForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/ck.png"
/>
详情
</el-button
>
<!--
<el-button
@
click=
"submitNexts()"
:disabled=
"subdisabled"
:class=
"subdisabled?'noclick':''"
><i
class=
"el-icon-finished"
></i>
提交评估材料
</el-button
>
-->
<el-button
@
click=
"confirm()"
:disabled=
"confirmdisabled"
...
...
@@ -112,6 +111,9 @@
<i
class=
"el-icon-chat-dot-square"
></i
>
问题整改
</el-button
>
<el-button
@
click=
"submitNexts()"
:disabled=
"subdisabled"
:class=
"subdisabled?'noclick':''"
><i
class=
"el-icon-finished"
></i>
材料已重新上传
</el-button
>
</el-form-item>
</el-form>
<div
class=
"setscroll"
>
...
...
@@ -163,6 +165,20 @@
label=
"项目审核状态"
width=
"120"
>
<
template
v-slot=
"scope"
>
<router-link
v-if=
" scope.row.postEvalStateText=='已退回'"
:to=
"
{
path: '/assesszc/projectView',
query: { projectId: scope.row.projectCode },
}"
>
<el-button
type=
"text"
size=
"small"
>
{{
scope
.
row
.
postEvalStateText
}}
</el-button>
</router-link>
<span
v-else
>
{{
scope
.
row
.
postEvalStateText
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"contractNumber"
...
...
@@ -482,6 +498,7 @@ import {
wtzgxfProblemRectification
,
ossuploadStr
,
MaterialWarehous
,
postEvalQuesInfocxtj
}
from
"@/api/index"
;
import
{
generateYearOptions
,
constructionFormText
}
from
"@/utils/cache"
;
export
default
{
...
...
@@ -804,8 +821,8 @@ export default {
this
.
tableData
.
forEach
((
item
)
=>
{
if
(
item
.
postEvalState
==
""
||
item
.
postEvalState
==
null
)
{
// this.$set(item, "postEvalStateText", "材料未上传");
}
else
if
(
item
.
postEvalState
==
"0"
)
{
// this.$set(item, "postEvalStateText", "材料未上传
");
}
else
if
(
item
.
postEvalState
==
0
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"已退回
"
);
}
else
if
(
item
.
postEvalState
==
1
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"待评估"
);
}
else
if
(
item
.
postEvalState
==
2
)
{
...
...
@@ -835,35 +852,26 @@ export default {
},
//提交评估材料
async
submitNexts
()
{
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
this
.
dialog
=
true
;
let
params
=
{
current
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
projectId
:
this
.
checkedList
[
0
].
projectCode
,
batchId
:
this
.
checkedList
[
0
].
batchId
,
};
let
res
=
await
clqdevaluationMaterials
(
params
);
// this.tableDataQD =this.tableDataNew
this
.
tableDataQD
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableDataNew
));
if
(
res
.
data
.
records
.
length
>
0
)
{
this
.
tableDataQD
=
this
.
tableDataQD
.
concat
(
res
.
data
.
records
)
.
reduce
((
accumulator
,
currentObj
)
=>
{
const
existingObj
=
accumulator
.
find
(
(
obj
)
=>
obj
.
typeCode
==
currentObj
.
typeCode
);
if
(
existingObj
)
{
Object
.
assign
(
existingObj
,
currentObj
);
this
.
$confirm
(
"材料是否材重新上传完成?"
,
"提示"
,
{
confirmButtonText
:
"是"
,
cancelButtonText
:
"否"
,
type
:
"warning"
,
}
).
then
(
async
()
=>
{
let
params
=
{
...
this
.
checkedList
[
0
]
}
let
res
=
await
postEvalQuesInfocxtj
(
params
)
if
(
res
.
code
==
"200"
)
{
this
.
$message
(
"重新上传成功"
);
this
.
resetForm
();
}
else
{
accumulator
.
push
(
currentObj
);
}
return
accumulator
;
},
[]);
this
.
$message
(
"重新上传失败"
);
}
});
},
//详情
async
detailsForm
()
{
...
...
@@ -924,6 +932,9 @@ export default {
if
(
this
.
checkedList
[
0
].
postEvalStateText
!=
"需整改"
)
{
this
.
confirmdisabled
=
true
;
}
if
(
this
.
checkedList
[
0
].
postEvalStateText
!=
"已退回"
)
{
this
.
subdisabled
=
true
;
}
}
},
handleSizeChange
(
val
)
{
...
...
src/views/assessZC/auxiliaryInspection.vue
View file @
1467ef0
...
...
@@ -106,6 +106,12 @@
<i
class=
"el-icon-chat-dot-square"
></i
>
整改复核
</el-button
>
<el-button
@
click=
"inspectBack()"
:disabled=
"inspectdisabled"
:class=
"inspectdisabled ? 'noclick' : ''"
><i
class=
"el-icon-document-delete"
></i>
材料退回
</el-button
>
</el-form-item>
</el-form>
<div
class=
"setscroll"
>
...
...
@@ -455,7 +461,8 @@ import {
MaterialWarehous
,
downloadObjectStr
,
selWtqdFZ
,
xzwtpostEvalQuesInfo
xzwtpostEvalQuesInfo
,
postEvalQuesInfoTh
}
from
"@/api/indexzc"
;
import
{
generateYearOptions
,
constructionFormText
}
from
"@/utils/cache"
;
export
default
{
...
...
@@ -779,7 +786,7 @@ export default {
if
(
item
.
postEvalState
==
""
||
item
.
postEvalState
==
null
)
{
// this.$set(item, "postEvalStateText", "材料未上传");
}
else
if
(
item
.
postEvalState
==
"0"
)
{
// this.$set(item, "postEvalStateText", "材料未上传
");
this
.
$set
(
item
,
"postEvalStateText"
,
"已退回
"
);
}
else
if
(
item
.
postEvalState
==
1
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"待评估"
);
}
else
if
(
item
.
postEvalState
==
2
)
{
...
...
@@ -1016,6 +1023,30 @@ export default {
}
this
.
innerVisible
=
true
},
async
inspectBack
(){
this
.
$confirm
(
"是否材料不全,将退回重新上传?"
,
"提示"
,
{
confirmButtonText
:
"是"
,
cancelButtonText
:
"否"
,
type
:
"warning"
,
}
).
then
(
async
()
=>
{
let
params
=
{
...
this
.
checkedList
[
0
]
}
let
res
=
await
postEvalQuesInfoTh
(
params
)
if
(
res
.
code
==
"200"
)
{
this
.
$message
(
"已成功退回"
);
this
.
resetForm
();
}
else
{
this
.
$message
(
"退回失败"
);
}
});
}
},
};
</
script
>
...
...
src/views/assessZC/materialAcquisition.vue
View file @
1467ef0
...
...
@@ -101,9 +101,8 @@
<el-button
@
click=
"detailsForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/ck.png"
/>
详情
</el-button
>
<!--
<el-button
@
click=
"submitNexts()"
:disabled=
"subdisabled"
:class=
"subdisabled?'noclick':''"
><i
class=
"el-icon-finished"
></i>
提交评估材料
</el-button
>
-->
<el-button
@
click=
"confirm()"
:disabled=
"confirmdisabled"
...
...
@@ -112,6 +111,9 @@
<i
class=
"el-icon-chat-dot-square"
></i
>
问题整改
</el-button
>
<el-button
@
click=
"submitNexts()"
:disabled=
"subdisabled"
:class=
"subdisabled?'noclick':''"
><i
class=
"el-icon-finished"
></i>
材料已重新上传
</el-button
>
</el-form-item>
</el-form>
<div
class=
"setscroll"
>
...
...
@@ -163,6 +165,20 @@
label=
"项目审核状态"
width=
"120"
>
<
template
v-slot=
"scope"
>
<router-link
v-if=
" scope.row.postEvalStateText=='已退回'"
:to=
"
{
path: '/assesszc/projectView',
query: { projectId: scope.row.projectCode },
}"
>
<el-button
type=
"text"
size=
"small"
>
{{
scope
.
row
.
postEvalStateText
}}
</el-button>
</router-link>
<span
v-else
>
{{
scope
.
row
.
postEvalStateText
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"contractNumber"
...
...
@@ -482,6 +498,7 @@ import {
wtzgxfProblemRectification
,
ossuploadStr
,
MaterialWarehous
,
postEvalQuesInfocxtj
}
from
"@/api/indexzc"
;
import
{
generateYearOptions
,
constructionFormText
}
from
"@/utils/cache"
;
export
default
{
...
...
@@ -804,8 +821,8 @@ export default {
this
.
tableData
.
forEach
((
item
)
=>
{
if
(
item
.
postEvalState
==
""
||
item
.
postEvalState
==
null
)
{
// this.$set(item, "postEvalStateText", "材料未上传");
}
else
if
(
item
.
postEvalState
==
"0"
)
{
// this.$set(item, "postEvalStateText", "材料未上传
");
}
else
if
(
item
.
postEvalState
==
0
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"已退回
"
);
}
else
if
(
item
.
postEvalState
==
1
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"待评估"
);
}
else
if
(
item
.
postEvalState
==
2
)
{
...
...
@@ -835,35 +852,26 @@ export default {
},
//提交评估材料
async
submitNexts
()
{
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
this
.
dialog
=
true
;
let
params
=
{
current
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
projectId
:
this
.
checkedList
[
0
].
projectCode
,
batchId
:
this
.
checkedList
[
0
].
batchId
,
};
let
res
=
await
clqdevaluationMaterials
(
params
);
// this.tableDataQD =this.tableDataNew
this
.
tableDataQD
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableDataNew
));
if
(
res
.
data
.
records
.
length
>
0
)
{
this
.
tableDataQD
=
this
.
tableDataQD
.
concat
(
res
.
data
.
records
)
.
reduce
((
accumulator
,
currentObj
)
=>
{
const
existingObj
=
accumulator
.
find
(
(
obj
)
=>
obj
.
typeCode
==
currentObj
.
typeCode
);
if
(
existingObj
)
{
Object
.
assign
(
existingObj
,
currentObj
);
this
.
$confirm
(
"材料是否材重新上传完成?"
,
"提示"
,
{
confirmButtonText
:
"是"
,
cancelButtonText
:
"否"
,
type
:
"warning"
,
}
).
then
(
async
()
=>
{
let
params
=
{
...
this
.
checkedList
[
0
]
}
let
res
=
await
postEvalQuesInfocxtj
(
params
)
if
(
res
.
code
==
"200"
)
{
this
.
$message
(
"重新上传成功"
);
this
.
resetForm
();
}
else
{
accumulator
.
push
(
currentObj
);
}
return
accumulator
;
},
[]);
this
.
$message
(
"重新上传失败"
);
}
});
},
//详情
async
detailsForm
()
{
...
...
@@ -924,6 +932,9 @@ export default {
if
(
this
.
checkedList
[
0
].
postEvalStateText
!=
"需整改"
)
{
this
.
confirmdisabled
=
true
;
}
if
(
this
.
checkedList
[
0
].
postEvalStateText
!=
"已退回"
)
{
this
.
subdisabled
=
true
;
}
}
},
handleSizeChange
(
val
)
{
...
...
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