|
@@ -478,12 +478,12 @@
|
|
|
:key="tableKeyClient"
|
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
|
>
|
|
|
- <vxe-table-column field="typeName" title="复核的主要内容" :edit-render="{}">
|
|
|
+ <vxe-table-column field="typeName" title="复核的主要内容" :edit-render="{}" align="left">
|
|
|
<template v-slot:edit="scope">
|
|
|
<el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}">
|
|
|
+ <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}" align="left">
|
|
|
<template v-slot:edit="scope">
|
|
|
<vxe-select :disabled="inputForm.taskName === '二级复核' || inputForm.taskName === '三级复核'" v-model="scope.row.reviewComments" transfer>
|
|
|
<vxe-option
|
|
@@ -528,12 +528,12 @@
|
|
|
:key="tableKeyClient2"
|
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
|
>
|
|
|
- <vxe-table-column field="typeName" title="复核的主要内容" :edit-render="{}">
|
|
|
+ <vxe-table-column field="typeName" title="复核的主要内容" :edit-render="{}" align="left">
|
|
|
<template v-slot:edit="scope">
|
|
|
<el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}">
|
|
|
+ <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}" align="left">
|
|
|
<template v-slot:edit="scope">
|
|
|
<vxe-select :disabled="inputForm.reviewStatus === '4' || inputForm.taskName === '三级复核'" v-model="scope.row.reviewComments" transfer>
|
|
|
<vxe-option
|
|
@@ -578,12 +578,12 @@
|
|
|
:key="tableKeyClient3"
|
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
|
>
|
|
|
- <vxe-table-column field="typeName" title="复核的主要内容" :edit-render="{}">
|
|
|
+ <vxe-table-column field="typeName" title="复核的主要内容" :edit-render="{}" align="left">
|
|
|
<template v-slot:edit="scope">
|
|
|
<el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}">
|
|
|
+ <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}" align="left">
|
|
|
<template v-slot:edit="scope">
|
|
|
<vxe-select :disabled="inputForm.taskName === '一级复核' || inputForm.reviewStatus === '4'" v-model="scope.row.reviewComments" transfer>
|
|
|
<vxe-option
|
|
@@ -649,6 +649,7 @@
|
|
|
import projectReportService from '@/api/cw/reportManagement/ProjectReportService'
|
|
|
import EnterpriseSearchService from '@/api/cw/common/EnterpriseSearchService'
|
|
|
import CommonApi from '@/api/cw/common/CommonApi'
|
|
|
+ import userService from "@/api/sys/userService";
|
|
|
export default {
|
|
|
props: {
|
|
|
businessId: {
|
|
@@ -1018,23 +1019,26 @@
|
|
|
this.inputForm.detailFor1010.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- this.reportReviewService.save(this.inputForm).then((data) => {
|
|
|
- this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
|
|
|
- projectReportService.saveForm(this.inputForm).then((da) => {
|
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
- this.loading = false
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- // this.reportCancellApplyService.saveForm(this.inputForm).then((data) => {
|
|
|
- // callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
- // this.loading = false
|
|
|
- // }).catch(() => {
|
|
|
- // this.loading = false
|
|
|
- // })
|
|
|
+ //根据签字注师1的人员id去查是否超过了100次
|
|
|
+ userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
|
|
|
+ if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
|
|
|
+ this.$message.error(`请选择被选次数小于100次的签字注师人员`)
|
|
|
+ this.loading = false
|
|
|
+ throw new Error()
|
|
|
+ } else {
|
|
|
+ this.reportReviewService.save(this.inputForm).then((data) => {
|
|
|
+ this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
|
|
|
+ projectReportService.saveForm(this.inputForm).then((da) => {
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
return
|
|
|
} else if (status === 'start') {
|
|
|
// 送审 待审核
|
|
@@ -1061,18 +1065,27 @@
|
|
|
this.inputForm.detailFor1010.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- this.reportReviewService.save(this.inputForm).then((data) => {
|
|
|
- this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
|
|
|
- console.log('this.inputForm', this.inputForm)
|
|
|
- projectReportService.saveForm(this.inputForm).then((da) => {
|
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
- this.loading = false
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
+ //根据签字注师1的人员id去查是否超过了100次
|
|
|
+ userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
|
|
|
+ if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
|
|
|
+ this.$message.error(`请选择被选次数小于100次的签字注师人员`)
|
|
|
+ this.loading = false
|
|
|
+ throw new Error()
|
|
|
+ } else {
|
|
|
+ this.reportReviewService.save(this.inputForm).then((data) => {
|
|
|
+ this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
|
|
|
+ console.log('this.inputForm', this.inputForm)
|
|
|
+ projectReportService.saveForm(this.inputForm).then((da) => {
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
this.loading = false
|
|
|
}
|