|
@@ -128,6 +128,10 @@
|
|
:type="$dictUtils.getDictLabel('cw_project_report_sign_status_flag', scope.row.status2, '-')">
|
|
:type="$dictUtils.getDictLabel('cw_project_report_sign_status_flag', scope.row.status2, '-')">
|
|
{{$dictUtils.getDictLabel("cw_project_report_sign_status", scope.row.status2, '-')}}
|
|
{{$dictUtils.getDictLabel("cw_project_report_sign_status", scope.row.status2, '-')}}
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button v-if="scope.row.signatureType === '3'" type="text" @click="detailS3(scope.row)" effect="dark" size="mini"
|
|
|
|
+ :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status3, '-')">
|
|
|
|
+ {{$dictUtils.getDictLabel("cw_status", scope.row.status3, '-')}}
|
|
|
|
+ </el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
|
|
|
|
@@ -142,10 +146,13 @@
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === undefined)" type="text" size="small" @click="pushF(scope.row)">复核</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === undefined)" type="text" size="small" @click="pushF(scope.row)">复核</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& scope.row.reviewStatus === '2'" type="text" size="small" @click="rebackF(scope.row)">撤回复核申请</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& scope.row.reviewStatus === '2'" type="text" size="small" @click="rebackF(scope.row)">撤回复核申请</el-button>
|
|
<!-- 公章流程-->
|
|
<!-- 公章流程-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3' || scope.row.status1 === '4')" type="text" size="small" @click="pushS(scope.row)">公章</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3')" type="text" size="small" @click="pushS(scope.row)">公章</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && scope.row.status1 === '2'" type="text" size="small" @click="rebackS(scope.row)">撤回签章申请</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && scope.row.status1 === '2'" type="text" size="small" @click="rebackS(scope.row)">撤回签章申请</el-button>
|
|
|
|
+<!-- 实体章流程-->
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '3' && (scope.row.status3 === '0' || scope.row.status3 === '3')" type="text" size="small" @click="pushS3(scope.row)">实体章</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '3' && scope.row.status3 === '2'" type="text" size="small" @click="rebackS3(scope.row)">撤回签章申请</el-button>
|
|
<!-- 公章+执业章流程-->
|
|
<!-- 公章+执业章流程-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '0' || scope.row.status2 === '3' || scope.row.status2 === '4')" type="text" size="small" @click="pushS2(scope.row)">公章+执业章</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '0' || scope.row.status2 === '3')" type="text" size="small" @click="pushS2(scope.row)">公章+执业章</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '2' || scope.row.status2 === '6' || scope.row.status2 === '7')" type="text" size="small" @click="rebackS2(scope.row)">撤回签章申请</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '2' || scope.row.status2 === '6' || scope.row.status2 === '7')" type="text" size="small" @click="rebackS2(scope.row)">撤回签章申请</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
@@ -162,8 +169,8 @@
|
|
</vxe-pager>
|
|
</vxe-pager>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <ReportManagementForm ref="reportManagementForm"></ReportManagementForm>
|
|
|
|
- <ReportManagementAddForm ref="reportManagementAddForm"></ReportManagementAddForm>
|
|
|
|
|
|
+ <ReportManagementForm ref="reportManagementForm" @refreshList="refreshList"></ReportManagementForm>
|
|
|
|
+ <ReportManagementAddForm ref="reportManagementAddForm" @refreshList="refreshList"></ReportManagementAddForm>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -547,17 +554,18 @@
|
|
let title = `发起流程【报告签章-公章】`
|
|
let title = `发起流程【报告签章-公章】`
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告签章-公章]`
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告签章-公章]`
|
|
let status = 'startAndClose'
|
|
let status = 'startAndClose'
|
|
- if (row.status1 === '3' || row.status1 === '4') {
|
|
|
|
|
|
+ if (row.status1 === '3') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
|
|
+ } else if (row.status1 === '4') {
|
|
|
|
+ status = 'reapplyFlag'
|
|
}
|
|
}
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionSId,
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionSId,
|
|
businessId: row.sid1,
|
|
businessId: row.sid1,
|
|
businessTable: 'cw_project_report_signature'}).then((data) => {
|
|
businessTable: 'cw_project_report_signature'}).then((data) => {
|
|
- // console.log('row', row)
|
|
|
|
- // console.log('rowid', row.sid1)
|
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskForm',
|
|
path: '/flowable/task/TaskForm',
|
|
query: {
|
|
query: {
|
|
|
|
+ ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
procDefId: this.processDefinitionSId,
|
|
procDefId: this.processDefinitionSId,
|
|
procDefKey: this.procDefSKey,
|
|
procDefKey: this.procDefSKey,
|
|
title: title,
|
|
title: title,
|
|
@@ -573,6 +581,38 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ pushS3 (row) {
|
|
|
|
+ // 读取流程表单
|
|
|
|
+ let title = `发起流程【报告签章-实体章】`
|
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告签章-实体章]`
|
|
|
|
+ let status = 'startAndClose'
|
|
|
|
+ if (row.status3 === '3') {
|
|
|
|
+ status = 'startAndClose'
|
|
|
|
+ } else if (row.status3 === '4') {
|
|
|
|
+ status = 'reapplyFlag'
|
|
|
|
+ }
|
|
|
|
+ this.taskService.getTaskDef({ procDefId: this.processDefinitionSId,
|
|
|
|
+ businessId: row.sid3,
|
|
|
|
+ businessTable: 'cw_project_report_signature'}).then((data) => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
|
+ query: {
|
|
|
|
+ ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
|
+ procDefId: this.processDefinitionSId,
|
|
|
|
+ procDefKey: this.procDefSKey,
|
|
|
|
+ title: title,
|
|
|
|
+ formType: data.data.formType,
|
|
|
|
+ formUrl: data.data.formUrl,
|
|
|
|
+ formTitle: processTitle,
|
|
|
|
+ businessTable: 'cw_project_report_signature',
|
|
|
|
+ businessId: row.sid3,
|
|
|
|
+ isShow: 'false',
|
|
|
|
+ status: status,
|
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 查看报告签章-公章流程结果
|
|
// 查看报告签章-公章流程结果
|
|
detailS (row) {
|
|
detailS (row) {
|
|
if (row.status1 !== '0' && row.status1 !== '1') {
|
|
if (row.status1 !== '0' && row.status1 !== '1') {
|
|
@@ -584,13 +624,36 @@
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
isShow: 'false',
|
|
isShow: 'false',
|
|
readOnly: true,
|
|
readOnly: true,
|
|
title: '报告签章-公章' + '流程详情',
|
|
title: '报告签章-公章' + '流程详情',
|
|
formTitle: '报告签章-公章' + '流程详情',
|
|
formTitle: '报告签章-公章' + '流程详情',
|
|
businessId: row.sid1,
|
|
businessId: row.sid1,
|
|
- status: 'reback',
|
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'title', 'businessId')
|
|
|
|
|
|
+ status: 'reback'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 查看报告签章-实体章流程结果
|
|
|
|
+ detailS3 (row) {
|
|
|
|
+ if (row.status3 !== '0' && row.status3 !== '1') {
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ this.taskService.getTaskDef({
|
|
|
|
+ procInsId: row.procInsIds3,
|
|
|
|
+ procDefId: this.processDefinitionSId
|
|
|
|
+ }).then(({data}) => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/flowable/task/TaskFormDetail',
|
|
|
|
+ query: {
|
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
|
+ isShow: 'false',
|
|
|
|
+ readOnly: true,
|
|
|
|
+ title: '报告签章-实体章' + '流程详情',
|
|
|
|
+ formTitle: '报告签章-实体章' + '流程详情',
|
|
|
|
+ businessId: row.sid3,
|
|
|
|
+ status: 'reback'
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -640,14 +703,38 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 撤回报告签章-实体章的申请流程
|
|
|
|
+ rebackS3 (row) {
|
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ await this.projectReportService.findBySignatureId(row.sid3).then(({data}) => {
|
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ this.processService.revokeProcIns(row.procInsIds3).then(({data}) => {
|
|
|
|
+ let form = {status: '3', id: row.sid3}
|
|
|
|
+ this.projectReportService.updateSignatureStatusById(form)
|
|
|
|
+ this.$message.success(data)
|
|
|
|
+ this.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 发起报告签章-公章+执业章流程
|
|
// 发起报告签章-公章+执业章流程
|
|
pushS2 (row) {
|
|
pushS2 (row) {
|
|
// 读取流程表单
|
|
// 读取流程表单
|
|
let title = `发起流程【报告签章-公章+执业章】`
|
|
let title = `发起流程【报告签章-公章+执业章】`
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告签章-公章+执业章]`
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告签章-公章+执业章]`
|
|
let status = 'startAndClose'
|
|
let status = 'startAndClose'
|
|
- if (row.status2 === '3' || row.status2 === '4') {
|
|
|
|
|
|
+ if (row.status2 === '3') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
|
|
+ } else if (row.status2 === '4') {
|
|
|
|
+ status = 'reapplyFlag'
|
|
}
|
|
}
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionSId2,
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionSId2,
|
|
businessId: row.sid2,
|
|
businessId: row.sid2,
|
|
@@ -655,6 +742,7 @@
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskForm',
|
|
path: '/flowable/task/TaskForm',
|
|
query: {
|
|
query: {
|
|
|
|
+ ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
procDefId: this.processDefinitionSId2,
|
|
procDefId: this.processDefinitionSId2,
|
|
procDefKey: this.procDefSKey2,
|
|
procDefKey: this.procDefSKey2,
|
|
title: title,
|
|
title: title,
|
|
@@ -681,13 +769,13 @@
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
isShow: 'false',
|
|
isShow: 'false',
|
|
readOnly: true,
|
|
readOnly: true,
|
|
title: '报告签章-公章+执业章' + '流程详情',
|
|
title: '报告签章-公章+执业章' + '流程详情',
|
|
formTitle: '报告签章-公章+执业章' + '流程详情',
|
|
formTitle: '报告签章-公章+执业章' + '流程详情',
|
|
businessId: row.sid2,
|
|
businessId: row.sid2,
|
|
- status: 'reback',
|
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'title', 'businessId')
|
|
|
|
|
|
+ status: 'reback'
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|