|
@@ -167,7 +167,12 @@
|
|
|
<vxe-column min-width="100" title="报销人" field="name" align="center"></vxe-column>
|
|
<vxe-column min-width="100" title="报销人" field="name" align="center"></vxe-column>
|
|
|
<vxe-column min-width="100" title="报销部门" field="deptName" align="center"></vxe-column>
|
|
<vxe-column min-width="100" title="报销部门" field="deptName" align="center"></vxe-column>
|
|
|
<vxe-column min-width="100" title="报销日期" field="approvalTime" align="center"></vxe-column>
|
|
<vxe-column min-width="100" title="报销日期" field="approvalTime" align="center"></vxe-column>
|
|
|
- <vxe-column min-width="150" title="报销金额(元)" field="number" align="center"></vxe-column>
|
|
|
|
|
|
|
+ <vxe-column min-width="150" title="报销金额(元)" field="number" align="center">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="isNewVersion(scope.row)">{{ scope.row.numberCount }}</span>
|
|
|
|
|
+ <span v-else>{{ scope.row.number }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </vxe-column>
|
|
|
<vxe-column min-width="100" title="状态" fixed="right" align="center" field="type">
|
|
<vxe-column min-width="100" title="状态" fixed="right" align="center" field="type">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.type, '')"
|
|
<el-button @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.type, '')"
|
|
@@ -274,6 +279,7 @@ import dayjs from 'dayjs';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ formUrlFile: '/reimbursement/info/NewReimbursementFileSupplementForm',
|
|
|
formUrl: '/reimbursement/info/NewReimbursementForm',
|
|
formUrl: '/reimbursement/info/NewReimbursementForm',
|
|
|
showHideItem: false,
|
|
showHideItem: false,
|
|
|
showHideIcon: 'el-icon-arrow-down',
|
|
showHideIcon: 'el-icon-arrow-down',
|
|
@@ -368,6 +374,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ isNewVersion(row) {
|
|
|
|
|
+ let newStartDate = this.$dictUtils.getDictLabel("new_version_reimbursement_date", '1', '-')
|
|
|
|
|
+ let newVersionFlag = this.validateXG.compareDate(row.approvalTime, newStartDate) == 'same' || this.validateXG.compareDate(row.approvalTime, newStartDate) == 'after'
|
|
|
|
|
+ if (newVersionFlag) {
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
|
|
+ return false
|
|
|
|
|
+ },
|
|
|
showHide() {
|
|
showHide() {
|
|
|
if (this.showHideItem === false) {
|
|
if (this.showHideItem === false) {
|
|
|
this.showHideItem = true
|
|
this.showHideItem = true
|
|
@@ -988,6 +1002,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
//文件补充
|
|
//文件补充
|
|
|
addFile(row) {
|
|
addFile(row) {
|
|
|
|
|
+ let newStartDate = this.$dictUtils.getDictLabel("new_version_reimbursement_date", '1', '-')
|
|
|
|
|
+ let newVersionFlag = this.validateXG.compareDate(row.approvalTime, newStartDate) == 'same' || this.validateXG.compareDate(row.approvalTime, newStartDate) == 'after'
|
|
|
// 读取流程表单
|
|
// 读取流程表单
|
|
|
let tabTitle = `发起流程【评估-报销文件补充】`
|
|
let tabTitle = `发起流程【评估-报销文件补充】`
|
|
|
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')} 发起了 [评估-报销文件补充]`
|
|
@@ -995,6 +1011,9 @@ export default {
|
|
|
procDefId: this.processDefinitionIdFile,
|
|
procDefId: this.processDefinitionIdFile,
|
|
|
status: 'startAndClose'
|
|
status: 'startAndClose'
|
|
|
}).then((data) => {
|
|
}).then((data) => {
|
|
|
|
|
+ if (newVersionFlag) {
|
|
|
|
|
+ data.formUrl = this.formUrlFile
|
|
|
|
|
+ }
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskForm',
|
|
path: '/flowable/task/TaskForm',
|
|
|
query: {
|
|
query: {
|
|
@@ -1027,10 +1046,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
//文件补充 重新调整
|
|
//文件补充 重新调整
|
|
|
todoFile(row) {
|
|
todoFile(row) {
|
|
|
|
|
+ let newStartDate = this.$dictUtils.getDictLabel("new_version_reimbursement_date", '1', '-')
|
|
|
|
|
+ let newVersionFlag = this.validateXG.compareDate(row.approvalTime, newStartDate) == 'same' || this.validateXG.compareDate(row.approvalTime, newStartDate) == 'after'
|
|
|
|
|
+ // 读取流程表单
|
|
|
let cUser = false
|
|
let cUser = false
|
|
|
taskService.getTaskDefInfo({
|
|
taskService.getTaskDefInfo({
|
|
|
taskId: row.taskIdFile
|
|
taskId: row.taskIdFile
|
|
|
}).then((data) => {
|
|
}).then((data) => {
|
|
|
|
|
+ if (newVersionFlag) {
|
|
|
|
|
+ data.formUrl = this.formUrlFile
|
|
|
|
|
+ }
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskForm',
|
|
path: '/flowable/task/TaskForm',
|
|
|
query: {
|
|
query: {
|
|
@@ -1070,10 +1095,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
//文件补充流程详情
|
|
//文件补充流程详情
|
|
|
detailFile(row) {
|
|
detailFile(row) {
|
|
|
|
|
+ let newStartDate = this.$dictUtils.getDictLabel("new_version_reimbursement_date", '1', '-')
|
|
|
|
|
+ let newVersionFlag = this.validateXG.compareDate(row.approvalTime, newStartDate) == 'same' || this.validateXG.compareDate(row.approvalTime, newStartDate) == 'after'
|
|
|
|
|
+ // 读取流程表单
|
|
|
taskService.getTaskDef({
|
|
taskService.getTaskDef({
|
|
|
procInsId: row.procInsIdFile,
|
|
procInsId: row.procInsIdFile,
|
|
|
procDefId: this.processDefinitionIdFile
|
|
procDefId: this.processDefinitionIdFile
|
|
|
}).then((data) => {
|
|
}).then((data) => {
|
|
|
|
|
+ if (newVersionFlag) {
|
|
|
|
|
+ data.formUrl = this.formUrlFile
|
|
|
|
|
+ }
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
|
query: {
|
|
query: {
|
|
@@ -1105,6 +1136,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
//文件补充 修改
|
|
//文件补充 修改
|
|
|
editFile(row) {
|
|
editFile(row) {
|
|
|
|
|
+ let newStartDate = this.$dictUtils.getDictLabel("new_version_reimbursement_date", '1', '-')
|
|
|
|
|
+ let newVersionFlag = this.validateXG.compareDate(row.approvalTime, newStartDate) == 'same' || this.validateXG.compareDate(row.approvalTime, newStartDate) == 'after'
|
|
|
|
|
+ // 读取流程表单
|
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
|
let tabTitle = `发起流程【评估-报销文件补充】`
|
|
let tabTitle = `发起流程【评估-报销文件补充】`
|
|
|
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')} 发起了 [评估-报销文件补充]`
|
|
@@ -1115,6 +1149,9 @@ export default {
|
|
|
businessTable: 'reimbursement_file_supplement',
|
|
businessTable: 'reimbursement_file_supplement',
|
|
|
status: status
|
|
status: status
|
|
|
}).then((data) => {
|
|
}).then((data) => {
|
|
|
|
|
+ if (newVersionFlag) {
|
|
|
|
|
+ data.formUrl = this.formUrlFile
|
|
|
|
|
+ }
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskForm',
|
|
path: '/flowable/task/TaskForm',
|
|
|
query: {
|
|
query: {
|