ruleTable.vue
6.27 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<template>
<div class="content_body">
<div ref="maxHBox" class="max_widget">
<div class="table_one">
<p class="h7_title">商户名:{{ merchantInfo.name }}</p>
<div class="title_text">
<p v-if="settle.deductChargeFlag == 'Y'" class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag == 'N'" class="h7_title">分润计算:不扣除手续费</p>
<p class="min_text">仅针对POS机收款订单</p>
</div>
</div>
<div class="table_two">
<div class="table_th h7_title">分账品类</div>
<div class="table_th h7_title">分账模式</div>
<div class="table_th h7_title">分润比例</div>
</div>
<div class="table_three">
<div class="table_th h7_title">全部(除特殊分账品类)</div>
<div class="table_th h7_title">{{ settle.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">{{ settle.merchantProfitValue }}%</div>
</div>
<template v-if="settle.goodsTypeSettleRuleList.length">
<div v-for="(item, index) in settle.goodsTypeSettleRuleList" :key="index" class="table_three">
<div class="table_th h7_title">
<span>特殊分账品类:</span>
{{ item.goodsTypeName }}
</div>
<div class="table_th h7_title">{{ item.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">{{ item.merchantProfitValue }}%</div>
</div>
</template>
<div class="table_four flex_scb">
<div class="h9_title">
<span>是否自动打款:</span>
<span>{{ division.autoFlag == 'Y' ? '是' : '否' }}</span>
</div>
<div class="h9_title">
<span v-if="division.settleTimeType == 1">分账周期:T+{{ division.settleTime || '1' }}</span>
<span v-if="division.settleTimeType == 2">分账周期:每月{{ division.settleTime }}号</span>
<span v-if="division.settleTimeType == 1" class="min_text">(分账后第2天到对公账户)</span>
</div>
</div>
<div class="table_four flex_scb">
<div class="h9_title">
<span>您的分账金额包含:{{division.inCludeStr}}</span>
<!-- <span v-if="division.shopProfitDivisionFlag == 3">导流方分账金额,</span>
<span v-if="division.partnerProfitDivisionFlag == 3">服务商分账金额,</span>
<span v-if="division.goodsCostDivisionFlag == 3">产品金额,</span>
<span v-if="division.extraCostDivisionFlag == 3">额外成本,</span> -->
</div>
</div>
<div class="table_four flex_scb border_all">
<div class="h9_title">
<span v-if="division.inCludeStr!='无'">收款账户:{{ division.realityShopMerchantName || '无'}}</span>
<span v-if="division.inCludeStr=='无'">收款账户:无</span>
</div>
</div>
</div>
<div class="min_widget">
<div class="title h7_title">对公账户信息</div>
<div v-if="bankData&&division.inCludeStr!='无'" class="info_widget">
<span class="h9_title">开户账户户行:{{ bankData.bankName || '无'}}</span>
<span class="h9_title">开户支行:{{ bankData.openAccBankName || '无'}}</span>
<span class="h9_title">账户号:{{ bankData.bankAccountNo || '无'}}</span>
<span class="h9_title">账户名称:{{ bankData.bankAccountName || '无'}}</span>
</div>
<div v-if="division.inCludeStr=='无'" class="info_widget">
<span class="h9_title">开户账户户行:无</span>
<span class="h9_title">开户支行:无</span>
<span class="h9_title">账户号:无</span>
<span class="h9_title">账户名称:无</span>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
merchantInfo: {
name: '',
merchantId: 0
}
}
},
props: {
bankData: Object,
division: Object,
settle: Object
},
mounted() {
const { session } = this.$globalState
this.merchantInfo = {
name: session.merchantName,
merchantId: session.session
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.content_body {
display: flex;
justify-content: space-between;
.max_widget {
width: calc(100% - 270px);
// min-height: 389px;
.table_one {
width: 100%;
height: 54px;
background: #f4f6fc;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 34px 0 15px;
.title_text {
display: flex;
flex-direction: column;
align-items: center;
.min_text {
font-size: 12px;
color: #999;
margin-top: 10px;
}
}
}
.table_two,
.table_three {
width: 100%;
height: 54px;
background: #f4f6fc;
display: flex;
.table_th {
width: 33.33%;
text-align: center;
line-height: 54px;
border-right: 1px solid #e8e8ea;
border-top: 1px solid #e8e8ea;
border-left: 1px solid #e8e8ea;
> span {
font-size: 12px;
}
}
}
.table_three {
background: #ffffff;
height: 58px;
.table_th {
line-height: 58px;
}
}
.table_four {
height: 58px;
width: 100%;
box-sizing: border-box;
padding: 0 20px;
border-right: 1px solid #e8e8ea;
border-top: 1px solid #e8e8ea;
border-left: 1px solid #e8e8ea;
.min_text {
color: #999999;
font-size: 12px;
margin-left: 10px;
}
}
.border_all {
border: 1px solid #e8e8ea;
}
}
.min_widget {
width: 260px;
// min-height: 393px;
border: 2px solid #e8e8ea;
.title {
width: 100%;
text-align: center;
height: 54px;
line-height: 54px;
background: #f4f6fc;
}
.info_widget {
box-sizing: border-box;
padding: 21px 11px;
display: flex;
flex-direction: column;
> span {
margin-bottom: 20px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap !important;
}
}
}
}
</style>