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 832d2f65
authored
Aug 08, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存一下
1 parent
024ad798
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
233 additions
and
55 deletions
src/api/index.js
src/api/indexzc.js
src/views/assessZC/auxiliaryInspection.vue
src/views/assessZC/checkCompliance.vue
src/views/assessZC/projectView.vue
src/api/index.js
View file @
832d2f6
...
...
@@ -450,5 +450,9 @@ export function chpmProInitiation(params){
export
function
HistoryVersion
(
params
){
return
post
(
`
${
ARCH_EVALUATION
}
/pmProInitiation/HistoryVersion`
,
params
)
}
//是否可以上传
export
function
postExist
(
params
){
return
post
(
`
${
ARCH_EVALUATION
}
/pmProInitiation/postExist`
,
params
)
}
src/api/indexzc.js
View file @
832d2f6
...
...
@@ -107,6 +107,10 @@ export function qrscevaluationMaterials(params) {
export
function
postEvalQuesInfo
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfoZc/`
,
params
)
}
//新增问题
export
function
xzwtpostEvalQuesInfo
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/postEvalQuesInfoZc/xzwt`
,
params
)
}
//问题清单
export
function
selWtqdpostEvalQuesInfo
(
params
)
{
...
...
src/views/assessZC/auxiliaryInspection.vue
View file @
832d2f6
...
...
@@ -209,7 +209,12 @@
项目名称:{{ checkedList[0].projectName }}
</h3>
<div
class=
"continer"
>
<p
class=
"xqtitle"
><span></span>
问题清单
</p>
<p
class=
"xqtitle"
>
<span></span>
问题清单
<el-button
class=
"addbutton"
@
click=
"addpro()"
>
<i
class=
"el-icon-plus"
></i>
添加问题
</el-button
>
</p>
<div
class=
"setTable"
>
<el-table
:data=
"tableDataQR"
...
...
@@ -227,7 +232,7 @@
width=
"120"
>
</el-table-column>
<el-table-column
label=
"序号"
width=
"
5
0"
type=
"index"
>
<el-table-column
label=
"序号"
width=
"
7
0"
type=
"index"
>
</el-table-column>
<el-table-column
...
...
@@ -276,15 +281,18 @@
</
template
>
</el-table-column>
<el-table-column
label=
"整改材料下载"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<router-link
:to=
"
{path:'/assesszc/projectView',query:{projectId:scope.row.projectId}}">
<el-button
type=
"text"
size=
"small"
>
下载材料
</el-button>
</router-link>
<
template
slot-scope=
"scope"
>
<router-link
:to=
"
{
path: '/assesszc/projectView',
query: { projectId: scope.row.projectId },
}"
>
<el-button
type=
"text"
size=
"small"
>
下载材料
</el-button>
</router-link>
</
template
>
</el-table-column>
<el-table-column
label=
"附加解释材料"
prop=
"fileId"
width=
"300"
>
<
template
slot-scope=
"scope"
...
...
@@ -353,9 +361,13 @@
</div>
</template>
</el-table-column> -->
<el-table-column
label=
"复核情况说明"
prop=
"zgqkFileId"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.zgqkFileId"
></el-input>
<el-table-column
label=
"复核情况说明"
prop=
"zgqkFileId"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.zgqkFileId"
></el-input>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -383,6 +395,50 @@
<span
@
click=
"cancelSS()"
>
取消
</span><span
@
click=
"saveSS()"
>
保存
</span
><span
@
click=
"savetj()"
>
提交
</span>
</p>
<el-dialog
class=
"innerVisible"
width=
"50%"
title=
"添加问题"
:modal-append-to-body=
"false"
append-to-body
:visible
.
sync=
"innerVisible"
>
<!-- <p>问题检查项</p>
<p>检查说明</p>
<p>问题描述</p> -->
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
class=
"addfrom"
>
<el-form-item
label=
"项目环节"
>
<el-select
v-model=
"form.projectStage"
placeholder=
"请选择项目环节"
@
change=
"selectProjectStage"
>
<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=
"问题检查项"
>
<el-select
v-model=
"form.quesCheckItem"
placeholder=
"请选择问题检查项"
@
change=
"selectCheckItem"
>
<el-option
v-for=
"item in quesoptions"
:key=
"item.checkDesc"
:label=
"item.quesCheckItem"
:value=
"item.quesCheckItem"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"检查说明"
>
<el-input
v-model=
"form.checkDesc"
type=
"textarea"
row=
"4"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"问题描述"
>
<el-input
v-model=
"form.evalQues"
type=
"textarea"
row=
"4"
></el-input>
</el-form-item>
</el-form>
<p
class=
"midBtn addBtn"
>
<span
@
click=
"cancelpro()"
>
取消
</span><span
@
click=
"submitpro()"
>
添加
</span>
</p>
</el-dialog>
</el-dialog>
</div>
</template>
...
...
@@ -397,11 +453,19 @@ import {
tjrectificationVerification
,
MaterialWarehous
,
downloadObjectStr
,
selWtqdFZ
,
xzwtpostEvalQuesInfo
}
from
"@/api/indexzc"
;
import
{
generateYearOptions
,
constructionFormText
}
from
"@/utils/cache"
;
export
default
{
data
()
{
return
{
quesoptions
:[],
form
:
{
projectStage
:
''
,
evalQues
:
''
},
innerVisible
:
false
,
dialogFullScreen
:
false
,
yearsList
:
generateYearOptions
(),
showButton
:
true
,
...
...
@@ -655,38 +719,39 @@ export default {
}
},
async
savetj
()
{
this
.
tableDataQR
.
forEach
(
item
=>
{
console
.
log
(
item
.
rectificationStatus
,
'item.rectificationStatus'
)
if
(
!
item
.
rectificationStatus
&&
item
.
rectificationStatus
!==
0
)
{
this
.
tableDataQR
.
forEach
(
(
item
)
=>
{
console
.
log
(
item
.
rectificationStatus
,
"item.rectificationStatus"
);
if
(
!
item
.
rectificationStatus
&&
item
.
rectificationStatus
!==
0
)
{
this
.
$message
({
message
:
'请完成所有整改复核后在进行提交'
,
type
:
'warning'
});
throw
new
Error
()
}
})
const
isallwc
=
this
.
tableDataQR
.
every
(
element
=>
element
.
rectificationStatus
==
2
);
if
(
isallwc
){
this
.
$confirm
(
"若所有整改复核状态均为整改完成即为完成归档, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}
).
then
(
async
()
=>
{
let
res
=
await
tjrectificationVerification
(
this
.
tableDataQR
);
if
(
res
.
code
==
"200"
)
{
this
.
dialogQR
=
false
;
this
.
$message
(
"提交成功"
);
this
.
resetForm
();
}
else
{
this
.
$message
(
"提交失败"
);
message
:
"请完成所有整改复核后在进行提交"
,
type
:
"warning"
,
});
throw
new
Error
();
}
});
}
else
{
const
isallwc
=
this
.
tableDataQR
.
every
(
(
element
)
=>
element
.
rectificationStatus
==
2
);
if
(
isallwc
)
{
this
.
$confirm
(
"若所有整改复核状态均为整改完成即为完成归档, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}
).
then
(
async
()
=>
{
let
res
=
await
tjrectificationVerification
(
this
.
tableDataQR
);
if
(
res
.
code
==
"200"
)
{
this
.
dialogQR
=
false
;
this
.
$message
(
"提交成功"
);
this
.
resetForm
();
}
else
{
this
.
$message
(
"提交失败"
);
}
});
}
else
{
let
res
=
await
tjrectificationVerification
(
this
.
tableDataQR
);
if
(
res
.
code
==
"200"
)
{
this
.
dialogQR
=
false
;
...
...
@@ -695,11 +760,7 @@ export default {
}
else
{
this
.
$message
(
"提交失败"
);
}
}
},
async
submitForm
()
{
let
params
=
{
...
...
@@ -898,6 +959,62 @@ export default {
closeDialog
()
{
this
.
showButton
=
true
;
},
async
selectProjectStage
(
val
){
this
.
form
=
{
evalQues
:
''
}
this
.
form
.
projectStage
=
val
console
.
log
(
val
,
'333344444'
)
let
params
=
{
projectStage
:
val
,
hgx
:
"hgx"
,
batchId
:
this
.
checkedList
[
0
].
batchId
,
contractNumber
:
this
.
checkedList
[
0
].
contractNumber
,
projectId
:
this
.
checkedList
[
0
].
projectCode
,
proType
:
this
.
checkedList
[
0
].
projectType
,
};
let
res
=
await
selWtqdFZ
(
params
)
this
.
quesoptions
=
res
.
data
.
records
},
selectCheckItem
(
val
){
this
.
form
.
evalQues
=
''
this
.
quesoptions
.
forEach
(
ele
=>
{
if
(
ele
.
quesCheckItem
==
val
){
this
.
form
.
checkDesc
=
ele
.
checkDesc
}
})
},
async
submitpro
(){
let
isxt
=
this
.
tableDataQR
.
some
(
item
=>
{
return
item
.
quesCheckItem
==
this
.
form
.
quesCheckItem
;
})
if
(
isxt
){
this
.
$message
(
'已存在该问题检查项,请选择其他问题'
)
return
}
let
params
=
{
...
this
.
form
,
isProblem
:
"1"
,
batchId
:
this
.
checkedList
[
0
].
batchId
,
projectId
:
this
.
checkedList
[
0
].
projectCode
,
}
let
res
=
await
xzwtpostEvalQuesInfo
(
params
)
if
(
res
.
code
==
200
){
this
.
innerVisible
=
false
this
.
rectificationReview
()
}
},
cancelpro
(){
this
.
innerVisible
=
false
},
addpro
(){
this
.
form
=
{
evalQues
:
''
}
this
.
innerVisible
=
true
},
},
};
</
script
>
...
...
@@ -1223,4 +1340,33 @@ h3 {
::v-deep
.el-table
::before
{
display
:
none
!important
;
}
.addbutton
{
background-color
:
#23c6c8
;
border-color
:
#23c6c8
;
color
:
#fff
;
}
.innerVisible
{
left
:
30vw
;
top
:
15vh
;
//
height
:
600px
;
}
.addfrom
{
display
:
inline-block
;
height
:
300px
;
/deep/.el-input__inner{
width
:
450px
!important
;
}
/
deep
/
.el-textarea__inner
{
width
:
450px
!important
;
}
/
deep
/
.el-select-dropdown
{
margin-top
:
-55px
!important
;
/* 调整与触发按钮的距离 */
margin-left
:
20px
;
/* 也可以调整左边距,根据需要 */
}
}
.addBtn
{
text-align
:
center
;
margin-bottom
:
0
;
}
</
style
>
\ No newline at end of file
src/views/assessZC/checkCompliance.vue
View file @
832d2f6
...
...
@@ -232,7 +232,7 @@ export default {
],
tabList
:
[
{
label
:
"可研"
,
id
:
0
},
{
label
:
"计划"
,
id
:
1
},
//
{ label: "计划", id: 1 },
{
label
:
"采购"
,
id
:
2
},
{
label
:
"合同"
,
id
:
3
},
{
label
:
"执行"
,
id
:
4
},
...
...
src/views/assessZC/projectView.vue
View file @
832d2f6
...
...
@@ -248,7 +248,7 @@
size=
"small"
type=
"primary"
class=
"btn-search"
@
click=
"
uploadFiles
(scope.row)"
@
click=
"
postExist
(scope.row)"
>
上传
</el-button
>
<el-button
...
...
@@ -408,6 +408,7 @@ import {
downloadObject
,
HistoryVersion
,
presignedUrl
,
postExist
,
}
from
"@/api/index"
;
import
{
Loading
}
from
"element-ui"
;
...
...
@@ -471,9 +472,9 @@ export default {
},
methods
:
{
noFullScreen
(){
console
.
log
(
'关闭了'
)
this
.
dialogFullScreen
=
false
noFullScreen
()
{
console
.
log
(
"关闭了"
);
this
.
dialogFullScreen
=
false
;
},
upload
(
row
)
{
this
.
ruleFormdialog
=
row
;
...
...
@@ -844,6 +845,28 @@ export default {
};
}
},
postExist
(
row
)
{
let
params
=
{
contractNumber
:
this
.
ruleFormdialog
.
contractNumber
,
projectCode
:
this
.
ruleFormdialog
.
projectCode
,
};
postExist
(
params
).
then
((
res
)
=>
{
if
(
res
.
data
.
exist
)
{
this
.
$alert
(
"项目流程审批中,请勿上传新的文件"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
callback
:
(
action
)
=>
{
// this.$message({
// type: "info",
// message: `action: ${action}`,
// });
},
});
return
;
}
else
{
this
.
uploadFiles
(
row
);
}
});
},
uploadFiles
(
row
)
{
if
(
row
.
fullId
)
{
this
.
$confirm
(
"已有文件,本次上传将覆盖历史上传文件,是否继续?"
,
"提示"
,
{
...
...
@@ -1144,11 +1167,11 @@ export default {
}
.no_fullscreen
{
.dialogFrom
{
.eltable
{
height
:
610px
;
overflow-y
:
auto
;
.eltable
{
height
:
610px
;
overflow-y
:
auto
;
}
}
}
/
deep
/
.el-dialog
{
width
:
90%
;
margin-top
:
3vh
!important
;
...
...
@@ -1181,7 +1204,7 @@ export default {
/
deep
/
.el-icon-close
:before
{
font-size
:
20px
!important
;
}
.histable
{
.histable
{
height
:
630px
;
overflow-y
:
auto
;
}
...
...
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