sale-client 4.2.21 → 4.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dev-server.js +52 -32
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +2 -0
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
- package/src/filiale/ronghao/PaymentCode.vue +174 -174
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +2217 -2217
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
|
@@ -1,293 +1,293 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div @keyup.enter="search" class="flex-auto" style="flex:1;">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
|
|
5
|
-
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
|
-
<div class="row">
|
|
7
|
-
<res-select-group :style="$parent.$parent.style" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
|
|
8
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
9
|
-
<label class="font_normal_body">用户编号</label>
|
|
10
|
-
<input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%"
|
|
11
|
-
style="width: 90px"
|
|
12
|
-
type="text" v-model="model.ename"
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
16
|
-
v-if="!$parent.$parent.$parent.isdetail">
|
|
17
|
-
<label class="font_normal_body">用户姓名</label>
|
|
18
|
-
<input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" style="width: 90px"
|
|
19
|
-
type="text" v-model="model.name"
|
|
20
|
-
/>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
23
|
-
v-if="!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail">
|
|
24
|
-
<label class="font_normal_body">电  话</label>
|
|
25
|
-
<input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
|
|
26
|
-
type="text"
|
|
27
|
-
v-model="model.f_user_phone">
|
|
28
|
-
</div>
|
|
29
|
-
<div class="form-group col-sm-3 button-range" style="padding-right: 10px">
|
|
30
|
-
<import-excel v-if="$parent.$parent.blackImport === '黑名单导入'" template-name="黑名单用户导入模板" logic-name="BlackListImport" import-json="blacklist.json"></import-excel>
|
|
31
|
-
<button @click="$parent.$parent.search()" class="button_search button_spacing" style="width:80px;margin-left:30px;" v-el:cx>查询</button>
|
|
32
|
-
<button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
|
|
33
|
-
v-el:cx>新增限购用户
|
|
34
|
-
</button>
|
|
35
|
-
<export-excel
|
|
36
|
-
:data="$parent.$parent.getCondition"
|
|
37
|
-
:field="$parent.$parent.getfield"
|
|
38
|
-
sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="sale_getBlackList" template-name='黑名单导出'
|
|
39
|
-
:choose-col="true">
|
|
40
|
-
</export-excel>
|
|
41
|
-
<div
|
|
42
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
43
|
-
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
47
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
48
|
-
v-if="$parent.$parent.$parent.isdetail">
|
|
49
|
-
<label class="font_normal_body">用户姓名</label>
|
|
50
|
-
<input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" style="width: 90px"
|
|
51
|
-
type="text" v-model="model.name"
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
57
|
-
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
58
|
-
<label class="font_normal_body">表  号</label>
|
|
59
|
-
<input :size="model.f_meternumber ? model.f_meternumber.length * 2 : 4" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' style="width:60%"
|
|
60
|
-
type="text"
|
|
61
|
-
v-model="model.f_meternumber">
|
|
62
|
-
</div>
|
|
63
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
64
|
-
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
65
|
-
<label class="font_normal_body">卡  号</label>
|
|
66
|
-
<input :size="model.f_card_id ? model.f_card_id.length * 2 : 4" class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%"
|
|
67
|
-
type="text"
|
|
68
|
-
v-model="model.f_card_id">
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
73
|
-
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
74
|
-
<label class="font_normal_body">地  址</label>
|
|
75
|
-
<input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
|
|
76
|
-
type="text"
|
|
77
|
-
v-model="model.f_address">
|
|
78
|
-
</div>
|
|
79
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
80
|
-
v-if="!(!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail)">
|
|
81
|
-
<label class="font_normal_body">电  话</label>
|
|
82
|
-
<input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
|
|
83
|
-
type="text"
|
|
84
|
-
v-model="model.f_user_phone">
|
|
85
|
-
</div>
|
|
86
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
87
|
-
v-if="!(!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail)">
|
|
88
|
-
<label class="font_normal_body">地  址</label>
|
|
89
|
-
<input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
|
|
90
|
-
type="text"
|
|
91
|
-
v-model="model.f_address">
|
|
92
|
-
</div>
|
|
93
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
94
|
-
<label class="font_normal_body">安检日期</label>
|
|
95
|
-
<datepicker placeholder="开始日期"
|
|
96
|
-
style="width:60%"
|
|
97
|
-
class="datepicker"
|
|
98
|
-
v-model="model.f_last_check_date"
|
|
99
|
-
:value.sync="model.f_last_check_date"
|
|
100
|
-
:format="'yyyy-MM-dd'"
|
|
101
|
-
condition="f_last_check_date >= '{} 00:00:00'"
|
|
102
|
-
></datepicker>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
105
|
-
<label class="font_normal_body">限购日期</label>
|
|
106
|
-
<datepicker placeholder="开始日期"
|
|
107
|
-
style="width:60%"
|
|
108
|
-
class="datepicker"
|
|
109
|
-
v-model="model.f_parameter_value"
|
|
110
|
-
:value.sync="model.f_parameter_value"
|
|
111
|
-
:format="'yyyy-MM-dd'"
|
|
112
|
-
condition="f_parameter_value >= '{} 00:00:00'"
|
|
113
|
-
></datepicker>
|
|
114
|
-
</div>
|
|
115
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
116
|
-
<label class="font_normal_body">操 作 人</label>
|
|
117
|
-
<input :size="model.f_operator ? model.f_operator.length * 2 : 4" class="input_search" condition="f_operator like '%{}%'" placeholder='操作人' style="width:60%"
|
|
118
|
-
type="text"
|
|
119
|
-
v-model="model.f_operator">
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
</div>
|
|
124
|
-
</criteria>
|
|
125
|
-
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
126
|
-
<template partial='head'>
|
|
127
|
-
<tr>
|
|
128
|
-
<th style="text-align: center; ">序号</th>
|
|
129
|
-
<th style="text-align: center;">用户编号</th>
|
|
130
|
-
<th style="text-align: center;">姓名</th>
|
|
131
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>表号</th>
|
|
132
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>卡号</th>
|
|
133
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>电话</th>
|
|
134
|
-
<th style="text-align: center;">地址</th>
|
|
135
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>安检日期</th>
|
|
136
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购日期</th>
|
|
137
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>操作人</th>
|
|
138
|
-
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购原因</th>
|
|
139
|
-
</tr>
|
|
140
|
-
</template>
|
|
141
|
-
<template partial='body'>
|
|
142
|
-
|
|
143
|
-
<td style="text-align: center;">{{$index+1}}</td>
|
|
144
|
-
<td style="text-align: center;">{{row.f_userinfo_code}}</td>
|
|
145
|
-
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
146
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_meternumber}}</td>
|
|
147
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_card_id}}</td>
|
|
148
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_user_phone}}</td>
|
|
149
|
-
<td style="text-align: center;">{{row.f_address}}</td>
|
|
150
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_last_check_date}}</td>
|
|
151
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_parameter_value}}</td>
|
|
152
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_operator}}</td>
|
|
153
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_comments}}</td>
|
|
154
|
-
</template>
|
|
155
|
-
<template partial='foot'></template>
|
|
156
|
-
</data-grid>
|
|
157
|
-
</criteria-paged>
|
|
158
|
-
<modal :show.sync="selectShow" title="选择用户" v-ref:modal width="70%" backdrop="false">
|
|
159
|
-
<article slot="modal-body" class="modal-body">
|
|
160
|
-
<black-user-select
|
|
161
|
-
v-if="selectShow"
|
|
162
|
-
@select-changed="selected"
|
|
163
|
-
></black-user-select>
|
|
164
|
-
</article>
|
|
165
|
-
<footer slot="modal-footer">
|
|
166
|
-
</footer>
|
|
167
|
-
</modal>
|
|
168
|
-
</div>
|
|
169
|
-
</template>
|
|
170
|
-
|
|
171
|
-
<script>
|
|
172
|
-
import {PagedList} from 'vue-client'
|
|
173
|
-
import Vue from 'vue'
|
|
174
|
-
|
|
175
|
-
export default {
|
|
176
|
-
data () {
|
|
177
|
-
return {
|
|
178
|
-
initres: {
|
|
179
|
-
org: [this.$login.f.orgid],
|
|
180
|
-
dep: [],
|
|
181
|
-
user: []
|
|
182
|
-
},
|
|
183
|
-
criteriaShow: false,
|
|
184
|
-
selectShow: false,
|
|
185
|
-
blackImport: '',
|
|
186
|
-
model: new PagedList('api/af-revenue/sql/sale_getBlackList', 20),
|
|
187
|
-
// 公司下拉
|
|
188
|
-
curorgid: [this.$login.f.orgid],
|
|
189
|
-
f_orgid: '',
|
|
190
|
-
getfield: {
|
|
191
|
-
'f_userinfo_code': '用户编号',
|
|
192
|
-
'f_user_name': '姓名',
|
|
193
|
-
'f_meternumber': '表号',
|
|
194
|
-
'f_card_id': '卡号',
|
|
195
|
-
'f_user_phone': '电话',
|
|
196
|
-
'f_address': '地址',
|
|
197
|
-
'f_last_check_date': '安检日期',
|
|
198
|
-
'f_parameter_value': '限购日期',
|
|
199
|
-
'f_comments': '限购原因'
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
props: {
|
|
204
|
-
style: {
|
|
205
|
-
type: String,
|
|
206
|
-
default: 'form-group col-sm-2'
|
|
207
|
-
},
|
|
208
|
-
row: {},
|
|
209
|
-
ispartial: false
|
|
210
|
-
},
|
|
211
|
-
ready () {
|
|
212
|
-
this.getAuthority()
|
|
213
|
-
this.search()
|
|
214
|
-
},
|
|
215
|
-
methods: {
|
|
216
|
-
selected (row) {
|
|
217
|
-
console.log(row)
|
|
218
|
-
this.selectShow = false
|
|
219
|
-
this.$dispatch('select-changed', row)
|
|
220
|
-
},
|
|
221
|
-
getAuthority () {
|
|
222
|
-
if (this.$login.r.find(value => value == '黑名单导入')) {
|
|
223
|
-
this.blackImport = '黑名单导入'
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
async getRes (condition, obj) {
|
|
227
|
-
console.log('condition =', condition)
|
|
228
|
-
console.log('obj =', obj)
|
|
229
|
-
|
|
230
|
-
// //更新抄表册
|
|
231
|
-
// this.meterbooks = [{label: '全部',value: ''}];
|
|
232
|
-
// if(this.lastorgstr != condition){
|
|
233
|
-
// this.tempfalg = true;
|
|
234
|
-
// this.lastorgstr = condition;
|
|
235
|
-
// }
|
|
236
|
-
// if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
|
|
237
|
-
// this.tempfalg = false;
|
|
238
|
-
// let a = condition.substring(condition.indexOf("(")+2)
|
|
239
|
-
// }
|
|
240
|
-
// this.orgCondtionStr = condition
|
|
241
|
-
},
|
|
242
|
-
hidden () {
|
|
243
|
-
this.criteriaShow = !this.criteriaShow
|
|
244
|
-
},
|
|
245
|
-
search () {
|
|
246
|
-
this.$refs.paged.$refs.cri.search()
|
|
247
|
-
this.$dispatch('search')
|
|
248
|
-
},
|
|
249
|
-
getorg (val) {
|
|
250
|
-
this.f_orgid = val
|
|
251
|
-
},
|
|
252
|
-
selfSearch (args) {
|
|
253
|
-
if (!this.f_orgid) {
|
|
254
|
-
this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
|
|
255
|
-
}
|
|
256
|
-
console.log('查询。。。', this.f_orgid)
|
|
257
|
-
if (this.f_orgid) {
|
|
258
|
-
// args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
|
|
259
|
-
args.condition = `${args.condition} ${this.f_orgid} `
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
this.model.search(args.condition, args.model)
|
|
263
|
-
},
|
|
264
|
-
add () {
|
|
265
|
-
if (!this.$login.r.find(value => value == '新增黑名单')) {
|
|
266
|
-
this.$showMessage('你没有新增黑名单的权限,请联系管理员!')
|
|
267
|
-
return
|
|
268
|
-
}
|
|
269
|
-
this.style = 'col-sm-3'
|
|
270
|
-
// this.$dispatch('add')
|
|
271
|
-
this.selectShow = true
|
|
272
|
-
this.$parent.isdetail = false
|
|
273
|
-
},
|
|
274
|
-
dblclick (val) {
|
|
275
|
-
console.log(val)
|
|
276
|
-
this.$emit('dblclick', val)
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
},
|
|
280
|
-
watch: {
|
|
281
|
-
'model.rows.length' (val) {
|
|
282
|
-
if (val === 1) {
|
|
283
|
-
this.$refs.paged.$refs.grid.select(this.model.rows[0])
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
computed: {
|
|
288
|
-
getCondition () {
|
|
289
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div @keyup.enter="search" class="flex-auto" style="flex:1;">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
|
|
5
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<res-select-group :style="$parent.$parent.style" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
|
|
8
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
9
|
+
<label class="font_normal_body">用户编号</label>
|
|
10
|
+
<input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%"
|
|
11
|
+
style="width: 90px"
|
|
12
|
+
type="text" v-model="model.ename"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
16
|
+
v-if="!$parent.$parent.$parent.isdetail">
|
|
17
|
+
<label class="font_normal_body">用户姓名</label>
|
|
18
|
+
<input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" style="width: 90px"
|
|
19
|
+
type="text" v-model="model.name"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
23
|
+
v-if="!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail">
|
|
24
|
+
<label class="font_normal_body">电  话</label>
|
|
25
|
+
<input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
|
|
26
|
+
type="text"
|
|
27
|
+
v-model="model.f_user_phone">
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group col-sm-3 button-range" style="padding-right: 10px">
|
|
30
|
+
<import-excel v-if="$parent.$parent.blackImport === '黑名单导入'" template-name="黑名单用户导入模板" logic-name="BlackListImport" import-json="blacklist.json"></import-excel>
|
|
31
|
+
<button @click="$parent.$parent.search()" class="button_search button_spacing" style="width:80px;margin-left:30px;" v-el:cx>查询</button>
|
|
32
|
+
<button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
|
|
33
|
+
v-el:cx>新增限购用户
|
|
34
|
+
</button>
|
|
35
|
+
<export-excel
|
|
36
|
+
:data="$parent.$parent.getCondition"
|
|
37
|
+
:field="$parent.$parent.getfield"
|
|
38
|
+
sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="sale_getBlackList" template-name='黑名单导出'
|
|
39
|
+
:choose-col="true">
|
|
40
|
+
</export-excel>
|
|
41
|
+
<div
|
|
42
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
43
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
47
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
48
|
+
v-if="$parent.$parent.$parent.isdetail">
|
|
49
|
+
<label class="font_normal_body">用户姓名</label>
|
|
50
|
+
<input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" style="width: 90px"
|
|
51
|
+
type="text" v-model="model.name"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
57
|
+
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
58
|
+
<label class="font_normal_body">表  号</label>
|
|
59
|
+
<input :size="model.f_meternumber ? model.f_meternumber.length * 2 : 4" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' style="width:60%"
|
|
60
|
+
type="text"
|
|
61
|
+
v-model="model.f_meternumber">
|
|
62
|
+
</div>
|
|
63
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
64
|
+
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
65
|
+
<label class="font_normal_body">卡  号</label>
|
|
66
|
+
<input :size="model.f_card_id ? model.f_card_id.length * 2 : 4" class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%"
|
|
67
|
+
type="text"
|
|
68
|
+
v-model="model.f_card_id">
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
73
|
+
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
74
|
+
<label class="font_normal_body">地  址</label>
|
|
75
|
+
<input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
|
|
76
|
+
type="text"
|
|
77
|
+
v-model="model.f_address">
|
|
78
|
+
</div>
|
|
79
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
80
|
+
v-if="!(!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail)">
|
|
81
|
+
<label class="font_normal_body">电  话</label>
|
|
82
|
+
<input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
|
|
83
|
+
type="text"
|
|
84
|
+
v-model="model.f_user_phone">
|
|
85
|
+
</div>
|
|
86
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
87
|
+
v-if="!(!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail)">
|
|
88
|
+
<label class="font_normal_body">地  址</label>
|
|
89
|
+
<input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
|
|
90
|
+
type="text"
|
|
91
|
+
v-model="model.f_address">
|
|
92
|
+
</div>
|
|
93
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
94
|
+
<label class="font_normal_body">安检日期</label>
|
|
95
|
+
<datepicker placeholder="开始日期"
|
|
96
|
+
style="width:60%"
|
|
97
|
+
class="datepicker"
|
|
98
|
+
v-model="model.f_last_check_date"
|
|
99
|
+
:value.sync="model.f_last_check_date"
|
|
100
|
+
:format="'yyyy-MM-dd'"
|
|
101
|
+
condition="f_last_check_date >= '{} 00:00:00'"
|
|
102
|
+
></datepicker>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
105
|
+
<label class="font_normal_body">限购日期</label>
|
|
106
|
+
<datepicker placeholder="开始日期"
|
|
107
|
+
style="width:60%"
|
|
108
|
+
class="datepicker"
|
|
109
|
+
v-model="model.f_parameter_value"
|
|
110
|
+
:value.sync="model.f_parameter_value"
|
|
111
|
+
:format="'yyyy-MM-dd'"
|
|
112
|
+
condition="f_parameter_value >= '{} 00:00:00'"
|
|
113
|
+
></datepicker>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
116
|
+
<label class="font_normal_body">操 作 人</label>
|
|
117
|
+
<input :size="model.f_operator ? model.f_operator.length * 2 : 4" class="input_search" condition="f_operator like '%{}%'" placeholder='操作人' style="width:60%"
|
|
118
|
+
type="text"
|
|
119
|
+
v-model="model.f_operator">
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
</criteria>
|
|
125
|
+
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
126
|
+
<template partial='head'>
|
|
127
|
+
<tr>
|
|
128
|
+
<th style="text-align: center; ">序号</th>
|
|
129
|
+
<th style="text-align: center;">用户编号</th>
|
|
130
|
+
<th style="text-align: center;">姓名</th>
|
|
131
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>表号</th>
|
|
132
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>卡号</th>
|
|
133
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>电话</th>
|
|
134
|
+
<th style="text-align: center;">地址</th>
|
|
135
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>安检日期</th>
|
|
136
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购日期</th>
|
|
137
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>操作人</th>
|
|
138
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购原因</th>
|
|
139
|
+
</tr>
|
|
140
|
+
</template>
|
|
141
|
+
<template partial='body'>
|
|
142
|
+
|
|
143
|
+
<td style="text-align: center;">{{$index+1}}</td>
|
|
144
|
+
<td style="text-align: center;">{{row.f_userinfo_code}}</td>
|
|
145
|
+
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
146
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_meternumber}}</td>
|
|
147
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_card_id}}</td>
|
|
148
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_user_phone}}</td>
|
|
149
|
+
<td style="text-align: center;">{{row.f_address}}</td>
|
|
150
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_last_check_date}}</td>
|
|
151
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_parameter_value}}</td>
|
|
152
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_operator}}</td>
|
|
153
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_comments}}</td>
|
|
154
|
+
</template>
|
|
155
|
+
<template partial='foot'></template>
|
|
156
|
+
</data-grid>
|
|
157
|
+
</criteria-paged>
|
|
158
|
+
<modal :show.sync="selectShow" title="选择用户" v-ref:modal width="70%" backdrop="false">
|
|
159
|
+
<article slot="modal-body" class="modal-body">
|
|
160
|
+
<black-user-select
|
|
161
|
+
v-if="selectShow"
|
|
162
|
+
@select-changed="selected"
|
|
163
|
+
></black-user-select>
|
|
164
|
+
</article>
|
|
165
|
+
<footer slot="modal-footer">
|
|
166
|
+
</footer>
|
|
167
|
+
</modal>
|
|
168
|
+
</div>
|
|
169
|
+
</template>
|
|
170
|
+
|
|
171
|
+
<script>
|
|
172
|
+
import {PagedList} from 'vue-client'
|
|
173
|
+
import Vue from 'vue'
|
|
174
|
+
|
|
175
|
+
export default {
|
|
176
|
+
data () {
|
|
177
|
+
return {
|
|
178
|
+
initres: {
|
|
179
|
+
org: [this.$login.f.orgid],
|
|
180
|
+
dep: [],
|
|
181
|
+
user: []
|
|
182
|
+
},
|
|
183
|
+
criteriaShow: false,
|
|
184
|
+
selectShow: false,
|
|
185
|
+
blackImport: '',
|
|
186
|
+
model: new PagedList('api/af-revenue/sql/sale_getBlackList', 20),
|
|
187
|
+
// 公司下拉
|
|
188
|
+
curorgid: [this.$login.f.orgid],
|
|
189
|
+
f_orgid: '',
|
|
190
|
+
getfield: {
|
|
191
|
+
'f_userinfo_code': '用户编号',
|
|
192
|
+
'f_user_name': '姓名',
|
|
193
|
+
'f_meternumber': '表号',
|
|
194
|
+
'f_card_id': '卡号',
|
|
195
|
+
'f_user_phone': '电话',
|
|
196
|
+
'f_address': '地址',
|
|
197
|
+
'f_last_check_date': '安检日期',
|
|
198
|
+
'f_parameter_value': '限购日期',
|
|
199
|
+
'f_comments': '限购原因'
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
props: {
|
|
204
|
+
style: {
|
|
205
|
+
type: String,
|
|
206
|
+
default: 'form-group col-sm-2'
|
|
207
|
+
},
|
|
208
|
+
row: {},
|
|
209
|
+
ispartial: false
|
|
210
|
+
},
|
|
211
|
+
ready () {
|
|
212
|
+
this.getAuthority()
|
|
213
|
+
this.search()
|
|
214
|
+
},
|
|
215
|
+
methods: {
|
|
216
|
+
selected (row) {
|
|
217
|
+
console.log(row)
|
|
218
|
+
this.selectShow = false
|
|
219
|
+
this.$dispatch('select-changed', row)
|
|
220
|
+
},
|
|
221
|
+
getAuthority () {
|
|
222
|
+
if (this.$login.r.find(value => value == '黑名单导入')) {
|
|
223
|
+
this.blackImport = '黑名单导入'
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
async getRes (condition, obj) {
|
|
227
|
+
console.log('condition =', condition)
|
|
228
|
+
console.log('obj =', obj)
|
|
229
|
+
|
|
230
|
+
// //更新抄表册
|
|
231
|
+
// this.meterbooks = [{label: '全部',value: ''}];
|
|
232
|
+
// if(this.lastorgstr != condition){
|
|
233
|
+
// this.tempfalg = true;
|
|
234
|
+
// this.lastorgstr = condition;
|
|
235
|
+
// }
|
|
236
|
+
// if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
|
|
237
|
+
// this.tempfalg = false;
|
|
238
|
+
// let a = condition.substring(condition.indexOf("(")+2)
|
|
239
|
+
// }
|
|
240
|
+
// this.orgCondtionStr = condition
|
|
241
|
+
},
|
|
242
|
+
hidden () {
|
|
243
|
+
this.criteriaShow = !this.criteriaShow
|
|
244
|
+
},
|
|
245
|
+
search () {
|
|
246
|
+
this.$refs.paged.$refs.cri.search()
|
|
247
|
+
this.$dispatch('search')
|
|
248
|
+
},
|
|
249
|
+
getorg (val) {
|
|
250
|
+
this.f_orgid = val
|
|
251
|
+
},
|
|
252
|
+
selfSearch (args) {
|
|
253
|
+
if (!this.f_orgid) {
|
|
254
|
+
this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
|
|
255
|
+
}
|
|
256
|
+
console.log('查询。。。', this.f_orgid)
|
|
257
|
+
if (this.f_orgid) {
|
|
258
|
+
// args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
|
|
259
|
+
args.condition = `${args.condition} ${this.f_orgid} `
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
this.model.search(args.condition, args.model)
|
|
263
|
+
},
|
|
264
|
+
add () {
|
|
265
|
+
if (!this.$login.r.find(value => value == '新增黑名单')) {
|
|
266
|
+
this.$showMessage('你没有新增黑名单的权限,请联系管理员!')
|
|
267
|
+
return
|
|
268
|
+
}
|
|
269
|
+
this.style = 'col-sm-3'
|
|
270
|
+
// this.$dispatch('add')
|
|
271
|
+
this.selectShow = true
|
|
272
|
+
this.$parent.isdetail = false
|
|
273
|
+
},
|
|
274
|
+
dblclick (val) {
|
|
275
|
+
console.log(val)
|
|
276
|
+
this.$emit('dblclick', val)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
},
|
|
280
|
+
watch: {
|
|
281
|
+
'model.rows.length' (val) {
|
|
282
|
+
if (val === 1) {
|
|
283
|
+
this.$refs.paged.$refs.grid.select(this.model.rows[0])
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
computed: {
|
|
288
|
+
getCondition () {
|
|
289
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
</script>
|