manage-client 3.3.2 → 3.3.3

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 (63) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  4. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  5. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  6. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  7. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  8. package/src/filiale/macheng/config/exportConfig.js +1 -1
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/CancellationQuery.vue +426 -0
  14. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  15. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  16. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  17. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  18. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  19. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  20. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  21. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  22. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  23. package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
  24. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  25. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  26. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  27. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  28. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  29. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  30. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  31. package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
  32. package/src/filiale/shanxian/UserQuery.vue +960 -959
  33. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  34. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  35. package/src/filiale/shanxian/sale.js +46 -26
  36. package/src/filiale/shanxian/webmeterManage.js +4 -0
  37. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  38. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  39. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  40. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  41. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  42. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  43. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  44. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  45. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  46. package/src/filiale/wenxi/MeterQuery.vue +937 -964
  47. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  48. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  49. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  50. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  51. package/src/filiale/wenxi/sale.js +24 -24
  52. package/src/filiale/wenxi/webmeterManage.js +13 -13
  53. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  54. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  55. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  56. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  57. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  58. package/src/filiale/xinkang/reportManage.js +15 -15
  59. package/src/filiale/xinkang/sale.js +13 -13
  60. package/src/filiale/xinkang/webmeterManage.js +9 -9
  61. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  62. package/src/main.js +66 -72
  63. package/lib/package_2022-12-01-14-30-50.json +0 -109
