Commit cb9f6fb2 by 史敦盼

提交

1 parent a9740b41
......@@ -576,6 +576,14 @@ export function editSystemTable(params) {
export function systemArchiSaveFactor(params) {
return post('/network/arc-ast-sys/extend', params)
}
// 评审情况(概要设计)分页查询
export function getPrelDesInspecteTable(params) {
return post('/network/prel-des-inspecte/', params)
}
// 保存评审意见接口
export function savePrelDesInspecte(params) {
return post('/network/prel-des-inspecte/cComment/', params)
}
// 概设架构遵从检查-列表
export function getGaiSheJiaGouZunCongJiaChaTable(params) {
......@@ -609,7 +617,10 @@ export function saveExamine(params) {
export function queryReviewArchiFollowCheckRightSuggestionDetails(params) {
return post('/network/app-archi-control-requirements/qReview', params)
}
// 批次计划查询
export function queryBatchPlan(params) {
return post('/network/bat-plan-info/', params)
}
// 新增批次计划
export function addBatchPlan(params) {
return post('/network/bat-plan-info/ad', params)
......@@ -632,9 +643,28 @@ export function getByKeword(params) {
export function addNeedInfo(params) {
return post('/network/need-info/ad', params)
}
// 需求管理-更新接口
export function editNeedInfo(params) {
return post('/network/need-info/upd', params)
}
export function queryPrjNeedFile(params) {
return post('/network/prj-need-file/', params)
}
// 概设材料意见编制- 新增(推送)
export function addConceptualViewOrg(params) {
return post('/network/online-rev-wr/ad', params)
}
// 概设材料意见编制- 更新
export function editConceptualViewOrg(params) {
return post('/network/online-rev-wr/upd', params)
}
// 概设材料意见编制-需求评审情况
export function qyNeedReview(params) {
return post('/network/online-rev-wr/qyNeedReview', params)
}
export function editFeedback(params) {
return post('/network/prj-need-file/upd', params)
}
......@@ -12,3 +12,5 @@ export const queryDemandManagement = '/network/need-info/'
// 项目列表
export const queryProjectInfo = '/network/prj-info/'
// 概设材料意见编制
export const queryConceptualViewOrg = '/network/online-rev-wr/qy/'
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-03-12 15:11:47
* @LastEditors: pan
* @LastEditTime: 2024-03-19 11:23:05
* @LastEditTime: 2024-03-21 11:29:29
-->
<template>
<div class="form-item">
......@@ -33,9 +33,9 @@
>
<el-option
v-for="item in itemOptions.options"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item[handleSelectValue]"
:label="item[handleSelectLabel]"
:value="item[handleSelectValue]"
></el-option>
</el-select>
......@@ -114,6 +114,18 @@ export default {
},
computed: {
handleSelectValue() {
if (this.itemOptions.keyOption) {
return this.itemOptions.keyOption['value']
}
return 'value'
},
handleSelectLabel() {
if (this.itemOptions.keyOption) {
return this.itemOptions.keyOption['label']
}
return 'label'
},
// 双向绑定数据值
currentVal: {
get() {
......
......@@ -269,6 +269,16 @@ const routes = [
name: 'conceptualBaseManagement',
component: () => import('@/views/conceptualBaseManagement/index.vue'),
},
{
path: '/main/onlineReview', // 评审意见编制- 在线辅助审核
name: 'onlineReview',
component: () => import('@/views/conceptualViewOrg/OnlineReview.vue'),
},
{
path: '/main/conceptualRelated', // 概设关联业务管理
name: 'conceptualRelated',
component: () => import('@/views/conceptualRelated/index.vue'),
},
],
},
]
......
......@@ -55,3 +55,21 @@ export const materialOptions = [
{ label: '安全防护方案', value: '安全防护方案' },
{ label: '其他', value: '其他' },
]
// 推送状态
export const pushStateOptions = [
{ label: '已反馈', value: 1 },
{ label: '未反馈', value: 0 },
]
// 在线评审状态
export const onlineApprovalStatusOptions = [
{ label: '待评审', value: 2 },
{ label: '通过', value: 1 },
{ label: '未通过', value: 0 },
]
// 发送状态
export const sendStateOptions = [
{ label: '发送成功', value: 1 },
{ label: '未发送', value: 2 },
{ label: '发送失败', value: 3 },
]
......@@ -181,7 +181,7 @@ export const menuOptions = [
},
{
name: '概设关联业务管理',
path: '',
path: '/main/conceptualRelated',
},
{
name: '概设评审基础管理',
......
......@@ -214,6 +214,7 @@ export default {
// 处理所需材料名称显示
handleFileName(scope) {
const filesValue = JSON.parse(scope.row.filesValue)
if (!filesValue) return
const str = filesValue.map((v) => v.name)
return str.join(',')
},
......@@ -253,6 +254,7 @@ export default {
break
case '发布':
this.fnRelease(row)
break
default:
break
}
......
<template>
<div class="searchTable">
<list-page>
<template #tabWrap>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
:label="item.label"
:name="item.name"
v-for="item in tabOptions"
:key="item.name"
>
</el-tab-pane>
</el-tabs>
</template>
<template #subTabWrap>
<el-tabs v-model="activeName2" @tab-click="handleSubClick">
<el-tab-pane
:label="item.label"
:name="item.name"
v-for="item in subTabOptions"
:key="item.name"
>
</el-tab-pane>
</el-tabs>
</template>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
</template>
<!-- 中部操作按钮 -->
<template #operationWrap>
<!-- <el-button
v-if="activeName === '1'"
icon="el-icon-document-add"
type="primary"
size="medium"
plain
@click="fnMaterialAnalysis()"
>材料解析</el-button
> -->
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
ref="searchTable"
@selection-change="selectionChange"
:query="query"
:columns="columns"
>
</table-config>
</template>
</list-page>
</div>
</template>
<script>
// import { getWordImg } from '@/api/index'
import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue'
import { queryConceptualReview } from '@/api/interface'
import { exportRiskReport } from '@/api/index'
import { archiPrjReviewEnum, buildType } from '@/utils/dictionary'
// import { str } from './base64'
export default {
name: 'conceptualReview',
data() {
return {
src: '',
constructionTypeOptions: [],
selectRows: [],
query: {
url: queryConceptualReview,
method: 'post',
queryParam: {
reviewEnum: 'TECH_ROUTE',
},
},
activeName: '1',
tabOptions: [
{ label: '概设统计分析', name: '1' },
{ label: '总体架构维护', name: '2' },
],
activeName2: '1',
subTabOptions1: [
{ label: '各单位概设统计', name: '1' },
{ label: '各批次系统统计', name: '2' },
],
subTabOptions2: [
{ label: '业务流程', name: '1' },
{ label: '技术路线', name: '2' },
{ label: '功能清单', name: '3' },
{ label: '数据实体', name: '4' },
{ label: '安全设计', name: '5' },
],
activeSubTabItem: {
label: '报告规范性',
value: 'REPORT_NORM',
name: '1',
},
}
},
components: {
ListPage,
SearchForm,
TableConfig,
},
computed: {
subTabOptions() {
if (this.activeName === '1') {
return this.subTabOptions1
} else {
return this.subTabOptions2
}
},
formOptions() {
return [
{
label: '统计时间', // label文字
prop: 'year', // 字段名
type: 'year',
valueFormat: 'yyyy',
element: 'el-date-picker', // 指定elementui组件
initValue: undefined, // 字段初始值
placeholder: '请选择', // elementui组件属性
},
]
},
columns() {
let arr = []
if (this.activeName === '1') {
if (this.activeName2 === '1') {
arr = [
{ label: '序号', type: 'index', width: '80px' },
{ label: '单位名称', prop: 'orgName' },
{ label: '概设需求数(个)', prop: 'orgName1' },
{ label: '概设材料通过数(个)', prop: 'orgName2' },
{ label: '概设通过比(%)', prop: 'orgName3' },
]
} else {
arr = [
{ label: '序号', type: 'index', width: '80px' },
{ label: '批次', prop: 'batName' },
{ label: '项目需求数(个)', prop: 'orgName3' },
{ label: '项目通过数(个)', prop: 'orgName2' },
{ label: '项目通过比(%)', prop: 'prjRate' },
]
}
} else {
}
return arr
},
},
mounted() {},
methods: {
// 材料解析
fnMaterialAnalysis() {
if (this.selectRows.length == 0) {
return this.$message.warning('请选择一条数据')
}
// xxx
},
// 导出重复建设风险报告
handlExportRiskReport() {
const params = {
title: '功能重复风险',
comment: '',
}
exportRiskReport(params).then((res) => {
const url = window.URL.createObjectURL(
new Blob([res], { type: 'application/octet-stream' }),
)
const link = document.createElement('a')
link.href = url
link.setAttribute('download', `重复建设风险报告.doc`)
document.body.appendChild(link)
link.click()
window.URL.revokeObjectURL(url) // 释放内存
})
},
// 表格勾选的数据
selectionChange(data) {
this.selectRows = data
},
querySearch(data) {
this.query.queryParam = {
...this.query.queryParam,
...data,
}
this.$refs.searchTable.queryData()
},
handleClick(tab, event) {
// console.log(tab, event)
// this.activeSubTabItem = tab
this.activeName2 = '1'
// this.query.queryParam.reviewEnum = this.getArchiPrjReviewEnum()
this.$refs.searchTable.queryData()
},
handleSubClick(tab, event) {
// console.log(tab, event)
this.activeSubTabItem = tab
// this.query.queryParam.reviewEnum = this.getArchiPrjReviewEnum()
this.$refs.searchTable.queryData()
},
},
}
</script>
<style scoped lang="scss">
@import '@/styles/common.scss';
</style>
......@@ -146,6 +146,7 @@ export default {
fnSave() {
const params = {
...this.row,
reviewState: 1,
reviewSuggestion: this.resultContent,
}
const loading = this.$loading({
......
<!--
* @Description: 修改材料反馈
* @Version: 2.0
* @Autor: pan
* @Date: 2024-03-21 14:29:32
* @LastEditors: pan
* @LastEditTime: 2024-03-21 19:52:10
-->
<template>
<el-dialog
:title="title"
:visible.sync="showDialog"
:close-on-click-modal="false"
width="60%"
@close="handleClose()"
>
<div>
<Form
ref="addForm"
:form-options="formOptions"
label-width="120px"
></Form>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose()" size="mini">取 消</el-button>
<el-button type="primary" @click="handleSubmit()" size="mini"
>反 馈</el-button
>
</span></el-dialog
>
<div>
<el-dialog
:title="title"
:visible.sync="showDialog"
:close-on-click-modal="false"
width="60%"
@close="handleClose()"
@open="fnQueryPrjNeedFile()"
>
<div>
<div style="text-align: left; margin-left: 10px">资料上传:</div>
<el-table :data="tableData" stripe border>
<el-table-column
type="index"
label="序号"
width="80"
align="center"
></el-table-column>
<el-table-column
prop="name"
label="资料类型"
align="center"
></el-table-column>
<el-table-column label="资料名称" align="center">
<template slot-scope="scope">
<el-upload
class="upload-demo"
action="/api/file/oss/upload"
ref="upload"
:on-remove="
(file, fileList) => handleRemove(file, fileList, scope.row)
"
:on-success="
(res, file, fileList) =>
handleFileUploadSuccess(res, file, fileList, scope.row)
"
:limit="1"
:file-list="scope.row.fileList"
>
<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
</template>
</el-table-column>
</el-table>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose()" size="mini">取 消</el-button>
<el-button @click="fnOperation()" type="primary" size="mini"
>反馈</el-button
>
</span></el-dialog
>
</div>
</template>
<script>
import Form from '@/components/Form.vue'
import { addBatchPlan, editBatchPlan } from '@/api'
import { editFeedback } from '@/api'
import { materialOptions } from '@/utils/dictionary'
export default {
props: {
title: {
......@@ -42,37 +82,12 @@ export default {
},
},
data() {
return {}
},
components: {
Form,
return {
tableData: [],
}
},
components: {},
computed: {
formOptions() {
return [
{
label: '选择项目', // label文字
prop: 'batName', // 字段名
element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性
},
{
label: '修改完成时间', // label文字
prop: 'createTime', // 字段名
type: 'date',
valueFormat: 'yyyy-MM-dd',
element: 'el-date-picker', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
rules: [{ required: true, trigger: 'change', message: '不能为空' }],
},
{
label: '推送至', // label文字
prop: 'remark', // 字段名
element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性
},
]
},
showDialog: {
get() {
return this.visible
......@@ -84,38 +99,61 @@ export default {
},
mounted() {},
methods: {
handleSubmit() {
this.$refs['addForm'].onValidate(() => {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const formInfo = this.$refs['addForm'].getData()
const typeApi = this.isEdit ? editBatchPlan : addBatchPlan
const params = {
...this.rowData,
...formInfo,
state: 1,
fnOperation() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
let params = {
...this.rowData,
busiId: this.rowData.prjId,
busiIdType: 1,
busiFileName: '概要设计说明说',
onlineReviewState: 2,
ideaType: 1,
}
editFeedback(params).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
this.showDialog = false
this.handleClose()
this.$emit('querySearch')
} else {
this.$message.error(res.msg)
}
typeApi(params).then((res) => {
if (res.code === 200) {
loading.close()
this.$message.success('保存成功')
this.showDialog = false
this.handleClose()
this.$emit('querySearch')
}
})
})
},
handleClose() {
this.showDialog = false
this.formOptions.forEach((v) => {
v.initValue = ''
},
// 文件上传逻辑
handleRemove(file, fileList, row) {
//文件移出
row = []
},
handleFileUploadSuccess(res, file, fileList, row) {
//文件上传
row.fileList = [
{
fileName: file.name,
fileId: file.response.data.fileId,
fileUrl: file.response.data.viewUrl,
},
]
console.log('file', row)
},
fnQueryPrjNeedFile() {
const list = this.rowData.fileList?.split(',')
this.tableData = list.map((v) => {
if (v === '概要设计说明书') {
return {
name: v,
fileList: [],
}
}
})
this.$refs['addForm'].addInitValue()
this.$refs['addForm'].onReset()
},
},
}
......
<template>
<el-dialog
:title="title"
:visible.sync="showDialog"
:close-on-click-modal="false"
width="30%"
@close="handleClose()"
>
<div>
<Form
ref="addForm"
:form-options="formOptions"
label-width="120px"
></Form>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose()" size="mini">取 消</el-button>
<el-button type="primary" @click="handleSubmit()" size="mini"
>反 馈</el-button
>
</span></el-dialog
>
</template>
<script>
import Form from '@/components/Form.vue'
import { addConceptualViewOrg } from '@/api'
export default {
props: {
title: {
type: String,
default: '',
},
visible: {
type: Boolean,
default: false,
},
rowData: {
type: Object,
default: () => {},
},
},
data() {
return {}
},
components: {
Form,
},
computed: {
formOptions() {
return [
{
label: '修改完成时间', // label文字
prop: 'excessTime', // 字段名
type: 'datetime',
valueFormat: 'yyyy-MM-dd HH:mm:ss',
element: 'el-date-picker', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
rules: [{ required: true, trigger: 'change', message: '不能为空' }],
span: 24,
},
]
},
showDialog: {
get() {
return this.visible
},
set(value) {
this.$emit('update:visible', value)
},
},
},
mounted() {},
methods: {
handleSubmit() {
this.$refs['addForm'].onValidate(() => {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const formInfo = this.$refs['addForm'].getData()
const params = {
...this.rowData,
...formInfo,
ideaType: 1,
}
console.log('formInfo', formInfo)
addConceptualViewOrg(params).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
this.showDialog = false
this.handleClose()
this.$emit('querySearch')
} else {
this.$message.error(res.msg)
}
})
})
},
handleClose() {
this.showDialog = false
this.formOptions.forEach((v) => {
v.initValue = ''
})
this.$refs['addForm'].addInitValue()
this.$refs['addForm'].onReset()
},
},
}
</script>
<style scoped lang="scss">
@import '@/styles/elementui.scss';
</style>
<template>
<div class="flex-column m-10 w-100 conceptualExamine">
<div class="content flex">
<div class="left_container m-r-10 flex-column">
<div class="left_container_title">
<i class="el-icon-caret-right icon"></i>
<span>评审情况</span>
</div>
<div class="left_container_content flex-1">
<OnlineReviewLeft />
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title">
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<div
class="right_container_content flex-1"
v-loading="leftLoading"
element-loading-text="加载中"
>
<img
v-for="(item, idx) in leftBaseOptions"
:key="idx"
:src="item"
alt=""
/>
</div>
</div>
</div>
<div class="bottom_container">
<div class="flex-b-c p-r-20 m-tb-15">
<div class="flex-c">
<span class="p-lr-20 bottom_container_title">评审结果</span>
<div class="flex-c">
<span class="m-r-10">在线评审状态:</span>
<el-radio v-model="onlineReviewState" :label="1">通过</el-radio>
<el-radio v-model="onlineReviewState" :label="2">不通过</el-radio>
</div>
</div>
<div class="flex">
<el-button type="primary" size="medium" @click="fnSave()"
>保存结果</el-button
>
</div>
</div>
<el-input
type="textarea"
:rows="4"
v-model="resultContent"
v-no-backslash
class="w-100"
placeholder="输入审查结果"
></el-input>
</div>
</div>
</template>
<script>
import OnlineReviewLeft from '@/views/conceptualViewOrg/OnlineReviewLeft'
import { getReviewNorm, editConceptualViewOrg, exportRiskReport } from '@/api'
export default {
name: 'OnlineReview',
components: {
OnlineReviewLeft,
},
data() {
return {
resultContent: '',
row: {},
leftLoading: true,
leftBaseOptions: [],
rightBaseOptions: [],
onlineReviewState: 1,
}
},
created() {
this.row = JSON.parse(this.$route.query.row)
this.resultContent = this.row.reviewSuggestion || ''
// if (this.tab === '8') {
// this.leftLoading = false
// } else {
// this.getReviewNorm()
// }
},
methods: {
getReviewNorm() {
const { needId } = this.row
const params = {
needId,
}
getReviewNorm(params).then((res) => {
if (res.code === 200) {
this.leftLoading = false
this.leftBaseOptions = res.data.docParserList.map(
(v) => `data:image/png;base64,${v.docContent}`,
)
// this.leftSrc = `data:image/png;base64,${res.data.docParserList[0].docContent}`
}
})
},
fnSave() {
const params = {
...this.row,
reviewState: 1,
onlineReviewState: this.onlineReviewState,
reviewSuggestion: this.resultContent,
}
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
editConceptualViewOrg(params).then((res) => {
if (res.code === 200) {
loading.close()
this.$message.success('保存成功')
}
})
},
},
}
</script>
<style lang="scss" scoped>
@import '@/styles/common.scss';
@import '@/views/reviewArchiPoliticeCheck/index.scss';
.conceptualExamine {
height: calc(100% - 20px);
overflow-y: auto;
}
</style>
<template>
<div class="Tab8Left p-10">
<el-card
class="box-card m-b-20"
v-for="item in cardList"
:key="item.value"
shadow="never"
>
<div slot="header" class="clearfix">
<span class="m-r-20 bold">{{ item.requireName }}</span>
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="item.requireName === '功能偏差'"
>导出技术偏差分析表</el-button
>
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="item.requireName === '功能重复风险'"
>导出重复建设风险报告</el-button
>
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="item.requireName === '数据重复录入风险'"
>导出重复录入风险报告</el-button
>
</div>
<div class="flex-column" style="text-align: left">
<div v-if="item.requireName === '架构遵从'">架构遵从关系审查结果:</div>
<div v-else-if="item.requireName === '技术路线'">合规性检查结果:</div>
<div v-else>审查结果:</div>
<div>{{ item.reviewSuggestion }}</div>
</div>
</el-card>
</div>
</template>
<script>
import { qyNeedReview } from '@/api/index.js'
import { exportRiskReport } from '@/api'
export default {
data() {
return {
cardList: [],
row: {},
}
},
components: {},
computed: {},
created() {
this.row = JSON.parse(this.$route.query.row)
this.fnQyNeedReview()
},
methods: {
fnQyNeedReview() {
qyNeedReview(this.row).then((res) => {
if (res.code === 200) {
this.cardList = res.data
}
})
},
// 导出重复建设风险报告
handlExportRiskReport() {
const params = {
title: '功能重复风险',
comment: this.resultContent,
}
exportRiskReport(params).then((res) => {
const url = window.URL.createObjectURL(
new Blob([res], { type: 'application/octet-stream' }),
)
const link = document.createElement('a')
link.href = url
link.setAttribute('download', `重复建设风险报告.doc`)
document.body.appendChild(link)
link.click()
window.URL.revokeObjectURL(url) // 释放内存
})
},
},
}
</script>
<style scoped lang="scss">
@import '@/styles/common.scss';
.clearfix {
text-align: left;
}
.item {
display: flex;
align-items: flex-start;
flex-direction: column;
}
.bold {
font-weight: bold;
}
</style>
<template>
<el-dialog
:title="title"
:visible.sync="showDialog"
:close-on-click-modal="false"
width="60%"
@close="handleClose()"
@open="handleOpen()"
>
<div>
<el-input
type="textarea"
v-model="comments"
:autosize="{ minRows: 6 }"
placeholder="请输入内容"
></el-input>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose()" size="mini">取 消</el-button>
<el-button type="primary" @click="handleSubmit()" size="mini"
>保 存</el-button
>
</span></el-dialog
>
</template>
<script>
import { editConceptualViewOrg } from '@/api'
export default {
props: {
title: {
type: String,
default: '',
},
visible: {
type: Boolean,
default: false,
},
rowData: {
type: Object,
default: () => {},
},
},
data() {
return {
comments: '',
baseComments: `1.概要设计技术方案内容完整\n2.概要设计技术方案在架构设计、开发运行、系统集成、部署方式和安全防护设计等方面符合公司信息化总体架构和技术政司 梅文明 2策要求。\n3.项目承建单位在后续开发、测试、上线等阶段,加强所用开源软件的选型评估和安全、技术测试,确保符合公司信息化总体架构、信息安全和信息系统上线运行相关规定。综上所述,本项目概要设计技术方案满足立项建设目标,符合公司信息化总体架构和技术政策要求,能够指导后期详细设计家和研发实施工作。`,
}
},
components: {},
computed: {
showDialog: {
get() {
return this.visible
},
set(value) {
this.$emit('update:visible', value)
},
},
},
mounted() {},
methods: {
handleSubmit() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const params = {
...this.rowData,
reviewSuggestion: this.comments,
ideaType: 2,
}
editConceptualViewOrg(params).then((res) => {
if (res.code === 200) {
loading.close()
this.$message.success('保存成功')
this.showDialog = false
this.handleClose()
this.$emit('querySearch')
}
})
},
handleClose() {
this.showDialog = false
},
handleOpen() {
if (!this.comments) {
this.comments = this.rowData.reviewSuggestion
? this.rowData.reviewSuggestion
: this.baseComments
}
},
},
}
</script>
<style scoped lang="scss">
@import '@/styles/elementui.scss';
</style>
......@@ -18,23 +18,12 @@
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
</template>
<!-- 中部操作按钮 -->
<template #operationWrap>
<template v-if="activeName === '1'">
<el-button type="primary" size="medium" plain @click="fnAdd()"
>材料推送</el-button
>
<el-button type="primary" size="medium" plain @click="fnAdd()"
>修改材料反馈</el-button
>
<el-button type="primary" size="medium" plain @click="fnAdd()"
>在线辅助审查</el-button
>
</template>
<template v-else>
<!-- <template #operationWrap>
<template v-if="activeName === '2'">
<el-button type="primary" size="medium" plain>正式评审意见</el-button>
<el-button type="primary" size="medium" plain>发送评审意见</el-button>
</template>
</template>
</template> -->
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
......@@ -44,12 +33,27 @@
:columns="columns"
:key="activeName"
>
<template #filesValue="{ data }">
<span>{{ handleFileName(data) }}</span>
</template>
</table-config>
</template>
</list-page>
<MaterialPush
title="材料推送"
:visible.sync="materialPushVisible"
:row-data="rowData"
@querySearch="querySearch"
/>
<MaterialFeedback
title="材料反馈"
:visible.sync="materialFeedbackVisible"
:row-data="rowData"
@querySearch="querySearch"
/>
<ReviewComments
title="正式评审意见"
:visible.sync="reviewCommentsVisible"
:row-data="rowData"
@querySearch="querySearch"
/>
</div>
</template>
......@@ -57,18 +61,27 @@
import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue'
import MaterialPush from './MaterialPush.vue'
import MaterialFeedback from './MaterialFeedback'
import ReviewComments from './ReviewComments.vue'
import { queryDemandManagement } from '@/api/interface'
import { editNeedInfo } from '@/api'
import { buildType, approvalStatusOptions } from '@/utils/dictionary'
import { queryConceptualViewOrg } from '@/api/interface'
import { editConceptualViewOrg } from '@/api'
import {
pushStateOptions,
onlineApprovalStatusOptions,
sendStateOptions,
} from '@/utils/dictionary'
export default {
name: 'conceptualViewOrg',
data() {
return {
query: {
url: queryDemandManagement,
url: queryConceptualViewOrg,
method: 'post',
queryParam: {},
queryParam: {
ideaType: 1,
},
},
activeName: '1',
tabOptions: [
......@@ -76,19 +89,26 @@ export default {
{ label: '意见生成与流转', name: '2' },
],
selectRows: {},
visible: false,
rowData: {},
dialogTitle: '',
approvalVisible: false,
materialPushVisible: false,
materialFeedbackVisible: false,
reviewCommentsVisible: false,
}
},
components: { ListPage, SearchForm, TableConfig },
components: {
ListPage,
SearchForm,
TableConfig,
MaterialPush,
MaterialFeedback,
ReviewComments,
},
computed: {
formOptions() {
let arr = [
{
label: '项目名称', // label文字
prop: 'batName', // 字段名
prop: 'prjName', // 字段名
element: 'el-input', // 指定elementui组件
initValue: '', // 字段初始值
placeholder: '请输入内容', // elementui组件属性
......@@ -152,8 +172,7 @@ export default {
{
label: '材料',
width: '200px',
prop: 'filesValue',
__slotName: 'filesValue',
prop: 'fileList',
},
]
if (this.activeName === '1') {
......@@ -162,6 +181,8 @@ export default {
{
label: '推送状态',
prop: 'state',
options: pushStateOptions,
collectionType: 'state',
},
{
label: '修改剩余时间',
......@@ -171,7 +192,9 @@ export default {
{
label: '在线评审状态',
width: '120px',
prop: 'state2',
prop: 'onlineReviewState',
options: onlineApprovalStatusOptions,
collectionType: 'approveState',
},
]
} else {
......@@ -179,7 +202,9 @@ export default {
...arr,
{
label: '发送状态',
prop: 'state',
prop: 'sendState',
options: sendStateOptions,
collectionType: 'sendState',
},
]
}
......@@ -191,22 +216,75 @@ export default {
width: '200px',
},
]
if (this.activeName === '1') {
arr = [
...arr,
{
label: '操作',
type: 'operation',
width: '400px',
actionButtons: [
{
title: '材料推送',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
},
{
title: '修改材料反馈',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
},
{
title: '在线辅助审核',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
},
},
]
} else {
arr = [
...arr,
{
label: '操作',
type: 'operation',
width: '400px',
actionButtons: [
{
title: '正式评审意见',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
},
{
title: '发送评审意见',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
},
},
]
}
return arr
},
},
mounted() {},
methods: {
fnAdd() {
this.dialogTitle = '新增需求'
this.rowData = {}
this.visible = true
},
// 处理所需材料名称显示
handleFileName(scope) {
const filesValue = JSON.parse(scope.row.filesValue)
const str = filesValue.map((v) => v.name)
return str.join(',')
},
// 表格勾选的数据
selectionChange(data) {
this.selectRows = data
......@@ -219,6 +297,7 @@ export default {
this.$refs.searchTable.queryData()
},
handleClick(tab, event) {
this.query.queryParam.ideaType = +this.activeName
// console.log(tab, event)
},
/**
......@@ -229,26 +308,32 @@ export default {
*/
fnOperation(row, title) {
switch (title) {
case '编辑':
this.fnEdit(row)
case '材料推送':
this.fnOpenDialog(row, 'materialPushVisible')
break
case '删除':
this.fnDel(row)
case '修改材料反馈':
this.fnOpenDialog(row, 'materialFeedbackVisible')
break
case '提交':
this.fnSubmit(row)
case '在线辅助审核':
this.$router.push({
path: '/main/onlineReview',
query: {
row: JSON.stringify(row),
},
})
break
case '正式评审意见':
this.fnOpenDialog(row, 'reviewCommentsVisible')
break
case '审批':
this.fnApproval(row)
case '发送评审意见':
this.fnSend(row)
break
case '发布':
this.fnRelease(row)
default:
break
}
},
fnRelease(row) {
this.$confirm('是否确认发布?', '提示', {
fnSend(row) {
this.$confirm('是否确认发布评审意见?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
......@@ -256,37 +341,10 @@ export default {
.then(() => {
const params = {
...row,
state: 1,
filesValue: JSON.parse(row.filesValue),
sendState: 1,
ideaType: 2,
}
editNeedInfo(params).then((res) => {
if (res.code === 200) {
this.$message.success('发布成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
})
.catch(() => {})
},
fnApproval(row) {
this.rowData = row
this.approvalVisible = true
},
fnSubmit(row) {
this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
const params = {
...row,
approveState: 2,
filesValue: JSON.parse(row.filesValue),
}
editNeedInfo(params).then((res) => {
editConceptualViewOrg(params).then((res) => {
if (res.code === 200) {
this.$message.success('提交成功')
this.$refs.searchTable.queryData()
......@@ -297,33 +355,9 @@ export default {
})
.catch(() => {})
},
fnEdit(row) {
this.dialogTitle = '修改需求'
fnOpenDialog(row, visible) {
this.rowData = row
this.visible = true
},
fnDel(row) {
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
const params = {
...row,
filesValue: JSON.parse(row.filesValue),
delFlag: 1,
}
editNeedInfo(params).then((res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error('删除失败')
}
})
})
.catch(() => {})
this[visible] = true
},
},
}
......
......@@ -41,6 +41,7 @@ import ChoosePrjDialog from './ChoosePrjDialog.vue'
import { addNeedInfo, editNeedInfo } from '@/api'
import { materialOptions } from '@/utils/dictionary'
import { queryBatchPlan } from '@/api/index'
export default {
props: {
title: {
......@@ -64,6 +65,7 @@ export default {
prjCode: '',
},
choosePrjVisible: false,
batchPlanManagementList: [],
}
},
components: {
......@@ -75,9 +77,15 @@ export default {
return [
{
label: '批次计划', // label文字
prop: 'batName', // 字段名
element: 'el-input', // 指定elementui组件
prop: 'batPlanId', // 字段名
element: 'el-select', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性
options: this.batchPlanManagementList,
keyOption: {
label: 'batName',
value: 'batPlanId',
},
filterable: true,
rules: [{ required: true, trigger: 'blur', message: '不能为空' }],
},
{
......@@ -112,7 +120,7 @@ export default {
},
{
label: '材料清单', // label文字
prop: 'filesValue', // 字段名
prop: 'fileList', // 字段名
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: materialOptions,
......@@ -180,6 +188,27 @@ export default {
operation() {
this.choosePrjVisible = true
},
handleAddParams() {
const formInfo = this.$refs['addForm'].getData()
// 获取批次计划的id,code ,name
const { batName, batPlanCode, batPlanId } =
this.batchPlanManagementList.find(
(v) => formInfo.batPlanId === v.batPlanId,
) || {}
const params = {
...this.rowData,
...formInfo,
approveState: 1,
needType: 1,
filesValue: undefined,
prjId: this.prjInfo.prjId,
prjCode: this.prjInfo.prjCode,
batName,
batPlanCode,
batPlanId,
}
return params
},
handleSubmit() {
this.$refs['addForm'].onValidate(() => {
const loading = this.$loading({
......@@ -187,23 +216,10 @@ export default {
text: '保存中',
spinner: 'el-icon-loading',
})
const formInfo = this.$refs['addForm'].getData()
const filesValue = formInfo.filesValue.map((v) => {
return {
name: v,
}
})
const typeApi = this.isEdit ? editNeedInfo : addNeedInfo
const params = {
...this.rowData,
...formInfo,
filesValue,
approveState: 1,
needType: 1,
prjId: this.prjInfo.prjId,
prjCode: this.prjInfo.prjCode,
}
typeApi(params).then((res) => {
typeApi(this.handleAddParams()).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
......@@ -229,7 +245,10 @@ export default {
this.$refs['addForm'].addInitValue()
this.$refs['addForm'].onReset()
},
handleOpen() {
async handleOpen() {
// batchPlanManagementList
const batchRes = await queryBatchPlan({ current: 1, pageSize: 100 })
this.batchPlanManagementList = batchRes.data.records
if (Object.keys(this.rowData).length) {
for (const key in this.prjInfo) {
if (Object.hasOwnProperty.call(this.prjInfo, key)) {
......@@ -240,9 +259,8 @@ export default {
this.$refs['addForm'].$refs['formRef'].clearValidate('prjName')
})
this.formOptions.forEach((v) => {
if (v.prop === 'filesValue') {
let arr = JSON.parse(this.rowData[v.prop])
v.initValue = arr.map((v) => v.name)
if (v.prop === 'fileList') {
v.initValue = this.rowData[v.prop].split(',')
} else {
v.initValue = this.rowData[v.prop]
}
......
......@@ -87,10 +87,10 @@ export default {
})
const formInfo = this.$refs['approvalForm'].getData()
const params = {
...this.rowData,
...formInfo,
approveState: this.radio,
filesValue: JSON.parse(this.rowData.filesValue),
needId: this.rowData.needId,
state: this.rowData.state,
}
editNeedInfo(params).then((res) => {
loading.close()
......
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-03-20 17:53:35
* @LastEditors: pan
* @LastEditTime: 2024-03-21 10:36:24
* @LastEditTime: 2024-03-21 16:03:23
-->
<template>
......@@ -89,22 +89,6 @@ export default {
},
components: {},
computed: {
// tableData() {
// let arr = []
// if (this.rowData.filesValue) {
// arr = JSON.parse(this.rowData.filesValue)
// arr = arr.map((v) => {
// return {
// fileName: v.name,
// fileId: v.fileName,
// fileUrl: v.fileUrl,
// name: v.fileName,
// url: v.fileUrl,
// }
// })
// }
// return arr
// },
showDialog: {
get() {
return this.visible
......@@ -123,8 +107,9 @@ export default {
spinner: 'el-icon-loading',
})
let params = {
...this.rowData,
filesValue: JSON.parse(this.rowData.filesValue),
approveState: this.rowData.approveState,
needId: this.rowData.needId,
state: this.rowData.state,
}
if (type === 'save') {
params = {
......@@ -168,8 +153,7 @@ export default {
},
fnQueryPrjNeedFile() {
console.log('this.rowData', this.rowData)
let busiFileNameList = JSON.parse(this.rowData.filesValue)
busiFileNameList = busiFileNameList.map((v) => v.name)
let busiFileNameList = this.rowData.fileList?.split(',')
const params = {
busiFileNameList,
busiId: this.rowData.prjId,
......
......@@ -38,9 +38,6 @@
:columns="columns"
:key="activeName"
>
<template #filesValue="{ data }">
<span>{{ handleFileName(data) }}</span>
</template>
</table-config>
</template>
</list-page>
......@@ -187,8 +184,7 @@ export default {
{
label: '所需材料',
width: '200px',
prop: 'filesValue',
__slotName: 'filesValue',
prop: 'fileList',
},
]
if (this.activeName === '1') {
......@@ -337,12 +333,6 @@ export default {
this.rowData = {}
this.visible = true
},
// 处理所需材料名称显示
handleFileName(scope) {
const filesValue = JSON.parse(scope.row.filesValue)
const str = filesValue.map((v) => v.name)
return str.join(',')
},
// 表格勾选的数据
selectionChange(data) {
this.selectRows = data
......@@ -400,10 +390,10 @@ export default {
})
.then(() => {
const params = {
...row,
needId: row.needId,
state: 1,
approveState: 1,
needType: 2,
filesValue: JSON.parse(row.filesValue),
}
editNeedInfo(params).then((res) => {
if (res.code === 200) {
......@@ -428,9 +418,9 @@ export default {
})
.then(() => {
const params = {
...row,
approveState: 2,
filesValue: JSON.parse(row.filesValue),
needId: row.needId,
state: row.state,
}
editNeedInfo(params).then((res) => {
if (res.code === 200) {
......@@ -456,9 +446,9 @@ export default {
})
.then(() => {
const params = {
...row,
filesValue: JSON.parse(row.filesValue),
needId: row.needId,
delFlag: 1,
state: row.state,
}
editNeedInfo(params).then((res) => {
if (res.code === 200) {
......
<template>
<div class="tab1">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
<el-select v-model="select1" class="leftSelect">
<el-option label="1" value="1"></el-option>
</el-select>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
<el-select v-model="select2" class="rightSelect">
<el-option label="1" value="1"></el-option>
</el-select>
</div>
</div>
<div class="bottom_container">
<div style="padding-right: 20px;text-align: left;margin: 15px 0;display: flex;align-items: center;justify-content: space-between;">
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px;">评审意见</span>
<el-radio v-model="radio" label="1">通过</el-radio>
<el-radio v-model="radio" label="2">不通过</el-radio>
</div>
<el-button type="primary" size="medium">带入批准</el-button>
</div>
<el-input type="textarea" :rows="4" v-model="textarea" style="width: 98%;"></el-input>
</div>
</div>
<div class="tab1">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
<el-select v-model="select1" class="leftSelect">
<el-option label="1" value="1"></el-option>
</el-select>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
<el-select v-model="select2" class="rightSelect">
<el-option label="1" value="1"></el-option>
</el-select>
</div>
</div>
<div class="bottom_container">
<div
style="
padding-right: 20px;
text-align: left;
margin: 15px 0;
display: flex;
align-items: center;
justify-content: space-between;
"
>
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px">评审意见</span>
<el-radio v-model="radio" label="1">通过</el-radio>
<el-radio v-model="radio" label="2">不通过</el-radio>
</div>
<el-button type="primary" size="medium">带入批准</el-button>
<el-button type="primary" size="medium" @click="fnSave()"
>保存意见</el-button
>
</div>
<el-input
type="textarea"
:rows="4"
v-model="textarea"
style="width: 98%"
></el-input>
</div>
</div>
</template>
<script>
import {
getArchiViewManageTable
} from '@/api/index.js';
import { MessageBox, Message } from 'element-ui';
import { savePrelDesInspecte } from '@/api/index.js'
import { MessageBox, Message } from 'element-ui'
export default {
name: 'tab1',
components: {
},
data() {
return {
radio: '1',
textarea: '',
select1: null,
select2: null,
};
},
mounted(){
},
methods: {
}
name: 'tab1',
components: {},
data() {
return {
radio: '1',
textarea: '',
select1: null,
select2: null,
row: {},
}
},
mounted() {
this.row = JSON.parse(this.$route.query.row)
},
methods: {
fnSave() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const params = {
reviewState: 0,
reviewSuggestion: this.textarea,
prjId: row.prjId,
reviewEnum: 'CONFORMANCE_REVIEW',
}
savePrelDesInspecte(params).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
} else {
this.$message.error(res.msg)
}
})
},
},
}
</script>
<style scoped>
.tab1{
height: 100%;
}
.content{
display: flex;
height: 77%;
}
.leftSelect{
position: absolute;
top: 44px;
left: 22px;
}
.rightSelect{
position: absolute;
top: 44px;
left: 22px;
}
.el-button--primary{
background: rgba(13,134,127,1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light{
background-color: #D5F5F3;
color: #000;
}
/deep/ .el-divider--vertical{
width: 4px;
background-color: #0D867F;
}
.left_container{
width: 49%;
border: 1px solid red;
margin-right: 1%;
position: relative;
}
.right_container{
width: 49%;
border: 1px solid red;
position: relative;
}
.bottom_container{
}
</style>
\ No newline at end of file
.tab1 {
height: 100%;
}
.content {
display: flex;
height: 77%;
}
.leftSelect {
position: absolute;
top: 44px;
left: 22px;
}
.rightSelect {
position: absolute;
top: 44px;
left: 22px;
}
.el-button--primary {
background: rgba(13, 134, 127, 1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light {
background-color: #d5f5f3;
color: #000;
}
/deep/ .el-divider--vertical {
width: 4px;
background-color: #0d867f;
}
.left_container {
width: 49%;
border: 1px solid red;
margin-right: 1%;
position: relative;
}
.right_container {
width: 49%;
border: 1px solid red;
position: relative;
}
.bottom_container {
}
</style>
<template>
<div class="tab3">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
</div>
</div>
<div class="bottom_container">
<div style="padding-right: 20px;text-align: left;margin: 15px 0;display: flex;align-items: center;justify-content: space-between;">
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px;">审查意见</span>
</div>
<el-button type="primary" size="medium">保存意见</el-button>
</div>
<el-input type="textarea" :rows="4" v-model="textarea" style="width: 98%;"></el-input>
</div>
</div>
<div class="tab3">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
</div>
</div>
<div class="bottom_container">
<div
style="
padding-right: 20px;
text-align: left;
margin: 15px 0;
display: flex;
align-items: center;
justify-content: space-between;
"
>
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px">审查意见</span>
</div>
<el-button type="primary" size="medium" @click="fnSave()"
>保存意见</el-button
>
</div>
<el-input
type="textarea"
:rows="4"
v-model="textarea"
style="width: 98%"
></el-input>
</div>
</div>
</template>
<script>
import {
getArchiViewManageTable
} from '@/api/index.js';
import { MessageBox, Message } from 'element-ui';
import { savePrelDesInspecte } from '@/api/index.js'
export default {
name: 'tab3',
components: {
},
data() {
return {
radio: '1',
textarea: ''
};
},
mounted(){
},
methods: {
}
name: 'tab3',
components: {},
data() {
return {
radio: '1',
textarea: '',
row: {},
}
},
mounted() {
this.row = JSON.parse(this.$route.query.row)
},
methods: {
fnSave() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const params = {
reviewState: 0,
reviewSuggestion: this.textarea,
prjId: row.prjId,
reviewEnum: 'KEY_TECHNOLOGY_REVIEW',
}
savePrelDesInspecte(params).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
} else {
this.$message.error(res.msg)
}
})
},
},
}
</script>
<style scoped>
.tab3{
height: 100%;
}
.content{
display: flex;
height: 77%;
}
.el-button--primary{
background: rgba(13,134,127,1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light{
background-color: #D5F5F3;
color: #000;
}
/deep/ .el-divider--vertical{
width: 4px;
background-color: #0D867F;
}
.left_container{
width: 49%;
border: 1px solid red;
margin-right: 1%;
}
.right_container{
width: 49%;
border: 1px solid red;
}
.bottom_container{
}
</style>
\ No newline at end of file
.tab3 {
height: 100%;
}
.content {
display: flex;
height: 77%;
}
.el-button--primary {
background: rgba(13, 134, 127, 1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light {
background-color: #d5f5f3;
color: #000;
}
/deep/ .el-divider--vertical {
width: 4px;
background-color: #0d867f;
}
.left_container {
width: 49%;
border: 1px solid red;
margin-right: 1%;
}
.right_container {
width: 49%;
border: 1px solid red;
}
.bottom_container {
}
</style>
<template>
<div class="tab4">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
</div>
</div>
<div class="bottom_container">
<div style="padding-right: 20px;text-align: left;margin: 15px 0;display: flex;align-items: center;justify-content: space-between;">
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px;">评审意见</span>
</div>
<el-button type="primary" size="medium">保存意见</el-button>
</div>
<el-input type="textarea" :rows="4" v-model="textarea" style="width: 98%;"></el-input>
</div>
</div>
<div class="tab4">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
</div>
</div>
<div class="bottom_container">
<div
style="
padding-right: 20px;
text-align: left;
margin: 15px 0;
display: flex;
align-items: center;
justify-content: space-between;
"
>
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px">评审意见</span>
</div>
<el-button type="primary" size="medium" @click="fnSave()"
>保存意见</el-button
>
</div>
<el-input
type="textarea"
:rows="4"
v-model="textarea"
style="width: 98%"
></el-input>
</div>
</div>
</template>
<script>
import {
getArchiViewManageTable
} from '@/api/index.js';
import { MessageBox, Message } from 'element-ui';
import { savePrelDesInspecte } from '@/api/index.js'
export default {
name: 'tab4',
components: {
},
data() {
return {
radio: '1',
textarea: ''
};
},
mounted(){
},
methods: {
}
name: 'tab4',
components: {},
data() {
return {
radio: '1',
textarea: '',
row: {},
}
},
mounted() {
this.row = JSON.parse(this.$route.query.row)
},
methods: {
fnSave() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const params = {
reviewState: 0,
reviewSuggestion: this.textarea,
prjId: row.prjId,
reviewEnum: 'FUNCTIONAL_DEPTH_REVIEW',
}
savePrelDesInspecte(params).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
} else {
this.$message.error(res.msg)
}
})
},
},
}
</script>
<style scoped>
.tab4{
height: 100%;
}
.content{
display: flex;
height: 77%;
}
.el-button--primary{
background: rgba(13,134,127,1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light{
background-color: #D5F5F3;
color: #000;
}
/deep/ .el-divider--vertical{
width: 4px;
background-color: #0D867F;
}
.left_container{
width: 49%;
border: 1px solid red;
margin-right: 1%;
}
.right_container{
width: 49%;
border: 1px solid red;
}
.bottom_container{
}
</style>
\ No newline at end of file
.tab4 {
height: 100%;
}
.content {
display: flex;
height: 77%;
}
.el-button--primary {
background: rgba(13, 134, 127, 1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light {
background-color: #d5f5f3;
color: #000;
}
/deep/ .el-divider--vertical {
width: 4px;
background-color: #0d867f;
}
.left_container {
width: 49%;
border: 1px solid red;
margin-right: 1%;
}
.right_container {
width: 49%;
border: 1px solid red;
}
.bottom_container {
}
</style>
<template>
<div class="tab5">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
</div>
</div>
<div class="bottom_container">
<div style="padding-right: 20px;text-align: left;margin: 15px 0;display: flex;align-items: center;justify-content: space-between;">
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px;">评审意见</span>
</div>
<el-button type="primary" size="medium">保存意见</el-button>
</div>
<el-input type="textarea" :rows="4" v-model="textarea" style="width: 98%;"></el-input>
</div>
</div>
<div class="tab5">
<div class="content">
<div class="left_container">
<el-alert title="评审标准" type="success" :closable="false"></el-alert>
</div>
<div class="right_container">
<el-alert title="评审内容" type="success" :closable="false"></el-alert>
</div>
</div>
<div class="bottom_container">
<div
style="
padding-right: 20px;
text-align: left;
margin: 15px 0;
display: flex;
align-items: center;
justify-content: space-between;
"
>
<div>
<el-divider direction="vertical"></el-divider>
<span style="margin-right: 50px">评审意见</span>
</div>
<el-button type="primary" size="medium" @click="fnSave()"
>保存意见</el-button
>
</div>
<el-input
type="textarea"
:rows="4"
v-model="textarea"
style="width: 98%"
></el-input>
</div>
</div>
</template>
<script>
import {
getArchiViewManageTable
} from '@/api/index.js';
import { MessageBox, Message } from 'element-ui';
import { savePrelDesInspecte } from '@/api/index.js'
export default {
name: 'tab5',
components: {
},
data() {
return {
radio: '1',
textarea: ''
};
},
mounted(){
},
methods: {
}
name: 'tab5',
components: {},
data() {
return {
radio: '1',
textarea: '',
row: {},
}
},
mounted() {
this.row = JSON.parse(this.$route.query.row)
},
methods: {
fnSave() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
const params = {
reviewState: 0,
reviewSuggestion: this.textarea,
prjId: row.prjId,
reviewEnum: 'DATA_DEPTH_REVIEW',
}
savePrelDesInspecte(params).then((res) => {
loading.close()
if (res.code === 200) {
this.$message.success('保存成功')
} else {
this.$message.error(res.msg)
}
})
},
},
}
</script>
<style scoped>
.tab5{
height: 100%;
}
.content{
display: flex;
height: 77%;
}
.el-button--primary{
background: rgba(13,134,127,1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light{
background-color: #D5F5F3;
color: #000;
}
/deep/ .el-divider--vertical{
width: 4px;
background-color: #0D867F;
}
.left_container{
width: 49%;
border: 1px solid red;
margin-right: 1%;
}
.right_container{
width: 49%;
border: 1px solid red;
}
.bottom_container{
}
</style>
\ No newline at end of file
.tab5 {
height: 100%;
}
.content {
display: flex;
height: 77%;
}
.el-button--primary {
background: rgba(13, 134, 127, 1);
color: #fff;
border: 0;
}
/deep/ .el-alert--success.is-light {
background-color: #d5f5f3;
color: #000;
}
/deep/ .el-divider--vertical {
width: 4px;
background-color: #0d867f;
}
.left_container {
width: 49%;
border: 1px solid red;
margin-right: 1%;
}
.right_container {
width: 49%;
border: 1px solid red;
}
.bottom_container {
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!