|
@@ -103,6 +103,18 @@
|
|
</el-form>
|
|
</el-form>
|
|
<!-- 附件 -->
|
|
<!-- 附件 -->
|
|
<UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
<UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
|
|
+
|
|
|
|
+ <el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
|
+ 审批意见
|
|
|
|
+ </el-divider>
|
|
|
|
+ <el-input v-model="comment"
|
|
|
|
+ type="textarea"
|
|
|
|
+ :rows="6"
|
|
|
|
+ maxlength="500"
|
|
|
|
+ placeholder="请输入审批意见:"
|
|
|
|
+ show-word-limit>
|
|
|
|
+ </el-input>
|
|
|
|
+
|
|
<!--审批流程-->
|
|
<!--审批流程-->
|
|
<FlowHisTableCcpm ref="flowHisTableCcpm"></FlowHisTableCcpm>
|
|
<FlowHisTableCcpm ref="flowHisTableCcpm"></FlowHisTableCcpm>
|
|
|
|
|
|
@@ -215,7 +227,8 @@
|
|
},
|
|
},
|
|
keyWatch: '',
|
|
keyWatch: '',
|
|
amountKey: '',
|
|
amountKey: '',
|
|
- flowHisKey: ''
|
|
|
|
|
|
+ flowHisKey: '',
|
|
|
|
+ comment: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
reimbursementApprovalTypeService: null,
|
|
reimbursementApprovalTypeService: null,
|
|
@@ -323,6 +336,7 @@
|
|
histoicFlowList: [],
|
|
histoicFlowList: [],
|
|
flowChart: []
|
|
flowChart: []
|
|
}
|
|
}
|
|
|
|
+ this.comment = ''
|
|
this.inputForm.id = id
|
|
this.inputForm.id = id
|
|
this.visible = true
|
|
this.visible = true
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -373,6 +387,7 @@
|
|
histoicFlowList: [],
|
|
histoicFlowList: [],
|
|
flowChart: []
|
|
flowChart: []
|
|
}
|
|
}
|
|
|
|
+ this.comment = ''
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.uploadComponent.clearUpload()
|
|
this.$refs.uploadComponent.clearUpload()
|
|
this.visible = false
|
|
this.visible = false
|
|
@@ -979,11 +994,12 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 同意
|
|
// 同意
|
|
- agree () {
|
|
|
|
|
|
+ agree (backPath) {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.reimbursementService.reimAudit(this.businessId, 'yes').then(({data}) => {
|
|
|
|
|
|
+ this.reimbursementService.reimAudit(this.businessId, 'yes', this.comment).then(({data}) => {
|
|
if (data.success) {
|
|
if (data.success) {
|
|
this.$message.success(data.message)
|
|
this.$message.success(data.message)
|
|
|
|
+ this.closeBack(backPath)
|
|
} else {
|
|
} else {
|
|
this.$message.error(data.message)
|
|
this.$message.error(data.message)
|
|
}
|
|
}
|
|
@@ -993,16 +1009,17 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 驳回
|
|
// 驳回
|
|
- reject () {
|
|
|
|
|
|
+ reject (backPath) {
|
|
this.$confirm(`确定驳回此报销申请吗?`, '提示', {
|
|
this.$confirm(`确定驳回此报销申请吗?`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.reimbursementService.reimAudit(this.businessId, 'no').then(({data}) => {
|
|
|
|
|
|
+ this.reimbursementService.reimAudit(this.businessId, 'no', this.comment).then(({data}) => {
|
|
if (data.success) {
|
|
if (data.success) {
|
|
this.$message.success(data.message)
|
|
this.$message.success(data.message)
|
|
|
|
+ this.closeBack(backPath)
|
|
} else {
|
|
} else {
|
|
this.$message.error(data.message)
|
|
this.$message.error(data.message)
|
|
}
|
|
}
|
|
@@ -1011,6 +1028,15 @@
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ closeBack (backPath) {
|
|
|
|
+ this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
|
|
|
|
+ if (backPath) {
|
|
|
|
+ this.$router.push(backPath)
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push('/sys/dashboard/workBench/Pending')
|
|
|
|
+ }
|
|
|
|
+ this.close()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|