|
@@ -466,6 +466,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>一级复核</el-divider>
|
|
|
+ <el-row class="fuhe"><button @click="changeAllSta">一键复核</button></el-row>
|
|
|
<el-row :gutter="15" >
|
|
|
<vxe-table
|
|
|
border
|
|
@@ -487,7 +488,7 @@
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column width="450px" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <vxe-select :disabled="inputForm.taskName === '二级复核' || inputForm.taskName === '三级复核'" v-model="scope.row.reviewComments" transfer>
|
|
|
+ <vxe-select :disabled="inputForm.taskName === '二级复核' || inputForm.taskName === '三级复核'" v-model="scope.row.reviewComments" transfer @change="changeOneSta(scope.row)">
|
|
|
<vxe-option
|
|
|
v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
|
|
|
:key="item.value"
|
|
@@ -654,7 +655,42 @@
|
|
|
import EnterpriseSearchService from '@/api/cw/common/EnterpriseSearchService'
|
|
|
import UserService from '@/api/sys/UserService'
|
|
|
import CommonApi from '@/api/cw/common/CommonApi'
|
|
|
+ import { ref } from 'vue'
|
|
|
export default {
|
|
|
+ setup () {
|
|
|
+ const showOneKeyReviewButton = ref(false) // 是否显示一键复核按钮,默认为 false
|
|
|
+
|
|
|
+ const handleOneKeyReview = () => {
|
|
|
+ // 根据当前 taskName 和 reviewStatus 进行一键复核操作
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
+ if (inputForm.taskName === '一级复核' && inputForm.reviewStatus === '5') {
|
|
|
+ // 一级复核的一键复核操作
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
+ for (const item of inputForm.detailFor1010) {
|
|
|
+ item.reviewComments = '是' // 假设一键复核全部设置为"是"
|
|
|
+ }
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
+ } else if (inputForm.taskName === '二级复核' && inputForm.reviewStatus === '5') {
|
|
|
+ // 二级复核的一键复核操作
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
+ for (const item of inputForm.detailFor1020) {
|
|
|
+ item.reviewComments = '是' // 假设一键复核全部设置为"是"
|
|
|
+ }
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
+ } else if (inputForm.taskName === '三级复核' && inputForm.reviewStatus === '5') {
|
|
|
+ // 三级复核的一键复核操作
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
+ for (const item of inputForm.detailFor1030) {
|
|
|
+ item.reviewComments = '是' // 假设一键复核全部设置为"是"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ // 其他数据和方法...
|
|
|
+ showOneKeyReviewButton,
|
|
|
+ handleOneKeyReview
|
|
|
+ }
|
|
|
+ },
|
|
|
props: {
|
|
|
businessId: {
|
|
|
type: String,
|
|
@@ -740,12 +776,14 @@
|
|
|
industry: '',
|
|
|
businessObjects: ''
|
|
|
},
|
|
|
+ currentTab: 'one', // 默认显示第一个复核选项卡
|
|
|
keyWatch: '',
|
|
|
activeName: 'enclosure',
|
|
|
tableKey: '',
|
|
|
tableKeyClient: '1',
|
|
|
tableKeyClient2: '1',
|
|
|
- tableKeyClient3: '1'
|
|
|
+ tableKeyClient3: '1',
|
|
|
+ tempSelect: ''
|
|
|
}
|
|
|
},
|
|
|
// ProjectReportService: null,
|
|
@@ -807,6 +845,40 @@
|
|
|
// ReportCancellApplyChooseCom
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeOneSta (obj) {
|
|
|
+ console.log(obj)
|
|
|
+ this.tempSelect = obj.reviewComments
|
|
|
+ this.$refs.details.reloadData(this.inputForm.detailFor1010)
|
|
|
+ },
|
|
|
+ // 点击一键复合,修改表格内所有数据状态
|
|
|
+ changeAllSta () {
|
|
|
+ if (this.tempSelect === '') {
|
|
|
+ this.$message.error('请最少选择一个在进行复核')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ console.log(this.tempSelect, this.inputForm)
|
|
|
+ this.inputForm.detailFor1010.forEach((e) => {
|
|
|
+ e.reviewComments = this.tempSelect
|
|
|
+ })
|
|
|
+ this.$refs.details.reloadData(this.inputForm.detailFor1010)
|
|
|
+ },
|
|
|
+ // changeOneSta1 (obj) {
|
|
|
+ // console.log(obj)
|
|
|
+ // this.tempSelect1 = obj.reviewComments
|
|
|
+ // this.$refs.details.reloadData(this.inputForm.detailFor1020)
|
|
|
+ // },
|
|
|
+ // // 点击一键复合,修改表格内所有数据状态
|
|
|
+ // changeAllSta1 () {
|
|
|
+ // if (this.tempSelect1 == '') {
|
|
|
+ // this.$message.error('请最少选择一个在进行复核')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // console.log(this.tempSelect1,this.inputForm)
|
|
|
+ // this.inputForm.detailFor1020.forEach( ( e ) => {
|
|
|
+ // e.reviewComments = this.tempSelect1
|
|
|
+ // })
|
|
|
+ // this.$refs.details.reloadData(this.inputForm.detailFor1020)
|
|
|
+ // },
|
|
|
getKeyWatch (keyWatch) {
|
|
|
this.keyWatch = keyWatch
|
|
|
},
|
|
@@ -1313,4 +1385,26 @@
|
|
|
/deep/ .el-input-number .el-input__inner {
|
|
|
text-align: left;
|
|
|
}
|
|
|
+ .fuhe {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: right;
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-right: 100px;
|
|
|
+ }
|
|
|
+ .fuhe button {
|
|
|
+ position: relative;
|
|
|
+ top: 40px;
|
|
|
+ width: 90px;
|
|
|
+ height: 35px;
|
|
|
+ border: 0;
|
|
|
+ background-color: #fff;
|
|
|
+ color: #333;
|
|
|
+ line-height: 35px;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px solid #cccccc;
|
|
|
+ z-index: 100;
|
|
|
+ border-radius: 5px;
|
|
|
+ }
|
|
|
</style>
|