|
@@ -1449,34 +1449,50 @@
|
|
let title = `发起流程【会计-报销审批】`
|
|
let title = `发起流程【会计-报销审批】`
|
|
let describe = `[会计-报销审批]`
|
|
let describe = `[会计-报销审批]`
|
|
if (this.inputForm.reimbursementType) {
|
|
if (this.inputForm.reimbursementType) {
|
|
- if (this.inputForm.reimbursementType === '0') {
|
|
|
|
- await processService.getByName('会计-报销审批').then((data) => {
|
|
|
|
- if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
- this.inputForm.procDefId = data.id
|
|
|
|
- this.inputForm.procDefKey = data.key
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- title = `发起流程【会计-报销审批】`
|
|
|
|
- describe = `[会计-报销审批]`
|
|
|
|
- } else if (this.inputForm.reimbursementType === '1') {
|
|
|
|
- await processService.getByName('会计-报销审批-电子发票').then((data) => {
|
|
|
|
- if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
- this.inputForm.procDefId = data.id
|
|
|
|
- this.inputForm.procDefKey = data.key
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- title = `发起流程【会计-报销审批-电子发票】`
|
|
|
|
- describe = `[会计-报销审批-电子发票]`
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (this.isKjsz){
|
|
|
|
- await processService.getByName('会计-所长报销').then((data) => {
|
|
|
|
- if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
- this.inputForm.procDefId = data.id
|
|
|
|
- this.inputForm.procDefKey = data.key
|
|
|
|
|
|
+ if (this.isKjsz){
|
|
|
|
+ if (this.inputForm.reimbursementType === '0') {
|
|
|
|
+ await processService.getByName('会计-所长报销').then((data) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-所长报销】`
|
|
|
|
+ describe = `[会计-所长报销]`
|
|
|
|
+ }else if (this.inputForm.reimbursementType === '1') {
|
|
|
|
+ await processService.getByName('会计-所长报销-电子发票').then((data) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-所长报销-电子发票】`
|
|
|
|
+ describe = `[会计-所长报销-电子发票]`
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ }else {
|
|
|
|
+ if (this.inputForm.reimbursementType === '0') {
|
|
|
|
+ await processService.getByName('会计-报销审批').then((data) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-报销审批】`
|
|
|
|
+ describe = `[会计-报销审批]`
|
|
|
|
+ } else if (this.inputForm.reimbursementType === '1') {
|
|
|
|
+ await processService.getByName('会计-报销审批-电子发票').then((data) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.inputForm.procDefId = data.id
|
|
|
|
+ this.inputForm.procDefKey = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ title = `发起流程【会计-报销审批-电子发票】`
|
|
|
|
+ describe = `[会计-报销审批-电子发票]`
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+
|
|
this.$refs['inputForm'].validate(async (valid) => {
|
|
this.$refs['inputForm'].validate(async (valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.loading = true
|
|
this.loading = true
|