Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽测评-信息安全测评系统
web
Commits
391a63dd
Commit
391a63dd
authored
Feb 29, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 我的任务,企业文件库
parent
33f759d2
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
257 additions
and
151 deletions
+257
-151
task.js
src/api/task/task.js
+11
-1
processing.js
src/store/modules/processing.js
+1
-2
ModelDataSource.js
src/utils/ModelDataSource.js
+2
-2
index.vue
src/views/processing/carReview/source-record/index.vue
+7
-0
index.vue
src/views/processing/carReview/vehicle-type/index.vue
+2
-2
companyFile.vue
...ing/carReview/write-check-form/components/companyFile.vue
+4
-3
previewView.vue
...ing/carReview/write-check-form/components/previewView.vue
+31
-12
index.vue
src/views/processing/carReview/write-check-form/index.vue
+41
-13
index.vue
src/views/processing/processed-review/index.vue
+0
-1
index.vue
src/views/processing/systemReview/confirm-result/index.vue
+2
-2
index.vue
src/views/processing/systemReview/source-record/index.vue
+8
-1
companyFile.vue
.../systemReview/write-check-form/components/companyFile.vue
+3
-2
previewView.vue
.../systemReview/write-check-form/components/previewView.vue
+31
-12
index.vue
src/views/processing/systemReview/write-check-form/index.vue
+39
-12
index.vue
src/views/processing/unprocessed-review/index.vue
+8
-31
index.vue
src/views/task/on/index.vue
+67
-55
No files found.
src/api/task/task.js
View file @
391a63dd
...
@@ -128,7 +128,7 @@ export function carReviewTaskConfirm(data) {
...
@@ -128,7 +128,7 @@ export function carReviewTaskConfirm(data) {
data
data
})
})
}
}
/// 任务创建
export
function
createTask
(
data
)
{
export
function
createTask
(
data
)
{
return
request
({
return
request
({
url
:
'/task/createTask'
,
url
:
'/task/createTask'
,
...
@@ -136,3 +136,13 @@ export function createTask(data) {
...
@@ -136,3 +136,13 @@ export function createTask(data) {
data
data
})
})
}
}
/// 任务删除
export
function
removeTask
(
data
)
{
return
request
({
url
:
'/task/remove'
,
method
:
'post'
,
data
})
}
src/store/modules/processing.js
View file @
391a63dd
...
@@ -14,8 +14,7 @@ const actions = {
...
@@ -14,8 +14,7 @@ const actions = {
getCompanyFiles
({
commit
},
data
)
{
getCompanyFiles
({
commit
},
data
)
{
getCompanyFile
(
data
).
then
(
res
=>
{
getCompanyFile
(
data
).
then
(
res
=>
{
// 筛选数组返回其中某一个元素成为新数组
// 筛选数组返回其中某一个元素成为新数组
const
resData
=
res
.
rows
.
map
(
item
=>
{
return
{
"value"
:
item
.
fileName
}
})
const
resData
=
res
.
rows
.
map
(
item
=>
{
return
{
"value"
:
item
.
fileName
,
"id"
:
item
.
id
}
})
console
.
log
(
resData
);
commit
(
'SET_FILES'
,
resData
)
commit
(
'SET_FILES'
,
resData
)
})
})
}
}
...
...
src/utils/ModelDataSource.js
View file @
391a63dd
...
@@ -61,7 +61,7 @@ ModelDataSource.prototype = {
...
@@ -61,7 +61,7 @@ ModelDataSource.prototype = {
}
}
}
}
successCallback
(
response
)
successCallback
()
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
failedCallback
()
failedCallback
()
...
@@ -102,7 +102,7 @@ ModelDataSource.prototype = {
...
@@ -102,7 +102,7 @@ ModelDataSource.prototype = {
self
[
key
]
=
response
.
data
[
key
]
self
[
key
]
=
response
.
data
[
key
]
}
}
}
}
successCallback
()
successCallback
(
response
)
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
// console.log(error.response)
// console.log(error.response)
...
...
src/views/processing/carReview/source-record/index.vue
View file @
391a63dd
...
@@ -150,6 +150,7 @@
...
@@ -150,6 +150,7 @@
<th>
审查要点
</th>
<th>
审查要点
</th>
<th>
审查细则
</th>
<th>
审查细则
</th>
<th>
审查结果
</th>
<th>
审查结果
</th>
<th>
记录
</th>
<th>
填写人
</th>
<th>
填写人
</th>
</tr>
</tr>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
...
@@ -176,6 +177,12 @@
...
@@ -176,6 +177,12 @@
:
'__'
:
'__'
}}
}}
</td>
</td>
<td
align=
"center"
>
<div
v-if=
"reviewDetail.result"
>
{{
reviewDetail
.
result
.
catalogue
}}
</div>
<div
v-else
>
__
</div>
</td>
<td
align=
"center"
>
<td
align=
"center"
>
{{
{{
reviewDetail
.
result
reviewDetail
.
result
...
...
src/views/processing/carReview/vehicle-type/index.vue
View file @
391a63dd
...
@@ -150,7 +150,6 @@
...
@@ -150,7 +150,6 @@
<th>
审查要点
</th>
<th>
审查要点
</th>
<th>
审查细则
</th>
<th>
审查细则
</th>
<th>
审查结果
</th>
<th>
审查结果
</th>
<th>
记录
</th>
<th>
填写人
</th>
<th>
填写人
</th>
</tr>
</tr>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
...
@@ -169,16 +168,17 @@
...
@@ -169,16 +168,17 @@
<td
align=
"center"
>
<td
align=
"center"
>
<el-tag
<el-tag
v-if=
"reviewDetail.result.passed === 1"
v-if=
"reviewDetail.result.passed === 1"
size=
"medium"
type=
"success"
type=
"success"
>
通过
</el-tag
>
通过
</el-tag
>
>
<el-tag
<el-tag
v-if=
"reviewDetail.result.passed === 0"
v-if=
"reviewDetail.result.passed === 0"
size=
"medium"
type=
"danger"
type=
"danger"
>
不通过
</el-tag
>
不通过
</el-tag
>
>
</td>
</td>
<td
align=
"center"
>
{{
reviewDetail
.
result
}}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
{{
{{
reviewDetail
.
result
reviewDetail
.
result
...
...
src/views/processing/carReview/write-check-form/components/companyFile.vue
View file @
391a63dd
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
model
.
taskId
=
this
.
$route
.
query
.
i
d
this
.
model
.
taskId
=
this
.
$route
.
query
.
taskI
d
},
},
methods
:
{
methods
:
{
/**
/**
...
@@ -183,10 +183,11 @@ export default {
...
@@ -183,10 +183,11 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
model
.
save
(
this
.
model
.
save
(
res
=>
{
res
=>
{
this
.
$emit
(
'handleSave'
,
res
.
data
)
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
taskId
:
this
.
$route
.
query
.
i
d
taskId
:
this
.
$route
.
query
.
taskI
d
})
})
this
.
$
emit
(
'handleSave'
,
res
.
data
)
this
.
$
modal
.
msgSuccess
(
'提交文件成功'
)
},
},
errors
=>
{}
errors
=>
{}
)
)
...
...
src/views/processing/carReview/write-check-form/components/previewView.vue
View file @
391a63dd
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<div
class=
"form-review-questionnaire"
style=
"margin: 0"
>
<div
class=
"form-review-questionnaire"
style=
"margin: 0"
>
<div
class=
"title-display"
>
<div
class=
"title-display"
>
<span
class=
"title-i"
></span>
<span
class=
"title-i"
></span>
<span
class=
"title-content"
>
审查问卷概要
</span>
<span
class=
"title-content"
>
预览审查表单
</span>
<div
class=
"control-btns"
>
<div
class=
"control-btns"
>
<div
class=
"control-btn"
@
click=
"openAll()"
>
<div
class=
"control-btn"
@
click=
"openAll()"
>
<icon-park
<icon-park
...
@@ -76,18 +76,28 @@
...
@@ -76,18 +76,28 @@
<tr
:key=
"reviewDetailKey"
>
<tr
:key=
"reviewDetailKey"
>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<el-tag
<div
v-if=
"reviewDetail.result"
>
v-if=
"reviewDetail.result.passed === 1"
<el-tag
type=
"success"
v-if=
"reviewDetail.result.passed === 1"
>
通过
</el-tag
size=
"medium"
>
type=
"success"
<el-tag
>
通过
</el-tag
v-if=
"reviewDetail.result.passed === 0"
>
type=
"danger"
<el-tag
>
不通过
</el-tag
v-if=
"reviewDetail.result.passed === 0"
>
size=
"medium"
type=
"danger"
>
不通过
</el-tag
>
</div>
<div
v-else
>
__
</div>
</td>
<td
align=
"center"
>
<div
v-if=
"reviewDetail.result"
>
{{
reviewDetail
.
result
.
catalogue
}}
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
>
{{
reviewDetail
.
result
}}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
{{
{{
reviewDetail
.
result
reviewDetail
.
result
...
@@ -137,6 +147,15 @@ export default {
...
@@ -137,6 +147,15 @@ export default {
activeNames
:
[]
activeNames
:
[]
}
}
},
},
watch
:
{
'dialogManger.dialogVisible'
:
{
handler
(
newValue
,
oldValue
)
{
if
(
newValue
)
{
this
.
openAll
()
}
}
}
},
methods
:
{
methods
:
{
// 关闭预览
// 关闭预览
handleClose
()
{
handleClose
()
{
...
...
src/views/processing/carReview/write-check-form/index.vue
View file @
391a63dd
...
@@ -208,6 +208,7 @@
...
@@ -208,6 +208,7 @@
style=
"width: 100%"
style=
"width: 100%"
:fetch-suggestions=
"querySearch"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入文件名称"
placeholder=
"请输入文件名称"
@
select=
"querySelect"
></el-autocomplete>
></el-autocomplete>
</div>
</div>
</el-col>
</el-col>
...
@@ -331,6 +332,13 @@ export default {
...
@@ -331,6 +332,13 @@ export default {
show
:
false
,
show
:
false
,
fileName
:
''
fileName
:
''
},
},
fileModel
:
this
.
$modelDataSource
({
url
:
'/review/enterprise/archive'
,
dataKey
:
'model'
,
attributes
:
{
id
:
0
}
}),
isFileUpdate
:
false
,
isFileUpdate
:
false
,
loading
:
false
loading
:
false
}
}
...
@@ -354,6 +362,7 @@ export default {
...
@@ -354,6 +362,7 @@ export default {
const
query
=
files
.
filter
(
this
.
createFilter
(
newValue
))
const
query
=
files
.
filter
(
this
.
createFilter
(
newValue
))
if
(
query
.
length
===
0
)
{
if
(
query
.
length
===
0
)
{
this
.
formManger
.
show
=
true
this
.
formManger
.
show
=
true
this
.
isFileUpdate
=
true
this
.
formManger
.
fileName
=
newValue
this
.
formManger
.
fileName
=
newValue
}
else
{
}
else
{
this
.
isFileUpdate
=
false
this
.
isFileUpdate
=
false
...
@@ -379,7 +388,7 @@ export default {
...
@@ -379,7 +388,7 @@ export default {
async
mounted
()
{
async
mounted
()
{
this
.
taskId
=
this
.
$route
.
query
.
id
this
.
taskId
=
this
.
$route
.
query
.
id
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
taskId
:
this
.
$route
.
query
.
i
d
taskId
:
this
.
$route
.
query
.
taskI
d
})
})
await
this
.
getTask
()
await
this
.
getTask
()
this
.
handleCircle
(
0
)
this
.
handleCircle
(
0
)
...
@@ -389,9 +398,10 @@ export default {
...
@@ -389,9 +398,10 @@ export default {
* 企业文件保存回调
* 企业文件保存回调
*/
*/
handleFileSave
(
element
)
{
handleFileSave
(
element
)
{
this
.
form
.
reviewEnterpriseArchiveId
=
element
this
.
form
.
reviewEnterpriseArchiveId
=
String
(
element
)
this
.
isFileUpdate
=
false
this
.
isFileUpdate
=
false
this
.
formManger
.
show
=
false
this
.
formManger
.
show
=
false
console
.
log
(
'企业文件保存回调'
)
},
},
/**
/**
* 企业文件表单内容修改回调
* 企业文件表单内容修改回调
...
@@ -399,6 +409,10 @@ export default {
...
@@ -399,6 +409,10 @@ export default {
*/
*/
handleFileUpdate
(
element
)
{
handleFileUpdate
(
element
)
{
this
.
isFileUpdate
=
element
this
.
isFileUpdate
=
element
console
.
log
(
'企业文件表单内容修改回调'
)
},
querySelect
(
e
)
{
this
.
form
.
reviewEnterpriseArchiveId
=
e
.
id
},
},
querySearch
(
queryString
,
cb
)
{
querySearch
(
queryString
,
cb
)
{
const
files
=
this
.
companyFiles
const
files
=
this
.
companyFiles
...
@@ -543,6 +557,16 @@ export default {
...
@@ -543,6 +557,16 @@ export default {
reviewEnterpriseArchiveId
:
reviewEnterpriseArchiveId
:
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
}
}
if
(
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
)
{
this
.
fileModel
.
fetch
(
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
,
{},
()
=>
{
this
.
oldForm
.
fileName
=
this
.
fileModel
.
fileName
this
.
form
.
fileName
=
this
.
fileModel
.
fileName
}
)
}
}
else
{
}
else
{
this
.
form
=
{
this
.
form
=
{
passed
:
''
,
passed
:
''
,
...
@@ -573,18 +597,22 @@ export default {
...
@@ -573,18 +597,22 @@ export default {
submitQuestionnaire
(
type
)
{
submitQuestionnaire
(
type
)
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
if
(
!
this
.
isFileUpdate
)
{
if
(
res
.
code
===
200
)
{
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
await
this
.
getTask
()
if
(
res
.
code
===
200
)
{
if
(
this
.
checked
)
{
await
this
.
getTask
()
this
.
handleCircle
(
0
)
if
(
this
.
checked
)
{
this
.
handleCircle
(
0
)
}
this
.
oldForm
=
this
.
form
this
.
$modal
.
msgSuccess
(
'提交表格成功'
)
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
}
this
.
oldForm
=
this
.
form
})
this
.
$modal
.
msgSuccess
(
'提交表格成功'
)
}
else
{
}
else
{
this
.
$message
.
error
(
'您有未保存内容,请点击保存按钮'
)
this
.
$modal
.
msgError
(
res
.
msg
)
}
}
})
}
}
})
})
},
},
...
...
src/views/processing/processed-review/index.vue
View file @
391a63dd
...
@@ -219,7 +219,6 @@
...
@@ -219,7 +219,6 @@
import
page
from
'@/mixins/page'
import
page
from
'@/mixins/page'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
dicts
:
[
'system_task_status'
,
'sys_scene_type'
,
'task_type'
],
mixins
:
[
page
],
mixins
:
[
page
],
data
()
{
data
()
{
return
{
return
{
...
...
src/views/processing/systemReview/confirm-result/index.vue
View file @
391a63dd
...
@@ -150,7 +150,6 @@
...
@@ -150,7 +150,6 @@
<th>
审查要点
</th>
<th>
审查要点
</th>
<th>
审查细则
</th>
<th>
审查细则
</th>
<th>
审查结果
</th>
<th>
审查结果
</th>
<th>
记录
</th>
<th>
填写人
</th>
<th>
填写人
</th>
</tr>
</tr>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
...
@@ -169,16 +168,17 @@
...
@@ -169,16 +168,17 @@
<td
align=
"center"
>
<td
align=
"center"
>
<el-tag
<el-tag
v-if=
"reviewDetail.result.passed === 1"
v-if=
"reviewDetail.result.passed === 1"
size=
"medium"
type=
"success"
type=
"success"
>
通过
</el-tag
>
通过
</el-tag
>
>
<el-tag
<el-tag
v-if=
"reviewDetail.result.passed === 0"
v-if=
"reviewDetail.result.passed === 0"
size=
"medium"
type=
"danger"
type=
"danger"
>
不通过
</el-tag
>
不通过
</el-tag
>
>
</td>
</td>
<td
align=
"center"
>
{{
reviewDetail
.
result
}}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
{{
{{
reviewDetail
.
result
reviewDetail
.
result
...
...
src/views/processing/systemReview/source-record/index.vue
View file @
391a63dd
...
@@ -169,16 +169,23 @@
...
@@ -169,16 +169,23 @@
<td
align=
"center"
>
<td
align=
"center"
>
<el-tag
<el-tag
v-if=
"reviewDetail.result.passed === 1"
v-if=
"reviewDetail.result.passed === 1"
size=
"medium"
type=
"success"
type=
"success"
>
通过
</el-tag
>
通过
</el-tag
>
>
<el-tag
<el-tag
v-if=
"reviewDetail.result.passed === 0"
v-if=
"reviewDetail.result.passed === 0"
size=
"medium"
type=
"danger"
type=
"danger"
>
不通过
</el-tag
>
不通过
</el-tag
>
>
</td>
</td>
<td
align=
"center"
>
{{
reviewDetail
.
result
}}
</td>
<td
align=
"center"
>
<div
v-if=
"reviewDetail.result"
>
{{
reviewDetail
.
result
.
catalogue
}}
</div>
<div
v-else
>
__
</div>
</td>
<td
align=
"center"
>
<td
align=
"center"
>
{{
{{
reviewDetail
.
result
reviewDetail
.
result
...
...
src/views/processing/systemReview/write-check-form/components/companyFile.vue
View file @
391a63dd
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
model
.
taskId
=
this
.
$route
.
query
.
i
d
this
.
model
.
taskId
=
this
.
$route
.
query
.
taskI
d
},
},
methods
:
{
methods
:
{
/**
/**
...
@@ -184,9 +184,10 @@ export default {
...
@@ -184,9 +184,10 @@ export default {
this
.
model
.
save
(
this
.
model
.
save
(
res
=>
{
res
=>
{
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
taskId
:
this
.
$route
.
query
.
i
d
taskId
:
this
.
$route
.
query
.
taskI
d
})
})
this
.
$emit
(
'handleSave'
,
res
.
data
)
this
.
$emit
(
'handleSave'
,
res
.
data
)
this
.
$modal
.
msgSuccess
(
'提交文件成功'
)
},
},
errors
=>
{}
errors
=>
{}
)
)
...
...
src/views/processing/systemReview/write-check-form/components/previewView.vue
View file @
391a63dd
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<div
class=
"form-review-questionnaire"
style=
"margin: 0"
>
<div
class=
"form-review-questionnaire"
style=
"margin: 0"
>
<div
class=
"title-display"
>
<div
class=
"title-display"
>
<span
class=
"title-i"
></span>
<span
class=
"title-i"
></span>
<span
class=
"title-content"
>
审查问卷概要
</span>
<span
class=
"title-content"
>
预览审查表单
</span>
<div
class=
"control-btns"
>
<div
class=
"control-btns"
>
<div
class=
"control-btn"
@
click=
"openAll()"
>
<div
class=
"control-btn"
@
click=
"openAll()"
>
<icon-park
<icon-park
...
@@ -76,18 +76,28 @@
...
@@ -76,18 +76,28 @@
<tr
:key=
"reviewDetailKey"
>
<tr
:key=
"reviewDetailKey"
>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<el-tag
<div
v-if=
"reviewDetail.result"
>
v-if=
"reviewDetail.result.passed === 1"
<el-tag
type=
"success"
v-if=
"reviewDetail.result.passed === 1"
>
通过
</el-tag
size=
"medium"
>
type=
"success"
<el-tag
>
通过
</el-tag
v-if=
"reviewDetail.result.passed === 0"
>
type=
"danger"
<el-tag
>
不通过
</el-tag
v-if=
"reviewDetail.result.passed === 0"
>
size=
"medium"
type=
"danger"
>
不通过
</el-tag
>
</div>
<div
v-else
>
__
</div>
</td>
<td
align=
"center"
>
<div
v-if=
"reviewDetail.result"
>
{{
reviewDetail
.
result
.
catalogue
}}
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
>
{{
reviewDetail
.
result
}}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
{{
{{
reviewDetail
.
result
reviewDetail
.
result
...
@@ -137,6 +147,15 @@ export default {
...
@@ -137,6 +147,15 @@ export default {
activeNames
:
[]
activeNames
:
[]
}
}
},
},
watch
:
{
'dialogManger.dialogVisible'
:
{
handler
(
newValue
,
oldValue
)
{
if
(
newValue
)
{
this
.
openAll
()
}
}
}
},
methods
:
{
methods
:
{
// 关闭预览
// 关闭预览
handleClose
()
{
handleClose
()
{
...
...
src/views/processing/systemReview/write-check-form/index.vue
View file @
391a63dd
...
@@ -213,6 +213,7 @@
...
@@ -213,6 +213,7 @@
style=
"width: 100%"
style=
"width: 100%"
:fetch-suggestions=
"querySearch"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入文件名称"
placeholder=
"请输入文件名称"
@
select=
"querySelect"
></el-autocomplete>
></el-autocomplete>
</div>
</div>
</el-col>
</el-col>
...
@@ -220,7 +221,7 @@
...
@@ -220,7 +221,7 @@
<div>
<div>
章节条目或范围
章节条目或范围
<el-input
<el-input
v-model=
"form.c
hapterEntry
"
v-model=
"form.c
atalogue
"
placeholder=
"请输入具体章节条目或范围"
placeholder=
"请输入具体章节条目或范围"
/>
/>
</div>
</div>
...
@@ -344,6 +345,13 @@ export default {
...
@@ -344,6 +345,13 @@ export default {
show
:
false
,
show
:
false
,
fileName
:
''
fileName
:
''
},
},
fileModel
:
this
.
$modelDataSource
({
url
:
'/review/enterprise/archive'
,
dataKey
:
'model'
,
attributes
:
{
id
:
0
}
}),
isFileUpdate
:
false
,
isFileUpdate
:
false
,
loading
:
false
loading
:
false
}
}
...
@@ -367,6 +375,7 @@ export default {
...
@@ -367,6 +375,7 @@ export default {
const
query
=
files
.
filter
(
this
.
createFilter
(
newValue
))
const
query
=
files
.
filter
(
this
.
createFilter
(
newValue
))
if
(
query
.
length
===
0
)
{
if
(
query
.
length
===
0
)
{
this
.
formManger
.
show
=
true
this
.
formManger
.
show
=
true
this
.
isFileUpdate
=
true
this
.
formManger
.
fileName
=
newValue
this
.
formManger
.
fileName
=
newValue
}
else
{
}
else
{
this
.
isFileUpdate
=
false
this
.
isFileUpdate
=
false
...
@@ -390,6 +399,9 @@ export default {
...
@@ -390,6 +399,9 @@ export default {
},
},
async
mounted
()
{
async
mounted
()
{
this
.
taskId
=
this
.
$route
.
query
.
id
this
.
taskId
=
this
.
$route
.
query
.
id
this
.
$store
.
dispatch
(
'processing/getCompanyFiles'
,
{
taskId
:
this
.
$route
.
query
.
taskId
})
await
this
.
getTask
()
await
this
.
getTask
()
this
.
handleCircle
(
0
)
this
.
handleCircle
(
0
)
},
},
...
@@ -409,6 +421,9 @@ export default {
...
@@ -409,6 +421,9 @@ export default {
handleFileUpdate
(
element
)
{
handleFileUpdate
(
element
)
{
this
.
isFileUpdate
=
element
this
.
isFileUpdate
=
element
},
},
querySelect
(
e
)
{
this
.
form
.
reviewEnterpriseArchiveId
=
e
.
id
},
querySearch
(
queryString
,
cb
)
{
querySearch
(
queryString
,
cb
)
{
const
files
=
this
.
companyFiles
const
files
=
this
.
companyFiles
const
results
=
queryString
const
results
=
queryString
...
@@ -551,6 +566,16 @@ export default {
...
@@ -551,6 +566,16 @@ export default {
reviewEnterpriseArchiveId
:
reviewEnterpriseArchiveId
:
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
}
}
if
(
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
)
{
this
.
fileModel
.
fetch
(
this
.
taskModel
.
result
.
reviewEnterpriseArchiveId
,
{},
()
=>
{
this
.
oldForm
.
fileName
=
this
.
fileModel
.
fileName
this
.
form
.
fileName
=
this
.
fileModel
.
fileName
}
)
}
}
else
{
}
else
{
this
.
form
=
{
this
.
form
=
{
passed
:
''
,
passed
:
''
,
...
@@ -581,18 +606,20 @@ export default {
...
@@ -581,18 +606,20 @@ export default {
submitQuestionnaire
(
type
)
{
submitQuestionnaire
(
type
)
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
if
(
!
this
.
isFileUpdate
)
{
if
(
res
.
code
===
200
)
{
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
await
this
.
getTask
()
if
(
res
.
code
===
200
)
{
if
(
this
.
checked
)
{
await
this
.
getTask
()
this
.
handleCircle
(
0
)
if
(
this
.
checked
)
{
this
.
handleCircle
(
0
)
}
this
.
oldForm
=
this
.
form
this
.
$modal
.
msgSuccess
(
'提交表格成功'
)
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
}
this
.
oldForm
=
this
.
form
})
this
.
$modal
.
msgSuccess
(
'提交表格成功'
)
}
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
})
}
}
})
})
},
},
...
...
src/views/processing/unprocessed-review/index.vue
View file @
391a63dd
...
@@ -139,7 +139,8 @@
...
@@ -139,7 +139,8 @@
@
click=
"
@
click=
"
handleSystemReviewTestContent(
handleSystemReviewTestContent(
item.reviewStatus,
item.reviewStatus,
item.systemReviewTaskId
item.systemReviewTaskId,
item.id
)
)
"
"
>
>
...
@@ -162,7 +163,8 @@
...
@@ -162,7 +163,8 @@
@
click=
"
@
click=
"
handleCarTypeReviewTaskContent(
handleCarTypeReviewTaskContent(
item.carReviewStatus,
item.carReviewStatus,
item.carReviewTaskId
item.carReviewTaskId,
item.id
)
)
"
"
>
>
...
@@ -418,31 +420,6 @@ export default {
...
@@ -418,31 +420,6 @@ export default {
this
.
$store
.
dispatch
(
'standard/setStandardList'
)
this
.
$store
.
dispatch
(
'standard/setStandardList'
)
},
},
methods
:
{
methods
:
{
loadData
()
{
this
.
loading
=
true
request
({
url
:
this
.
listUrl
,
method
:
'post'
,
data
:
this
.
queryParams
})
.
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
console
.
log
(
res
.
rows
)
// res.rows[0].carReviewStatus = 'FINISH'
res
.
rows
[
0
].
carReviewStatus
=
'PENDING'
// res.rows[0].carReviewStatus = 'FINISH'
this
.
tableData
=
res
.
rows
this
.
total
=
res
.
total
}
this
.
loading
=
false
})
.
catch
(
error
=>
{
if
(
error
.
msg
)
{
this
.
$message
.
error
(
error
.
msg
)
}
this
.
loading
=
false
})
},
/**
/**
* 企业留档文件
* 企业留档文件
* @param item 对象
* @param item 对象
...
@@ -565,7 +542,7 @@ export default {
...
@@ -565,7 +542,7 @@ export default {
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
// 体系审查
// 体系审查
handleSystemReviewTestContent
(
status
,
id
)
{
handleSystemReviewTestContent
(
status
,
id
,
taskId
)
{
switch
(
status
)
{
switch
(
status
)
{
// 查看体系审查检查表单
// 查看体系审查检查表单
case
'NEW'
:
case
'NEW'
:
...
@@ -576,7 +553,7 @@ export default {
...
@@ -576,7 +553,7 @@ export default {
// 体系审查填写审查问卷
// 体系审查填写审查问卷
case
'PENDING'
:
case
'PENDING'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/systemReview/write-check-form?id='
+
id
path
:
`/processing/systemReview/write-check-form?id=
${
id
}
&taskId=
${
taskId
}
`
})
})
break
break
// 确认体系审查检查表单
// 确认体系审查检查表单
...
@@ -593,7 +570,7 @@ export default {
...
@@ -593,7 +570,7 @@ export default {
}
}
},
},
// 处理车型审查任务内容
// 处理车型审查任务内容
handleCarTypeReviewTaskContent
(
status
,
id
)
{
handleCarTypeReviewTaskContent
(
status
,
id
,
taskId
)
{
switch
(
status
)
{
switch
(
status
)
{
// 查看车型检查表单
// 查看车型检查表单
case
'NEW'
:
case
'NEW'
:
...
@@ -604,7 +581,7 @@ export default {
...
@@ -604,7 +581,7 @@ export default {
// 填写车型检查表单
// 填写车型检查表单
case
'PENDING'
:
case
'PENDING'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/carReview/write-check-form?id='
+
id
path
:
`/processing/carReview/write-check-form?id=
${
id
}
&taskId=
${
taskId
}
`
})
})
break
break
// 确认车型检验结果
// 确认车型检验结果
...
...
src/views/task/on/index.vue
View file @
391a63dd
...
@@ -137,7 +137,8 @@
...
@@ -137,7 +137,8 @@
@
click=
"
@
click=
"
handleSystemReviewTestContent(
handleSystemReviewTestContent(
item.reviewStatus,
item.reviewStatus,
item.systemReviewTaskId
item.systemReviewTaskId,
item.id
)
)
"
"
>
>
...
@@ -160,7 +161,8 @@
...
@@ -160,7 +161,8 @@
@
click=
"
@
click=
"
handleCarTypeReviewTaskContent(
handleCarTypeReviewTaskContent(
item.carReviewStatus,
item.carReviewStatus,
item.carReviewTaskId
item.carReviewTaskId,
item.id
)
)
"
"
>
>
...
@@ -329,29 +331,24 @@
...
@@ -329,29 +331,24 @@
</div>
</div>
<div
class=
"card-cell option-cell"
>
<div
class=
"card-cell option-cell"
>
<page-button
<page-button
icon=
"view-list"
v-if=
"item.runStatus === 'RUNNABLE'"
title=
"任务详情"
icon=
"play-one"
title=
"开始"
class=
"button-item"
class=
"button-item"
@
click
.
native=
"
goDetail(item.id
)"
@
click
.
native=
"
startTask(item
)"
></page-button>
></page-button>
<page-button
<page-button
icon=
"
file-display
"
icon=
"
edit
"
title=
"
预览企业留档文件
"
title=
"
修改
"
class=
"button-item"
class=
"button-item"
@
click
.
native=
"
handleRetentionFile(item
)"
@
click
.
native=
"
goNext(item.id
)"
></page-button>
></page-button>
<page-button
<page-button
icon=
"folder-close"
v-if=
"item.taskStatus === 'NEW'"
title=
"车企文件库"
icon=
"delete"
title=
"删除"
class=
"button-item"
class=
"button-item"
@
click
.
native=
"handleFileLibrary(item)"
@
click
.
native=
"teakDelete(item.id)"
></page-button>
<page-button
v-if=
"item.runStatus === 'RUNNABLE'"
icon=
"play-one"
title=
"开始体系审查"
class=
"button-item"
@
click
.
native=
"startTask(item)"
></page-button>
></page-button>
</div>
</div>
</div>
</div>
...
@@ -491,7 +488,11 @@
...
@@ -491,7 +488,11 @@
import
page
from
'@/mixins/page'
import
page
from
'@/mixins/page'
import
{
getHourDiff
}
from
'@/utils/diff'
import
{
getHourDiff
}
from
'@/utils/diff'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
reviewTaskStart
,
reviewCarTaskStart
}
from
'@/api/task/task'
import
{
reviewTaskStart
,
reviewCarTaskStart
,
removeTask
}
from
'@/api/task/task'
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
export
default
{
export
default
{
dicts
:
[
dicts
:
[
...
@@ -667,27 +668,38 @@ export default {
...
@@ -667,27 +668,38 @@ export default {
}
}
}
}
},
},
goDetail
(
id
)
{
/* 跳转到问卷详情*/
console
.
log
(
111
)
goNext
(
url
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
url
})
path
:
'/task/task-detail?id='
+
id
})
},
closeDialog
()
{
this
.
dialogVisible
=
false
},
},
// 打开移交任务弹窗
teakDelete
(
id
)
{
openTaskDialog
()
{
this
.
$modal
this
.
dialogVisible
=
true
.
confirm
(
'是否确定删除该条数据?'
)
.
then
(()
=>
{
removeTask
({
id
})
.
then
(()
=>
{
this
.
loadData
()
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
})
.
catch
(()
=>
{
this
.
$message
.
error
(
'删除失败'
)
})
})
.
catch
(()
=>
{})
},
},
/** 预览报告按钮操作 */
/** 预览报告按钮操作 */
previewReport
()
{
previewReport
(
id
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/reviewReport
'
path
:
'/processing/reviewReport
?id='
+
id
})
})
},
},
// 体系审查
// 体系审查
handleSystemReviewTestContent
(
status
,
id
)
{
handleSystemReviewTestContent
(
status
,
id
,
taskId
)
{
switch
(
status
)
{
switch
(
status
)
{
// 查看体系审查检查表单
// 查看体系审查检查表单
case
'NEW'
:
case
'NEW'
:
...
@@ -698,7 +710,7 @@ export default {
...
@@ -698,7 +710,7 @@ export default {
// 体系审查填写审查问卷
// 体系审查填写审查问卷
case
'PENDING'
:
case
'PENDING'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/systemReview/write-check-form?id='
+
id
path
:
`/processing/systemReview/write-check-form?id=
${
id
}
&taskId=
${
taskId
}
`
})
})
break
break
// 确认体系审查检查表单
// 确认体系审查检查表单
...
@@ -714,55 +726,55 @@ export default {
...
@@ -714,55 +726,55 @@ export default {
break
break
}
}
},
},
//
车型测试
//
处理车型审查任务内容
handleCarType
TestTaskContent
(
status
,
i
d
)
{
handleCarType
ReviewTaskContent
(
status
,
id
,
taskI
d
)
{
switch
(
status
)
{
switch
(
status
)
{
// 查看
试验方案
// 查看
车型检查表单
case
'NEW'
:
case
'NEW'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/
review-form?type=3&
id='
+
id
path
:
'/processing/
carReview/review-form?
id='
+
id
})
})
break
break
//
执行试验方案
//
填写车型检查表单
case
'PENDING'
:
case
'PENDING'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/vehicle-type'
path
:
`/processing/carReview/write-check-form?id=
${
id
}
&taskId=
${
taskId
}
`
})
})
break
break
// 确认
测试
结果
// 确认
车型检验
结果
case
'SIGNED'
:
case
'SIGNED'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/
vehicle-type'
path
:
'/processing/
carReview/vehicle-type?id='
+
id
})
})
break
break
// 查看车型审查记录
case
'FINISH'
:
this
.
$router
.
push
({
path
:
'/processing/carReview/source-record?id='
+
id
})
}
}
},
},
// 车型
检验
// 车型
测试
handleCarType
Review
TaskContent
(
status
,
id
)
{
handleCarType
Test
TaskContent
(
status
,
id
)
{
switch
(
status
)
{
switch
(
status
)
{
// 查看
车型检查表单
// 查看
试验方案
case
'NEW'
:
case
'NEW'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/
carReview/review-form?
id='
+
id
path
:
'/processing/
review-form?type=3&
id='
+
id
})
})
break
break
//
填写车型检查表单
//
执行试验方案
case
'PENDING'
:
case
'PENDING'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/
carReview/write-check-form?id='
+
id
path
:
'/processing/
vehicle-type'
})
})
break
break
// 确认
车型检验
结果
// 确认
测试
结果
case
'SIGNED'
:
case
'SIGNED'
:
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/processing/
carReview/vehicle-type?id='
+
id
path
:
'/processing/
vehicle-type'
})
})
break
break
// 查看车型审查记录
case
'FINISH'
:
this
.
$router
.
push
({
path
:
'/processing/carReview/source-record?id='
+
id
})
}
}
},
},
getDictData
(
options
,
value
)
{
getDictData
(
options
,
value
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment