[FIX]入司审批-审批列表-字段更正、提交成功页-点击返回跳转到审批列表页、审批结果提交页-显示字段更正;自助入司-入司流程显示页-修改bug

This commit is contained in:
yuweiqi
2020-02-18 18:26:12 +08:00
parent e3dcfa2c09
commit 6142cf02fe
4 changed files with 27 additions and 23 deletions

View File

@@ -27,8 +27,20 @@
</div>
<!-- 审批人审批 -->
<div v-for="(item, index) in approveMapping" :key="index">
<div class="h60 flex relative border-right active" v-if="index == 0">
<i class="w10 h10 radius50 right-circle absolute bottom0"></i>
<div
:class="['h60', 'flex', 'relative', 'border-right', proces.approvalStatus == '01' && proces.ebizExamineApproveDtoList.length == 0 ? '' : 'active']"
v-if="index == 0"
>
<i
:class="[
'w10',
'h10',
'radius50',
'absolute',
'bottom0',
proces.approvalStatus == '01' && proces.ebizExamineApproveDtoList.length == 0 ? 'right-cir' : 'right-circle'
]"
></i>
</div>
<div v-else :class="['h60', 'flex', 'relative', 'border-right', ebizExamineApproveDtoList[index - 1].examineApproveResult == '1' ? 'active' : '']">
<i
@@ -52,7 +64,8 @@
proces.approvalStatus != '02' &&
proces.approvalStatus != '03' &&
proces.approvalStatus != '21' &&
proces.approvalStatus != '04'
proces.approvalStatus != '04' &&
!(proces.approvalStatus == '01' && proces.ebizExamineApproveDtoList.length == 0)
"
class="w60 absolute approval-vag"
:color="
@@ -202,7 +215,9 @@ export default {
that.proces = res.content
console.log(' that.proces', that.ebizExamineApproveDtoList.length)
that.approveMapping = that.proces.approveMapping
that.ebizExamineApproveDtoList = that.proces.ebizExamineApproveDtoList
that.proces.ebizExamineApproveDtoList.map(item => {
that.ebizExamineApproveDtoList.push(item)
})
if (that.approveMapping.length == that.ebizExamineApproveDtoList.length) {
that.approvalFlag = true
}
@@ -230,6 +245,7 @@ export default {
that.ebizExamineApproveDtoList.push({ examineApproveStatus: 0 })
})
}
console.log('proces.ebizExamineApproveDtoList.length ==', this.proces.ebizExamineApproveDtoList.length)
} else {
this.$toast(res.resultMessage)
}
@@ -268,7 +284,7 @@ export default {
})
} else {
let obj = this.proces.ebizExamineApproveDtoList[Number(val)]
this.refusalCause = obj['examineApproveMsg']
this.refusalCause = obj.examineApproveMsg
}
this.$store.commit('updateRefusalCause', this.refusalCause)
this.$jump({

View File

@@ -4,8 +4,8 @@
<van-cell-group v-for="item in approvalInfo" :key="item.examineApproveName" class="fs15">
<van-cell title="审批人" :value="item.examineApproveName" />
<van-cell title="职级" :value="item.examineApproveTitle" />
<van-cell title="所属团队" :value="item.examineApproveTeam" />
<van-cell title="审批结论" :value="item.examineApproveResult" />
<van-cell title="所属团队" :value="item.team" />
<van-cell title="审批结论" :value="item.examineApproveResult == '0' ? '拒绝审批' : '审批通过'" />
<van-cell title="退回原因" :value="item.examineApproveMsg" />
</van-cell-group>
<van-cell-group class="pt10 fs15">
@@ -123,15 +123,6 @@ export default {
result: this.approvalResult, //审批结果 0-拒绝审批 1-通过
msg: this.approvalMsg //审批原因
}
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + `/#/agentEenter/approve/SubmitSuccess`,
// forbidSwipeBack: '1', //1:禁止右滑返回
// backToFirst: '1' //1:点击左上角返回到入口第一个webview
// },
// routerInfo: { path: `/agentEenter/approve/SubmitSuccess` }
// })
console.log('审批结果==', params)
agentAddApproval(params).then(res => {
console.log('res ==', res)

View File

@@ -76,11 +76,7 @@ export default {
message: '加载中……'
})
let data = {
types: ['01'],
userModel: {
//线上去掉
id: 'A864501000001' //审批人工号
}
types: ['01']
}
agentAddApproval(data).then(res => {
this.$toast.clear()
@@ -91,7 +87,7 @@ export default {
this.isSuccess = true
resData.forEach(ele => {
obj = {}
obj.name = ele.createdUser //申请人姓名
obj.name = ele.name //申请人姓名
obj.referName = ele.referName //推荐人姓名
obj.team = ele.team //所属团队
obj.createdDate = ele.createdDate //申请时间

View File

@@ -24,7 +24,8 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/agentEenter/approve/ApproveList`
url: location.origin + `/#/agentEenter/approve/ApproveList`,
backToFirst: '1'
},
routerInfo: {
path: '/agentEenter/approve/ApproveList'