@@ -0,0 +1,395 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group ">
30
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder={{$parent.$parent.usertitle}}编号>
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
+
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :header="$parent.$parent.other"
49
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
50
+ sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
51
+ :choose-col="true"></export-excel>
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="档案变更"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <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>
57
+ </div>
58
+ </div>
59
+
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}名称</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
65
+ condition="f_user_name like '%{}%'" placeholder={{$parent.$parent.usertitle}}名称>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}电话</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
70
+ condition="f_user_phone like '%{}%'" placeholder={{$parent.$parent.usertitle}}电话>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
74
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
75
+ condition="f_meternumber = '{}'" placeholder='表号'>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
80
+ condition="f_card_id = '{}'" placeholder='卡号'>
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body">更改内容</label>
84
+ <v-select :value.sync="model.f_field_name"
85
+ v-model="model.f_field_name"
86
+ :options='$parent.$parent.field_name' placeholder='请选择'
87
+ condition="f_field_name = '{}'"
88
+ close-on-select></v-select>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </criteria>
93
+
94
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
95
+ <template partial='head'>
96
+ <tr>
97
+ <th>
98
+ <!--<nobr>客户编号</nobr>-->
99
+ <data-order field="f_userinfo_code" :name=`${$parent.$parent.$parent.usertitle}编号` :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
100
+ </th>
101
+ <th>
102
+ <nobr>{{$parent.$parent.$parent.usertitle}}名称</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>档案编号</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>{{$parent.$parent.$parent.usertitle}}电话</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
+ <data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
125
+ </th>
126
+ <th>
127
+ <nobr>部门</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>公司</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>修改原因</nobr>
134
+ </th>
135
+ </tr>
136
+ </template>
137
+ <template partial='body'>
138
+ <td style="text-align: center;"><nobr>
139
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
140
+ </nobr> </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.f_user_name}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.f_user_phone}}</nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.f_field_name}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_used_content}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_new_content}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_operator}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_operate_date}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_depname}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_orgname}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_comments}}</nobr>
173
+ </td>
174
+ </template>
175
+ <template partial='foot'></template>
176
+ </data-grid>
177
+ </criteria-paged>
178
+ </div>
179
+ <div class="flex" v-if="show">
180
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
181
+ </div>
182
+ </div>
183
+ </div>
184
+ </template>
185
+
186
+ <script>
187
+ import {PagedList} from 'vue-client'
188
+ import defaultPrint from './config/DefaultPrint'
189
+ import exportConfig from './config/exportConfig'
190
+
191
+ let readySomething = async function (self) {
192
+
193
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
194
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
195
+ // self.$refs.paged.$refs.cri.search()
196
+ await self.$MagLoadParams.loadParam()
197
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
198
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
199
+ }
200
+ export default {
201
+ title: '档案变更记录',
202
+ data() {
203
+ return {
204
+ data: {},
205
+ other:[],
206
+ footer:[],
207
+ meterbrands: [],
208
+ pricenames: [],
209
+ model: new PagedList('rs/sql/changeuserquery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
210
+ criteriaShow: false,
211
+ orgCondtionStr: '',
212
+ modelval: [],
213
+ printshow: false,
214
+ all: false,
215
+ fields: {},
216
+ usertitle: this.$appdata.getSingleValue('用户名称前缀') ? this.$appdata.getSingleValue('用户名称前缀') : '客户',
217
+ //排序
218
+ orderitem:'f_operate_date desc',
219
+ orderFields: {
220
+ f_operate_date: 'no'
221
+ },
222
+ initres: {
223
+ org:[this.$login.f.orgid],
224
+ dep:[],
225
+ user:[],
226
+ },
227
+ defaultfield: [],
228
+ config: {
229
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
230
+ },
231
+ show:false,
232
+ rowdata:{},
233
+ thead: '',
234
+ tfoot: '',
235
+
236
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
237
+
238
+
239
+ //合计数据
240
+ sumsmodel: {}
241
+ }
242
+ },
243
+ ready() {
244
+ readySomething(this)
245
+ },
246
+ methods: {
247
+ getotherfooter () {
248
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
249
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
250
+ this.other = [];
251
+ this.footer = [];
252
+ let exportdata = this.getCondition;
253
+ let otherInData = [];
254
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
255
+ // let footerData = [], exportfield = this.getfield;
256
+ // footerData.push("合计");
257
+ // let self = this;
258
+ // for (var field in self.sumsmodel) {
259
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
260
+ // }
261
+ // this.footer.push(footerData);
262
+ this.other.push(otherInData);
263
+ },
264
+ search(){
265
+ this.$refs.paged.$refs.cri.search()
266
+ },
267
+ cancel() {
268
+ this.show = false
269
+ },
270
+ showmsg(obj){
271
+ this.rowdata=obj
272
+ this.show=true
273
+ },
274
+
275
+ selfSearch(args) {
276
+ args.condition = `${args.condition}` + this.orgCondtionStr
277
+ this.model.search(args.condition, args.model)
278
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
279
+ },
280
+ clear() {
281
+ //清空部门和人员
282
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
283
+ //部门和人员变为全选
284
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
285
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
286
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
287
+ this.$refs.paged.$refs.cri.model[key] = []
288
+ })
289
+ },
290
+ show() {
291
+ this.criteriaShow = true
292
+ },
293
+ hidden() {
294
+ this.criteriaShow = !this.criteriaShow
295
+ },
296
+ getRes(obj) {
297
+ console.log(obj,"========")
298
+ this.orgCondtionStr = obj
299
+ },
300
+ stamp() {
301
+ this.all = false
302
+ //默认选择要打印的列
303
+ this.modelval = defaultPrint.config
304
+ this.fields = this.getfield
305
+ console.log('所有打印字段', this.fields)
306
+ this.printshow = true
307
+ this.put()
308
+ },
309
+ dealmsg(val) {
310
+ console.log('---------------dealmsg')
311
+ val.model = this.model.model
312
+ this.$dispatch('deal-msg', val)
313
+ },
314
+ put() {
315
+ // 对Modelval进行排序
316
+ this.sortModelval()
317
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
318
+ for (let key of this.modelval) {
319
+ this.thead += '<th>' + this.fields[key] + '</th>'
320
+ }
321
+ this.thead += '</tr>'
322
+ },
323
+ print() {
324
+ this.$refs.print.PrintAsFile()
325
+ this.printshow = false
326
+ },
327
+ close() {
328
+ this.printshow = false
329
+ this.all = false
330
+ },
331
+ // 对选择的列进行排序
332
+ sortModelval() {
333
+ let sortModel = []
334
+ Object.keys(this.fields).forEach((key) => {
335
+ if (this.modelval.includes(key)) {
336
+ sortModel.push(key)
337
+ }
338
+ })
339
+ this.modelval = sortModel
340
+ console.log('选择的打印的字段', this.modelval)
341
+ },
342
+ sort (field, rule) {
343
+ // 将所有排序方式设为不排序,实现相互排斥
344
+ for (let key in this.orderFields) {
345
+ if (key === field) {
346
+ this.orderFields[key] = rule
347
+ } else {
348
+ this.orderFields[key] = 'no'
349
+ }
350
+ }
351
+ // 如果新规则不排序,还原为默认排序
352
+ if (rule === 'no') {
353
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
354
+ } else {
355
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
356
+ }
357
+
358
+ this.search()
359
+ }
360
+ },
361
+ watch: {
362
+ 'all'(val) {
363
+ if (val) {
364
+ this.modelval = this.bodyData
365
+ } else {
366
+ this.modelval = defaultPrint.config
367
+ this.put()
368
+ }
369
+ },
370
+ 'modelval.length'() {
371
+ this.put()
372
+ },
373
+ sumsmodel:{
374
+ handler: function(val) {
375
+ this.getotherfooter();
376
+ },
377
+ deep: true
378
+ },
379
+ },
380
+ computed: {
381
+ authArr () {
382
+ return this.$login.r ? this.$login.r : []
383
+ },
384
+ getCondition() {
385
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
386
+ },
387
+ getfield() {
388
+ return exportConfig.changUserConfig
389
+ },
390
+ field_name() {
391
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
392
+ }
393
+ }
394
+ }
395
+ </script>