Commit eb7599d2 authored by zhang's avatar zhang

feat --更新评审管理查看评审界面

parent ab7b7a12
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<!-- <div class="title-style">--> <!-- <div class="title-style">-->
<!-- <div class="title-content-style">我的待审</div>--> <!-- <div class="title-content-style">我的待审</div>-->
<!-- </div>--> <!-- </div>-->
<div class="content-display"> <div class="content-display">
<el-form <el-form
v-show="showSearch" v-show="showSearch"
......
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
{ required: true, message: '请选择条款分类', trigger: 'change' } { required: true, message: '请选择条款分类', trigger: 'change' }
], ],
// jianyanleixing: [ // jianyanleixing: [
// { required: true, message: '请选择标准条款', trigger: 'blur' } // { required: true, message: '请选择标准要求', trigger: 'blur' }
// ], // ],
// yonglibianhao: [ // yonglibianhao: [
// { required: true, message: '请输入用例编号', trigger: 'blur' } // { required: true, message: '请输入用例编号', trigger: 'blur' }
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="标准条款" prop="biaozhuntiuaokuan"> <el-form-item label="标准要求" prop="biaozhuntiuaokuan">
<el-button type="success" plain @click="handleReSelect" <el-button type="success" plain @click="handleReSelect"
>重新选择标准条款</el-button >重新选择标准要求</el-button
> >
<div style="display: flex"> <div style="display: flex">
<div>标准要求:</div> <div>标准要求:</div>
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
{ required: true, message: '请选择条款分类', trigger: 'blur' } { required: true, message: '请选择条款分类', trigger: 'blur' }
], ],
biaozhuntiuaokuan: [ biaozhuntiuaokuan: [
{ required: true, message: '请选择标准条款', trigger: 'blur' } { required: true, message: '请选择标准要求', trigger: 'blur' }
], ],
shenchayaodian: [ shenchayaodian: [
{ required: true, message: '请输入审查要点', trigger: 'blur' } { required: true, message: '请输入审查要点', trigger: 'blur' }
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
}) })
}, },
methods: { methods: {
// 按钮-重新选择标准条款 // 按钮-重新选择标准要求
handleReSelect() {}, handleReSelect() {},
// 按钮-确认发起 // 按钮-确认发起
handleConfirm() { handleConfirm() {
......
...@@ -603,7 +603,6 @@ export default { ...@@ -603,7 +603,6 @@ export default {
this.formModel.biaozhunyaoqiu = useCase.serialNumber + useCase.requirements this.formModel.biaozhunyaoqiu = useCase.serialNumber + useCase.requirements
this.formModel.yonglibianhao = this.selectedUseCase.customizedID this.formModel.yonglibianhao = this.selectedUseCase.customizedID
this.formModel.yonglimiaoshu = this.selectedUseCase.description this.formModel.yonglimiaoshu = this.selectedUseCase.description
console.log(this.formModel)
}) })
}, },
......
...@@ -91,11 +91,33 @@ ...@@ -91,11 +91,33 @@
</span> </span>
</div> </div>
<div style="display: flex; width: 100%; margin-top: 20px"> <div style="display: flex; width: 100%; margin-top: 20px">
<span style="width: 15%">标准条款</span> <span style="width: 15%">标准要求</span>
<span style="width: 90%"> <span style="width: 90%">
{{ pageData.chapter }} {{ pageData.standard }} {{ pageData.chapter }} {{ pageData.standard }}
</span> </span>
</div> </div>
<div
v-if="pageData.operationSort == 'ADD_DETAILS'
|| pageData.operationSort == 'DELETE_DETAILS'
|| pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE'"
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查要点:</span>
<span style="width: 90%">
{{ pageData.keypoint }}
</span>
</div>
<div
v-if=" pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE' "
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查细则:</span>
<span style="width: 90%">
{{ pageData.details }}
</span>
</div>
<div <div
v-if="pageData.operationSort == 'ADD_KEYPOINT'" v-if="pageData.operationSort == 'ADD_KEYPOINT'"
style="display: flex; width: 100%; margin-top: 20px" style="display: flex; width: 100%; margin-top: 20px"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-form-item label="条款分类" prop="type"> <el-form-item label="条款分类" prop="type">
{{ typeList.find(item => item.dictValue === resData.type).dictLabel }} {{ typeList.find(item => item.dictValue === resData.type).dictLabel }}
</el-form-item> </el-form-item>
<el-form-item label="标准条款" prop="chapter standard"> <el-form-item label="标准要求" prop="chapter standard">
{{ resData.chapter }} {{ resData.standard }} {{ resData.chapter }} {{ resData.standard }}
</el-form-item> </el-form-item>
<el-form-item label="审查要点" prop="keypoint"> <el-form-item label="审查要点" prop="keypoint">
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
{{ formatType(pageData.type) }} {{ formatType(pageData.type) }}
</el-form-item> </el-form-item>
<el-form-item label="标准条款" prop="chapter standard"> <el-form-item label="标准要求" prop="chapter standard">
{{ pageData.chapter }} {{ pageData.standard }} {{ pageData.chapter }} {{ pageData.standard }}
</el-form-item> </el-form-item>
<el-form-item label="审查要点" prop="keypoint"> <el-form-item label="审查要点" prop="keypoint">
......
<template> <template>
<page-standard> <page-standard>
<div style="background-color: white; padding-bottom: 100px;">
<div
style="
display: flex;
width: 100%;
padding: 5px 10px;
font-size: 15px;
background-color: #d1d5db;
align-items: center;
justify-content: space-between;
"
>
<span style=" font-weight: bold;">查看评审(+ {{ formatAction(this.pageData) }}</span>
<span style="margin-right: 150px;font-size: 13px;">参与评审人员: {{ this.pageData.reviewer }}</span>
</div>
<div style="padding: 0 20px;">
<div class="title"> <div class="title">
<span <span
>检验标准: {{ this.pageData.inspectStandardNo }} >检验标准: {{ this.pageData.inspectStandardNo }}
...@@ -24,7 +43,7 @@ ...@@ -24,7 +43,7 @@
</span> </span>
</div> </div>
<div style="display: flex; width: 100%; margin-top: 20px"> <div style="display: flex; width: 100%; margin-top: 20px">
<span style="width: 15%">标准条款</span> <span style="width: 15%">标准要求</span>
<span style="width: 90%"> <span style="width: 90%">
{{ pageData.chapter }} {{ pageData.standard }} {{ pageData.chapter }} {{ pageData.standard }}
</span> </span>
...@@ -315,6 +334,8 @@ ...@@ -315,6 +334,8 @@
</el-row> </el-row>
</el-col> </el-col>
</el-row> </el-row>
</div>
</div>
</page-standard> </page-standard>
</template> </template>
...@@ -455,6 +476,30 @@ export default { ...@@ -455,6 +476,30 @@ export default {
item => item.value === type item => item.value === type
) )
return foundType ? foundType.label : '未知分类' return foundType ? foundType.label : '未知分类'
},
formatAction(action) {
switch (action.operationSort) {
case 'ADD_KEYPOINT':
return '新增审查要点'
case 'DELETE_KEYPOINT':
return '删除审查要点'
case 'ADD_DETAILS':
return '新增审查细则'
case 'DELETE_DETAILS':
return '删除审查细则'
case 'ADD_SCENE':
return '新增审查场景'
case 'DELETE_SCENE':
return '删除审查场景'
case 'ADD_USECASE':
return '新增测试用例'
case 'UPDATE_USECASE':
return '修改测试用例'
case 'DELETE_USECASE':
return '删除测试用例'
default:
return '未知类型'
}
} }
} }
} }
......
<template> <template>
<page-standard class="view-review"> <page-standard class="view-review">
<div style="background-color: white; padding-bottom: 100px;">
<div
style="
display: flex;
width: 100%;
padding: 5px 10px;
font-size: 15px;
background-color: #d1d5db;
align-items: center;
justify-content: space-between;
"
>
<span style=" font-weight: bold;">查看评审(+ {{ formatAction(this.pageData) }}</span>
<span style="margin-right: 150px;font-size: 13px;">参与评审人员: {{ this.pageData.reviewer }}</span>
</div>
<div style="padding: 0 20px;">
<div class="title"> <div class="title">
<span <span
>检验标准: {{ this.pageData.inspectStandardNo }} >检验标准: {{ this.pageData.inspectStandardNo }}
...@@ -24,11 +42,33 @@ ...@@ -24,11 +42,33 @@
</span> </span>
</div> </div>
<div style="display: flex; width: 100%; margin-top: 20px"> <div style="display: flex; width: 100%; margin-top: 20px">
<span style="width: 15%">标准条款</span> <span style="width: 15%">标准要求</span>
<span style="width: 90%"> <span style="width: 90%">
{{ pageData.chapter }} {{ pageData.standard }} {{ pageData.chapter }} {{ pageData.standard }}
</span> </span>
</div> </div>
<div
v-if="pageData.operationSort == 'ADD_DETAILS'
|| pageData.operationSort == 'DELETE_DETAILS'
|| pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE'"
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查要点:</span>
<span style="width: 90%">
{{ pageData.keypoint }}
</span>
</div>
<div
v-if=" pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE' "
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查细则:</span>
<span style="width: 90%">
{{ pageData.details }}
</span>
</div>
<div <div
v-if="pageData.operationSort == 'ADD_KEYPOINT'" v-if="pageData.operationSort == 'ADD_KEYPOINT'"
style="display: flex; width: 100%; margin-top: 20px" style="display: flex; width: 100%; margin-top: 20px"
...@@ -273,6 +313,8 @@ ...@@ -273,6 +313,8 @@
<message-item></message-item> <message-item></message-item>
</el-col> </el-col>
</el-row> --> </el-row> -->
</div>
</div>
</page-standard> </page-standard>
</template> </template>
...@@ -366,8 +408,34 @@ export default { ...@@ -366,8 +408,34 @@ export default {
item => item.value === type item => item.value === type
) )
return foundType ? foundType.label : '未知分类' return foundType ? foundType.label : '未知分类'
} },
} formatAction(action) {
switch (action.operationSort) {
case 'ADD_KEYPOINT':
return '新增审查要点'
case 'DELETE_KEYPOINT':
return '删除审查要点'
case 'ADD_DETAILS':
return '新增审查细则'
case 'DELETE_DETAILS':
return '删除审查细则'
case 'ADD_SCENE':
return '新增审查场景'
case 'DELETE_SCENE':
return '删除审查场景'
case 'ADD_USECASE':
return '新增测试用例'
case 'UPDATE_USECASE':
return '修改测试用例'
case 'DELETE_USECASE':
return '删除测试用例'
default:
return '未知类型'
}
},
},
} }
</script> </script>
......
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