manage-client 4.1.83 → 4.1.85-tcls

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 (27) hide show
  1. package/build/dev-server.js +227 -145
  2. package/package.json +111 -111
  3. package/src/components/SellReport/shimen/SMSummary.vue +175 -0
  4. package/src/filiale/shanxian/OtherChargeQuery.vue +0 -4
  5. package/src/filiale/tongchuan/CancellationQuery.vue +455 -0
  6. package/src/filiale/tongchuan/ChangeMeterQuery.vue +730 -702
  7. package/src/filiale/tongchuan/ChargeQuery.vue +1514 -1487
  8. package/src/filiale/tongchuan/DisableQuery.vue +550 -523
  9. package/src/filiale/tongchuan/EnableQuery.vue +489 -0
  10. package/src/filiale/tongchuan/FillCardQuery.vue +598 -573
  11. package/src/filiale/tongchuan/FillGasQuery.vue +560 -533
  12. package/src/filiale/tongchuan/HandplanQuery.vue +1358 -1332
  13. package/src/filiale/tongchuan/OtherChargeDetailQuery.vue +74 -0
  14. package/src/filiale/tongchuan/OtherChargeQuery.vue +751 -0
  15. package/src/filiale/tongchuan/PrivilegeQuery.vue +420 -0
  16. package/src/filiale/tongchuan/RecordInfoQuery.vue +1493 -1493
  17. package/src/filiale/tongchuan/ResSelectUserGroup.vue +384 -0
  18. package/src/filiale/tongchuan/ReverseQuery.vue +477 -450
  19. package/src/filiale/tongchuan/TransferQuery.vue +528 -0
  20. package/src/filiale/tongchuan/TransferRecordQuery.vue +202 -0
  21. package/src/filiale/tongchuan/config/exportConfig.js +1102 -918
  22. package/src/filiale/tongchuan/overDueQuery.vue +497 -0
  23. package/src/filiale/tongchuan/priceadjustQuery.vue +560 -0
  24. package/src/filiale/tongchuan/sale.js +36 -0
  25. package/src/filiale/tongchuan/sellingChargePrice.vue +754 -714
  26. package/src/main.js +3 -3
  27. package/src/reportManage.js +4 -0
