3f535f30
杨鑫
'初始'
|
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
201
202
203
|
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
<div class="zhuti">
<div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>交易联机</span> <span style="padding:0 5px;">></span> <span
style="color:#000000e6">商户静态二维码</span></div>
</div>
<div>
<!-- 表格 -->
<div class="tableBox">
<el-table
ref="multipleTable"
:data="tableData"
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
tooltip-effect="dark"
>
<el-table-column
label="店铺名称"
min-width="220"
>
<template slot-scope="scope">{{ scope.row.shopName }}</template>
</el-table-column>
<el-table-column
prop="shopCode"
label="店铺编码"
min-width="200"
/>
<el-table-column
prop="chargePersonName"
label="负责人"
min-width="200"
/>
<el-table-column
prop="chargePersonPhone"
label="联系电话"
min-width="200"
/>
<el-table-column label="合同状态" width="120">
<template slot-scope="scope">
<span v-if="scope.row.contractState === 0">无效</span>
<span v-if="scope.row.contractState === 1">有效</span>
</template>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="200"
/>
<el-table-column
label="操作"
show-overflow-tooltip
min-width="250"
>
<template slot-scope="scope">
<div class="tableBtn greens" @click="seeMore(scope.row)">
商户静态二维码
</div>
<!-- <a href="http://116.169.61.30:32019/2023-zfjr/20241101/1730452040529-merchantQrCode.png" class="tableBtn greens" target="_blank">商户静态二维码</a> -->
</template>
</el-table-column>
</el-table>
<div class="fenye">
<el-pagination
:current-page="currentPage"
background
small
:page-sizes="[10, 20, 50, 100]"
:page-size="10"
layout="total, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
</div>
</div>
</div>
</div>
<el-dialog :visible.sync="showQF" custom-class='tongyong_css' style="padding: 0;" width="25%" center
:close-on-click-modal="false" :show-close="false">
<div style="padding:20px;">
<div style="font-size: 14px;padding-bottom: 20px;color: #000;">商户静态二维码</div>
<div style="padding:20px;">
<img :src="qfUrl" alt="" style="height:330px;width:80%">
</div>
<!-- <div>
<el-tabs v-model="xiangTabs">
<el-tab-pane label="微信" name="first">
<div style="width: 100%">
<img src="" alt="">
</div>
</el-tab-pane>
<el-tab-pane label="支付宝" name="second">
<div style="width: 100%">
<img src="" alt="">
</div>
</el-tab-pane>
<el-tab-pane label="聚合" name="there">
<div style="width: 100%">
<img src="" alt="">
</div>
</el-tab-pane>
<el-tab-pane label="其他" name="four">
<div style="width: 100%">
<img src="" alt="">
</div>
</el-tab-pane>
</el-tabs>
</div> -->
<div style="padding-top:20px;display:flex;justify-content: flex-end;">
<el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"
@click="showQF =false">返回</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import {
businessListGetAll,
businessListSave,
businessListGetById,
businessListUpdate,
businessListStart,
delBusinessById
} from '@/api/business'
import {MerchantQRcode} from '../../../api/online.js'
export default {
name: 'atmosphereGl',
data () {
return {
rules: {},
currentPage: 1,
total: 100,
flag: false,
pageSize: 10,
ggXin: false,
index:1,
tableData: [],
formInline: {
shopName: '', // 店铺名称
shopCode: '', // 店铺编码
chargePersonName: '', // 店铺负责人
contractState: '', // 合同状态 1-有效 0-无效
page: '1', // 当前页
pageSize: '10' // 每页记录数
},
showQF:false,
xiangTabs:'first',
qfUrl:''
}
},
computed: {},
mounted () {
this.getAll(this.formInline)
// this.privacyTime = localStorage.getItem('privacyTime')
// console.log(this.privacyTime)
// this.getZiyuan()
},
methods: {
async getAll (formInline) {
const res = await businessListGetAll(formInline)
this.total = res.data.total
this.tableData = res.data.list
},
onSubmit(){
},
handleSizeChange(){
},
handleCurrentChange(){
},
seeMore(item){
MerchantQRcode({appCode:'ACDWL20240528003',id:'9E602E5977EC48DEA06D42C67F4C93F0'}).then(res=>{
this.qfUrl = res.data
})
this.showQF = true
},
}
}
</script>
<style scoped >
.zhuti {
padding: 0 20px 20px 20px;
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
position: relative;
}
/deep/ .el-form-item__content {
line-height: 0;
}
|