tipsDialog.vue
1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!-- 财务分账测试 -->
<template>
<!-- btn-ok-label="全部下载" -->
<d2-dialog title="提示"
:is-visible="verificationCodeVisible"
class="verificationCode"
width="750px"
btn-ok-label="申请虚拟对公账户"
@closeDialog="handleClose"
@confirmDialog="handleConfirm">
<!-- <div>55</div> -->
<p>分账对象未开通虚拟对公账户,请继续前往申请开通:</p>
<div class="container">
<p v-for="(item,index) in accountValidMerchants"
:key="index">
<span class="label">名称: {{ item.merchantName }} </span>
</p>
</div>
</d2-dialog>
</template>
<script>
// import { sendSms, getAdminInfo } from '@api/merchant'
import { mapActions } from 'vuex'
export default {
name: 'TipsDialog',
props: {
visible: {
// 弹窗是否展示
type: Boolean,
default: false
},
accountValidMerchants: {
type: Array,
default: () => []
}
},
computed: {
verificationCodeVisible: {
// return this.
get() {
return this.visible
},
set(val) {
this.$emit('update:visible', false)
}
}
},
data() {
return {
}
},
mounted() {
},
methods: {
...mapActions({
close: 'd2admin/page/close'
}),
handleClose() {
// this.$emit('dialogClose')
// this.$update
this.verificationCodeVisible = false
},
// handleApply() {
// },
// 跳转虚拟对公账号
handleConfirm() {
this.$router.push({ name: 'accountList_new' })
this.close({ tagName: '/merchantDetail' })
}
}
}
</script>
<style scoped lang="scss">
.container {
padding: 16px 44px;
color: #333333;
background: #f6f8fa;
}
</style>