|
@@ -252,6 +252,10 @@
|
|
|
businessId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
+ },
|
|
|
+ processDefKey: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -275,6 +279,14 @@
|
|
|
this.businessId = val
|
|
|
}
|
|
|
},
|
|
|
+ pdKey: {
|
|
|
+ get () {
|
|
|
+ return this.processDefKey
|
|
|
+ },
|
|
|
+ set (val) {
|
|
|
+ this.processDefKey = val
|
|
|
+ }
|
|
|
+ },
|
|
|
name () {
|
|
|
return JSON.parse(localStorage.getItem('user')).name
|
|
|
},
|
|
@@ -288,8 +300,8 @@
|
|
|
watch: {
|
|
|
'keyWatch': {
|
|
|
handler (newVal) {
|
|
|
- if (this.commonJS.isNotEmpty(this.bus)) {
|
|
|
- this.init('view', this.bus)
|
|
|
+ if (this.commonJS.isNotEmpty(this.bus) && this.commonJS.isNotEmpty(this.pdKey)) {
|
|
|
+ this.init('view', this.bus, this.pdKey)
|
|
|
} else {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.inputForm.resetFields()
|
|
@@ -309,7 +321,7 @@
|
|
|
getKeyWatch (keyWatch) {
|
|
|
this.keyWatch = keyWatch
|
|
|
},
|
|
|
- init (method, id) {
|
|
|
+ init (method, id, processDefKey) {
|
|
|
this.method = method
|
|
|
// this.title = this.$route.query.title
|
|
|
this.inputForm = {
|
|
@@ -343,7 +355,7 @@
|
|
|
this.$nextTick(() => {
|
|
|
this.loading = true
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
- this.reimbursementService.getReimbursementById(this.inputForm.id).then(({data}) => {
|
|
|
+ this.reimbursementService.getReimbursementById(this.inputForm.id, processDefKey).then(({data}) => {
|
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
@@ -996,7 +1008,7 @@
|
|
|
// 同意
|
|
|
agree (backPath) {
|
|
|
this.loading = true
|
|
|
- this.reimbursementService.reimAudit(this.businessId, 'yes', this.comment).then(({data}) => {
|
|
|
+ this.reimbursementService.reimAudit(this.businessId, 'yes', this.comment, this.pdKey).then(({data}) => {
|
|
|
if (data.success) {
|
|
|
this.$message.success(data.message)
|
|
|
this.closeBack(backPath)
|
|
@@ -1016,7 +1028,7 @@
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.loading = true
|
|
|
- this.reimbursementService.reimAudit(this.businessId, 'no', this.comment).then(({data}) => {
|
|
|
+ this.reimbursementService.reimAudit(this.businessId, 'no', this.comment, this.pdKey).then(({data}) => {
|
|
|
if (data.success) {
|
|
|
this.$message.success(data.message)
|
|
|
this.closeBack(backPath)
|