审核驳回带入审批信息
This commit is contained in:
parent
c2114f9122
commit
96116f4c87
|
|
@ -76,6 +76,10 @@ import store from '@/store'
|
|||
|
||||
export default {
|
||||
props: {
|
||||
auditReason: {
|
||||
type: Array,
|
||||
default: []
|
||||
},
|
||||
showType: Number,// 1 展示审批意见 2 展示填写按钮
|
||||
isExamine: false,// 是否为审批页面 true 是 展示审核按钮 false 否
|
||||
btnShow: false,// 是否审核按钮
|
||||
|
|
@ -204,6 +208,21 @@ export default {
|
|||
},
|
||||
//驳回
|
||||
turnDownBtn() {
|
||||
console.log("333auditType==="+JSON.stringify(this.auditReason))
|
||||
console.log("333auditType==="+this.auditReason.toString())
|
||||
let reason = ''
|
||||
if (this.auditReason && this.auditReason.length > 0){
|
||||
this.auditReason.forEach(item => {
|
||||
if (item.reason === '' || item.reason === null || item.reason === undefined){
|
||||
}else{
|
||||
reason += item.reason + ";"
|
||||
}
|
||||
})
|
||||
reason = reason.substring(0, reason.length - 1)
|
||||
}else{
|
||||
reason = this.reason
|
||||
}
|
||||
this.form.turnDownReason =reason
|
||||
this.dialogVisible = true
|
||||
},
|
||||
submitForm(){
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@
|
|||
<bns-timeline-tabs
|
||||
:is-examine="paramsData.isExamine" :btn-show="paramsData.btnShow" :show-type="paramsData.showType"
|
||||
:final-check="paramsData.finalCheck" :items="approvalItems[4]" :audit-type="'审批信息'"
|
||||
:audit-reason="reasonObj"
|
||||
v-on:reason="getReason"
|
||||
v-on:pass="approvalPass"
|
||||
v-on:turnDown="approvalTurnDown"
|
||||
|
|
|
|||
|
|
@ -375,6 +375,7 @@
|
|||
<bns-timeline-tabs :is-examine="paramsData.isExamine" :btn-show="paramsData.btnShow"
|
||||
:show-type="paramsData.showType" :final-check="paramsData.finalCheck"
|
||||
:items="approvalItems[4]" :audit-type="'审批信息'"
|
||||
:audit-reason="reasonObj"
|
||||
v-on:reason="getReason"
|
||||
v-on:pass="approvalPass"
|
||||
v-on:turnDown="approvalTurnDown"
|
||||
|
|
|
|||
Loading…
Reference in New Issue