|
|
@@ -349,6 +349,7 @@ export default {
|
|
|
isZj: false,
|
|
|
isDgsbxBmzr: false,
|
|
|
isZjbry: false,
|
|
|
+ isSzZyx: false,
|
|
|
isAdmin: false,
|
|
|
tooltipConfig: {
|
|
|
showAll: false,
|
|
|
@@ -444,6 +445,7 @@ export default {
|
|
|
},
|
|
|
// 新增
|
|
|
add() {
|
|
|
+ console.log('进入新增界面')
|
|
|
let newStartDate = this.$dictUtils.getDictLabel("new_version_reimbursement_date", '1', '-')
|
|
|
let today = dayjs().format('YYYY-MM-DD');
|
|
|
let newVersionFlag = this.validateXG.compareDate(today, newStartDate) == 'same' || this.validateXG.compareDate(today, newStartDate) == 'after'
|
|
|
@@ -503,6 +505,32 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ } else if (this.isSzZyx) {
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procDefId: this.processDefinitionIdZsszzyx,
|
|
|
+ status: 'startAndHold'
|
|
|
+ }).then((data) => {
|
|
|
+ // 根据时间判断formUrl
|
|
|
+ if (newVersionFlag) {
|
|
|
+ data.formUrl = this.formUrl
|
|
|
+ }
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdZsszzyx,
|
|
|
+ procDefKey: this.procDefKeyZsszzyx,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/zs/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
} else {
|
|
|
taskService.getTaskDef({
|
|
|
procDefId: this.processDefinitionId,
|
|
|
@@ -607,6 +635,34 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ } else if (this.isSzZyx) {
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procDefId: this.processDefinitionIdZsszzyx,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'zs_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ if (newVersionFlag) {
|
|
|
+ data.formUrl = this.formUrl
|
|
|
+ }
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdZsszzyx,
|
|
|
+ procDefKey: this.procDefKeyZsszzyx,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'zs_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/zs/reimbursement/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
} else {
|
|
|
taskService.getTaskDef({
|
|
|
procDefId: this.processDefinitionId,
|
|
|
@@ -727,6 +783,12 @@ export default {
|
|
|
this.isDgsbxBmzr = data
|
|
|
})
|
|
|
},
|
|
|
+ //查询当前用户是否是苏州分公司报销(智永祥部门)
|
|
|
+ checkIsSzZyx() {
|
|
|
+ userService.isSzZyx().then((data) => {
|
|
|
+ this.isSzZyx = data
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取数据列表
|
|
|
refreshList() {
|
|
|
this.loading = true
|
|
|
@@ -754,6 +816,7 @@ export default {
|
|
|
this.checkIsDgsbxBmzr()
|
|
|
this.checkIsZjbry()
|
|
|
this.checkIsAdmin()
|
|
|
+ this.checkIsSzZyx()
|
|
|
processService.getByName('中审-报销审批').then((data) => {
|
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
|
this.processDefinitionId = data.id
|
|
|
@@ -793,6 +856,13 @@ export default {
|
|
|
this.procDefKeyFile = data.key
|
|
|
}
|
|
|
})
|
|
|
+ processService.getByName('中审-苏州分公司(智永祥)-报销').then((data) => {
|
|
|
+ console.log('file', data)
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.processDefinitionIdZsszzyx = data.id
|
|
|
+ this.procDefKeyZsszzyx = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 删除
|
|
|
del(id) {
|