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 e99e4d1a
authored
May 15, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
1 parent
75be11c6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
48 deletions
src/utils/http.js
src/views/assessChecks/assistedConfirm.vue
src/views/assessChecks/assistedRect.vue
src/views/assessChecks/assistedViewing.vue
src/views/assessChecks/correctiveAssistanceVerification.vue
src/views/assessChecks/materialAcquisition.vue
src/utils/http.js
View file @
e99e4d1
...
@@ -30,6 +30,9 @@ axios.interceptors.request.use(config => {
...
@@ -30,6 +30,9 @@ axios.interceptors.request.use(config => {
if
(
config
.
url
.
indexOf
(
'oss/downloadObject'
)
!=
'-1'
){
if
(
config
.
url
.
indexOf
(
'oss/downloadObject'
)
!=
'-1'
){
config
.
headers
[
"Content-Type"
]
=
'application/x-www-form-urlencoded'
config
.
headers
[
"Content-Type"
]
=
'application/x-www-form-urlencoded'
}
}
// else if(config.url.indexOf('oss/upload')!='-1'){
// config.headers["Content-Type"] ='application/form-data'
// }
// config.headers.token = JSON.parse(localStorage.getItem('token')).token;
// config.headers.token = JSON.parse(localStorage.getItem('token')).token;
...
...
src/views/assessChecks/assistedConfirm.vue
View file @
e99e4d1
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"附加解释材料"
width=
"400"
>
<el-table-column
label=
"附加解释材料"
width=
"400"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'&&scope.row.fileId"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'&&scope.row.fileId"
>
{{
{{
scope
.
row
.
fileName
scope
.
row
.
fileName
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</
template
>
...
@@ -611,19 +611,19 @@ export default {
...
@@ -611,19 +611,19 @@ export default {
this
.
file
=
event
.
target
.
files
[
0
];
this
.
file
=
event
.
target
.
files
[
0
];
},
},
submitFile
(
row
)
{
submitFile
(
row
)
{
this
.
$message
(
"上传还没做"
);
return
;
//
return;
console
.
log
(
row
);
console
.
log
(
row
);
if
(
this
.
file
)
{
if
(
this
.
file
)
{
const
formData
=
new
FormData
();
const
formData
=
new
FormData
();
formData
.
append
(
"file"
,
this
.
file
);
formData
.
append
(
"file"
,
this
.
file
);
formData
.
append
(
"prjId"
,
this
.
checkedList
[
0
].
projectId
);
//
formData.append("prjId", this.checkedList[0].projectId);
formData
.
append
(
"typeCode"
,
row
.
typeCode
);
//
formData.append("typeCode", row.typeCode);
ossupload
(
formData
)
ossupload
(
formData
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
$set
(
row
,
"file
Name"
,
response
.
data
.
fileName
);
this
.
$set
(
row
,
"file
Id"
,
response
.
data
.
fileId
);
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
error
(
error
);
console
.
error
(
error
);
...
...
src/views/assessChecks/assistedRect.vue
View file @
e99e4d1
This diff is collapsed.
Click to expand it.
src/views/assessChecks/assistedViewing.vue
View file @
e99e4d1
...
@@ -242,7 +242,8 @@ export default {
...
@@ -242,7 +242,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
listData
:
{},
listData
:
{},
qdtableData
:
[],
qdtableData
:
JSON
.
parse
(
JSON
.
stringify
(
MaterialsList
())),
tableDataNew
:
MaterialsList
(),
xxtableData
:[],
xxtableData
:[],
showButton
:
true
,
showButton
:
true
,
ruleForm
:
{
ruleForm
:
{
...
@@ -312,9 +313,28 @@ export default {
...
@@ -312,9 +313,28 @@ export default {
console
.
log
(
res
[
0
],
res
[
1
],
"2222222"
);
console
.
log
(
res
[
0
],
res
[
1
],
"2222222"
);
this
.
listData
=
res
[
0
].
data
.
records
[
0
];
this
.
listData
=
res
[
0
].
data
.
records
[
0
];
this
.
qdtableData
=
res
[
1
].
data
.
records
;
this
.
qdtableData
=
res
[
1
].
data
.
records
;
this
.
qdtableData
.
forEach
((
item
)
=>
{
this
.
qdtableData
=
this
.
tableDataNew
this
.
$set
(
item
,
"batchtype"
,
"开发、实施类"
);
if
(
res
[
1
].
data
.
records
.
length
>
0
)
{
});
this
.
qdtableData
=
this
.
qdtableData
.
concat
(
res
.
data
.
records
)
.
reduce
((
accumulator
,
currentObj
)
=>
{
const
existingObj
=
accumulator
.
find
(
(
obj
)
=>
obj
.
typeCode
==
currentObj
.
typeCode
);
if
(
existingObj
)
{
Object
.
assign
(
existingObj
,
currentObj
);
}
else
{
accumulator
.
push
(
currentObj
);
}
return
accumulator
;
},
[]);
console
.
log
(
this
.
tableDataQD
,
' mergedArray mergedArray mergedArray'
)
// this.tableDataQD.forEach((item) => {
// // this.$set(item, "batchtype", "开发、实施类");
// });
}
});
});
},
},
...
...
src/views/assessChecks/correctiveAssistanceVerification.vue
View file @
e99e4d1
...
@@ -205,6 +205,7 @@
...
@@ -205,6 +205,7 @@
active-text=
"无异议"
active-text=
"无异议"
inactive-text=
"有异议"
inactive-text=
"有异议"
@
change=
"controlSwitch($event, scope.row)"
@
change=
"controlSwitch($event, scope.row)"
disabled
>
>
<template
v-slot:active
>
<template
v-slot:active
>
<span>
开启
</span>
<span>
开启
</span>
...
@@ -216,14 +217,14 @@
...
@@ -216,14 +217,14 @@
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
label=
"解释批注"
width=
"200"
>
<el-table-column
label=
"解释批注"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus=='1'"
>
<el-input
v-model=
"scope.row.feedback"
></el-input>
<el-input
v-model=
"scope.row.feedback"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"附加解释材料"
prop=
"fileId"
width=
"400"
>
<el-table-column
label=
"附加解释材料"
prop=
"fileId"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus=='1'"
>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
<button
@
click=
"submitFile(scope.row)"
>
上传
</button>
<button
@
click=
"submitFile(scope.row
,'fileId'
)"
>
上传
</button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -231,10 +232,11 @@
...
@@ -231,10 +232,11 @@
prop=
"rectificationStatus"
prop=
"rectificationStatus"
width=
"200"
width=
"200"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus=='1'"
>
<el-select
<el-select
v-model=
"scope.row.appealStatus"
v-model=
"scope.row.appealStatus"
placeholder=
"请选择"
placeholder=
"请选择"
disabled
>
>
<el-option
label=
"请选择"
value=
""
></el-option>
<el-option
label=
"请选择"
value=
""
></el-option>
<el-option
label=
"未申诉"
:value=
"0"
></el-option>
<el-option
label=
"未申诉"
:value=
"0"
></el-option>
...
@@ -246,18 +248,18 @@
...
@@ -246,18 +248,18 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"上传整改材料"
label=
"上传整改材料"
prop=
"
rectificationStatus
"
prop=
"
zgFileId
"
width=
"400"
width=
"400"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus=='1'"
>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
<button
@
click=
"submitFile(scope.row)"
>
上传
</button>
<button
@
click=
"submitFile(scope.row
,'zgFileId'
)"
>
上传
</button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"情况说明"
prop=
"zgqkFileId"
width=
"400"
>
<el-table-column
label=
"情况说明"
prop=
"zgqkFileId"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus=='1'"
>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
<button
@
click=
"submitFile(scope.row)"
>
上传
</button>
<button
@
click=
"submitFile(scope.row
,'zgqkFileId'
)"
>
上传
</button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -265,7 +267,7 @@
...
@@ -265,7 +267,7 @@
prop=
"rectificationStatus"
prop=
"rectificationStatus"
width=
"200"
width=
"200"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus=='1'"
>
<el-select
<el-select
v-model=
"scope.row.rectificationStatus"
v-model=
"scope.row.rectificationStatus"
placeholder=
"请选择"
placeholder=
"请选择"
...
@@ -340,6 +342,7 @@
...
@@ -340,6 +342,7 @@
active-text=
"无异议"
active-text=
"无异议"
inactive-text=
"有异议"
inactive-text=
"有异议"
@
change=
"controlSwitch($event, scope.row)"
@
change=
"controlSwitch($event, scope.row)"
disabled
>
>
<template
v-slot:active
>
<template
v-slot:active
>
<span>
开启
</span>
<span>
开启
</span>
...
@@ -352,24 +355,26 @@
...
@@ -352,24 +355,26 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"解释批注"
width=
"200"
>
<el-table-column
label=
"解释批注"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.feedback"
></el-input>
<el-input
v-model=
"scope.row.feedback"
disabled
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"附加解释材料"
prop=
"fileId"
width=
"400"
>
<el-table-column
label=
"附加解释材料"
prop=
"fileId"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'&&scope.row.fileId"
>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
{{
<button
@
click=
"submitFile(scope.row)"
>
上传
</button>
scope
.
row
.
fileName
</
template
>
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"复核情况"
label=
"复核情况"
prop=
"rectificationStatus"
prop=
"rectificationStatus"
width=
"200"
width=
"200"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<el-select
<el-select
v-model=
"scope.row.appealStatus"
v-model=
"scope.row.appealStatus"
placeholder=
"请选择"
placeholder=
"请选择"
disabled
>
>
<el-option
label=
"请选择"
value=
""
></el-option>
<el-option
label=
"请选择"
value=
""
></el-option>
<el-option
label=
"未申诉"
:value=
"0"
></el-option>
<el-option
label=
"未申诉"
:value=
"0"
></el-option>
...
@@ -381,19 +386,21 @@
...
@@ -381,19 +386,21 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"上传整改材料"
label=
"上传整改材料"
prop=
"
rectificationStatus
"
prop=
"
zgFileId
"
width=
"400"
width=
"400"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'&&scope.row.fileId"
>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
{{
<button
@
click=
"submitFile(scope.row)"
>
上传
</button>
scope
.
row
.
fileName
</
template
>
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"情况说明"
prop=
"zgqkFileId"
width=
"400"
>
<el-table-column
label=
"情况说明"
prop=
"zgqkFileId"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'&&scope.row.fileId"
>
<input
type=
"file"
@
change=
"handleFileUpload"
/>
{{
<button
@
click=
"submitFile(scope.row)"
>
上传
</button>
scope
.
row
.
fileName
</
template
>
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -412,7 +419,8 @@ import {
...
@@ -412,7 +419,8 @@ import {
wtssSelectificationVerification
,
wtssSelectificationVerification
,
bcrectificationVerification
,
bcrectificationVerification
,
tjrectificationVerification
,
tjrectificationVerification
,
ossupload
ossupload
,
downloadObject
}
from
"@/api/index"
;
}
from
"@/api/index"
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -690,30 +698,50 @@ export default {
...
@@ -690,30 +698,50 @@ export default {
console
.
log
(
"来了么"
);
console
.
log
(
"来了么"
);
this
.
file
=
event
.
target
.
files
[
0
];
this
.
file
=
event
.
target
.
files
[
0
];
},
},
submitFile
(
row
)
{
submitFile
(
row
,
type
)
{
this
.
$message
(
"上传还没做"
);
return
;
//
return;
console
.
log
(
row
);
console
.
log
(
row
);
if
(
this
.
file
)
{
if
(
this
.
file
)
{
const
formData
=
new
FormData
();
const
formData
=
new
FormData
();
formData
.
append
(
"file"
,
this
.
file
);
formData
.
append
(
"file"
,
this
.
file
);
formData
.
append
(
"prjId"
,
this
.
checkedList
[
0
].
projectId
);
//
formData.append("prjId", this.checkedList[0].projectId);
formData
.
append
(
"typeCode"
,
row
.
typeCode
);
//
formData.append("typeCode", row.typeCode);
ossupload
(
formData
)
ossupload
(
formData
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
$set
(
row
,
"fileName"
,
response
.
data
.
fileName
);
this
.
file
=
[]
this
.
$set
(
row
,
type
,
response
.
data
.
fileId
);
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
error
(
error
);
console
.
error
(
error
);
});
});
}
else
{
this
.
$message
(
'请先选择文件'
)
}
}
},
},
closed
()
{
closed
()
{
console
.
log
(
"关闭"
);
console
.
log
(
"关闭"
);
this
.
handleSelectionChange
();
this
.
handleSelectionChange
();
},
},
async
handleClickXZ
(
scope
)
{
console
.
log
(
scope
.
fileId
);
let
response
=
await
downloadObject
({
fileId
:
scope
.
fileId
*
1
,
});
let
blob
=
new
Blob
([
response
]);
if
(
"download"
in
document
.
createElement
(
"a"
))
{
let
elink
=
document
.
createElement
(
"a"
);
elink
.
download
=
scope
.
fileName
;
elink
.
style
.
display
=
"none"
;
elink
.
href
=
URL
.
createObjectURL
(
blob
);
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
URL
.
revokeObjectURL
(
elink
.
href
);
// 释放URL 对象
document
.
body
.
removeChild
(
elink
);
}
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/assessChecks/materialAcquisition.vue
View file @
e99e4d1
...
@@ -242,8 +242,8 @@
...
@@ -242,8 +242,8 @@
<el-table-column
label=
"材料类别"
prop=
"batchtype"
>
</el-table-column>
<el-table-column
label=
"材料类别"
prop=
"batchtype"
>
</el-table-column>
<el-table-column
prop=
"typeText"
label=
"资料类型"
>
</el-table-column>
<el-table-column
prop=
"typeText"
label=
"资料类型"
>
</el-table-column>
<el-table-column
prop=
"fileName"
label=
"资料名称"
>
<el-table-column
prop=
"fileName"
label=
"资料名称"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.fileName"
>
<el-button
@
click=
"handleClickXZ(scope.row)"
>
{{
scope
.
row
.
fileName
}}
</el-button>
{{
scope
.
row
.
fileName
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -435,10 +435,6 @@ export default {
...
@@ -435,10 +435,6 @@ export default {
// });
// });
}
}
// this.tableDataQD.forEach((item) => {
// this.$set(item, "batchtype", "开发、实施类");
// });
// this.total = res.data.total * 1;
},
},
//详情
//详情
async
detailsForm
()
{
async
detailsForm
()
{
...
...
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