Commit e19c9d08 authored by caimeng's avatar caimeng

修改审批

parent 8412a4b6
This diff is collapsed.
<template> <template>
<div v-if='detail!==null' class='page'> <div v-if='detail!==null' class='page'>
<!--用户基础信息--> <!--用户基础信息-->
<template v-if='detail.clientDetail!==null'> <template v-if='detail.clientDetail!==null'>
<user-base-info :base-info='detail.clientDetail' /> <user-base-info :base-info='detail.clientDetail' />
...@@ -27,6 +26,8 @@ ...@@ -27,6 +26,8 @@
<pre-plead /> <pre-plead />
</template> </template>
<!-- 审批操作 -->
<Approval :item='item' />
</div> </div>
</template> </template>
...@@ -38,6 +39,11 @@ ...@@ -38,6 +39,11 @@
name: 'ApprovalDetail', name: 'ApprovalDetail',
data() { data() {
return { return {
// 审批相关
visible: false,
item: null,
creditNo: '', creditNo: '',
detail: null detail: null
} }
...@@ -46,7 +52,6 @@ ...@@ -46,7 +52,6 @@
const { query } = this.$route const { query } = this.$route
if (query && query.creditNo) { if (query && query.creditNo) {
this.creditNo = query.creditNo this.creditNo = query.creditNo
await this.init() await this.init()
} }
}, },
...@@ -56,9 +61,15 @@ ...@@ -56,9 +61,15 @@
const result = await API.initApproveDetail({ const result = await API.initApproveDetail({
creditNo creditNo
}) })
this.detail = result.result; this.detail = result.result
// 判断是否有审批
if (this.$route.query && this.$route.query.approval) {
this.visible = true
this.item = result.result
}
console.log('审批详情',this.detail) console.log('审批详情', this.detail)
} }
} }
} }
......
...@@ -159,17 +159,6 @@ ...@@ -159,17 +159,6 @@
/> />
</template> </template>
<!--审批-->
<template v-if='ApprovalVisible'>
<Approval
:dialog-visible='ApprovalVisible'
:item='ApprovalItem'
@handleClose='()=>{
this.ApprovalVisible = false;
this.fetchData()
}'
@callback='fetchData' />
</template>
</div> </div>
</template> </template>
...@@ -195,11 +184,7 @@ ...@@ -195,11 +184,7 @@
item: null, item: null,
// 审批相关 checkList: ['授信编号', '客户信息', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '审批状态', '申请时间'],
ApprovalVisible: false,
ApprovalItem: null,
checkList: ['授信编号', '客户信息', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '审批状态', '申请时间'],
columns: [ columns: [
{ {
order: 1, order: 1,
...@@ -289,7 +274,7 @@ ...@@ -289,7 +274,7 @@
if (result.success) { if (result.success) {
console.log(result, '当前的用户状态') console.log(result, '当前的用户状态')
const { userDutyState } = result.result const { userDutyState } = result.result
this.isOnLine = userDutyState === 'ONLINE'; this.isOnLine = userDutyState === 'ONLINE'
} }
}, },
onSearch() { onSearch() {
...@@ -345,8 +330,14 @@ ...@@ -345,8 +330,14 @@
}, },
// 审批 // 审批
handleApproval(row) { handleApproval(row) {
this.ApprovalItem = row const { creditNo } = row
this.ApprovalVisible = true this.$router.push({
path: '/approval/detail',
query: {
creditNo,
approval: 'approval'
}
})
}, },
// 转派 // 转派
handleReassignment(row) { handleReassignment(row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment