manage-client 3.3.1 → 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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/components/sale/businessquery/GroupChargeQuery.vue +1 -1
  3. package/src/filiale/gehua/GroupChargeQuery.vue +1 -1
  4. package/src/filiale/macheng/config/exportConfig.js +1 -1
  5. package/src/filiale/shanxian/CancellationQuery.vue +426 -0
  6. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  7. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  8. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  9. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  10. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  11. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  12. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  13. package/src/filiale/shanxian/LostContactAnalysisList.vue +19 -18
  14. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  15. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  16. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  17. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  18. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  19. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  20. package/src/filiale/shanxian/UserLostContactAnalysis.vue +18 -17
  21. package/src/filiale/shanxian/UserQuery.vue +27 -26
  22. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  23. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  24. package/src/filiale/shanxian/sale.js +20 -0
  25. package/src/filiale/shanxian/webmeterManage.js +4 -0
  26. package/src/filiale/wenxi/GasStatistics.vue +6 -6
  27. package/src/filiale/wenxi/HandplanQuery.vue +10 -10
  28. package/src/filiale/wenxi/MeterQuery.vue +41 -68
  29. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  30. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  31. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  32. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  33. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  34. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -0,0 +1,461 @@
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
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+
11
+ <div class="col-sm-2 form-group">
12
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}编号</label>
13
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
14
+ condition="f_userinfo_code = '{}' " placeholder={{$parent.$parent.usertitle}}编号>
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}名称</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
19
+ condition=" f_user_name like '%{}%'" placeholder={{$parent.$parent.usertitle}}名称
20
+ :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
21
+ </div>
22
+ <div class="col-sm-2 form-group">
23
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}地址</label>
24
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
25
+ condition="f_address like '%{}%'" placeholder={{$parent.$parent.usertitle}}地址>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
29
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
30
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
31
+ </div>
32
+ <div class="span" style="float:right;">
33
+ <button class="button_search button_spacing" @click="search()">查询</button>
34
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
+
37
+ <export-excel :data="$parent.$parent.getCondition"
38
+ :field="$parent.$parent.getfield"
39
+ :header="$parent.$parent.other"
40
+ sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
41
+ :choose-col="true"></export-excel>
42
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
43
+ :defaultfield="$parent.$parent.defaultfield"
44
+ titletable="启用记录"
45
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
46
+ <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>
47
+ </div>
48
+ </div>
49
+
50
+ <div class="row" v-show="$parent.$parent.criteriaShow">
51
+ <div class="col-sm-2 form-group">
52
+ <label for="startDate" class="font_normal_body">开始日期</label>
53
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
54
+ v-model="model.startDate"
55
+ :value.sync="model.startDate"
56
+ :format="'yyyy-MM-dd HH:mm:ss'"
57
+ :show-reset-button="true"
58
+ condition="f_operate_date >= '{}'">
59
+ </datepicker>
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label for="endDate" class="font_normal_body">结束日期</label>
63
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
64
+ v-model="model.endDate"
65
+ :value.sync="model.endDate"
66
+ :format="'yyyy-MM-dd HH:mm:ss'"
67
+ :show-reset-button="true"
68
+ condition="f_operate_date <= '{}'">
69
+ </datepicker>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
73
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
74
+ condition="f_meternumber = '{}'" placeholder='表号'>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
79
+ condition="f_card_id = '{}'" placeholder='卡号'>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
83
+ <v-select class="select_list select"
84
+ v-model="model.f_residential_area"
85
+ :value.sync="model.f_residential_area"
86
+ :options='$parent.$parent.residentialarea'
87
+ style="width: 60%"
88
+ placeholder='选择小区'
89
+ condition="f_residential_area = '{}'"
90
+ close-on-select>
91
+
92
+ </v-select>
93
+ </div>
94
+ <div class="col-sm-2 form-group">
95
+ <label class="font_normal_body">具体地址</label>
96
+ <div class="btn-group select_list select" style="width: 60%;">
97
+ <input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/>&nbsp;-&nbsp;
98
+ <input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/>&nbsp;-&nbsp;
99
+ <input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
100
+ </div>
101
+ </div>
102
+
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">操作类型</label>
105
+ <v-select :value.sync="model.f_operat_type"
106
+ v-model="model.f_operat_type"
107
+ :options='$parent.$parent.operattype' placeholder='请选择'
108
+ condition="f_operat_type = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :cascade =true v-ref:sel></res-select-group>
112
+ </div>
113
+ </div>
114
+ </criteria>
115
+
116
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
117
+ <template partial='head'>
118
+ <tr>
119
+ <th>
120
+ <!-- <nobr>客户编号</nobr>-->
121
+ <data-order field="f_userinfo_code" :name=`${$parent.$parent.$parent.usertitle}编号`
122
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
123
+ </th>
124
+ <th>
125
+ <nobr>{{$parent.$parent.$parent.usertitle}}名称</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>档案编号</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>{{$parent.$parent.$parent.usertitle}}类型</nobr>
132
+ </th>
133
+ <th>
134
+ <!-- <nobr>客户地址</nobr>-->
135
+ <data-order field="f_address" :name.sync=`${$parent.$parent.$parent.usertitle}地址`
136
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
137
+ </th>
138
+ <th>
139
+ <nobr>表号</nobr>
140
+ </th>
141
+ <th>
142
+ <nobr>启用原因</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>其他原因</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>状态</nobr>
149
+ </th>
150
+ <th>
151
+ <!-- <nobr>启用日期</nobr>-->
152
+ <data-order field="f_operate_date" name="启用日期"
153
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
154
+ </th>
155
+ <th>
156
+ <nobr>操作类型</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>人员</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>部门</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>公司</nobr>
166
+ </th>
167
+ <th><nobr>附件</nobr></th>
168
+ </tr>
169
+ </template>
170
+ <template partial='body'>
171
+ <td style="text-align: center;">
172
+ <nobr>
173
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_user_name}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_user_type}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_address}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_meternumber}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_enable_reason}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_othereason}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_state}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_operate_date}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_operat_type}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_operator}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_depname}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_orgname}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;"><nobr>
215
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
216
+ </nobr></td>
217
+ </template>
218
+ <template partial='foot'></template>
219
+ </data-grid>
220
+ </criteria-paged>
221
+
222
+ <!-- <table class="table-hover">-->
223
+ <!-- <tr style="position: relative" class="table-bordered">-->
224
+ <!-- <td-->
225
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
226
+ <!-- 汇总信息-->
227
+ <!-- </td>-->
228
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
229
+ <!-- </tr>-->
230
+ <!-- </table>-->
231
+ </div>
232
+ <div class="flex" v-if="show">
233
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
234
+ </div>
235
+ </div>
236
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
237
+ <article slot="modal-body">
238
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="启用" :isremark="false" style="width:auto" ></upload>
239
+ </article>
240
+ <footer slot="modal-footer" class="modal-footer">
241
+ </footer>
242
+ </modal>
243
+ </div>
244
+ </template>
245
+
246
+ <script>
247
+ import {PagedList} from 'vue-client'
248
+ import defaultPrint from './config/DefaultPrint'
249
+ import exportConfig from './config/exportConfig'
250
+
251
+ let readySomething = async function (self) {
252
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
253
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
254
+ // await self.$refs.paged.$refs.cri.search()
255
+ await self.$MagLoadParams.loadParam()
256
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
257
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
258
+ }
259
+ export default {
260
+ props:['data','residentialarea'],
261
+ title: '启用查询',
262
+ data() {
263
+ return {
264
+ data: {},
265
+ other: [],
266
+ footer: [],
267
+ model: new PagedList('rs/sql/enableQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
268
+ criteriaShow: false,
269
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
270
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
271
+ orgCondtionStr: '',
272
+ modelval: [],
273
+ printshow: false,
274
+ all: false,
275
+ fields: {},
276
+ config: {
277
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_enable_reason', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
278
+ },
279
+ //排序
280
+ orderitem:'f_operate_date desc',
281
+ orderFields: {
282
+ f_operate_date: 'no'
283
+ },
284
+ usertitle: this.$appdata.getSingleValue('用户名称前缀') ? this.$appdata.getSingleValue('用户名称前缀') : '客户',
285
+ //默认打印列
286
+ defaultfield: [],
287
+ initres: {
288
+ org: [this.$login.f.orgid],
289
+ dep: [],
290
+ user: [],
291
+ },
292
+
293
+ show: false,
294
+ rowdata: {},
295
+ thead: '',
296
+ showupload:false,
297
+ selected:{},
298
+ tfoot: '',
299
+ //合计数据
300
+ sumsmodel: {},
301
+ operattype:[{label: '全部', value: ''},{label: '启用', value: '启用'},{label: '复拆表', value: '复拆表'}]
302
+ }
303
+ },
304
+ ready() {
305
+ readySomething(this).then(() => {
306
+ this.$emit('ready')
307
+ }).catch((error) => {
308
+ this.$emit('error', error)
309
+ })
310
+ },
311
+ methods: {
312
+ view(row){
313
+ this.showupload = true
314
+ this.selected= row
315
+ },
316
+ getotherfooter() {
317
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
318
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
319
+ this.other = [];
320
+ this.footer = [];
321
+ let exportdata = this.getCondition;
322
+ let otherInData = [];
323
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
324
+ let footerData = [], exportfield = this.getfield;
325
+ footerData.push("合计");
326
+ let self = this;
327
+ for (var field in self.sumsmodel) {
328
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
329
+ }
330
+ this.footer.push(footerData);
331
+ this.other.push(otherInData);
332
+ },
333
+ search() {
334
+ this.$refs.paged.$refs.cri.search()
335
+ },
336
+ cancel() {
337
+ this.show = false
338
+ },
339
+ selfSearch(args) {
340
+ if (this.data) {
341
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
342
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
343
+ }
344
+ args.condition = `${args.condition} ` + this.orgCondtionStr
345
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
346
+ this.model.search(args.condition, args.model)
347
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
348
+ },
349
+
350
+ clear() {
351
+ //清空部门和人员
352
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
353
+ //部门和人员变为全选
354
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
355
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
356
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
357
+ this.$refs.paged.$refs.cri.model[key] = []
358
+ })
359
+ },
360
+ dealmsg(val) {
361
+ console.log('---------------dealmsg')
362
+ this.rowdata = val
363
+ this.show = true
364
+ val.model = this.model.model
365
+ this.$dispatch('deal-msg', val)
366
+ },
367
+ hidden() {
368
+ this.criteriaShow = !this.criteriaShow
369
+ },
370
+ getRes(obj) {
371
+ this.orgCondtionStr = obj
372
+ },
373
+ stamp() {
374
+ this.all = false
375
+ //默认选择要打印的列
376
+ this.modelval = defaultPrint.config
377
+ this.fields = this.getfield
378
+ console.log('所有打印字段', this.fields)
379
+ this.printshow = true
380
+ this.put()
381
+ },
382
+ put() {
383
+ // 对Modelval进行排序
384
+ this.sortModelval()
385
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
386
+ for (let key of this.modelval) {
387
+ this.thead += '<th>' + this.fields[key] + '</th>'
388
+ }
389
+ this.thead += '</tr>'
390
+ },
391
+ print() {
392
+ this.$refs.print.PrintAsFile()
393
+ this.printshow = false
394
+ },
395
+ close() {
396
+ this.printshow = false
397
+ this.all = false
398
+ },
399
+ // 对选择的列进行排序
400
+ sortModelval() {
401
+ let sortModel = []
402
+ Object.keys(this.fields).forEach((key) => {
403
+ if (this.modelval.includes(key)) {
404
+ sortModel.push(key)
405
+ }
406
+ })
407
+ this.modelval = sortModel
408
+ console.log('选择的打印的字段', this.modelval)
409
+ },
410
+ sort (field, rule) {
411
+ // 将所有排序方式设为不排序,实现相互排斥
412
+ for (let key in this.orderFields) {
413
+ if (key === field) {
414
+ this.orderFields[key] = rule
415
+ } else {
416
+ this.orderFields[key] = 'no'
417
+ }
418
+ }
419
+ // 如果新规则不排序,还原为默认排序
420
+ if (rule === 'no') {
421
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
422
+ } else {
423
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
424
+ }
425
+
426
+ this.search()
427
+ }
428
+ },
429
+
430
+ watch: {
431
+ 'all'(val) {
432
+ if (val) {
433
+ this.modelval = this.bodyData
434
+ } else {
435
+ this.modelval = defaultPrint.config
436
+ this.put()
437
+ }
438
+ },
439
+ sumsmodel: {
440
+ handler: function (val) {
441
+ this.getotherfooter();
442
+ },
443
+ deep: true
444
+ },
445
+ 'modelval.length'() {
446
+ this.put()
447
+ }
448
+ },
449
+ computed: {
450
+ getCondition() {
451
+ return {
452
+ condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr,
453
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
454
+ }
455
+ },
456
+ getfield() {
457
+ return exportConfig.enableConfig
458
+ }
459
+ }
460
+ }
461
+ </script>