|
@@ -111,6 +111,7 @@
|
|
|
<vxe-toolbar ref="toolbarRef" :refresh="{query: refreshList}" export custom>
|
|
|
<template #buttons>
|
|
|
<el-button v-if="hasPermission('ccpm:info:add')" type="primary" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
|
+ <el-button v-else-if="hasPermission('ccpm:info:xdj') && isXdj" type="primary" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
|
<el-button v-if="hasPermission('ccpm:info:del')" type="danger" icon="el-icon-delete" @click="del()" :disabled="$refs.infoTable && $refs.infoTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
|
<el-button type="warning" icon="el-icon-download" @click="exportInvoiceReimbursementFile()" plain>电子发票报销</el-button>
|
|
|
</template>
|
|
@@ -270,6 +271,7 @@
|
|
|
isAdmin:false,
|
|
|
isDgsbxBmzr:false,
|
|
|
isKjsz:false,
|
|
|
+ isXdj:false
|
|
|
}
|
|
|
},
|
|
|
// reimbursementService: null,
|
|
@@ -338,88 +340,111 @@
|
|
|
let tabTitle = `发起流程【项目-报销审批】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [项目-报销审批]`
|
|
|
console.log(this.processDefinitionId)
|
|
|
- if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
- status: 'startAndHold'}).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionIdSzbx,
|
|
|
- procDefKey: this.procDefKeySzbx,
|
|
|
- status: 'startAndHold',
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessId: 'false',
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ if (this.isXdj) {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdXdj,
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdXdj,
|
|
|
+ procDefKey: this.procDefKeyXdj,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdSzbx,
|
|
|
+ procDefKey: this.procDefKeySzbx,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }else if (this.isZjbry) {
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionIdZjb,
|
|
|
- status: 'startAndHold'}).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionIdZjb,
|
|
|
- procDefKey: this.procDefKeyZjb,
|
|
|
- status: 'startAndHold',
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessId: 'false',
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ }else if (this.isZjbry) {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdZjb,
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdZjb,
|
|
|
+ procDefKey: this.procDefKeyZjb,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }else if (this.isSs) {
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionIdSs,
|
|
|
- status: 'startAndHold'}).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionIdSs,
|
|
|
- procDefKey: this.procDefKeySs,
|
|
|
- status: 'startAndHold',
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessId: 'false',
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ }else if (this.isSs) {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSs,
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdSs,
|
|
|
+ procDefKey: this.procDefKeySs,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- } else {
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
- status: 'startAndHold'}).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionId,
|
|
|
- procDefKey: this.procDefKey,
|
|
|
- status: 'startAndHold',
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessId: 'false',
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ }else {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionId,
|
|
|
+ procDefKey: this.procDefKey,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
},
|
|
|
// 修改
|
|
|
edit (row) {
|
|
@@ -437,104 +462,131 @@
|
|
|
// 读取流程表单
|
|
|
let tabTitle = `发起流程【项目-报销审批】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [项目-报销审批]`
|
|
|
- if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
- businessId: row.id,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- status: status
|
|
|
- }).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionIdSzbx,
|
|
|
- procDefKey: this.procDefKeySzbx,
|
|
|
- status: status,
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- businessId: row.id,
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ if(this.isXdj){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdXdj,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdXdj,
|
|
|
+ procDefKey: this.procDefKeyXdj,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdSzbx,
|
|
|
+ procDefKey: this.procDefKeySzbx,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }else if(this.isZjbry){
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionIdZjb,
|
|
|
- businessId: row.id,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- status: status
|
|
|
- }).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionIdZjb,
|
|
|
- procDefKey: this.procDefKeyZjb,
|
|
|
- status: status,
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- businessId: row.id,
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ }else if(this.isZjbry){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdZjb,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdZjb,
|
|
|
+ procDefKey: this.procDefKeyZjb,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }else if(this.isSs){
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionIdSs,
|
|
|
- businessId: row.id,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- status: status
|
|
|
- }).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionIdSs,
|
|
|
- procDefKey: this.procDefKeySs,
|
|
|
- status: status,
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- businessId: row.id,
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ }else if(this.isSs){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSs,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdSs,
|
|
|
+ procDefKey: this.procDefKeySs,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }else {
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
- businessId: row.id,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- status: status
|
|
|
- }).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionId,
|
|
|
- procDefKey: this.procDefKey,
|
|
|
- status: status,
|
|
|
- title: tabTitle,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessTable: 'ccpm_reimbursement_info',
|
|
|
- businessId: row.id,
|
|
|
- isShow: false,
|
|
|
- routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
- }
|
|
|
+ }else {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionId,
|
|
|
+ procDefKey: this.procDefKey,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'ccpm_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/ccpm/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
},
|
|
|
todo (row) {
|
|
|
let cUser = false
|
|
@@ -623,6 +675,13 @@
|
|
|
console.log('this.isKjsz',this.isKjsz)
|
|
|
})
|
|
|
},
|
|
|
+ //查询当前登录人是否是徐大军
|
|
|
+ checkIsXdj(){
|
|
|
+ let name = this.$store.state.user.name
|
|
|
+ if ("徐大军" === name){
|
|
|
+ this.isXdj = true
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取数据列表
|
|
|
refreshList () {
|
|
|
this.loading = true
|
|
@@ -652,6 +711,7 @@
|
|
|
this.checkIsSs()
|
|
|
this.checkIsAdmin()
|
|
|
this.checkIsKjsz()
|
|
|
+ this.checkIsXdj()
|
|
|
processService.getByName('项目-报销审批').then((data) => {
|
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
|
this.processDefinitionId = data.id
|
|
@@ -690,6 +750,12 @@
|
|
|
this.procDefKeySs = data.key
|
|
|
}
|
|
|
})
|
|
|
+ processService.getByName('物资-项目报销').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.processDefinitionIdXdj = data.id
|
|
|
+ this.procDefKeyXdj = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 删除
|
|
|
del (id) {
|
|
@@ -721,28 +787,31 @@
|
|
|
// 流程详情
|
|
|
detail (row) {
|
|
|
if (!this.commonJS.isEmpty(row.type) && row.type !== '1') {
|
|
|
- if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
- if (row.reimbursementType === '1') {
|
|
|
- this.procDefId = this.processDefinitionIdSzbxInvoice
|
|
|
- } else if (row.reimbursementType === '0') {
|
|
|
- {
|
|
|
- this.procDefId = this.processDefinitionIdSzbx
|
|
|
- }
|
|
|
- }
|
|
|
- }else if (this.isZjbry){
|
|
|
- this.procDefId = this.processDefinitionIdZjb
|
|
|
- }else if (this.isSs){
|
|
|
- this.procDefId = this.processDefinitionIdSs
|
|
|
- }else {
|
|
|
- if (row.reimbursementType === '1') {
|
|
|
- this.procDefId = this.processDefinitionIdInvoice
|
|
|
- } else if (row.reimbursementType === '0') {
|
|
|
- {
|
|
|
- this.procDefId = this.processDefinitionId
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ if (this.isXdj) {
|
|
|
+ this.procDefId = this.processDefinitionIdXdj
|
|
|
+ }else {
|
|
|
+ if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
+ if (row.reimbursementType === '1') {
|
|
|
+ this.procDefId = this.processDefinitionIdSzbxInvoice
|
|
|
+ } else if (row.reimbursementType === '0') {
|
|
|
+ {
|
|
|
+ this.procDefId = this.processDefinitionIdSzbx
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else if (this.isZjbry){
|
|
|
+ this.procDefId = this.processDefinitionIdZjb
|
|
|
+ }else if (this.isSs){
|
|
|
+ this.procDefId = this.processDefinitionIdSs
|
|
|
+ }else {
|
|
|
+ if (row.reimbursementType === '1') {
|
|
|
+ this.procDefId = this.processDefinitionIdInvoice
|
|
|
+ } else if (row.reimbursementType === '0') {
|
|
|
+ {
|
|
|
+ this.procDefId = this.processDefinitionId
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
taskService.getTaskDef({
|
|
|
procInsId: row.procInsId,
|
|
|
procDefId: this.procDefId
|