manage-client 3.2.131 → 3.2.134

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