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 d53bf7b8
authored
May 30, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存修改
1 parent
465ab405
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
296 additions
and
158 deletions
public/nopdf.png
src/assets/nopdf.png
src/views/assessChecks/assistedConfirm.vue
src/views/assessChecks/assistedRect.vue
src/views/assessChecks/assistedViewing.vue
src/views/assessChecks/assitedDistribution.vue
src/views/assessChecks/attachSynchronousArchiving.vue
src/views/assessChecks/checkCompliance.vue
src/views/assessChecks/checkComplianceFZ.vue
src/views/assessChecks/correctiveAssistanceVerification.vue
src/views/assessChecks/materialAcquisition.vue
public/nopdf.png
0 → 100644
View file @
d53bf7b
8.02 KB
src/assets/nopdf.png
0 → 100644
View file @
d53bf7b
8.02 KB
src/views/assessChecks/assistedConfirm.vue
View file @
d53bf7b
...
...
@@ -185,7 +185,7 @@
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"复核情况"
prop=
"
rectification
Status"
>
<el-table-column
label=
"复核情况"
prop=
"
appeal
Status"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<el-select
v-model=
"scope.row.appealStatus"
...
...
@@ -283,7 +283,7 @@
}}
<el-button
@
click=
"handleClickXZ(scope.row)"
>
下载
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"复核情况"
prop=
"
rectification
Status"
>
<el-table-column
label=
"复核情况"
prop=
"
appeal
Status"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<el-select
v-model=
"scope.row.appealStatus"
...
...
@@ -382,7 +382,9 @@ export default {
}
else
{
this
.
$set
(
item
,
"postEvalStateText"
,
"复核未下发"
);
}
});
console
.
log
(
this
.
tableData
,
'tableDatatableData'
)
this
.
total
=
res
.
data
.
total
*
1
;
}
},
...
...
@@ -589,6 +591,11 @@ export default {
if
(
res
.
code
==
"200"
)
{
this
.
tableDataSS
=
res
.
data
.
records
;
this
.
tableDataSS
.
forEach
((
item
)
=>
{
if
(
item
.
appealStatus
<
2
){
item
.
appealStatus
=
null
// this.$set(item, "appealStatus", "");
}
if
(
!
item
.
confirmStatus
)
{
this
.
$set
(
item
,
"confirmStatus"
,
"2"
);
}
...
...
src/views/assessChecks/assistedRect.vue
View file @
d53bf7b
...
...
@@ -10,10 +10,11 @@
<el-form-item
label=
"批次年度:"
prop=
"batchYear"
class=
"fromItem"
>
<el-select
v-model=
"ruleForm.batchYear"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"(item, index) in yearsList"
:key=
"index"
:label=
"item+'年'"
:value=
"item"
/>
v-for=
"(item, index) in yearsList"
:key=
"index"
:label=
"item + '年'"
:value=
"item"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"后评估批次名称:"
prop=
"batchName"
class=
"fromItem"
>
...
...
@@ -65,9 +66,9 @@
<el-table-column
label=
"序号"
width=
"55"
type=
"index"
>
</el-table-column>
<el-table-column
type=
"selection"
>
</el-table-column>
<el-table-column
label=
"批次年度"
prop=
"batchYear"
><template
slot-scope=
"scope"
>
{{
scope
.
row
.
batchYear
}}
年
</
template
>
</el-table-column>
<el-table-column
label=
"批次年度"
prop=
"batchYear"
><template
slot-scope=
"scope"
>
{{
scope
.
row
.
batchYear
}}
年
</
template
>
</el-table-column>
<el-table-column
prop=
"batchName"
label=
"后评估批次名称"
>
</el-table-column>
...
...
@@ -191,8 +192,14 @@
</
template
>
</el-table-column>
<el-table-column
label=
"附加解释材料"
prop=
"fileId"
width=
"400"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<input
type=
"file"
@
change=
"handleFileUpload($event,scope.row, 'fileId')"
/>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<input
type=
"file"
@
change=
"handleFileUpload($event, scope.row, 'fileId')"
/>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -218,13 +225,25 @@
</
template
>
</el-table-column>
<el-table-column
label=
"上传整改材料"
prop=
"zgFileId"
width=
"400"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<input
type=
"file"
@
change=
"handleFileUpload($event,scope.row, 'zgFileId')"
/>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<input
type=
"file"
@
change=
"handleFileUpload($event, scope.row, 'zgFileId')"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"情况说明"
prop=
"zgqkFileId"
width=
"400"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<input
type=
"file"
@
change=
"handleFileUpload($event,scope.row, 'zgqkFileId')"
/>
<
template
slot-scope=
"scope"
v-if=
"scope.row.confirmStatus == '1'"
>
<input
type=
"file"
@
change=
"handleFileUpload($event, scope.row, 'zgqkFileId')"
/>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -232,7 +251,8 @@
</div>
</div>
<p
class=
"midBtn"
>
<span
@
click=
"cancelSS()"
>
取消
</span><span
@
click=
"saveSS()"
>
保存
</span><span
@
click=
"save()"
>
提交
</span>
<span
@
click=
"cancelSS()"
>
取消
</span><span
@
click=
"saveSS()"
>
保存
</span
><span
@
click=
"save()"
>
提交
</span>
</p>
</el-dialog>
<!-- 复核下发 -->
...
...
@@ -391,7 +411,7 @@ import { generateYearOptions } from "@/utils/cache";
export
default
{
data
()
{
return
{
yearsList
:
generateYearOptions
(),
yearsList
:
generateYearOptions
(),
dialogSS
:
false
,
ruleForm
:
{
batchYear
:
""
,
...
...
@@ -428,12 +448,14 @@ export default {
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
((
item
)
=>
{
if
(
item
.
reviewStatus
==
"6"
)
{
if
(
item
.
reviewStatus
==
"4"
)
{
this
.
$set
(
item
,
"postEvalState"
,
"未整改"
);
}
else
if
(
item
.
reviewStatus
==
"5"
)
{
this
.
$set
(
item
,
"postEvalState"
,
"整改提交"
);
}
else
if
(
item
.
reviewStatus
==
"6"
)
{
this
.
$set
(
item
,
"postEvalState"
,
"整改未完成"
);
}
else
if
(
item
.
reviewStatus
==
"7"
)
{
this
.
$set
(
item
,
"postEvalState"
,
"整改已完成"
);
}
else
{
this
.
$set
(
item
,
"postEvalState"
,
"整改提交"
);
}
});
this
.
total
=
res
.
data
.
total
*
1
;
...
...
@@ -453,6 +475,10 @@ export default {
this
.
$message
(
"请选择一条数据进行整改"
);
return
;
}
if
(
this
.
checkedList
.
postEvalState
==
'整改提交'
)
{
this
.
$message
(
"整改已经提交"
);
return
;
}
this
.
dialogQR
=
true
;
let
params
=
{
projectId
:
this
.
checkedList
[
0
].
projectId
,
...
...
@@ -592,7 +618,7 @@ export default {
this
.
dialogQR
=
false
;
},
async
save
()
{
let
res
=
await
wtzgxfProblemRectification
(
this
.
tableData
SS
);
let
res
=
await
wtzgxfProblemRectification
(
this
.
tableData
QR
);
if
(
res
.
code
==
"200"
)
{
this
.
dialogQR
=
false
;
this
.
resetForm
();
...
...
@@ -614,7 +640,6 @@ export default {
});
let
res
=
await
wtzgProblemRectification
(
this
.
tableDataQR
);
if
(
res
.
code
==
"200"
)
{
this
.
resetForm
();
}
},
...
...
@@ -660,30 +685,30 @@ export default {
break
;
}
});
console
.
log
(
this
.
tableDataSS
,
'状态是什么'
);
console
.
log
(
this
.
tableDataSS
,
"状态是什么"
);
this
.
dataPretreatmentSS
();
}
},
handleFileUpload
(
event
,
row
,
type
)
{
handleFileUpload
(
event
,
row
,
type
)
{
console
.
log
(
"来了么"
);
this
.
file
=
event
.
target
.
files
[
0
];
this
.
submitFile
(
row
,
type
)
this
.
submitFile
(
row
,
type
);
},
submitFile
(
row
,
type
)
{
submitFile
(
row
,
type
)
{
if
(
this
.
file
)
{
const
formData
=
new
FormData
();
formData
.
append
(
"file"
,
this
.
file
);
ossupload
(
formData
)
.
then
((
response
)
=>
{
console
.
log
(
response
);
this
.
file
=
[]
this
.
file
=
[];
this
.
$set
(
row
,
type
,
response
.
data
.
fileId
);
})
.
catch
((
error
)
=>
{
console
.
error
(
error
);
});
}
else
{
this
.
$message
(
'请先选择文件'
)
}
else
{
this
.
$message
(
"请先选择文件"
);
}
},
closed
()
{
...
...
src/views/assessChecks/assistedViewing.vue
View file @
d53bf7b
...
...
@@ -383,14 +383,10 @@ export default {
return
accumulator
;
},
[]);
console
.
log
(
this
.
tableDataQD
,
" mergedArray mergedArray mergedArray"
);
// this.tableDataQD.forEach((item) => {
// // this.$set(item, "batchtype", "开发、实施类");
// });
}
});
},
//表格颜色
tableRowClassName
({
row
,
rowIndex
})
{
if
(
rowIndex
%
2
==
1
)
{
...
...
src/views/assessChecks/assitedDistribution.vue
View file @
d53bf7b
...
...
@@ -224,12 +224,14 @@ export default {
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
((
item
)
=>
{
if
(
item
.
reviewStatus
==
"1"
)
{
if
(
item
.
reviewStatus
==
"0"
||
item
.
reviewStatus
==
null
||
item
.
reviewStatus
==
""
){
this
.
$set
(
item
,
"postEvalState"
,
"未下发"
);
}
else
if
(
item
.
reviewStatus
==
"1"
)
{
this
.
$set
(
item
,
"postEvalState"
,
"已下发"
);
}
else
if
(
item
.
reviewStatus
==
"2"
)
{
this
.
$set
(
item
,
"postEvalState"
,
"已撤回"
);
}
else
{
this
.
$set
(
item
,
"postEvalState"
,
"
未
下发"
);
this
.
$set
(
item
,
"postEvalState"
,
"
已
下发"
);
}
});
this
.
total
=
res
.
data
.
total
*
1
;
...
...
@@ -248,7 +250,7 @@ export default {
this
.
$message
(
"请选择一条数据进行下发"
);
return
;
}
else
{
if
(
this
.
checkedList
[
0
].
reviewStatus
==
1
)
{
if
(
this
.
checkedList
[
0
].
postEvalState
==
"已下发"
)
{
this
.
$message
(
"该项目已下发"
);
return
;
}
...
...
@@ -272,7 +274,7 @@ export default {
}
try
{
this
.
checkedList
.
forEach
((
item
)
=>
{
if
(
item
.
reviewStatus
==
1
)
{
if
(
item
.
postEvalState
==
"已下发"
)
{
this
.
$message
(
"请选择未下发的项目"
);
throw
new
Error
(
"退出forEach循环!"
);
}
...
...
@@ -349,7 +351,7 @@ export default {
this
.
$message
(
"请选择"
);
return
;
}
if
(
this
.
checkedList
[
0
].
postEvalState
==
"
未
下发"
)
{
if
(
this
.
checkedList
[
0
].
postEvalState
==
"
已
下发"
)
{
this
.
$message
(
"该项目未下发"
);
return
;
}
...
...
src/views/assessChecks/attachSynchronousArchiving.vue
View file @
d53bf7b
...
...
@@ -79,9 +79,9 @@
<el-button
@
click=
"detailsForm()"
>
<img
class=
"buttonIcon"
src=
"../../assets/ck.png"
/>
详情
</el-button
>
<el-button
@
click=
"attach('ruleForm')"
>
<
!--
<
el-button
@
click=
"attach('ruleForm')"
>
<i
class=
"el-icon-receiving"
></i>
材料归档
</el-button
>
>
-->
</el-form-item>
</el-form>
<div
class=
"setscroll"
>
...
...
@@ -308,12 +308,14 @@ import {
selLcb
}
from
"@/api/index"
;
import
{
generateYearOptions
}
from
"@/utils/cache"
;
import
{
MaterialsList
}
from
"@/utils/cache"
;
export
default
{
data
()
{
return
{
yearsList
:
generateYearOptions
(),
xxtableData
:[],
qdtableData
:
[],
tableDataNew
:
MaterialsList
(),
listData
:
{},
ruleForm
:
{
projectId
:
""
,
...
...
@@ -364,7 +366,6 @@ export default {
},
//详情
detailsForm
()
{
console
.
log
(
this
.
checkedList
,
"this.checkedList"
);
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
...
...
@@ -377,10 +378,26 @@ export default {
Promise
.
all
([
fzcxXqselect
(
params
),
clqdselect
(
params
)]).
then
((
res
)
=>
{
console
.
log
(
res
[
0
],
res
[
1
],
"2222222"
);
this
.
listData
=
res
[
0
].
data
.
records
[
0
];
this
.
qdtableData
=
res
[
1
].
data
.
records
;
this
.
qdtableData
.
forEach
((
item
)
=>
{
this
.
$set
(
item
,
"batchtype"
,
"开发、实施类"
);
});
this
.
qdtableData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableDataNew
));
if
(
res
[
1
].
data
.
records
.
length
>
0
)
{
// this.qdtableData = res[1].data.records;
this
.
qdtableData
=
this
.
qdtableData
.
concat
(
res
[
1
].
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"
);
}
});
},
attach
()
{
...
...
src/views/assessChecks/checkCompliance.vue
View file @
d53bf7b
...
...
@@ -42,7 +42,10 @@
>
<h3>
{{
item
.
questionId
}}
.
{{
item
.
quesCheckItem
}}
</h3>
<p
class=
"msg"
>
{{
item
.
checkDesc
}}
</p>
<div
class=
"quesznfx"
v-if=
"item.znfxList&&item.znfxList.length>0"
>
<div
class=
"quesznfx"
v-if=
"item.znfxList && item.znfxList.length > 0"
>
<p
class=
"tips"
>
智能分析:
</p>
<div
v-for=
"(itemzn, index) in item.znfxList"
...
...
@@ -51,7 +54,10 @@
v-html=
"itemzn.checkDesc"
></div>
</div>
<div
class=
"quesznfx"
v-if=
"item.fzfxList&&item.fzfxList.length>0"
>
<div
class=
"quesznfx"
v-if=
"item.fzfxList && item.fzfxList.length > 0"
>
<p
class=
"tips"
>
辅助分析:
</p>
<div
v-for=
"(itemfz, index) in item.fzfxList"
...
...
@@ -62,10 +68,11 @@
type=
"textarea"
:autosize=
"
{ minRows: 1, maxRows: 4 }"
v-model="itemfz.checkDesc"
>
</el-input
><el-button
@
click=
"adopt(item, index, itemfz)"
type=
"primary"
>
采纳
</el-button
:disabled=
"itemfz.type=='1'"
>
采纳
</el-button
>
</div>
</div>
...
...
@@ -144,17 +151,16 @@
</el-upload>
</div>
<el-dialog
:visible
.
sync=
"dialogVisible"
:fullscreen=
"true"
custom-class=
"fullscreen-dialog"
>
<img
:src=
"dialogImageUrl"
alt=
"Full Screen Image"
style=
"margin: 0 auto; display: block"
/>
</el-dialog>
:visible
.
sync=
"dialogVisible"
:fullscreen=
"true"
custom-class=
"fullscreen-dialog"
>
<img
:src=
"dialogImageUrl"
alt=
"Full Screen Image"
style=
"margin: 0 auto; display: block"
/>
</el-dialog>
<p
class=
"addBtn"
>
<el-checkbox
...
...
@@ -191,13 +197,13 @@ import { MaterialsListKY } from "@/utils/cache";
export
default
{
data
()
{
return
{
dialogImageUrl
:
''
,
dialogImageUrl
:
""
,
fileList
:
[],
evalList
:
[
{
ideval
:
""
,
evalQues
:
""
,
hideUploadEdit
:
false
hideUploadEdit
:
false
,
},
],
tabList
:
[
...
...
@@ -221,6 +227,7 @@ export default {
hideUploadEdit
:
false
,
limitNum
:
1
,
disabled
:
false
,
oldQuestionList
:
[],
//对比列表
};
},
mounted
()
{
...
...
@@ -231,13 +238,13 @@ export default {
methods
:
{
// 放大图片
handlePictureCardPreview
(
file
)
{
console
.
log
(
'点击放大'
)
console
.
log
(
"点击放大"
);
this
.
dialogImageUrl
=
file
.
url
;
this
.
dialogVisible
=
true
;
},
// 删除图片
handleRemove
(
file
,
fileList
)
{
console
.
log
(
fileList
,
'this.fileList'
)
console
.
log
(
fileList
,
"this.fileList"
);
if
(
this
.
fileList
.
length
==
0
)
{
this
.
fileList
=
[];
}
else
{
...
...
@@ -251,8 +258,7 @@ export default {
handleEditChange
(
file
,
fileList
)
{
this
.
hideUploadEdit
=
fileList
.
length
>=
this
.
limitNum
;
// this.fileList.push({ name: items.name, url: items.url });
console
.
log
(
fileList
,
' this.fileList'
)
console
.
log
(
fileList
,
" this.fileList"
);
},
// http-request自定义上传
...
...
@@ -263,18 +269,17 @@ export default {
// before-upload上传文件之前的钩子,参数为上传的文件
// 若返回 false 或者返回 Promise 且被 reject,则停止上传
beforeAvatarUpload
(
file
)
{
this
.
file
=
file
this
.
file
=
file
;
const
isJPG
=
file
.
type
===
"image/jpeg"
||
file
.
type
===
"image/png"
;
const
isLt2M
=
this
.
file
.
size
/
1024
<
1000
;
console
.
log
(
this
.
file
.
size
/
1024
,
'this.file.size this.file.size '
)
const
isLt2M
=
this
.
file
.
size
/
1024
<
1000
;
console
.
log
(
this
.
file
.
size
/
1024
,
"this.file.size this.file.size "
);
if
(
!
isJPG
)
{
this
.
$message
.
error
(
"上传图片只能是 JPG 或 PNG 格式!"
);
this
.
hideUploadEdit
=
false
this
.
hideUploadEdit
=
false
;
}
if
(
!
isLt2M
)
{
this
.
hideUploadEdit
=
false
this
.
hideUploadEdit
=
false
;
this
.
$message
.
error
(
"上传图片大小不能超过 1000k!"
);
}
return
isJPG
&&
isLt2M
;
},
...
...
@@ -314,38 +319,43 @@ export default {
};
let
responfx
=
await
selZnfx
(
paramsFX
);
if
(
respon
.
data
.
records
&&
respon
.
data
.
records
.
length
>
0
)
{
respon
.
data
.
records
.
forEach
(
async
itemImg
=>
{
if
(
itemImg
.
url
){
let
paramsImg
=
{
fileId
:
itemImg
.
id
,
url
:
itemImg
.
url
,
respon
.
data
.
records
.
forEach
(
async
(
itemImg
)
=>
{
if
(
itemImg
.
url
)
{
let
paramsImg
=
{
fileId
:
itemImg
.
id
,
url
:
itemImg
.
url
,
};
let
resUrl
=
await
presignedUrl
(
paramsImg
);
// itemImg.fileList=[{
// url:resUrl.msg
// }]
this
.
$set
(
itemImg
,
"fileList"
,
[
{
url
:
resUrl
.
msg
,
},
]);
itemImg
.
hideUploadEdit
=
true
;
}
else
{
itemImg
.
hideUploadEdit
=
false
;
}
let
resUrl
=
await
presignedUrl
(
paramsImg
);
// itemImg.fileList=[{
// url:resUrl.msg
// }]
this
.
$set
(
itemImg
,
'fileList'
,[{
url
:
resUrl
.
msg
}])
itemImg
.
hideUploadEdit
=
true
}
else
{
itemImg
.
hideUploadEdit
=
false
}
})
console
.
log
(
respon
.
data
.
records
,
'respon.data.records'
)
});
this
.
$set
(
item
,
"evalList"
,
[...
respon
.
data
.
records
]);
console
.
log
(
item
,
'itemitemitem'
)
console
.
log
(
item
,
"itemitemitem"
);
}
else
{
this
.
$set
(
item
,
"evalList"
,
[
{
ideval
:
""
,
evalQues
:
""
,
hideUploadEdit
:
false
,
hideUploadEdit
:
false
,
},
]);
}
if
(
item
.
isProblem
==
0
)
{
console
.
log
(
"未发现问题"
);
this
.
$set
(
item
,
"checked"
,
true
);
this
.
changeChecked
(
item
);
}
if
(
responfx
.
data
.
records
&&
responfx
.
data
.
records
.
length
>
0
)
{
let
znfxList
=
responfx
.
data
.
records
.
filter
((
item
)
=>
{
if
(
item
.
checkDesc
)
{
...
...
@@ -365,8 +375,9 @@ export default {
this
.
$set
(
item
,
"Id"
,
0
);
});
}
if
(
this
.
urlList
.
length
<=
0
){
return
if
(
this
.
urlList
.
length
<=
0
)
{
this
.
iframeUrl
=
"/nopdf.png"
;
return
;
}
let
paramsUrl
=
{
fileId
:
this
.
urlList
[
0
].
id
,
...
...
@@ -374,50 +385,61 @@ export default {
};
let
resUrl
=
await
presignedUrl
(
paramsUrl
);
console
.
log
(
this
.
questionList
,
"总列表"
);
// let prefixUrl = 'pdf/web/viewer.html?file=';
// this.iframeUrl = prefixUrl+resUrl.msg;
// console.log(this.iframeUrl,'this.iframeUrl')
this
.
iframeUrl
=
resUrl
.
msg
;
// this.iframeUrl ='https://view.officeapps.live.com/op/view.aspx?src='+ resUrl.msg
console
.
log
(
this
.
questionList
,
"总列表"
);
this
.
oldQuestionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
questionList
));
});
},
async
handleClick
(
tab
)
{
console
.
log
(
"切换"
,
tab
.
name
,
this
.
urlList
);
this
.
urlList
.
forEach
(
async
(
item
)
=>
{
if
(
item
.
typeCode
==
tab
.
name
)
{
let
paramsUrl
=
{
fileId
:
item
.
id
,
url
:
item
.
url
,
};
let
resUrl
=
await
presignedUrl
(
paramsUrl
);
this
.
iframeUrl
=
resUrl
.
msg
;
}
else
{
this
.
iframeUrl
=
''
}
if
(
item
.
typeCode
==
tab
.
name
)
{
let
paramsUrl
=
{
fileId
:
item
.
id
,
url
:
item
.
url
,
};
let
resUrl
=
await
presignedUrl
(
paramsUrl
);
this
.
iframeUrl
=
resUrl
.
msg
;
}
else
{
// this.iframeUrl =""
this
.
iframeUrl
=
"/nopdf.png"
;
}
});
console
.
log
(
this
.
iframeUrl
,
"this.iframeUrl"
);
},
change
(
id
)
{
console
.
log
(
"切换类型"
);
this
.
active
=
id
*
1
;
this
.
tabListKY
=
MaterialsListKY
(
id
*
1
+
1
);
this
.
init
(
this
.
clqparams
);
this
.
$confirm
(
"是否保存?"
,
"提示"
,
{
confirmButtonText
:
"是"
,
cancelButtonText
:
"否"
,
distinguishCancelAndClose
:
true
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
save
();
this
.
active
=
id
*
1
;
this
.
tabListKY
=
MaterialsListKY
(
id
*
1
+
1
);
this
.
init
(
this
.
clqparams
);
})
.
catch
((
action
)
=>
{
console
.
log
(
action
,
"actionaction"
);
if
(
action
===
"cancel"
)
{
this
.
active
=
id
*
1
;
this
.
tabListKY
=
MaterialsListKY
(
id
*
1
+
1
);
this
.
init
(
this
.
clqparams
);
}
else
{
}
});
// this.save()
// this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.init(this.clqparams);
},
delInput
(
item
,
index
)
{
if
(
item
.
evalList
.
length
<=
1
)
{
item
.
checked
=
true
this
.
changeChecked
(
item
)
// this.$set(item, "evalList", [
// {
// ideval: "",
// evalQues: "",
// hideUploadEdit:false,
// },
// ]);
// this.$set(item, "isProblem", 0);
item
.
checked
=
true
;
this
.
$set
(
item
,
"checked"
,
true
);
this
.
changeChecked
(
item
);
return
false
;
}
item
.
evalList
.
splice
(
index
,
1
);
...
...
@@ -425,26 +447,24 @@ export default {
adopt
(
item
,
index
,
items
)
{
console
.
log
(
item
,
"item"
);
console
.
log
(
items
,
"items"
);
if
(
item
.
evalList
.
length
==
1
&&!
item
.
evalList
[
0
].
evalQues
)
{
item
.
evalList
[
0
].
evalQues
=
items
.
checkDesc
if
(
item
.
evalList
.
length
==
1
&&
!
item
.
evalList
[
0
].
evalQues
)
{
item
.
evalList
[
0
].
evalQues
=
items
.
checkDesc
;
// this.$set(item,evalList,{
// evalQues: items.checkDesc,
// })
}
else
{
}
else
{
item
.
evalList
.
push
({
ideval
:
"id"
+
item
.
Id
++
,
evalQues
:
items
.
checkDesc
,
hideUploadEdit
:
false
});
ideval
:
"id"
+
item
.
Id
++
,
evalQues
:
items
.
checkDesc
,
hideUploadEdit
:
false
,
});
}
},
addInput
(
item
)
{
if
(
item
.
evalList
[
0
].
disabled
==
true
){
console
.
log
(
'选择了未发现问题'
)
return
if
(
item
.
evalList
[
0
].
disabled
==
true
)
{
console
.
log
(
"选择了未发现问题"
);
return
;
}
console
.
log
(
item
,
"22"
);
item
.
evalList
.
push
({
...
...
@@ -461,14 +481,14 @@ export default {
{
ideval
:
""
,
evalQues
:
""
,
hideUploadEdit
:
false
,
disabled
:
true
hideUploadEdit
:
false
,
disabled
:
true
,
},
]);
]);
this
.
$set
(
item
,
"isProblem"
,
0
);
// this.$set(item, "Id", 0);
}
else
{
item
.
evalList
[
0
].
disabled
=
false
}
else
{
item
.
evalList
[
0
].
disabled
=
false
;
this
.
$set
(
item
,
"isProblem"
,
1
);
}
},
...
...
@@ -477,22 +497,37 @@ export default {
// this.$router.go(-1);
this
.
$router
.
push
({
path
:
"/mainLayout/auxiliaryInspection"
,
});
},
async
save
()
{
this
.
questionList
.
forEach
((
item
)
=>
{
let
evals
=
""
;
item
.
evalList
.
forEach
((
childItem
)
=>
{
evals
=
evals
.
concat
(
childItem
.
evalQues
+
","
);
});
evals
=
evals
.
slice
(
0
,
-
1
)
item
.
evalQues
=
evals
;
});
console
.
log
(
this
.
questionList
,
"questionList"
);
// return
let
params
=
{
list
:
this
.
questionList
,
...
this
.
clqparams
,
};
console
.
log
(
params
,
'保存'
)
// return
console
.
log
(
params
,
"保存"
);
// return
let
res
=
await
bcevalQuesInfo
(
params
);
if
(
res
.
code
==
"200"
)
{
this
.
$message
(
"保存成功"
);
}
else
{
this
.
$message
(
"保存失败"
);
}
},
fileupdate
(
res
,
items
)
{
console
.
log
(
this
.
file
.
size
/
1024
,
"222222"
);
this
.
file
=
res
.
file
;
this
.
file
=
res
.
file
;
this
.
submitFile
(
res
,
items
);
},
submitFile
(
item
,
list
)
{
...
...
@@ -507,8 +542,8 @@ export default {
if
(
response
.
code
==
"200"
)
{
// list.url = response.data.downLoadUrl;
// list.fileId= response.data.fileId
this
.
$set
(
list
,
'url'
,
response
.
data
.
downLoadUrl
)
this
.
$set
(
list
,
'fileId'
,
response
.
data
.
fileId
)
this
.
$set
(
list
,
"url"
,
response
.
data
.
downLoadUrl
);
this
.
$set
(
list
,
"fileId"
,
response
.
data
.
fileId
);
console
.
log
(
this
.
questionList
,
"总列表"
);
this
.
$message
(
"上传成功"
);
}
else
{
...
...
src/views/assessChecks/checkComplianceFZ.vue
View file @
d53bf7b
...
...
@@ -21,14 +21,26 @@
<el-table-column
label=
"序号"
width=
"100"
type=
"index"
>
</el-table-column>
<el-table-column
label=
"问题检查项"
prop=
"quesCheckItem"
>
<el-table-column
label=
"问题检查项"
prop=
"quesCheckItem"
width=
"auto"
>
</el-table-column>
<el-table-column
label=
"检查说明"
prop=
"checkDesc"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"评估问题"
>
<el-table-column
label=
"检查说明"
prop=
"checkDesc"
show-overflow-tooltip
width=
"auto"
>
</el-table-column>
<el-table-column
label=
"评估问题"
width=
"auto"
>
<template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.evalQues"
:disabled=
"ishow"
></el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"问题截图"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<el-image
class=
"imgList"
v-for=
"(img, index) in scope.row.images"
:key=
"index"
:src=
"img"
:preview-src-list=
"scope.row.images"
@
click=
"handleImageClick(scope.row.images)"
></el-image>
</
template
>
</el-table-column>
</el-table>
</div>
...
...
@@ -41,7 +53,7 @@
</template>
<
script
>
import
{
selWtqdpostEvalQuesInfo
,
bcpostEvalQuesInfo
,
tjpostEvalQuesInfo
}
from
"@/api/index"
;
import
{
selWtqdpostEvalQuesInfo
,
bcpostEvalQuesInfo
,
tjpostEvalQuesInfo
,
presignedUrl
}
from
"@/api/index"
;
export
default
{
data
()
{
return
{
...
...
@@ -89,6 +101,40 @@ export default {
break
;
}
let
urlStr
=
item
.
url
let
arrUrl
=
[];
let
showUrlList
=
[]
// 有url拆分调接口换预览
if
(
urlStr
){
console
.
log
(
urlStr
,
'urlStr'
)
if
(
urlStr
.
includes
(
','
)){
arrUrl
=
item
.
url
.
split
(
','
)
}
else
{
arrUrl
.
push
(
urlStr
)
}
console
.
log
(
arrUrl
,
'arrUrlarrUrl'
)
arrUrl
.
forEach
(
async
showUrl
=>
{
let
paramsUrl
=
{
url
:
showUrl
,
};
let
resUrl
=
await
presignedUrl
(
paramsUrl
);
showUrlList
.
push
(
resUrl
.
msg
)
})
console
.
log
(
showUrlList
,
'showUrlList'
)
// showUrlList=['/nopdf.png','/nopdf.png','/nopdf.png','/nopdf.png']
this
.
$set
(
item
,
'images'
,
showUrlList
)
}
});
this
.
total
=
res
.
data
.
total
*
1
;
this
.
dataPretreatment
();
...
...
@@ -136,6 +182,9 @@ export default {
cancel
(){
this
.
$router
.
go
(
-
1
)
},
handleImageClick
(){
},
//保存
async
save
(
type
){
console
.
log
(
this
.
clqparams
,
'this.clqparams'
)
...
...
@@ -308,5 +357,11 @@ export default {
vertical-align
:
middle
;
}
}
.imgList
{
/deep/
.el-image__inner{
width
:
60px
;
height
:
60px
;
}
}
</
style
>
\ No newline at end of file
src/views/assessChecks/correctiveAssistanceVerification.vue
View file @
d53bf7b
...
...
@@ -647,7 +647,7 @@ export default {
this
.
dialogQR
=
false
;
},
async
save
()
{
let
res
=
await
tjrectificationVerification
(
this
.
tableData
SS
);
let
res
=
await
tjrectificationVerification
(
this
.
tableData
QR
);
if
(
res
.
code
==
"200"
)
{
this
.
dialogQR
=
false
;
this
.
resetForm
();
...
...
src/views/assessChecks/materialAcquisition.vue
View file @
d53bf7b
...
...
@@ -321,7 +321,7 @@ export default {
this
.
$set
(
item
,
"postEvalStateText"
,
"未上传"
);
}
else
if
(
item
.
postEvalState
==
"0"
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"未上传"
);
}
else
if
(
item
.
postEvalState
==
"1"
)
{
}
else
if
(
item
.
postEvalState
>=
1
)
{
this
.
$set
(
item
,
"postEvalStateText"
,
"已上传"
);
}
});
...
...
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