|
@@ -68,9 +68,26 @@
|
|
@getValue="(value) => {inputForm.officeId=value}"/>
|
|
@getValue="(value) => {inputForm.officeId=value}"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="12" v-if="!inputForm.signatureType || (inputForm.signatureType === '1' && inputForm.status1 !== '4') || (inputForm.signatureType === '2' && inputForm.status2 !== '4') || (inputForm.signatureType === '3' && inputForm.status3 !== '4') ">
|
|
<el-form-item label="盖章类型" prop="signatureType"
|
|
<el-form-item label="盖章类型" prop="signatureType"
|
|
:rules="[
|
|
:rules="[
|
|
|
|
+ {required: true, message: '盖章类型不能为空', trigger: 'change'}
|
|
|
|
+ ]">
|
|
|
|
+ <!-- <el-input v-model="inputForm.signatureType" placeholder="请填写盖章类型" clearable></el-input>-->
|
|
|
|
+ <el-select v-model="inputForm.signatureType" placeholder="请选择盖章类型" clearable style="width: 100%;">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in $dictUtils.getDictList('cw_signature_type')"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" v-if="(inputForm.signatureType === '1' && inputForm.status1 === '4') || (inputForm.signatureType === '2' && inputForm.status2 === '4') || (inputForm.signatureType === '3' && inputForm.status3 === '4') ">
|
|
|
|
+ <el-form-item label="盖章类型" prop="signatureType"
|
|
|
|
+ :rules="[
|
|
|
|
+ {required: true, message: '盖章类型不能为空', trigger: 'change'}
|
|
]">
|
|
]">
|
|
<!-- <el-input v-model="inputForm.signatureType" placeholder="请填写盖章类型" clearable></el-input>-->
|
|
<!-- <el-input v-model="inputForm.signatureType" placeholder="请填写盖章类型" clearable></el-input>-->
|
|
<el-select :disabled="true" v-model="inputForm.signatureType" placeholder="请选择盖章类型" clearable style="width: 100%;">
|
|
<el-select :disabled="true" v-model="inputForm.signatureType" placeholder="请选择盖章类型" clearable style="width: 100%;">
|
|
@@ -463,6 +480,7 @@
|
|
import EnterpriseSearchService from '@/api/cw/common/EnterpriseSearchService'
|
|
import EnterpriseSearchService from '@/api/cw/common/EnterpriseSearchService'
|
|
// import WorkClientChooseForm from '../workClientInfo/WorkClientChooseForm'
|
|
// import WorkClientChooseForm from '../workClientInfo/WorkClientChooseForm'
|
|
import ReportServiceUnitForm from './ReportServiceUnitForm'
|
|
import ReportServiceUnitForm from './ReportServiceUnitForm'
|
|
|
|
+ import ProcessService from '@/api/flowable/ProcessService'
|
|
// import UpLoadComponentDialog from '@/views/common/UpLoadComponentDialog'
|
|
// import UpLoadComponentDialog from '@/views/common/UpLoadComponentDialog'
|
|
// import ProjectInfoForm from './ProjectInfoForm'
|
|
// import ProjectInfoForm from './ProjectInfoForm'
|
|
import ProjectRecoredChooseCom from '../projectRecords/ProjectRecordsChooseCom'
|
|
import ProjectRecoredChooseCom from '../projectRecords/ProjectRecordsChooseCom'
|
|
@@ -553,7 +571,11 @@
|
|
cwFileInfoList2: [],
|
|
cwFileInfoList2: [],
|
|
reviewStatus: '',
|
|
reviewStatus: '',
|
|
taskName: '',
|
|
taskName: '',
|
|
- realHeaderName: ''
|
|
|
|
|
|
+ realHeaderName: '',
|
|
|
|
+ procDefId: '',
|
|
|
|
+ procDefKey: '',
|
|
|
|
+ formTitle: '',
|
|
|
|
+ title: ''
|
|
},
|
|
},
|
|
keyWatch: '',
|
|
keyWatch: '',
|
|
activeName: 'archiveFile',
|
|
activeName: 'archiveFile',
|
|
@@ -566,11 +588,13 @@
|
|
projectReportService: null,
|
|
projectReportService: null,
|
|
enterpriseSearchService: null,
|
|
enterpriseSearchService: null,
|
|
reportReviewService: null,
|
|
reportReviewService: null,
|
|
|
|
+ processService: null,
|
|
created () {
|
|
created () {
|
|
this.reportReviewService = new ReportReviewService()
|
|
this.reportReviewService = new ReportReviewService()
|
|
this.enterpriseSearchService = new EnterpriseSearchService()
|
|
this.enterpriseSearchService = new EnterpriseSearchService()
|
|
this.projectRecordsService = new ProjectRecordsService()
|
|
this.projectRecordsService = new ProjectRecordsService()
|
|
this.projectReportService = new ProjectReportService()
|
|
this.projectReportService = new ProjectReportService()
|
|
|
|
+ this.processService = new ProcessService()
|
|
},
|
|
},
|
|
deactivated () {
|
|
deactivated () {
|
|
// 页面关闭(路由跳转)时清除定时器
|
|
// 页面关闭(路由跳转)时清除定时器
|
|
@@ -581,6 +605,9 @@
|
|
clearInterval(this.interVal)
|
|
clearInterval(this.interVal)
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ userName () {
|
|
|
|
+ return JSON.parse(localStorage.getItem('user')).name
|
|
|
|
+ },
|
|
bus: {
|
|
bus: {
|
|
get () {
|
|
get () {
|
|
this.$refs.archiveFile.setDividerName('附件', false)
|
|
this.$refs.archiveFile.setDividerName('附件', false)
|
|
@@ -611,6 +638,7 @@
|
|
SelectTree,
|
|
SelectTree,
|
|
UserSelect,
|
|
UserSelect,
|
|
ReportServiceUnitForm,
|
|
ReportServiceUnitForm,
|
|
|
|
+ ProcessService,
|
|
// ProjectInfoForm,
|
|
// ProjectInfoForm,
|
|
ProjectRecoredChooseCom
|
|
ProjectRecoredChooseCom
|
|
// UpLoadComponentDialog
|
|
// UpLoadComponentDialog
|
|
@@ -715,7 +743,11 @@
|
|
cwFileInfoList: [],
|
|
cwFileInfoList: [],
|
|
reviewStatus: '',
|
|
reviewStatus: '',
|
|
taskName: '',
|
|
taskName: '',
|
|
- realHeaderName: ''
|
|
|
|
|
|
+ realHeaderName: '',
|
|
|
|
+ procDefId: '',
|
|
|
|
+ procDefKey: '',
|
|
|
|
+ formTitle: '',
|
|
|
|
+ title: ''
|
|
}
|
|
}
|
|
this.inputForm.id = id
|
|
this.inputForm.id = id
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -798,6 +830,44 @@
|
|
this.doSubmit('save', callback)
|
|
this.doSubmit('save', callback)
|
|
},
|
|
},
|
|
startForm (callback) {
|
|
startForm (callback) {
|
|
|
|
+ console.log('form' + this.inputForm.signatureType)
|
|
|
|
+ let title = `发起流程【会计-报告签章-电子公章】`
|
|
|
|
+ let describe = `[会计-报告签章-电子公章`
|
|
|
|
+ // 读取流程表单
|
|
|
|
+ if (this.inputForm.signatureType) {
|
|
|
|
+ if (this.inputForm.signatureType === '1') {
|
|
|
|
+ this.processService.getByName('会计-报告签章-电子公章').then(({data}) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-报告签章-电子公章】`
|
|
|
|
+ describe = `[会计-报告签章-电子公章]`
|
|
|
|
+ } else if (this.inputForm.signatureType === '2') {
|
|
|
|
+ this.processService.getByName('财务-报告签章-公章+执业章').then(({data}) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-报告签章-电子公章+执业章】`
|
|
|
|
+ describe = `[会计-报告签章-电子公章+执业章]`
|
|
|
|
+ } else if (this.inputForm.signatureType === '3') {
|
|
|
|
+ this.processService.getByName('会计-报告签章-实体公章').then(({data}) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-报告签章-实体公章】`
|
|
|
|
+ describe = `[会计-报告签章-实体公章]`
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ let processTitle = `${this.userName} 发起了 ${this.inputForm.reportNo} - ${this.inputForm.projectName} ` + describe
|
|
|
|
+ this.inputForm.formTitle = processTitle
|
|
|
|
+ this.inputForm.title = title
|
|
|
|
+
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.loading = true
|
|
this.loading = true
|
|
@@ -841,36 +911,40 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
reapplyForm (callback) {
|
|
reapplyForm (callback) {
|
|
- if (this.inputForm.signatureType === '1') {
|
|
|
|
- this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
|
|
- if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
- this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
- throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
- } else {
|
|
|
|
- this.startForm(callback)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if (this.inputForm.signatureType === '2') {
|
|
|
|
- this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
|
|
- if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
- this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
- throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
- } else {
|
|
|
|
- this.startForm(callback)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if (this.inputForm.signatureType === '3') {
|
|
|
|
- this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
|
|
- if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
- this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
- throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
- } else {
|
|
|
|
- this.startForm(callback)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ console.log(this.inputForm)
|
|
|
|
+ this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
|
|
+ console.log('info' + data)
|
|
|
|
+ if (data.signatureType === '1') {
|
|
|
|
+ this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
|
|
+ if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
+ this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ } else {
|
|
|
|
+ this.startForm(callback)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (data.signatureType === '2') {
|
|
|
|
+ this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
|
|
+ if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
+ this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ } else {
|
|
|
|
+ this.startForm(callback)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (data.signatureType === '3') {
|
|
|
|
+ this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
|
|
+ if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
+ this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ } else {
|
|
|
|
+ this.startForm(callback)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
async agreeForm (callback) {
|
|
async agreeForm (callback) {
|
|
if (this.inputForm.signatureType === '1') {
|
|
if (this.inputForm.signatureType === '1') {
|