|
@@ -201,6 +201,7 @@
|
|
// import ReimbursementTypePullForm from '@/views/modules/finance/invoice/ReimbursementTypePullForm'
|
|
// import ReimbursementTypePullForm from '@/views/modules/finance/invoice/ReimbursementTypePullForm'
|
|
import CwReimbursementTypePullForm from './CwReimbursementTypePullForm'
|
|
import CwReimbursementTypePullForm from './CwReimbursementTypePullForm'
|
|
import UserPullForm from '@/views/modules/finance/invoice/UserPullForm'
|
|
import UserPullForm from '@/views/modules/finance/invoice/UserPullForm'
|
|
|
|
+ import CommonApi from '@/api/cw/common/CommonApi'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -238,7 +239,8 @@
|
|
remarks: '',
|
|
remarks: '',
|
|
detailInfos: [],
|
|
detailInfos: [],
|
|
amountInfos: [],
|
|
amountInfos: [],
|
|
- files: [] // 附件信息
|
|
|
|
|
|
+ files: [], // 附件信息
|
|
|
|
+ procInsId: ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -247,6 +249,7 @@
|
|
// reimbursementTypeService: null,
|
|
// reimbursementTypeService: null,
|
|
reimbursementApprovalTypeService: null,
|
|
reimbursementApprovalTypeService: null,
|
|
userService: null,
|
|
userService: null,
|
|
|
|
+ commonApi: null,
|
|
created () {
|
|
created () {
|
|
this.reimbursementApprovalService = new ReimbursementApprovalService()
|
|
this.reimbursementApprovalService = new ReimbursementApprovalService()
|
|
// this.reimbursementService = new ReimbursementService()
|
|
// this.reimbursementService = new ReimbursementService()
|
|
@@ -257,6 +260,7 @@
|
|
this.userService = new UserService()
|
|
this.userService = new UserService()
|
|
// this.reimbursementTypeService = new ReimbursementTypeService()
|
|
// this.reimbursementTypeService = new ReimbursementTypeService()
|
|
this.reimbursementApprovalTypeService = new ReimbursementApprovalTypeService()
|
|
this.reimbursementApprovalTypeService = new ReimbursementApprovalTypeService()
|
|
|
|
+ this.commonApi = new CommonApi()
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
businessId: {
|
|
businessId: {
|
|
@@ -294,7 +298,6 @@
|
|
watch: {
|
|
watch: {
|
|
'businessId': {
|
|
'businessId': {
|
|
handler (newVal) {
|
|
handler (newVal) {
|
|
- console.log('aaaaaaaaaaaaaaaaaaaaaaaaaa', this.businessId)
|
|
|
|
if (this.businessId && this.businessId !== 'false') {
|
|
if (this.businessId && this.businessId !== 'false') {
|
|
this.init('edit', this.businessId)
|
|
this.init('edit', this.businessId)
|
|
} else {
|
|
} else {
|
|
@@ -316,7 +319,8 @@
|
|
remarks: '',
|
|
remarks: '',
|
|
detailInfos: [],
|
|
detailInfos: [],
|
|
amountInfos: [],
|
|
amountInfos: [],
|
|
- files: [] // 附件信息
|
|
|
|
|
|
+ files: [], // 附件信息
|
|
|
|
+ procInsId: ''
|
|
}
|
|
}
|
|
if (method === 'add') {
|
|
if (method === 'add') {
|
|
this.title = `新建报销类型`
|
|
this.title = `新建报销类型`
|
|
@@ -527,23 +531,19 @@
|
|
this.inputForm.files = []
|
|
this.inputForm.files = []
|
|
}
|
|
}
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
- await this.userService.is().then(({data}) => {
|
|
|
|
- if (data) {
|
|
|
|
- this.inputForm.type = '5'
|
|
|
|
|
|
+ this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then(({data}) => {
|
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
|
+ if (data === '公司领导审批') {
|
|
|
|
+ this.inputForm.type = '5'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ this.reimbursementApprovalService.save(this.inputForm).then(({data}) => {
|
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
+ this.loading = false
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
})
|
|
})
|
|
- this.reimbursementApprovalService.save(this.inputForm).then(({data}) => {
|
|
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
- this.loading = false
|
|
|
|
- }).catch(() => {
|
|
|
|
- this.loading = false
|
|
|
|
- })
|
|
|
|
- // this.reimbursementService.save(this.inputForm).then(({data}) => {
|
|
|
|
- // callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
- // this.loading = false
|
|
|
|
- // }).catch(() => {
|
|
|
|
- // this.loading = false
|
|
|
|
- // })
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|