manage-client 3.2.60-aode → 3.2.61-aode

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.
Files changed (71) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/InspectManage.vue +34 -34
  18. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  19. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  20. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  21. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  22. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  23. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  24. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  25. package/src/components/sale/config/exportConfig.js +260 -260
  26. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  27. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  28. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  29. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  30. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  31. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  32. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  33. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  34. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  35. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  36. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  37. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  38. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  39. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  40. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  41. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  42. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  43. package/src/components/sale/report/aode/iot/ReportQuery.vue +5 -0
  44. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  45. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  46. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  47. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  48. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  49. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  50. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  51. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  52. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  53. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  54. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  55. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  56. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  57. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  58. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  59. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  60. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  61. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  62. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  63. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  65. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  67. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  69. package/src/components/webmeter/report/ReportList.vue +211 -211
  70. package/src/main.js +56 -56
  71. package/src/saleManage.js +256 -256
@@ -1,425 +1,425 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
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">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
11
- <right-tree @re-res="$parent.$parent.getorg"
12
- :initresid='$parent.$parent.org'></right-tree>
13
- </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户编号</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
17
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
18
- </div>
19
-
20
- <div class="col-sm-2 form-group">
21
- <label for="startDate" class="font_normal_body">修&nbsp;&nbsp;改&nbsp;&nbsp;时&nbsp;&nbsp;间</label>
22
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
- v-model="model.startDate"
24
- :value.sync="model.startDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date >= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
32
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
- v-model="model.endDate"
34
- :value.sync="model.endDate"
35
- :format="'yyyy-MM-dd HH:mm:ss'"
36
- :show-reset-button="true"
37
- condition="f_operate_date <= '{}'">
38
- </datepicker>
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
-
44
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
45
- :field="$parent.$parent.getfield"
46
- :defaultselect="$parent.$parent.selectfields"
47
- sqlurl="rs/logic/exportfile" sql-name="valueinfoaddQuery" template-name='增值业务信息'
48
- :choose-col="true"></export-excel>
49
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
50
-
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <div class="col-sm-2 form-group">
55
- <label class="font_normal_body">客户名称</label>
56
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
57
- condition="f_user_name like '%{}%'" placeholder="客户名称">
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">操作状态</label>
61
- <v-select :value.sync="model.f_change_state"
62
- v-model="model.f_change_state"
63
- :options='$parent.$parent.stateoptions' placeholder='请选择'
64
- condition="f_change_state = '{}'"
65
- close-on-select></v-select>
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">数据来源</label>
69
- <v-select :value.sync="model.f_operate_resource"
70
- v-model="model.f_operate_resource"
71
- :options='$parent.$parent.source' placeholder='请选择'
72
- condition="f_operate_resource = '{}'"
73
- close-on-select></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">增值服务类型</label>
77
- <v-select :value.sync="model.f_field_name"
78
- v-model="model.f_field_name"
79
- :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
80
- condition="f_field_name = '{}'"
81
- close-on-select></v-select>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">客户类型</label>
85
- <v-select :value.sync="model.f_user_type"
86
- @change="$parent.$parent.userTypeChange()"
87
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
88
- condition="f_user_type = '{}'"
89
- close-on-select></v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">是否开通</label>
93
- <v-select :value.sync="model.f_open_state"
94
- v-model="model.f_open_state"
95
- :options='$parent.$parent.backstates' placeholder='请选择'
96
- condition="f_open_state = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body">用气性质</label>
101
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
102
- :options='$parent.$parent.gasproperties' placeholder='请选择'
103
- condition="f_gasproperties = '{}'"
104
- close-on-select></v-select>
105
- </div>
106
- </div>
107
- </div>
108
- </criteria>
109
-
110
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
111
- <template partial='head'>
112
- <tr>
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
- <th>
138
- <nobr>变更前</nobr>
139
- </th>
140
- <th>
141
- <nobr>变更后</nobr>
142
- </th>
143
- <th>
144
- <nobr>数据来源</nobr>
145
- </th>
146
- <th>
147
- <nobr>操作人</nobr>
148
- </th>
149
- <th>
150
- <nobr>操作时间</nobr>
151
- </th>
152
- <th>
153
- <nobr>操作人所属公司</nobr>
154
- </th>
155
- <th>
156
- <nobr>所属公司</nobr>
157
- </th>
158
- </tr>
159
- </template>
160
- <template partial='body'>
161
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
162
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
163
- </td>
164
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
165
- <nobr>{{row.f_user_name}}</nobr>
166
- </td>
167
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
168
- <nobr>{{row.f_user_phone}}</nobr>
169
- </td>
170
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
171
- <nobr>{{row.f_user_type}}</nobr>
172
- </td>
173
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
174
- <nobr>{{row.f_gasproperties}}</nobr>
175
- </td>
176
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
177
- <nobr>{{row.f_change_state}}</nobr>
178
- </td>
179
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
180
- <nobr>{{row.f_field_name}}</nobr>
181
- </td>
182
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
183
- <nobr>{{row.f_open_state}}</nobr>
184
- </td>
185
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
186
- <nobr>{{row.f_used_content}}</nobr>
187
- </td>
188
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
189
- <nobr>{{row.f_new_content}}</nobr>
190
- </td>
191
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
192
- <nobr>{{row.f_operate_resource}}</nobr>
193
- </td>
194
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
195
- <nobr>{{row.f_operator}}</nobr>
196
- </td>
197
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
198
- <nobr>{{row.f_operate_date}}</nobr>
199
- </td>
200
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
201
- <nobr>{{row.operator_orgname}}</nobr>
202
- </td>
203
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
204
- <nobr>{{row.f_orgname}}</nobr>
205
- </td>
206
- </template>
207
- <template partial='foot'></template>
208
- </data-grid>
209
-
210
- </criteria-paged>
211
-
212
-
213
- </div>
214
- <div v-if="show">
215
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
216
- </div>
217
- </div>
218
- </div>
219
- </template>
220
-
221
- <script>
222
- import {PagedList} from 'vue-client'
223
- import exportConfig from '../sale/config/exportConfig'
224
- import defaultPrint from "../sale/config/DefaultPrint";
225
- import plugin from "system-clients/src/plugins/GetLoginInfoService";
226
-
227
- let readySomething = async function (self) {
228
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
229
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
230
- // self.$refs.paged.$refs.cri.search()
231
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
232
- await self.$MagLoadParams.loadParam()
233
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
234
- }
235
- export default {
236
- title: '增值业务查询',
237
-
238
- data() {
239
- return {
240
- org:[this.$login.f.orgid],
241
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
242
- config: {
243
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
244
- },
245
- //f_price_name:[],
246
- gasproperties:[],
247
- showinfo: false,
248
- data: {},
249
- show:false,
250
- rowdata:{},
251
- initres: {
252
- org:[this.$login.f.orgid],
253
- dep:[],
254
- user:[],
255
- },
256
- model: new PagedList('rs/sql/valueinfoaddQuery', 20, {}, ),
257
- criteriaShow: true,
258
- orgCondtionStr: '',
259
- // 下拉框
260
- meterbrands: [],
261
- pricenames: [],
262
- prices: [],
263
- //合计数据
264
- defaultfield: [],
265
- sumsmodel: {},
266
- f_filialeid: this.$login.f.f_orgid,
267
- selectfields:[],
268
- istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
269
- backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
270
- }
271
- },
272
- props:['selectorg'],
273
- ready() {
274
- if(this.selectorg != null && this.selectorg != null != ''){
275
- this.initres.org=[]
276
- this.initres.org.push(this.selectorg);
277
- }
278
- readySomething(this).then(() => {
279
- this.$emit('ready')
280
- }).catch((error) => {
281
- this.$emit('error', error)
282
- })
283
- for(var item in exportConfig.valueinfoConfig){
284
- this.selectfields.push(item)
285
- }
286
- },
287
- methods: {
288
- getorg (obj) {
289
- if(obj.resids.length>0){
290
- this.selectorgid = obj.resids
291
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
292
- }
293
- else{
294
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
295
- }
296
- },
297
- search(){
298
- this.$refs.paged.$refs.cri.search()
299
- },
300
- cancel() {
301
- this.show = false
302
- },
303
- showmsg(obj){
304
- this.rowdata=obj
305
- this.show=true
306
- },
307
- userTypeChange () {
308
- this.gasproperties=[]
309
- if(this.$refs.paged.$refs.cri.model !==null) {
310
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
311
-
312
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
313
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
314
- // this.gasproperties.push({label: '全部', value: ''})
315
- }
316
- else{
317
- this.gasproperties =[{label: '全部', value: ''}]
318
- }
319
- },
320
-
321
- selfSearch(args) {
322
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
323
- this.model.search(args.condition, args.model)
324
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
325
- },
326
- clear() {
327
- // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
328
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
329
- this.$refs.paged.$refs.cri.model[key] = []
330
- });
331
- this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
332
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
333
-
334
- },
335
- dealmsg(val) {
336
- val.model = this.model.model
337
- this.$dispatch('deal-msg', val)
338
- },
339
- show() {
340
- this.criteriaShow = true
341
- },
342
- hidden() {
343
- this.criteriaShow = !this.criteriaShow
344
- },
345
- getRes(condition,obj) {
346
- this.orgCondtionStr = condition
347
- this.f_orgid = obj.resids
348
- },
349
- stamp() {
350
- this.all = false
351
- //默认选择要打印的列
352
- this.modelval = defaultPrint.config
353
- this.fields = this.getfield
354
- console.log('所有打印字段', this.fields)
355
- this.printshow = true
356
- this.put()
357
- },
358
- put() {
359
- // 对Modelval进行排序
360
- this.sortModelval()
361
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
362
- for (let key of this.modelval) {
363
- this.thead += '<th>' + this.fields[key] + '</th>'
364
- }
365
- this.thead += '</tr>'
366
- },
367
- print() {
368
- this.$refs.print.PrintAsFile()
369
- this.printshow = false
370
- },
371
- close() {
372
- this.printshow = false
373
- this.all = false
374
- },
375
- // 对选择的列进行排序
376
- sortModelval() {
377
- let sortModel = []
378
- Object.keys(this.fields).forEach((key) => {
379
- if (this.modelval.includes(key)) {
380
- sortModel.push(key)
381
- }
382
- })
383
- this.modelval = sortModel
384
- console.log('选择的打印的字段', this.modelval)
385
- },
386
-
387
- },
388
- watch: {
389
- 'model'(val) {
390
- console.log(val, "12222222222222222222")
391
- },
392
- 'filialeCodeStr'(val) {
393
- let res = val.match(/'(.*?)'/)
394
- console.log('正则提取:',res && res[1])
395
- if (res) {
396
- this.f_filialeid = res[1]
397
- }
398
- }
399
- },
400
- computed: {
401
- getCondition() {
402
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.filialeCodeStr}
403
- },
404
- valuetypeoptions(){
405
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
406
- },
407
- stateoptions(){
408
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
409
- },
410
- usertypes() {
411
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
412
- },
413
- source(){
414
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('数据来源')]
415
- },
416
- pricetypeoptions(){
417
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
418
- },
419
- getfield() {
420
- return exportConfig.valueinfoConfig
421
- },
422
-
423
- }
424
- }
425
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
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">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
11
+ <right-tree @re-res="$parent.$parent.getorg"
12
+ :initresid='$parent.$parent.org'></right-tree>
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
17
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
18
+ </div>
19
+
20
+ <div class="col-sm-2 form-group">
21
+ <label for="startDate" class="font_normal_body">修&nbsp;&nbsp;改&nbsp;&nbsp;时&nbsp;&nbsp;间</label>
22
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
+ v-model="model.startDate"
24
+ :value.sync="model.startDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date >= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
32
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
+ v-model="model.endDate"
34
+ :value.sync="model.endDate"
35
+ :format="'yyyy-MM-dd HH:mm:ss'"
36
+ :show-reset-button="true"
37
+ condition="f_operate_date <= '{}'">
38
+ </datepicker>
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+
44
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
45
+ :field="$parent.$parent.getfield"
46
+ :defaultselect="$parent.$parent.selectfields"
47
+ sqlurl="rs/logic/exportfile" sql-name="valueinfoaddQuery" template-name='增值业务信息'
48
+ :choose-col="true"></export-excel>
49
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
50
+
51
+ </div>
52
+ </div>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">客户名称</label>
56
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
57
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">操作状态</label>
61
+ <v-select :value.sync="model.f_change_state"
62
+ v-model="model.f_change_state"
63
+ :options='$parent.$parent.stateoptions' placeholder='请选择'
64
+ condition="f_change_state = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">数据来源</label>
69
+ <v-select :value.sync="model.f_operate_resource"
70
+ v-model="model.f_operate_resource"
71
+ :options='$parent.$parent.source' placeholder='请选择'
72
+ condition="f_operate_resource = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">增值服务类型</label>
77
+ <v-select :value.sync="model.f_field_name"
78
+ v-model="model.f_field_name"
79
+ :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
80
+ condition="f_field_name = '{}'"
81
+ close-on-select></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">客户类型</label>
85
+ <v-select :value.sync="model.f_user_type"
86
+ @change="$parent.$parent.userTypeChange()"
87
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
88
+ condition="f_user_type = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">是否开通</label>
93
+ <v-select :value.sync="model.f_open_state"
94
+ v-model="model.f_open_state"
95
+ :options='$parent.$parent.backstates' placeholder='请选择'
96
+ condition="f_open_state = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">用气性质</label>
101
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
102
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
103
+ condition="f_gasproperties = '{}'"
104
+ close-on-select></v-select>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </criteria>
109
+
110
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
111
+ <template partial='head'>
112
+ <tr>
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
+ <th>
138
+ <nobr>变更前</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>变更后</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>数据来源</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>操作人</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>操作时间</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>操作人所属公司</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>所属公司</nobr>
157
+ </th>
158
+ </tr>
159
+ </template>
160
+ <template partial='body'>
161
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
162
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
163
+ </td>
164
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
165
+ <nobr>{{row.f_user_name}}</nobr>
166
+ </td>
167
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
168
+ <nobr>{{row.f_user_phone}}</nobr>
169
+ </td>
170
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
171
+ <nobr>{{row.f_user_type}}</nobr>
172
+ </td>
173
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
174
+ <nobr>{{row.f_gasproperties}}</nobr>
175
+ </td>
176
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
177
+ <nobr>{{row.f_change_state}}</nobr>
178
+ </td>
179
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
180
+ <nobr>{{row.f_field_name}}</nobr>
181
+ </td>
182
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
183
+ <nobr>{{row.f_open_state}}</nobr>
184
+ </td>
185
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
186
+ <nobr>{{row.f_used_content}}</nobr>
187
+ </td>
188
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
189
+ <nobr>{{row.f_new_content}}</nobr>
190
+ </td>
191
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
192
+ <nobr>{{row.f_operate_resource}}</nobr>
193
+ </td>
194
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
195
+ <nobr>{{row.f_operator}}</nobr>
196
+ </td>
197
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
198
+ <nobr>{{row.f_operate_date}}</nobr>
199
+ </td>
200
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
201
+ <nobr>{{row.operator_orgname}}</nobr>
202
+ </td>
203
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
204
+ <nobr>{{row.f_orgname}}</nobr>
205
+ </td>
206
+ </template>
207
+ <template partial='foot'></template>
208
+ </data-grid>
209
+
210
+ </criteria-paged>
211
+
212
+
213
+ </div>
214
+ <div v-if="show">
215
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ </template>
220
+
221
+ <script>
222
+ import {PagedList} from 'vue-client'
223
+ import exportConfig from '../sale/config/exportConfig'
224
+ import defaultPrint from "../sale/config/DefaultPrint";
225
+ import plugin from "system-clients/src/plugins/GetLoginInfoService";
226
+
227
+ let readySomething = async function (self) {
228
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
229
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
230
+ // self.$refs.paged.$refs.cri.search()
231
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
232
+ await self.$MagLoadParams.loadParam()
233
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
234
+ }
235
+ export default {
236
+ title: '增值业务查询',
237
+
238
+ data() {
239
+ return {
240
+ org:[this.$login.f.orgid],
241
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
242
+ config: {
243
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
244
+ },
245
+ //f_price_name:[],
246
+ gasproperties:[],
247
+ showinfo: false,
248
+ data: {},
249
+ show:false,
250
+ rowdata:{},
251
+ initres: {
252
+ org:[this.$login.f.orgid],
253
+ dep:[],
254
+ user:[],
255
+ },
256
+ model: new PagedList('rs/sql/valueinfoaddQuery', 20, {}, ),
257
+ criteriaShow: true,
258
+ orgCondtionStr: '',
259
+ // 下拉框
260
+ meterbrands: [],
261
+ pricenames: [],
262
+ prices: [],
263
+ //合计数据
264
+ defaultfield: [],
265
+ sumsmodel: {},
266
+ f_filialeid: this.$login.f.f_orgid,
267
+ selectfields:[],
268
+ istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
269
+ backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
270
+ }
271
+ },
272
+ props:['selectorg'],
273
+ ready() {
274
+ if(this.selectorg != null && this.selectorg != null != ''){
275
+ this.initres.org=[]
276
+ this.initres.org.push(this.selectorg);
277
+ }
278
+ readySomething(this).then(() => {
279
+ this.$emit('ready')
280
+ }).catch((error) => {
281
+ this.$emit('error', error)
282
+ })
283
+ for(var item in exportConfig.valueinfoConfig){
284
+ this.selectfields.push(item)
285
+ }
286
+ },
287
+ methods: {
288
+ getorg (obj) {
289
+ if(obj.resids.length>0){
290
+ this.selectorgid = obj.resids
291
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
292
+ }
293
+ else{
294
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
295
+ }
296
+ },
297
+ search(){
298
+ this.$refs.paged.$refs.cri.search()
299
+ },
300
+ cancel() {
301
+ this.show = false
302
+ },
303
+ showmsg(obj){
304
+ this.rowdata=obj
305
+ this.show=true
306
+ },
307
+ userTypeChange () {
308
+ this.gasproperties=[]
309
+ if(this.$refs.paged.$refs.cri.model !==null) {
310
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
311
+
312
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
313
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
314
+ // this.gasproperties.push({label: '全部', value: ''})
315
+ }
316
+ else{
317
+ this.gasproperties =[{label: '全部', value: ''}]
318
+ }
319
+ },
320
+
321
+ selfSearch(args) {
322
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
323
+ this.model.search(args.condition, args.model)
324
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
325
+ },
326
+ clear() {
327
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
328
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
329
+ this.$refs.paged.$refs.cri.model[key] = []
330
+ });
331
+ this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
332
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
333
+
334
+ },
335
+ dealmsg(val) {
336
+ val.model = this.model.model
337
+ this.$dispatch('deal-msg', val)
338
+ },
339
+ show() {
340
+ this.criteriaShow = true
341
+ },
342
+ hidden() {
343
+ this.criteriaShow = !this.criteriaShow
344
+ },
345
+ getRes(condition,obj) {
346
+ this.orgCondtionStr = condition
347
+ this.f_orgid = obj.resids
348
+ },
349
+ stamp() {
350
+ this.all = false
351
+ //默认选择要打印的列
352
+ this.modelval = defaultPrint.config
353
+ this.fields = this.getfield
354
+ console.log('所有打印字段', this.fields)
355
+ this.printshow = true
356
+ this.put()
357
+ },
358
+ put() {
359
+ // 对Modelval进行排序
360
+ this.sortModelval()
361
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
362
+ for (let key of this.modelval) {
363
+ this.thead += '<th>' + this.fields[key] + '</th>'
364
+ }
365
+ this.thead += '</tr>'
366
+ },
367
+ print() {
368
+ this.$refs.print.PrintAsFile()
369
+ this.printshow = false
370
+ },
371
+ close() {
372
+ this.printshow = false
373
+ this.all = false
374
+ },
375
+ // 对选择的列进行排序
376
+ sortModelval() {
377
+ let sortModel = []
378
+ Object.keys(this.fields).forEach((key) => {
379
+ if (this.modelval.includes(key)) {
380
+ sortModel.push(key)
381
+ }
382
+ })
383
+ this.modelval = sortModel
384
+ console.log('选择的打印的字段', this.modelval)
385
+ },
386
+
387
+ },
388
+ watch: {
389
+ 'model'(val) {
390
+ console.log(val, "12222222222222222222")
391
+ },
392
+ 'filialeCodeStr'(val) {
393
+ let res = val.match(/'(.*?)'/)
394
+ console.log('正则提取:',res && res[1])
395
+ if (res) {
396
+ this.f_filialeid = res[1]
397
+ }
398
+ }
399
+ },
400
+ computed: {
401
+ getCondition() {
402
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.filialeCodeStr}
403
+ },
404
+ valuetypeoptions(){
405
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
406
+ },
407
+ stateoptions(){
408
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
409
+ },
410
+ usertypes() {
411
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
412
+ },
413
+ source(){
414
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('数据来源')]
415
+ },
416
+ pricetypeoptions(){
417
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
418
+ },
419
+ getfield() {
420
+ return exportConfig.valueinfoConfig
421
+ },
422
+
423
+ }
424
+ }
425
+ </script>