@@ -0,0 +1,497 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!showinfo">
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" title="减免开始时间">开始日期</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_operator_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body" title="减免结束时间">结束日期</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_operator_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">
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
+ <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
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
+
45
+ <export-excel :data="$parent.$parent.getCondition"
46
+ :field="$parent.$parent.getfield"
47
+ :footer="$parent.$parent.footer"
48
+ :header="$parent.$parent.other"
49
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="overDueQuery" 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
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-user-group
60
+ :operator-initres="$parent.$parent.initres"
61
+ :user-initres="$parent.$parent.userInitres"
62
+ :show-component="['company','department','operator','slicearea','user_company']"
63
+ @re-res="$parent.$parent.getRes"
64
+ @re-us-res="$parent.$parent.getUserRes"
65
+ v-ref:usersel>
66
+ </res-select-user-group>
67
+
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">客户名称</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
71
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">客户地址</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
76
+ condition="f_address like '%{}%'" placeholder='客户地址'>
77
+ </div>
78
+ </div>
79
+
80
+
81
+
82
+
83
+ </div>
84
+ </criteria>
85
+
86
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
87
+ <template partial='head'>
88
+ <tr>
89
+ <th>
90
+ <!-- <nobr>客户编号</nobr>-->
91
+ <data-order field="f_userinfo_code" name="客户编号"
92
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
93
+ </th>
94
+ <th>
95
+ <nobr>客户名称</nobr>
96
+ </th>
97
+ <th>
98
+ <nobr>档案编号</nobr>
99
+ </th>
100
+ <th>
101
+ <!-- <nobr>客户地址</nobr>-->
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
+ <!-- <nobr>抄表日期</nobr>-->
116
+ <data-order field="f_operate_date" name="抄表日期"
117
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
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><nobr>附件</nobr></th>
147
+ </tr>
148
+ </template>
149
+ <template partial='body'>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.f_userinfo_code}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_user_name}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_address}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_meternumber}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_last_tablebase}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_tablebase}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_input_date}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr>{{0-row.f_latefee_ought}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr>{{row.f_overdue.toFixed(2)}}</nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr>{{(row.f_overdue.toFixed(2)-(0-row.f_latefee_ought.toFixed(2))).toFixed(2)}}</nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr>{{row.f_comments}}</nobr>
185
+ </td>
186
+ <td style="text-align: center;">
187
+ <nobr>{{row.f_operator_date}}</nobr>
188
+ </td>
189
+ <td style="text-align: center;">
190
+ <nobr>{{row.f_operator}}</nobr>
191
+ </td>
192
+ <td style="text-align: center;">
193
+ <nobr>{{row.f_depname}}</nobr>
194
+ </td>
195
+ <td style="text-align: center;">
196
+ <nobr>{{row.f_orgname}}</nobr>
197
+ </td>
198
+ <td style="text-align: center;">
199
+ <nobr>{{row.f_us_orgname}}</nobr>
200
+ </td>
201
+ <td style="text-align: center;"><nobr>
202
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
203
+ </nobr></td>
204
+ </template>
205
+ <template partial='foot'></template>
206
+ </data-grid>
207
+ </criteria-paged>
208
+ <table class="table-hover">
209
+ <tr style="position: relative" class="table-bordered">
210
+ <td
211
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
212
+ 汇总信息
213
+ </td>
214
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
215
+ 减免金额合计:&emsp;{{0-sumsmodel.f_latefee_ought}}
216
+ </td>
217
+ </tr>
218
+ </table>
219
+ </div>
220
+ <div class="flex" v-if="showinfo">
221
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
226
+ <article slot="modal-body">
227
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="减免优惠" :isremark="false" style="width:auto" ></upload>
228
+ </article>
229
+ <footer slot="modal-footer" class="modal-footer">
230
+ </footer>
231
+ </modal>
232
+ </template>
233
+
234
+ <script>
235
+ import {PagedList} from 'vue-client'
236
+ import defaultPrint from './config/DefaultPrint'
237
+ import exportConfig from './config/exportConfig'
238
+ import plugins from '../../plugins/GetLoginInfoService'
239
+ import ResSelectUserGroup from './ResSelectUserGroup.vue'
240
+
241
+ let readySomething = async function (self) {
242
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
243
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
244
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
245
+ await self.$MagLoadParams.loadParam()
246
+ self.initParams()
247
+
248
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
249
+ }
250
+ export default {
251
+ components: {
252
+ 'res-select-user-group': ResSelectUserGroup
253
+ },
254
+ title: '减免统计',
255
+ props:['data'],
256
+ data() {
257
+ return {
258
+ data: {},
259
+ other: [],
260
+ footer: [],
261
+ initres: {
262
+ org:[this.$login.f.orgid],
263
+ dep:[],
264
+ user:[],
265
+ },
266
+ //排序
267
+ orderitem:'f_operate_date desc',
268
+ orderFields: {
269
+ f_operate_date: 'no'
270
+ },
271
+ orderDefault: "'f_operate_date desc'",
272
+ model: new PagedList('api/af-revenue/sql/overDueQuery', 20,{orderitem: this.orderitem?`${this.orderitem}`:"'f_operate_date desc'"},{
273
+ f_latefee_ought:0
274
+ }),
275
+ f_orgid: this.$login.f.orgid,
276
+ criteriaShow: false,
277
+ modelval: [],
278
+ printshow: false,
279
+ all: false,
280
+ fields: {},
281
+ config: {
282
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_latefee_ought', 'f_comments', 'f_operate_date', 'f_operator']
283
+ },
284
+
285
+ //默认打印列
286
+ defaultfield: [],
287
+ thead: '',
288
+ tfoot: '',
289
+ //orgCondtionStr: '(' + this.$login.f.orgid + ')',
290
+ orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
291
+ meterbrands: [],
292
+ userOrgConditionStr: '',
293
+ showupload:false,
294
+ selected:{},
295
+ showinfo:false,
296
+ rowdata:{},
297
+ //合计数据
298
+ sumsmodel: {}
299
+ }
300
+ },
301
+ ready() {
302
+ readySomething(this).then(() => {
303
+ this.$emit('ready')
304
+ }).catch((error) => {
305
+ this.$emit('error', error)
306
+ })
307
+ },
308
+ methods: {
309
+ view(row){
310
+ this.showupload = true
311
+ this.selected= row
312
+ },
313
+ getotherfooter() {
314
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
315
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
316
+ this.other = [];
317
+ this.footer = [];
318
+ let exportdata = this.getCondition;
319
+ let otherInData = [];
320
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
321
+ let footerData = [], exportfield = this.getfield;
322
+ footerData.push("合计");
323
+ let self = this;
324
+ for (var field in self.sumsmodel) {
325
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
326
+ }
327
+ this.footer.push(footerData);
328
+ this.other.push(otherInData);
329
+ },
330
+ cancel() {
331
+ this.showinfo = false
332
+ },
333
+ search() {
334
+ this.$refs.paged.$refs.cri.search()
335
+ },
336
+ getRes(obj) {
337
+ console.log(obj,"========")
338
+ this.orgCondtionStr = obj
339
+ },
340
+ getUserRes (condition) {
341
+ this.userOrgConditionStr = condition
342
+ },
343
+
344
+ selfSearch(args) {
345
+ if (this.data) {
346
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
347
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
348
+ }
349
+ args.condition = `${args.condition} ` + this.orgCondtionStr + this.userOrgConditionStr
350
+ console.log("start"+args.condition)
351
+ this.model.search(args.condition, args.model)
352
+ },
353
+ showmsg(obj){
354
+ this.rowdata=obj
355
+ this.showinfo=true
356
+ },
357
+ initParams() {
358
+ // 初始化气表品牌
359
+ let brandArr = []
360
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
361
+ let temp = {}
362
+ temp.label = item.label
363
+ temp.value = item.value.f_meter_brand
364
+ brandArr.push(temp)
365
+ })
366
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
367
+ },
368
+
369
+ clear() {
370
+ if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
371
+ this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
372
+ }
373
+ this.orgCondtionStr = ` and f_orgid = '${this.$login.f.orgid}'`
374
+ this.userOrgConditionStr = ''
375
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
376
+ this.$refs.paged.$refs.cri.model[key] = []
377
+ })
378
+ },
379
+ show() {
380
+ this.criteriaShow = true
381
+ },
382
+ hidden() {
383
+ this.criteriaShow = !this.criteriaShow
384
+ },
385
+ dealmsg(val) {
386
+ console.log('---------------dealmsg')
387
+ this.rowdata=val
388
+ this.show=true
389
+ val.model = this.model.model
390
+ this.$dispatch('deal-msg', val)
391
+ },
392
+
393
+ stamp() {
394
+ this.all = false
395
+ //默认选择要打印的列
396
+ this.modelval = defaultPrint.config
397
+ this.fields = this.getfield
398
+ console.log('所有打印字段', this.fields)
399
+ this.printshow = true
400
+ this.put()
401
+ },
402
+ put() {
403
+ // 对Modelval进行排序
404
+ this.sortModelval()
405
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
406
+ for (let key of this.modelval) {
407
+ this.thead += '<th>' + this.fields[key] + '</th>'
408
+ }
409
+ this.thead += '</tr>'
410
+ },
411
+ print() {
412
+ this.$refs.print.PrintAsFile()
413
+ this.printshow = false
414
+ },
415
+ close() {
416
+ this.printshow = false
417
+ this.all = false
418
+ },
419
+ // 对选择的列进行排序
420
+ sortModelval() {
421
+ let sortModel = []
422
+ Object.keys(this.fields).forEach((key) => {
423
+ if (this.modelval.includes(key)) {
424
+ sortModel.push(key)
425
+ }
426
+ })
427
+ this.modelval = sortModel
428
+ console.log('选择的打印的字段', this.modelval)
429
+ },
430
+ async updateParams() {
431
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
432
+ this.initParams()
433
+ },
434
+ sort (field, rule) {
435
+ // 将所有排序方式设为不排序,实现相互排斥
436
+ for (let key in this.orderFields) {
437
+ if (key === field) {
438
+ this.orderFields[key] = rule
439
+ } else {
440
+ this.orderFields[key] = 'no'
441
+ }
442
+ }
443
+ // 如果新规则不排序,还原为默认排序
444
+ if (rule === 'no') {
445
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
446
+ } else {
447
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
448
+ }
449
+
450
+ this.search()
451
+ }
452
+ },
453
+ watch: {
454
+ 'all'(val) {
455
+ if (val) {
456
+ this.modelval = this.bodyData
457
+ } else {
458
+ this.modelval = defaultPrint.config
459
+ this.put()
460
+ }
461
+ },
462
+ 'modelval.length'() {
463
+ this.put()
464
+ },
465
+ sumsmodel: {
466
+ handler: function (val) {
467
+ this.getotherfooter();
468
+ },
469
+ deep: true
470
+ }
471
+ },
472
+ computed: {
473
+ authArr () {
474
+ return this.$login.r ? this.$login.r : []
475
+ },
476
+ getCondition () {
477
+ var con = ""
478
+ if (this.orgCondtionStr) {
479
+ con = `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
480
+ }
481
+ else {
482
+ con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in ('${this.$login.f.orgid}' )`
483
+ }
484
+ return {
485
+ condition: con,
486
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
487
+ }
488
+ },
489
+ getfield() {
490
+ return exportConfig.overDueQueryConfig
491
+ },
492
+ gaspropertyTypes() {
493
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
494
+ }
495
+ }
496
+ }
497
+ </script>