manage-client 3.3.114 → 3.3.116
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/package.json +1 -1
- package/src/components/sale/businessquery/InspectListUser.vue +226 -20
- package/src/components/sale/config/exportConfig.js +16 -0
- package/src/components/sale/quotaquery/QuotaRecordQuery.vue +504 -0
- package/src/filiale/shanxian/config/exportConfig.js +1 -1
- package/src/filiale/shaoguan/ArrearsQuery.vue +1 -1
- package/src/filiale/shaoguan/ChargeQuery.vue +1 -1
- package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
- package/src/filiale/shaoguan/OtherChargeQuery.vue +1 -1
- package/src/filiale/shaoguan/RecordInfoQuery.vue +1 -1
- package/src/filiale/shaoguan/TransferQuery.vue +1 -1
- package/src/filiale/shaoguan/errorHandplanQuery.vue +1 -1
- package/src/filiale/shaoguan/overDueQuery.vue +1 -1
- package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +1 -1
- package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +1 -1
- package/src/saleManage.js +4 -0
package/package.json
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
<div class="span" style="float:right;">
|
|
48
48
|
<button class="btn button_search" @click="search()">查询</button>
|
|
49
49
|
<button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
|
|
50
|
+
<button class="btn button_clear" @click="$parent.$parent.batchQuota()">批量限购</button>
|
|
50
51
|
<export-excel :data="$parent.$parent.getCondition"
|
|
51
52
|
:field="$parent.$parent.getfield"
|
|
52
53
|
:footer="$parent.$parent.footer"
|
|
@@ -165,13 +166,22 @@
|
|
|
165
166
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
166
167
|
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
167
168
|
</div>
|
|
169
|
+
<div class="col-sm-2 form-group">
|
|
170
|
+
<label class="font_normal_body">是否安检</label>
|
|
171
|
+
<v-select :value.sync="model.f_ischeck"
|
|
172
|
+
:options='$parent.$parent.ischecks'
|
|
173
|
+
placeholder='请选择'
|
|
174
|
+
v-model="model.f_ischeck"
|
|
175
|
+
condition="f_ischeck = '{}'"
|
|
176
|
+
close-on-select></v-select>
|
|
177
|
+
</div>
|
|
168
178
|
|
|
169
179
|
|
|
170
180
|
</div>
|
|
171
181
|
|
|
172
182
|
</div>
|
|
173
183
|
</criteria>
|
|
174
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
184
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
|
|
175
185
|
<template partial='head'>
|
|
176
186
|
<tr>
|
|
177
187
|
<th><nobr>序号</nobr></th>
|
|
@@ -199,6 +209,8 @@
|
|
|
199
209
|
<th v-show="['卡表','物联网表'].includes($parent.$parent.$parent.meter_classify)"><nobr>累计未购气天数</nobr></th>
|
|
200
210
|
<th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>累计未抄表天数</nobr></th>
|
|
201
211
|
<th><nobr>组织机构</nobr></th>
|
|
212
|
+
<th><nobr>安检次数</nobr></th>
|
|
213
|
+
<th><nobr>最后安检时间</nobr></th>
|
|
202
214
|
</tr>
|
|
203
215
|
</template>
|
|
204
216
|
<template partial='body'>
|
|
@@ -209,21 +221,23 @@
|
|
|
209
221
|
<td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
210
222
|
<td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
|
|
211
223
|
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
212
|
-
<
|
|
213
|
-
<
|
|
214
|
-
<
|
|
215
|
-
<
|
|
216
|
-
<
|
|
217
|
-
<
|
|
218
|
-
<
|
|
219
|
-
<
|
|
220
|
-
<
|
|
221
|
-
<
|
|
224
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
225
|
+
<td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
|
|
226
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
227
|
+
<td style="text-align: center;"><nobr>{{row.f_createfile_date}}</nobr></td>
|
|
228
|
+
<td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
|
|
229
|
+
<td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
|
|
230
|
+
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
231
|
+
<td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
232
|
+
<td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
|
|
233
|
+
<td style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></td>
|
|
222
234
|
|
|
223
|
-
<
|
|
224
|
-
<
|
|
225
|
-
<
|
|
226
|
-
<
|
|
235
|
+
<td style="text-align: center;"><nobr>{{row.cishu}}</nobr></td>
|
|
236
|
+
<td style="text-align: center;"><nobr>{{row.pregas}}</nobr></td>
|
|
237
|
+
<td style="text-align: center;"><nobr>{{row.diffday}}</nobr></td>
|
|
238
|
+
<td style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></td>
|
|
239
|
+
<td style="text-align: center;"><nobr>{{row.f_checknum}}</nobr></td>
|
|
240
|
+
<td style="text-align: center;"><nobr>{{row.f_last_check_date}}</nobr></td>
|
|
227
241
|
</template>
|
|
228
242
|
</data-grid>
|
|
229
243
|
</criteria-paged>
|
|
@@ -239,7 +253,129 @@
|
|
|
239
253
|
<div class="flex" v-if="show">
|
|
240
254
|
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
241
255
|
</div>
|
|
242
|
-
</div
|
|
256
|
+
</div>
|
|
257
|
+
<modal :show.sync="batchQuotaModalShow" v-ref:secureQuotaModalShow
|
|
258
|
+
backdrop="false" class="secureQuotaModalShow" @modal-close="batchQuotaModalClose">
|
|
259
|
+
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
260
|
+
</header>
|
|
261
|
+
<article slot="modal-body" class="modal-body">
|
|
262
|
+
<validator name='v'>
|
|
263
|
+
<form class="form-horizontal select-overspread">
|
|
264
|
+
<div class="row">
|
|
265
|
+
<div class="col-sm-6 form-input-group" :class="[$v.third.required ? 'has-error' : '']">
|
|
266
|
+
<label class="font_normal_body col-sm-3">第三方缴费</label>
|
|
267
|
+
<input type="text" v-show="false" v-model="$refs.third.selectedItems"
|
|
268
|
+
v-validate:third='{required: true }'>
|
|
269
|
+
<v-select
|
|
270
|
+
:value.sync="quotaData.f_third_pay"
|
|
271
|
+
v-model="quotaData.f_third_pay"
|
|
272
|
+
:options='thirdPays'
|
|
273
|
+
:value-single="true"
|
|
274
|
+
close-on-select v-ref:third></v-select>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="col-sm-6 form-input-group" :class="[$v.style.required ? 'has-error' : '']">
|
|
277
|
+
<label class="font_normal_body col-sm-3">限制类型</label>
|
|
278
|
+
<input type="text" v-show="false" v-model="$refs.style.selectedItems"
|
|
279
|
+
v-validate:style='{required: true }'>
|
|
280
|
+
<v-select
|
|
281
|
+
:value.sync="quotaData.f_limit_style"
|
|
282
|
+
v-model="quotaData.f_limit_style"
|
|
283
|
+
:options='limitstyle'
|
|
284
|
+
:value-single="true"
|
|
285
|
+
close-on-select v-ref:style></v-select>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
<div class="row" style="margin-top:10px;" >
|
|
289
|
+
<div class="col-sm-6 form-input-group" :class="[$v.timetypes.required ? 'has-error' : '']">
|
|
290
|
+
<label class="font_normal_body col-sm-3">周期类型</label>
|
|
291
|
+
<input type="text" v-show="false" v-model="$refs.timetypes.selectedItems"
|
|
292
|
+
v-validate:timetypes='{required: true }'>
|
|
293
|
+
<v-select
|
|
294
|
+
:value.sync="quotaData.f_time_type"
|
|
295
|
+
v-model="quotaData.f_time_type"
|
|
296
|
+
:options='timeTypes'
|
|
297
|
+
:value-single="true"
|
|
298
|
+
close-on-select v-ref:timetypes></v-select>
|
|
299
|
+
</div>
|
|
300
|
+
<div class="col-sm-6 form-input-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
|
|
301
|
+
<label class="font_normal_body col-sm-3">周期时长</label>
|
|
302
|
+
<input type="text" v-model="quotaData.f_time_value"
|
|
303
|
+
placeholder="周期时长"
|
|
304
|
+
style="vertical-align:middle"
|
|
305
|
+
v-validate:f_time_value='{required: true }'>
|
|
306
|
+
</div>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<div class="row" style="margin-top:10px;" v-if="quotaData.f_limit_style !=='按总量'">
|
|
310
|
+
<div class="col-sm-6 form-input-group" :class="[$v.f_limit_times.required ? 'has-error' : '']">
|
|
311
|
+
<label class="font_normal_body col-sm-3">限制次数</label>
|
|
312
|
+
<input type="text" style="width: 70%;display: inline-block" v-model="quotaData.f_limit_times" placeholder="限制次数" v-validate:f_limit_times='{required: true }'>
|
|
313
|
+
</div>
|
|
314
|
+
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='气量'" :class="[$v.f_limit_value.required ? 'has-error' : '']">
|
|
315
|
+
<label class="font_normal_body col-sm-3">单次限购</label>
|
|
316
|
+
<input type="text" v-model="quotaData.f_limit_value" placeholder="单次限购" v-validate:f_limit_value='{required: true }'>
|
|
317
|
+
</div>
|
|
318
|
+
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='金额'" :class="[$v.f_limit_amount.required ? 'has-error' : '']">
|
|
319
|
+
<label class="font_normal_body col-sm-3">单次限购</label>
|
|
320
|
+
<input type="text" v-model="quotaData.f_limit_amount" placeholder="单次限购" v-validate:f_limit_amount='{required: true }'>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
<div class="row" style="margin-top:10px;" v-if="quotaData.f_limit_style ==='按总量'">
|
|
324
|
+
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='气量'" :class="[$v.f_limit_value.required ? 'has-error' : '']">
|
|
325
|
+
<label class="font_normal_body col-sm-3">总限购量</label>
|
|
326
|
+
<input type="text" v-model="quotaData.f_limit_value" placeholder="单次限购" v-validate:f_limit_value='{required: true }'>
|
|
327
|
+
</div>
|
|
328
|
+
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='金额'" :class="[$v.f_limit_amount.required ? 'has-error' : '']">
|
|
329
|
+
<label class="font_normal_body col-sm-3">总限购量</label>
|
|
330
|
+
<input type="text" v-model="quotaData.f_limit_amount" placeholder="单次限购" v-validate:f_limit_amount='{required: true }'>
|
|
331
|
+
</div>
|
|
332
|
+
</div>
|
|
333
|
+
<div class="row" style="margin-top:10px;">
|
|
334
|
+
<div class="col-sm-6 form-input-group" :class="[$v.limittype.required ? 'has-error' : '']">
|
|
335
|
+
<label class="font_normal_body col-sm-3">支付限制</label>
|
|
336
|
+
<input type="text" v-show="false" v-model="$refs.limittype.selectedItems"
|
|
337
|
+
v-validate:limittype='{required: true }'>
|
|
338
|
+
<v-select
|
|
339
|
+
:value.sync="quotaData.f_limit_type"
|
|
340
|
+
v-model="quotaData.f_limit_type"
|
|
341
|
+
:options='limitTypes'
|
|
342
|
+
:value-single="true"
|
|
343
|
+
close-on-select v-ref:limittype></v-select>
|
|
344
|
+
</div>
|
|
345
|
+
<div class="col-sm-6 form-input-group">
|
|
346
|
+
<label class="font_normal_body col-sm-3">执行时间</label>
|
|
347
|
+
<datepicker placeholder="执行时间"
|
|
348
|
+
v-model="quotaData.f_start_date"
|
|
349
|
+
:value.sync="quotaData.f_start_date"
|
|
350
|
+
:format="'yyyy-MM-dd'">
|
|
351
|
+
</datepicker>
|
|
352
|
+
</div>
|
|
353
|
+
<div class="row auto">
|
|
354
|
+
<div class="col-sm-12 form-group form-input-group" :class="[$v.f_operate_reason.required ? 'has-error' : '']">
|
|
355
|
+
<label class="control-label">限购原因</label>
|
|
356
|
+
<div class="col-sm-4">
|
|
357
|
+
<textarea class="form-control col-sm-4"
|
|
358
|
+
v-model="quotaData.f_operate_reason"
|
|
359
|
+
v-validate:f_operate_reason='{required: true }'
|
|
360
|
+
placeholder="限购原因">
|
|
361
|
+
</textarea>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
</form>
|
|
367
|
+
</validator>
|
|
368
|
+
</article>
|
|
369
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
370
|
+
<div class="modal-footer">
|
|
371
|
+
<button type="button" class="btn btn-default" :disabled="!$v.valid"
|
|
372
|
+
@click='batchQuotaConfirm'>确定
|
|
373
|
+
</button>
|
|
374
|
+
<button type="button" class="btn btn-default" @click='batchQuotaModalClose'>取消</button>
|
|
375
|
+
</div>
|
|
376
|
+
</footer>
|
|
377
|
+
</modal>
|
|
378
|
+
</div>
|
|
243
379
|
</template>
|
|
244
380
|
<script>
|
|
245
381
|
/**
|
|
@@ -273,7 +409,7 @@
|
|
|
273
409
|
"f_user_state":"客户状态","f_user_phone":"客户电话","f_address":"地址","f_createfile_date":"建档日期","f_user_type":"用户类型",
|
|
274
410
|
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
275
411
|
"delivery_date":"最后购气日期","cishu":"总购气次数","pregas":"总购气量",
|
|
276
|
-
"diffday":"未购气总天数"},
|
|
412
|
+
"diffday":"未购气总天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"},
|
|
277
413
|
model: new PagedList('rs/sql/inspectList', 50,{startDate:'this.model.startDate',endDate:'this.model.endDate'},{pregas: 0}),
|
|
278
414
|
rows: null,
|
|
279
415
|
//orgid:'',
|
|
@@ -284,6 +420,26 @@
|
|
|
284
420
|
config: {
|
|
285
421
|
defaultPrint: ['f_userinfo_code','f_user_id']
|
|
286
422
|
},
|
|
423
|
+
thirdPays: [{label: '支持', value: '1'},{label: '不支持', value: '0'}],
|
|
424
|
+
timeTypes: [{label: '按月', value: '按月'},{label: '按日', value: '按日'}],
|
|
425
|
+
limitTypes: [{label: '气量', value: '气量'},{label: '金额', value: '金额'}],
|
|
426
|
+
limitstyle: [{label: '按次数', value: '按次数'},{label: '按总量', value: '按总量'}],
|
|
427
|
+
batchRowList: [],
|
|
428
|
+
quotaData: {
|
|
429
|
+
f_third_pay: '0',
|
|
430
|
+
f_time_type: '按月',
|
|
431
|
+
f_limit_times: '',
|
|
432
|
+
f_time_value: '',
|
|
433
|
+
f_limit_type: '气量',
|
|
434
|
+
f_limit_style:'',
|
|
435
|
+
f_limit_value: 0,
|
|
436
|
+
f_limit_amount: 0,
|
|
437
|
+
f_start_date: this.$login.toStandardDateString(),
|
|
438
|
+
f_operate_reason: '',
|
|
439
|
+
f_limit_source: '营收批量限购'
|
|
440
|
+
},
|
|
441
|
+
ischecks: [{label: '全部', value: ''},{label: '已安检', value: '已安检'},{label: '未安检', value: '未安检'}],
|
|
442
|
+
batchQuotaModalShow: false,
|
|
287
443
|
defaultfield: [],
|
|
288
444
|
}
|
|
289
445
|
},
|
|
@@ -297,7 +453,7 @@
|
|
|
297
453
|
"f_createfile_date":"建档日期","f_user_type":"用户类型",
|
|
298
454
|
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
299
455
|
"delivery_date":"最后购气日期","cishu":"总购气次数","pregas":"总购气量",
|
|
300
|
-
"diffday":"累计未购气天数"}
|
|
456
|
+
"diffday":"累计未购气天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"}
|
|
301
457
|
}else if (val === '机表') {
|
|
302
458
|
this.model.url = this.url = 'rs/sql/handinspectList'
|
|
303
459
|
this.sqlName = 'handinspectList'
|
|
@@ -306,7 +462,7 @@
|
|
|
306
462
|
"f_createfile_date":"建档日期","f_user_type":"用户类型",
|
|
307
463
|
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
308
464
|
"delivery_date":"最后抄表日期","cishu":"总抄表次数","pregas":"抄表气量",
|
|
309
|
-
"diffday":"累计未抄表天数"}
|
|
465
|
+
"diffday":"累计未抄表天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"}
|
|
310
466
|
} else if (val === '物联网表') {
|
|
311
467
|
this.model.url = this.url = 'rs/sql/getWebMeterList'
|
|
312
468
|
this.sqlName = 'getWebMeterList'
|
|
@@ -315,7 +471,7 @@
|
|
|
315
471
|
"f_createfile_date":"建档日期", "f_user_type":"用户类型",
|
|
316
472
|
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
317
473
|
"delivery_date":"最后购气日期","cishu":"总购气次数","pregas":"总购金额",
|
|
318
|
-
"diffday":"累计未购气天数"}
|
|
474
|
+
"diffday":"累计未购气天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"}
|
|
319
475
|
}
|
|
320
476
|
this.clear()
|
|
321
477
|
this.model.rows = []
|
|
@@ -340,6 +496,56 @@
|
|
|
340
496
|
})
|
|
341
497
|
},
|
|
342
498
|
methods: {
|
|
499
|
+
batchQuotaConfirm () {
|
|
500
|
+
let selectRow = this.$refs.paged.$refs.grid.getRowData()
|
|
501
|
+
let selectRowLen = selectRow.length
|
|
502
|
+
let msg = {
|
|
503
|
+
resolveMsg: `您已成功限购${selectRowLen}位用户!`,
|
|
504
|
+
rejectMsg: '批量作废限购失败!'
|
|
505
|
+
}
|
|
506
|
+
this.batchRowList = []
|
|
507
|
+
selectRow.forEach(row => {
|
|
508
|
+
this.batchRowList.push({"f_userinfo_id": row.f_userinfo_id, "f_priceid": row.f_priceid})
|
|
509
|
+
})
|
|
510
|
+
this.$showMessage(`您确定要将您你选中的${selectRowLen}位用户进行批量限购吗?`, ['confirm', 'cancel']).then(async (res) => {
|
|
511
|
+
if (res === 'confirm') {
|
|
512
|
+
console.log('所选中的用户:=======' + JSON.stringify(this.batchRowList))
|
|
513
|
+
let data = {
|
|
514
|
+
limitUserList: this.batchRowList,
|
|
515
|
+
f_operate_people: this.$login.f.name,
|
|
516
|
+
f_operate_peopleid: this.$login.f.id,
|
|
517
|
+
model: this.quotaData,
|
|
518
|
+
f_operate_type: '0'
|
|
519
|
+
}
|
|
520
|
+
await this.$resetpost('rs/logic/sale_operateQuotaRecord', {data: data}, msg)
|
|
521
|
+
this.batchQuotaModalClose()
|
|
522
|
+
this.search()
|
|
523
|
+
}
|
|
524
|
+
})
|
|
525
|
+
},
|
|
526
|
+
batchQuotaModalClose () {
|
|
527
|
+
this.quotaData = {
|
|
528
|
+
f_third_pay: '0',
|
|
529
|
+
f_time_type: '按月',
|
|
530
|
+
f_limit_times: '',
|
|
531
|
+
f_time_value: '',
|
|
532
|
+
f_limit_type: '气量',
|
|
533
|
+
f_limit_style:'',
|
|
534
|
+
f_limit_value: 0,
|
|
535
|
+
f_limit_amount: 0,
|
|
536
|
+
f_start_date: this.$login.toStandardDateString(),
|
|
537
|
+
f_operate_reason: '',
|
|
538
|
+
f_limit_source: '营收批量限购'
|
|
539
|
+
}
|
|
540
|
+
this.batchQuotaModalShow = false
|
|
541
|
+
},
|
|
542
|
+
batchQuota(){
|
|
543
|
+
if(this.$refs.paged.$refs.grid.getRowData().length === 0){
|
|
544
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
545
|
+
return
|
|
546
|
+
}
|
|
547
|
+
this.batchQuotaModalShow = true
|
|
548
|
+
},
|
|
343
549
|
getotherfooter(){
|
|
344
550
|
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
345
551
|
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
@@ -1185,6 +1185,22 @@ export default{
|
|
|
1185
1185
|
|
|
1186
1186
|
'f_comments': '备注'
|
|
1187
1187
|
|
|
1188
|
+
},
|
|
1189
|
+
quotaQueryConfig: {
|
|
1190
|
+
'f_userinfo_code': '用户编号',
|
|
1191
|
+
'f_user_name': '用户名称',
|
|
1192
|
+
'f_user_phone': '用户电话',
|
|
1193
|
+
'f_address': '用户地址',
|
|
1194
|
+
'f_operate_people': '操作人员',
|
|
1195
|
+
'f_limit_source': '限购来源',
|
|
1196
|
+
'f_operate_date': '限购时间',
|
|
1197
|
+
'f_limit_type': '限购类型',
|
|
1198
|
+
'f_time_type': '周期类型',
|
|
1199
|
+
'f_time_value': '周期时长',
|
|
1200
|
+
'f_limit_times': '限购次数',
|
|
1201
|
+
'f_limit_value': '单次限购量',
|
|
1202
|
+
'f_start_date': '执行时间',
|
|
1203
|
+
'f_operate_reason': '限购原因'
|
|
1188
1204
|
}
|
|
1189
1205
|
}
|
|
1190
1206
|
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" >
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body" title="限购时间">限购时间</label>
|
|
11
|
+
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.startDate"
|
|
12
|
+
class="datepicker"
|
|
13
|
+
placeholder="限购开始时间"
|
|
14
|
+
style="width:60%"
|
|
15
|
+
condition="f_operate_date >= '{} 00:00:00'"
|
|
16
|
+
v-model="model.startDate">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label class="font_normal_body" title="限购时间"> 至 </label>
|
|
21
|
+
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.endDate"
|
|
22
|
+
class="datepicker"
|
|
23
|
+
placeholder="限购结束时间"
|
|
24
|
+
style="width:60%"
|
|
25
|
+
condition="f_operate_date <= '{} 23:59:59'"
|
|
26
|
+
v-model="model.endDate">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body">客户编号</label>
|
|
31
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
32
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group">
|
|
35
|
+
<label class="font_normal_body">客户名称</label>
|
|
36
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
37
|
+
condition="f_user_name = '{}'" placeholder="客户名称">
|
|
38
|
+
</div>
|
|
39
|
+
<div class="span" style="float:right;">
|
|
40
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
41
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.batchOper()">批量解除限购</button>
|
|
43
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
44
|
+
:field="$parent.$parent.getfield"
|
|
45
|
+
:header="$parent.$parent.other"
|
|
46
|
+
sqlurl="rs/logic/exportfile"
|
|
47
|
+
sql-name="manage_quotaRecordQuery"
|
|
48
|
+
template-name='限购记录查询'
|
|
49
|
+
:choose-col="true"></export-excel>
|
|
50
|
+
<print-data :sum-field="$parent.$parent.getfield"
|
|
51
|
+
:model="$parent.model"
|
|
52
|
+
:field="$parent.$parent.getfield"
|
|
53
|
+
titletable="限购记录查询"
|
|
54
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
55
|
+
></print-data>
|
|
56
|
+
<div
|
|
57
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
58
|
+
@click="$parent.$parent.hidden()"
|
|
59
|
+
class="button_spacing"
|
|
60
|
+
style="float: right"></div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
64
|
+
<res-select-group
|
|
65
|
+
:style="$parent.$parent.style"
|
|
66
|
+
:show-component="['company']"
|
|
67
|
+
:initres="$parent.$parent.initres"
|
|
68
|
+
@re-res="$parent.$parent.getRes"
|
|
69
|
+
v-ref:sel>
|
|
70
|
+
</res-select-group>
|
|
71
|
+
<div class="col-sm-2 form-group">
|
|
72
|
+
<label class="font_normal_body">客户电话</label>
|
|
73
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
74
|
+
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label class="font_normal_body">客户地址</label>
|
|
78
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
79
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label class="font_normal_body">限购原因</label>
|
|
83
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_operate_reason"
|
|
84
|
+
condition="f_operate_reason = '{}'" placeholder='限购原因'>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</criteria>
|
|
89
|
+
<data-grid :model="model" class="list_area table_sy" class="list_area table_sy" :optional="true" partial='list' v-ref:grid>
|
|
90
|
+
<template partial='head'>
|
|
91
|
+
<tr>
|
|
92
|
+
<th>
|
|
93
|
+
<nobr>用户编号</nobr>
|
|
94
|
+
</th>
|
|
95
|
+
<th>
|
|
96
|
+
<nobr>用户名称</nobr>
|
|
97
|
+
</th>
|
|
98
|
+
<th>
|
|
99
|
+
<nobr>用户电话</nobr>
|
|
100
|
+
</th>
|
|
101
|
+
<th>
|
|
102
|
+
<nobr>用户地址</nobr>
|
|
103
|
+
</th>
|
|
104
|
+
<th>
|
|
105
|
+
<nobr>操作人员</nobr>
|
|
106
|
+
</th>
|
|
107
|
+
<th>
|
|
108
|
+
<nobr>限购来源</nobr>
|
|
109
|
+
</th>
|
|
110
|
+
<th>
|
|
111
|
+
<nobr>限购时间</nobr>
|
|
112
|
+
</th>
|
|
113
|
+
<th>
|
|
114
|
+
<nobr>限购类型</nobr>
|
|
115
|
+
</th>
|
|
116
|
+
<th>
|
|
117
|
+
<nobr>周期类型</nobr>
|
|
118
|
+
</th>
|
|
119
|
+
<th>
|
|
120
|
+
<nobr>周期时长</nobr>
|
|
121
|
+
</th>
|
|
122
|
+
<th>
|
|
123
|
+
<nobr>限购次数</nobr>
|
|
124
|
+
</th>
|
|
125
|
+
<th>
|
|
126
|
+
<nobr>单次限购量</nobr>
|
|
127
|
+
</th>
|
|
128
|
+
<th>
|
|
129
|
+
<nobr>执行时间</nobr>
|
|
130
|
+
</th>
|
|
131
|
+
<th>
|
|
132
|
+
<nobr>限购原因</nobr>
|
|
133
|
+
</th>
|
|
134
|
+
<th>
|
|
135
|
+
<nobr>操作完整限购记录</nobr>
|
|
136
|
+
</th>
|
|
137
|
+
</tr>
|
|
138
|
+
</template>
|
|
139
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
140
|
+
<tr>
|
|
141
|
+
<td style="text-align:center">{{ row.f_userinfo_code }}</td>
|
|
142
|
+
<td style="text-align:center">{{ row.f_user_name }}</td>
|
|
143
|
+
<td style="text-align:center">{{ row.f_user_phone }}</td>
|
|
144
|
+
<td style="text-align:center">{{ row.f_address }}</td>
|
|
145
|
+
<td style="text-align:center">{{ row.f_operate_people }}</td>
|
|
146
|
+
<td style="text-align:center">{{ row.f_limit_source }}</td>
|
|
147
|
+
<td style="text-align:center">{{ row.f_operate_date }}</td>
|
|
148
|
+
<td style="text-align:center">{{ row.f_limit_type }}</td>
|
|
149
|
+
<td style="text-align:center">{{ row.f_time_type }}</td>
|
|
150
|
+
<td style="text-align:center">{{ row.f_time_value }}</td>
|
|
151
|
+
<td style="text-align:center">{{ row.f_limit_times }}</td>
|
|
152
|
+
<td style="text-align:center">{{ row.f_limit_value }}</td>
|
|
153
|
+
<td style="text-align:center">{{ row.f_start_date }}</td>
|
|
154
|
+
<td style="text-align:center">{{ row.f_operate_reason }}</td>
|
|
155
|
+
<td style="text-align: center;">
|
|
156
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
|
157
|
+
@click.stop="$parent.$parent.$parent.toDetail(row)">查看
|
|
158
|
+
</button>
|
|
159
|
+
</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</template>
|
|
162
|
+
<template partial='foot'></template>
|
|
163
|
+
</data-grid>
|
|
164
|
+
</criteria-paged>
|
|
165
|
+
<modal :show.sync="allQuotaRecordModalShow" backdrop="false"
|
|
166
|
+
class="allQuotaRecordModalShow" width="80%">
|
|
167
|
+
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
168
|
+
<h4 class="modal-title">用户完整限购记录</h4>
|
|
169
|
+
</header>
|
|
170
|
+
<article slot="modal-body" class="modal-body">
|
|
171
|
+
<data-grid class="list_area table_sy" :model="modalModel" v-ref:modalgrid :optional="true" partial='list'>
|
|
172
|
+
<template partial='head'>
|
|
173
|
+
<th>
|
|
174
|
+
<nobr>用户编号</nobr>
|
|
175
|
+
</th>
|
|
176
|
+
<th>
|
|
177
|
+
<nobr>用户姓名</nobr>
|
|
178
|
+
</th>
|
|
179
|
+
<th>
|
|
180
|
+
<nobr>操作人员</nobr>
|
|
181
|
+
</th>
|
|
182
|
+
<th>
|
|
183
|
+
<nobr>限购来源</nobr>
|
|
184
|
+
</th>
|
|
185
|
+
<th>
|
|
186
|
+
<nobr>限购时间</nobr>
|
|
187
|
+
</th>
|
|
188
|
+
<th>
|
|
189
|
+
<nobr>限购类型</nobr>
|
|
190
|
+
</th>
|
|
191
|
+
<th>
|
|
192
|
+
<nobr>周期类型</nobr>
|
|
193
|
+
</th>
|
|
194
|
+
<th>
|
|
195
|
+
<nobr>周期时长</nobr>
|
|
196
|
+
</th>
|
|
197
|
+
<th>
|
|
198
|
+
<nobr>限购次数</nobr>
|
|
199
|
+
</th>
|
|
200
|
+
<th>
|
|
201
|
+
<nobr>单次限购量</nobr>
|
|
202
|
+
</th>
|
|
203
|
+
<th>
|
|
204
|
+
<nobr>执行时间</nobr>
|
|
205
|
+
</th>
|
|
206
|
+
<th>
|
|
207
|
+
<nobr>限购原因</nobr>
|
|
208
|
+
</th>
|
|
209
|
+
<th>
|
|
210
|
+
<nobr>操作</nobr>
|
|
211
|
+
</th>
|
|
212
|
+
</template>
|
|
213
|
+
<template partial='body'>
|
|
214
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
|
215
|
+
<td style="text-align:center">{{row.f_user_name }}</td>
|
|
216
|
+
<td style="text-align:center">{{row.f_operate_people}}</td>
|
|
217
|
+
<td style="text-align:center">{{row.f_limit_source}}</td>
|
|
218
|
+
<td style="text-align:center">{{row.f_operate_date}}</td>
|
|
219
|
+
<td style="text-align:center">{{row.f_limit_type}}</td>
|
|
220
|
+
<td style="text-align:center">{{row.f_time_type}}</td>
|
|
221
|
+
<td style="text-align:center">{{row.f_time_value}}</td>
|
|
222
|
+
<td style="text-align:center">{{row.f_limit_times}}</td>
|
|
223
|
+
<td style="text-align:center">{{row.f_limit_value}}</td>
|
|
224
|
+
<td style="text-align:center">{{row.f_start_date}}</td>
|
|
225
|
+
<td style="text-align:center">{{row.f_operate_reason}}</td>
|
|
226
|
+
<td style="text-align: center;">
|
|
227
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
|
228
|
+
@click.stop="$parent.$parent.$parent.secureQuotaShow(row)">作废限购
|
|
229
|
+
</button>
|
|
230
|
+
</td>
|
|
231
|
+
</template>
|
|
232
|
+
</data-grid>
|
|
233
|
+
</article>
|
|
234
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
235
|
+
<button type="button" class="btn btn-default" @click='batchSecureQuota'>批量作废限购</button>
|
|
236
|
+
<button type="button" class="btn btn-default" @click='allQuotaRecordModalClose'>关闭</button>
|
|
237
|
+
</footer>
|
|
238
|
+
</modal>
|
|
239
|
+
<modal :show.sync="secureQuotaModalShow" v-ref:secureQuotaModalShow
|
|
240
|
+
backdrop="false" class="secureQuotaModalShow" @modal-close="secureQuotaModalClose">
|
|
241
|
+
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
242
|
+
</header>
|
|
243
|
+
<article slot="modal-body" class="modal-body">
|
|
244
|
+
<div class="auto select-overspread form-horizontal">
|
|
245
|
+
<div class="row auto" :class="[ !secureData.f_cancel_reason? 'has-error' : '']">
|
|
246
|
+
<div class="col-sm-12 form-group form-input-group">
|
|
247
|
+
<label class="control-label">解除限购原因:</label>
|
|
248
|
+
<div class="col-sm-4">
|
|
249
|
+
<textarea class="form-control col-sm-4"
|
|
250
|
+
v-model="secureData.f_cancel_reason"
|
|
251
|
+
placeholder="解除限购原因">
|
|
252
|
+
</textarea>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</article>
|
|
258
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
259
|
+
<div class="modal-footer">
|
|
260
|
+
<button type="button" class="btn btn-default" :disabled="!secureData.f_cancel_reason"
|
|
261
|
+
@click='secureQuota'>确定
|
|
262
|
+
</button>
|
|
263
|
+
<button type="button" class="btn btn-default" @click='secureQuotaModalClose'>取消</button>
|
|
264
|
+
</div>
|
|
265
|
+
</footer>
|
|
266
|
+
</modal>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
</template>
|
|
271
|
+
<script>
|
|
272
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
273
|
+
import exportConfig from '../config/exportConfig'
|
|
274
|
+
|
|
275
|
+
export default {
|
|
276
|
+
title: '限购记录',
|
|
277
|
+
data () {
|
|
278
|
+
return {
|
|
279
|
+
condition: '1=1',
|
|
280
|
+
model: new PagedList('rs/sql/manage_quotaRecordQuery', 20, {
|
|
281
|
+
startDate:'this.model.startDate',
|
|
282
|
+
endDate:'this.model.endDate'
|
|
283
|
+
}),
|
|
284
|
+
orgConditionStr: '',
|
|
285
|
+
criteriaShow: false,
|
|
286
|
+
allQuotaRecordModalShow: false,
|
|
287
|
+
initres: {
|
|
288
|
+
org: [this.$login.f.orgid]
|
|
289
|
+
},
|
|
290
|
+
modalModel: new PagedList('rs/sql/manage_singleTable', 100, {
|
|
291
|
+
items: '"lg.*,ui.f_userinfo_code,ui.f_user_name"',
|
|
292
|
+
tablename: '"t_limit_gas lg left join t_userinfo ui on lg.f_userinfo_id = ui.f_userinfo_id"',
|
|
293
|
+
orderitem: '"lg.f_operate_date desc"'
|
|
294
|
+
}),
|
|
295
|
+
map: new Map(),
|
|
296
|
+
secureData: {
|
|
297
|
+
f_cancel_reason: ''
|
|
298
|
+
},
|
|
299
|
+
selectDataLen: 0,
|
|
300
|
+
isBatch: '0',
|
|
301
|
+
other: [],
|
|
302
|
+
footer: [],
|
|
303
|
+
sumsmodel: {},
|
|
304
|
+
batchRowList: [],
|
|
305
|
+
selectRowLen: [],
|
|
306
|
+
f_cancel_people: [],
|
|
307
|
+
toDetailObj: null,
|
|
308
|
+
defaultfield: [],
|
|
309
|
+
modalCondition: '1=1',
|
|
310
|
+
secureQuotaModalShow: false,
|
|
311
|
+
secureQuotaObj: null,
|
|
312
|
+
issecures: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
ready () {
|
|
316
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
317
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
318
|
+
},
|
|
319
|
+
methods: {
|
|
320
|
+
getotherfooter () {
|
|
321
|
+
this.other = [];
|
|
322
|
+
this.footer = [];
|
|
323
|
+
let exportdata = this.getCondition;
|
|
324
|
+
let otherInData = [];
|
|
325
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
326
|
+
let footerData = [], exportfield = this.getExportField;
|
|
327
|
+
footerData.push("合计");
|
|
328
|
+
let self = this;
|
|
329
|
+
for (var field in self.sumsmodel) {
|
|
330
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
331
|
+
}
|
|
332
|
+
this.footer.push(footerData);
|
|
333
|
+
this.other.push(otherInData);
|
|
334
|
+
},
|
|
335
|
+
async batchOper () {
|
|
336
|
+
this.isBatch = '3'
|
|
337
|
+
if (this.$refs.paged.$refs.grid.getRowData().length > 0) {
|
|
338
|
+
// 获取要批量删除的小区数据
|
|
339
|
+
this.batchRowList = this.$refs.paged.$refs.grid.getRowData()
|
|
340
|
+
this.selectRowLen = this.batchRowList.length
|
|
341
|
+
this.secureQuotaModalShow = true
|
|
342
|
+
} else {
|
|
343
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
async batchSecureQuota () {
|
|
347
|
+
this.isBatch = '1'
|
|
348
|
+
if (this.$refs.modalgrid.getRowData().length != 0) {
|
|
349
|
+
// 获取要批量删除的小区数据
|
|
350
|
+
this.getRowData = this.$refs.modalgrid.getRowData()
|
|
351
|
+
this.selectDataLen = this.getRowData.length
|
|
352
|
+
console.log(this.selectDataLen + '-----------------------')
|
|
353
|
+
this.secureQuotaModalShow = true
|
|
354
|
+
} else {
|
|
355
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
secureQuotaShow (row) {
|
|
359
|
+
this.isBatch = '2'
|
|
360
|
+
this.secureQuotaObj = row
|
|
361
|
+
this.secureQuotaModalShow = true
|
|
362
|
+
},
|
|
363
|
+
allQuotaRecordModalClose () {
|
|
364
|
+
this.toDetailObj = null
|
|
365
|
+
this.allQuotaRecordModalShow = false
|
|
366
|
+
this.$refs.modalgrid.selectInit()
|
|
367
|
+
},
|
|
368
|
+
secureQuotaModalClose () {
|
|
369
|
+
this.secureQuotaObj = null
|
|
370
|
+
this.secureQuotaModalShow = false
|
|
371
|
+
},
|
|
372
|
+
hidden () {
|
|
373
|
+
this.criteriaShow = !this.criteriaShow
|
|
374
|
+
},
|
|
375
|
+
secureQuota () {
|
|
376
|
+
let _this = this
|
|
377
|
+
if (_this.isBatch === '1') {
|
|
378
|
+
let msg = {
|
|
379
|
+
resolveMsg: '批量作废限购成功!',
|
|
380
|
+
rejectMsg: '批量作废限购失败!'
|
|
381
|
+
}
|
|
382
|
+
_this.$showMessage(`您确定要作废你选中的${_this.selectDataLen}条限购吗?`, ['confirm', 'cancel']).then(async (res) => {
|
|
383
|
+
if (res === 'confirm') {
|
|
384
|
+
console.log('所选中的限购信息:=======' + JSON.stringify(_this.getRowData))
|
|
385
|
+
let data = {
|
|
386
|
+
selectRow: _this.getRowData,
|
|
387
|
+
f_cancel_people: _this.$login.f.name,
|
|
388
|
+
f_cancel_peopleid: _this.$login.f.id,
|
|
389
|
+
f_cancel_reason: _this.secureData.f_cancel_reason,
|
|
390
|
+
f_operate_type: '1'
|
|
391
|
+
}
|
|
392
|
+
_this.secureQuotaModalShow = false
|
|
393
|
+
await _this.$resetpost('rs/logic/sale_operateQuotaRecord', {data: data}, msg).then(res => {
|
|
394
|
+
if (res) {
|
|
395
|
+
_this.$refs.paged.$refs.grid.selectInit()
|
|
396
|
+
_this.modalSearch()
|
|
397
|
+
}
|
|
398
|
+
})
|
|
399
|
+
|
|
400
|
+
}
|
|
401
|
+
})
|
|
402
|
+
} else if (_this.isBatch === '2') {
|
|
403
|
+
_this.$showMessage('您确定要作废此条限购吗?', ['confirm', 'cancel']).then(async (res) => {
|
|
404
|
+
if (res === 'confirm') {
|
|
405
|
+
let data = {
|
|
406
|
+
id: _this.secureQuotaObj.id,
|
|
407
|
+
f_cancel_people: _this.$login.f.name,
|
|
408
|
+
f_cancel_peopleid: _this.$login.f.id,
|
|
409
|
+
f_cancel_reason: _this.secureData.f_cancel_reason,
|
|
410
|
+
f_operate_type: '1'
|
|
411
|
+
}
|
|
412
|
+
_this.secureQuotaModalShow = false
|
|
413
|
+
await _this.$resetpost('rs/logic/sale_operateQuotaRecord', {data: data}, {
|
|
414
|
+
resolveMsg: '作废限购成功!!!',
|
|
415
|
+
rejectMsg: '作废限购失败!!!'
|
|
416
|
+
}).then(res => {
|
|
417
|
+
if (res) {
|
|
418
|
+
_this.modalSearch()
|
|
419
|
+
}
|
|
420
|
+
})
|
|
421
|
+
}
|
|
422
|
+
})
|
|
423
|
+
} else if (_this.isBatch === '3') {
|
|
424
|
+
let msg = {
|
|
425
|
+
resolveMsg: '批量作废限购成功!',
|
|
426
|
+
rejectMsg: '批量作废限购失败!'
|
|
427
|
+
}
|
|
428
|
+
_this.$showMessage(`您确定要作废你选中的${_this.selectRowLen}条限购吗?`, ['confirm', 'cancel']).then(async (res) => {
|
|
429
|
+
if (res === 'confirm') {
|
|
430
|
+
console.log('所选中的限购信息:=======' + JSON.stringify(_this.batchRowList))
|
|
431
|
+
let data = {
|
|
432
|
+
selectRow: _this.batchRowList,
|
|
433
|
+
f_cancel_people: _this.$login.f.name,
|
|
434
|
+
f_cancel_peopleid: _this.$login.f.id,
|
|
435
|
+
f_cancel_reason: _this.secureData.f_cancel_reason,
|
|
436
|
+
f_operate_type: '1'
|
|
437
|
+
}
|
|
438
|
+
_this.secureQuotaModalShow = false
|
|
439
|
+
await _this.$resetpost('rs/logic/sale_operateQuotaRecord', {data: data}, msg).then(res => {
|
|
440
|
+
if (res) {
|
|
441
|
+
_this.$refs.paged.$refs.grid.selectInit()
|
|
442
|
+
_this.search()
|
|
443
|
+
}
|
|
444
|
+
})
|
|
445
|
+
}
|
|
446
|
+
})
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
async toDetail (row) {
|
|
450
|
+
this.toDetailObj = row
|
|
451
|
+
await this.modalSearch()
|
|
452
|
+
this.allQuotaRecordModalShow = true
|
|
453
|
+
},
|
|
454
|
+
clear () {
|
|
455
|
+
// 清空部门和人员
|
|
456
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
457
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
458
|
+
})
|
|
459
|
+
},
|
|
460
|
+
modalSearch () {
|
|
461
|
+
this.modalCondition = `lg.f_state = '有效' and lg.f_userinfo_id = '${this.toDetailObj.f_userinfo_id}'`
|
|
462
|
+
this.modalModel.search(this.modalCondition, this.modalModel)
|
|
463
|
+
},
|
|
464
|
+
search () {
|
|
465
|
+
this.$refs.paged.$refs.cri.search()
|
|
466
|
+
},
|
|
467
|
+
getRes (obj) {
|
|
468
|
+
this.orgConditionStr = obj
|
|
469
|
+
},
|
|
470
|
+
selfSearch (args) {
|
|
471
|
+
if (!this.orgConditionStr) {
|
|
472
|
+
args.condition = `${args.condition}` + `and f_orgid = '${this.$login.f.orgid}'`
|
|
473
|
+
} else {
|
|
474
|
+
args.condition = `${args.condition}` + this.orgConditionStr
|
|
475
|
+
}
|
|
476
|
+
this.condition = args.condition
|
|
477
|
+
this.model.search(args.condition, args.model)
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
computed: {
|
|
481
|
+
getCondition() {
|
|
482
|
+
return {
|
|
483
|
+
condition: this.condition
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
getfield() {
|
|
487
|
+
return exportConfig.quotaQueryConfig
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
watch: {
|
|
491
|
+
'secureQuotaModalShow' (val) {
|
|
492
|
+
if (!val) {
|
|
493
|
+
this.secureData.f_cancel_reason = ''
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
'allQuotaRecordModalShow' (val) {
|
|
497
|
+
if (!val) {
|
|
498
|
+
this.search()
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
</script>
|
|
504
|
+
|
|
@@ -46,7 +46,7 @@ export default{
|
|
|
46
46
|
'f_address': '用户地址'
|
|
47
47
|
},
|
|
48
48
|
meterConfig: {
|
|
49
|
-
'f_userinfo_code': '用户编号', 'f_user_name': '用户名称', 'f_olduserinfo_code': '档案编号',
|
|
49
|
+
'f_userinfo_code': '用户编号', 'f_user_name': '用户名称', 'f_olduserinfo_code': '档案编号',
|
|
50
50
|
'f_user_phone': '用户电话','f_rent_phone': '备用电话', 'idnumber': '身份证号', 'f_address': '用户地址', 'f_book_slice_area': '表册片区',
|
|
51
51
|
'f_balance_amount': '表上余额', 'f_user_type': '用户类型', 'f_usetype': '使用类型', 'f_gasproperties': '用气性质',
|
|
52
52
|
'f_meternumber': '表号', 'f_card_id': '卡号', 'f_price_name': '气价名称', 'value': '气价详情', 'f_meter_brand': '气表品牌',
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<div class="col-sm-2 form-group">
|
|
85
85
|
<label class="font_normal_body">客户名称</label>
|
|
86
86
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
87
|
-
condition="f_user_name
|
|
87
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
90
|
<!--<div class="col-sm-2 form-group">-->
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<div class="col-sm-2 form-group">
|
|
35
35
|
<label class="font_normal_body">客户名称</label>
|
|
36
36
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
37
|
-
condition="f_user_name
|
|
37
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
40
|
<div class="span" style="float:right;">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<div class="col-sm-2 form-group">
|
|
34
34
|
<label class="font_normal_body">客户名称</label>
|
|
35
35
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
36
|
-
condition="f_user_name
|
|
36
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
37
37
|
</div>
|
|
38
38
|
<div class="span" style="float:right;">
|
|
39
39
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="col-sm-2 form-group">
|
|
36
36
|
<label class="font_normal_body">客户名称</label>
|
|
37
37
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
38
|
-
condition="f_user_name
|
|
38
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<div class="span" style="float:right;">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div class="col-sm-2 form-group" >
|
|
16
16
|
<label class="font_normal_body">客户名称</label>
|
|
17
17
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
18
|
-
condition="f_user_name
|
|
18
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
19
19
|
</div>
|
|
20
20
|
<div class="col-sm-2 form-group" >
|
|
21
21
|
<label class="font_normal_body">客户状态</label>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
<label class="font_normal_body">原户姓名</label>
|
|
63
63
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
64
64
|
placeholder="原户姓名"
|
|
65
|
-
condition="f_user_name
|
|
65
|
+
condition="f_user_name like '%{}%'">
|
|
66
66
|
</div>
|
|
67
67
|
<div class="col-sm-2 form-group">
|
|
68
68
|
<label class="font_normal_body">新户姓名</label>
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<div class="col-sm-2 form-group">
|
|
84
84
|
<label class="font_normal_body">用户名称</label>
|
|
85
85
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
86
|
-
condition="f_user_name
|
|
86
|
+
condition="f_user_name like '%{}%'" placeholder='用户名称'>
|
|
87
87
|
</div>
|
|
88
88
|
<!--缴费编号-->
|
|
89
89
|
<div class="col-sm-2 form-group">
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="col-sm-2 form-group">
|
|
36
36
|
<label class="font_normal_body">客户名称</label>
|
|
37
37
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
38
|
-
condition="f_user_name
|
|
38
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
39
39
|
</div>
|
|
40
40
|
<div class="span" style="float:right;">
|
|
41
41
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<div class="col-sm-2 form-group">
|
|
62
62
|
<label class="font_normal_body">客户名称</label>
|
|
63
63
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
64
|
-
condition="f_user_name
|
|
64
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
65
65
|
</div>
|
|
66
66
|
<div class="col-sm-2 form-group">
|
|
67
67
|
<label class="font_normal_body"> 小区 </label>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="col-sm-2 form-group">
|
|
36
36
|
<label class="font_normal_body">客户名称</label>
|
|
37
37
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
38
|
-
condition=" f_user_name
|
|
38
|
+
condition=" f_user_name like '%{}%'" placeholder='客户名称'>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="col-sm-2 form-group">
|
|
41
41
|
<label class="font_normal_body">客户地址</label>
|
package/src/saleManage.js
CHANGED
|
@@ -663,6 +663,10 @@ export default function () {
|
|
|
663
663
|
Vue.component('enterprise-gas-query', (resolve) => {
|
|
664
664
|
require(['./components/sale/enterprisequery/enterpriseGasQuery'], resolve)
|
|
665
665
|
})
|
|
666
|
+
// 限购记录查询
|
|
667
|
+
Vue.component('quota-record-query', (resolve) => {
|
|
668
|
+
require(['./components/sale/quotaquery/QuotaRecordQuery'], resolve)
|
|
669
|
+
})
|
|
666
670
|
|
|
667
671
|
// 月用气量查询
|
|
668
672
|
Vue.component('web-meter-month-gas-guery', (resolve) => { require(['./components/sale/businessquery/WebMeterMonthGasQuery'], resolve) })
|