Commit bdd92bda authored by 盖献康's avatar 盖献康

Merge branch 'develop' of http://gitlab.91isoft.com:90/car-test/web into developer/gaixiankang

parents dab7111a 25e3c071
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</div> </div>
<div class="message-box" style="background-color: #47baba"> <div class="message-box" style="background-color: #47baba">
<div class="message-detail"> <div class="message-detail">
<div class="detail-title">标准条款通过率</div> <div class="detail-title">标准条款通过率(%)</div>
<div class="detail-num mt10"> <div class="detail-num mt10">
{{ model.carReviewTask.standardsPass }}% {{ model.carReviewTask.standardsPass }}%
</div> </div>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</div> </div>
<div class="message-box" style="background-color: #47baba"> <div class="message-box" style="background-color: #47baba">
<div class="message-detail"> <div class="message-detail">
<div class="detail-title">标准条款通过率</div> <div class="detail-title">标准条款通过率(%)</div>
<div class="detail-num mt10"> <div class="detail-num mt10">
{{ model.carReviewTask.standardsPass }} % {{ model.carReviewTask.standardsPass }} %
</div> </div>
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
v-model="model.fileName" v-model="model.fileName"
placeholder="请输入" placeholder="请输入"
input="updateFocus" input="updateFocus"
@input="handleUpdateFile"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="发布日期" prop="publishDate"> <el-form-item label="发布日期" prop="publishDate">
...@@ -99,6 +100,10 @@ export default { ...@@ -99,6 +100,10 @@ export default {
enterpriseName: { enterpriseName: {
type: String, type: String,
default: '' default: ''
},
fileName: {
type: String,
default: ''
} }
}, },
data() { data() {
...@@ -148,6 +153,9 @@ export default { ...@@ -148,6 +153,9 @@ export default {
} }
}, },
watch: { watch: {
fileName(newValue) {
this.model.fileName = newValue
},
'dialogManger.dialogEditId'(newValue) { 'dialogManger.dialogEditId'(newValue) {
this.model.fetch( this.model.fetch(
newValue, newValue,
...@@ -164,6 +172,9 @@ export default { ...@@ -164,6 +172,9 @@ export default {
this.model.taskId = this.$route.query.taskId this.model.taskId = this.$route.query.taskId
}, },
methods: { methods: {
handleUpdateFile(newValue) {
this.$emit('fileNameUpdate', newValue)
},
/** /**
* 失去焦点回调 * 失去焦点回调
*/ */
......
...@@ -237,6 +237,12 @@ ...@@ -237,6 +237,12 @@
v-show="formManger.show" v-show="formManger.show"
style="margin-left: 125px" style="margin-left: 125px"
:enterprise-name="model.carReviewTask.enterpriseName" :enterprise-name="model.carReviewTask.enterpriseName"
:file-name="form.fileName"
@fileNameUpdate="
name => {
form.fileName = name
}
"
@handleUpdate="handleFileUpdate" @handleUpdate="handleFileUpdate"
@handleSave="handleFileSave" @handleSave="handleFileSave"
></company-file> ></company-file>
...@@ -608,11 +614,25 @@ export default { ...@@ -608,11 +614,25 @@ export default {
handleBack() { handleBack() {
this.$router.go(-1) this.$router.go(-1)
}, },
// 根据传入的名字去匹配数组内符合的项目并返回该项目
getProjectByName(arr, name) {
return arr.find(item => item.value === name)
},
// 保存当前条目 // 保存当前条目
submitQuestionnaire(type) { submitQuestionnaire(type) {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
if (!this.isFileUpdate) { if (!this.isFileUpdate) {
// 根据公司文件和文件名获取特定项目项,并据此更新表单中的审核企业档案ID
const files = this.companyFiles // 获取公司文件列表
const fileName = this.form.fileName // 获取表单中填写的文件名
// 根据文件名在公司文件列表中查找对应项目项
const item = this.getProjectByName(files, fileName)
if (item) {
this.form.reviewEnterpriseArchiveId = item.id // 找到项目项则更新表单的审核企业档案ID
} else {
this.form.reviewEnterpriseArchiveId = null // 未找到则将审核企业档案ID设为null
}
reviewDetailsSubmit(this.form).then(async res => { reviewDetailsSubmit(this.form).then(async res => {
if (res.code === 200) { if (res.code === 200) {
await this.getTask() await this.getTask()
...@@ -641,6 +661,9 @@ export default { ...@@ -641,6 +661,9 @@ export default {
this.$router.go(-1) this.$router.go(-1)
}) })
}, },
/**
*确认细则内容变更
*/
confirmDetailChange() { confirmDetailChange() {
reviewDetailsConfirm({ reviewDetailsConfirm({
detailsId: this.taskModel.id, detailsId: this.taskModel.id,
......
...@@ -138,12 +138,12 @@ ...@@ -138,12 +138,12 @@
align="left" align="left"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<img <el-image
style="width: 36px; height: 36px"
:src="baseUrl + scope.row.photo" :src="baseUrl + scope.row.photo"
alt="文件照片" :preview-src-list="[baseUrl + scope.row.photo]"
width="36" >
height="36" </el-image>
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</div> </div>
<div class="message-box" style="background-color: #47baba"> <div class="message-box" style="background-color: #47baba">
<div class="message-detail"> <div class="message-detail">
<div class="detail-title">标准条款通过率</div> <div class="detail-title">标准条款通过率(%)</div>
<div class="detail-num mt10"> <div class="detail-num mt10">
{{ model.systemReviewTask.standardsPass }}% {{ model.systemReviewTask.standardsPass }}%
</div> </div>
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</div> </div>
<div class="message-box" style="background-color: #47baba"> <div class="message-box" style="background-color: #47baba">
<div class="message-detail"> <div class="message-detail">
<div class="detail-title">标准条款通过率</div> <div class="detail-title">标准条款通过率(%)</div>
<div class="detail-num mt10"> <div class="detail-num mt10">
{{ model.systemReviewTask.standardsPass }} % {{ model.systemReviewTask.standardsPass }} %
</div> </div>
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
v-model="model.fileName" v-model="model.fileName"
placeholder="请输入" placeholder="请输入"
input="updateFocus" input="updateFocus"
@input="handleUpdateFile"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="发布日期" prop="publishDate"> <el-form-item label="发布日期" prop="publishDate">
...@@ -99,6 +100,10 @@ export default { ...@@ -99,6 +100,10 @@ export default {
enterpriseName: { enterpriseName: {
type: String, type: String,
default: '' default: ''
},
fileName: {
type: String,
default: ''
} }
}, },
data() { data() {
...@@ -148,6 +153,9 @@ export default { ...@@ -148,6 +153,9 @@ export default {
} }
}, },
watch: { watch: {
fileName(newValue) {
this.model.fileName = newValue
},
'dialogManger.dialogEditId'(newValue) { 'dialogManger.dialogEditId'(newValue) {
this.model.fetch( this.model.fetch(
newValue, newValue,
...@@ -164,6 +172,9 @@ export default { ...@@ -164,6 +172,9 @@ export default {
this.model.taskId = this.$route.query.taskId this.model.taskId = this.$route.query.taskId
}, },
methods: { methods: {
handleUpdateFile(newValue) {
this.$emit('fileNameUpdate', newValue)
},
/** /**
* 失去焦点回调 * 失去焦点回调
*/ */
......
...@@ -247,6 +247,12 @@ ...@@ -247,6 +247,12 @@
v-show="formManger.show" v-show="formManger.show"
style="margin-left: 125px" style="margin-left: 125px"
:enterprise-name="model.systemReviewTask.enterpriseName" :enterprise-name="model.systemReviewTask.enterpriseName"
:file-name="form.fileName"
@fileNameUpdate="
name => {
form.fileName = name
}
"
@handleUpdate="handleFileUpdate" @handleUpdate="handleFileUpdate"
@handleSave="handleFileSave" @handleSave="handleFileSave"
></company-file> ></company-file>
...@@ -623,11 +629,25 @@ export default { ...@@ -623,11 +629,25 @@ export default {
handleBack() { handleBack() {
this.$router.go(-1) this.$router.go(-1)
}, },
// 根据传入的名字去匹配数组内符合的项目并返回该项目
getProjectByName(arr, name) {
return arr.find(item => item.value === name)
},
// 保存当前条目 // 保存当前条目
submitQuestionnaire(type) { submitQuestionnaire(type) {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
if (!this.isFileUpdate) { if (!this.isFileUpdate) {
// 根据公司文件和文件名获取特定项目项,并据此更新表单中的审核企业档案ID
const files = this.companyFiles // 获取公司文件列表
const fileName = this.form.fileName // 获取表单中填写的文件名
// 根据文件名在公司文件列表中查找对应项目项
const item = this.getProjectByName(files, fileName)
if (item) {
this.form.reviewEnterpriseArchiveId = item.id // 找到项目项则更新表单的审核企业档案ID
} else {
this.form.reviewEnterpriseArchiveId = null // 未找到则将审核企业档案ID设为null
}
reviewDetailsSubmit(this.form).then(async res => { reviewDetailsSubmit(this.form).then(async res => {
if (res.code === 200) { if (res.code === 200) {
await this.getTask() await this.getTask()
......
...@@ -92,16 +92,25 @@ ...@@ -92,16 +92,25 @@
<el-row class="prograss-title"> 用例维度 </el-row> <el-row class="prograss-title"> 用例维度 </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-progress <div class="circleBox">
type="circle" <el-progress
:percentage=" type="circle"
percentageChange(dataStatistic.systemDetailsPass) :percentage="
" percentageChange(dataStatistic.systemDetailsPass)
color="#13BE24" "
:width="130" color="#13BE24"
:stroke-width="16" :width="140"
:format="format" :stroke-width="16"
></el-progress> />
<div class="circleCenter">
<span>审查通过率</span>
<div>
{{
percentageChange(dataStatistic.systemDetailsPass)
}}%
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="prograss-laout" style="text-align: end"> <div class="prograss-laout" style="text-align: end">
...@@ -167,16 +176,25 @@ ...@@ -167,16 +176,25 @@
<el-row class="prograss-title"> 合规维度 </el-row> <el-row class="prograss-title"> 合规维度 </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-progress <div class="circleBox">
type="circle" <el-progress
:percentage=" type="circle"
percentageChange(dataStatistic.systemStandardsPass) :percentage="
" percentageChange(dataStatistic.systemStandardsPass)
color="#13BE24" "
:width="130" color="#13BE24"
:stroke-width="16" :width="140"
:format="format" :stroke-width="16"
></el-progress> />
<div class="circleCenter">
<span>审查通过率</span>
<div>
{{
percentageChange(dataStatistic.systemStandardsPass)
}}%
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="prograss-laout" style="text-align: end"> <div class="prograss-laout" style="text-align: end">
...@@ -253,16 +271,23 @@ ...@@ -253,16 +271,23 @@
<el-row class="prograss-title"> 用例维度 </el-row> <el-row class="prograss-title"> 用例维度 </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-progress <div class="circleBox">
type="circle" <el-progress
:percentage=" type="circle"
percentageChange(dataStatistic.carDetailsPass) :percentage="
" percentageChange(dataStatistic.carDetailsPass)
color="#13BE24" "
:width="130" color="#13BE24"
:stroke-width="16" :width="140"
:format="format" :stroke-width="16"
></el-progress> />
<div class="circleCenter">
<span>审查通过率</span>
<div>
{{ percentageChange(dataStatistic.carDetailsPass) }}%
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="prograss-laout" style="text-align: end"> <div class="prograss-laout" style="text-align: end">
...@@ -326,16 +351,25 @@ ...@@ -326,16 +351,25 @@
<el-row class="prograss-title"> 合规维度 </el-row> <el-row class="prograss-title"> 合规维度 </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-progress <div class="circleBox">
type="circle" <el-progress
:percentage=" type="circle"
percentageChange(dataStatistic.carStandardsPass) :percentage="
" percentageChange(dataStatistic.carStandardsPass)
color="#13BE24" "
:width="130" color="#13BE24"
:stroke-width="16" :width="140"
:format="format" :stroke-width="16"
></el-progress> />
<div class="circleCenter">
<span>审查通过率</span>
<div>
{{
percentageChange(dataStatistic.carStandardsPass)
}}%
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="prograss-laout" style="text-align: end"> <div class="prograss-laout" style="text-align: end">
...@@ -407,16 +441,23 @@ ...@@ -407,16 +441,23 @@
<el-row class="prograss-title"> 用例维度 </el-row> <el-row class="prograss-title"> 用例维度 </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-progress <div class="circleBox">
type="circle" <el-progress
:percentage=" type="circle"
percentageChange(dataStatistic.testDetailsPass) :percentage="
" percentageChange(dataStatistic.testDetailsPass)
color="#13BE24" "
:width="130" color="#13BE24"
:stroke-width="16" :width="140"
:format="formatTest" :stroke-width="16"
></el-progress> />
<div class="circleCenter">
<span>测试通过率</span>
<div>
{{ percentageChange(dataStatistic.testDetailsPass) }}%
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="prograss-laout" style="text-align: end"> <div class="prograss-laout" style="text-align: end">
...@@ -480,16 +521,25 @@ ...@@ -480,16 +521,25 @@
<el-row class="prograss-title"> 合规维度 </el-row> <el-row class="prograss-title"> 合规维度 </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-progress <div class="circleBox">
type="circle" <el-progress
:percentage=" type="circle"
percentageChange(dataStatistic.testStandardsPass) :percentage="
" percentageChange(dataStatistic.testStandardsPass)
color="#13BE24" "
:width="130" color="#13BE24"
:stroke-width="16" :width="140"
:format="format" :stroke-width="16"
></el-progress> />
<div class="circleCenter">
<span>测试通过率</span>
<div>
{{
percentageChange(dataStatistic.testStandardsPass)
}}%
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="prograss-laout" style="text-align: end"> <div class="prograss-laout" style="text-align: end">
...@@ -822,12 +872,6 @@ export default { ...@@ -822,12 +872,6 @@ export default {
return data.split(',') return data.split(',')
}, },
tabClick() {}, tabClick() {},
formatTest(percentage) {
return (percentage = `测试通过率\n\n ${percentage}%`)
},
format(percentage) {
return (percentage = `审查通过率\n\n ${percentage}%`)
},
progressLine(percentage) { progressLine(percentage) {
return (percentage = `${percentage}`) return (percentage = `${percentage}`)
}, },
...@@ -842,6 +886,28 @@ export default { ...@@ -842,6 +886,28 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.circleBox {
position: relative;
text-align: center;
width: 140px;
.circleCenter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
div {
margin-top: 10px;
font-size: 16px;
font-weight: 700;
color: #303133;
}
span {
font-size: 14px;
font-weight: 400;
color: #606266;
}
}
}
.detailsCard { .detailsCard {
background: #ffffff; background: #ffffff;
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
...@@ -1011,5 +1077,12 @@ export default { ...@@ -1011,5 +1077,12 @@ export default {
} }
::v-deep .el-progress__text { ::v-deep .el-progress__text {
white-space: pre; white-space: pre;
display: none;
}
::v-deep .el-progress-bar__outer {
border-radius: 0px !important;
}
::v-deep .el-progress-bar__inner {
border-radius: 0px !important;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment