manage-client 4.1.85-tcls → 4.1.85

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 +99 -181
  2. package/package.json +1 -1
  3. package/src/filiale/jinbin/exportConfig.js +1110 -0
  4. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
  5. package/src/filiale/jinbin/sale.js +7 -0
  6. package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -730
  7. package/src/filiale/tongchuan/ChargeQuery.vue +1487 -1514
  8. package/src/filiale/tongchuan/DisableQuery.vue +523 -550
  9. package/src/filiale/tongchuan/FillCardQuery.vue +573 -598
  10. package/src/filiale/tongchuan/FillGasQuery.vue +533 -560
  11. package/src/filiale/tongchuan/HandplanQuery.vue +1332 -1358
  12. package/src/filiale/tongchuan/RecordInfoQuery.vue +1493 -1493
  13. package/src/filiale/tongchuan/ReverseQuery.vue +450 -477
  14. package/src/filiale/tongchuan/config/exportConfig.js +918 -1102
  15. package/src/filiale/tongchuan/sale.js +0 -36
  16. package/src/filiale/tongchuan/sellingChargePrice.vue +714 -754
  17. package/src/main.js +1 -1
  18. package/src/filiale/tongchuan/CancellationQuery.vue +0 -455
  19. package/src/filiale/tongchuan/EnableQuery.vue +0 -489
  20. package/src/filiale/tongchuan/OtherChargeDetailQuery.vue +0 -74
  21. package/src/filiale/tongchuan/OtherChargeQuery.vue +0 -751
  22. package/src/filiale/tongchuan/PrivilegeQuery.vue +0 -420
  23. package/src/filiale/tongchuan/ResSelectUserGroup.vue +0 -384
  24. package/src/filiale/tongchuan/TransferQuery.vue +0 -528
  25. package/src/filiale/tongchuan/TransferRecordQuery.vue +0 -202
  26. package/src/filiale/tongchuan/overDueQuery.vue +0 -497
  27. package/src/filiale/tongchuan/priceadjustQuery.vue +0 -560
@@ -1,420 +0,0 @@
1
- <template>
2
- <div id="unit" class="flex-row foot_tabset" @keyup.enter="search">
3
- <div class="basic-main">
4
- <div class="flex">
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 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 00:00:00'"
16
- :show-reset-button="true"
17
- >
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label 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 23:59:59'"
26
- :show-reset-button="true"
27
- >
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">用户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" 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
-
45
- <export-excel :data="$parent.$parent.getCondition"
46
- :field="$parent.$parent.getfield"
47
- :footer="$parent.$parent.footer"
48
- :header="$parent.$parent.other"
49
- :defaultselect="$parent.$parent.getfield"
50
- sqlurl="api/af-revenue/logic/openapi/exportfile"
51
- sql-name="privilegeQuery"
52
- template-name='免费送气操作记录'
53
- :choose-col="true"></export-excel>
54
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
- :defaultfield="$parent.$parent.defaultfield"
56
- titletable="免费送气操作记录"
57
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
- <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>
59
- </div>
60
- </div>
61
- <div class="row" v-show="$parent.$parent.criteriaShow">
62
- <res-select-user-group
63
- :operator-initres="$parent.$parent.initres"
64
- :user-initres="$parent.$parent.userInitres"
65
- :show-component="['company','department','operator','user_company']"
66
- @re-res="$parent.$parent.getRes"
67
- @re-us-res="$parent.$parent.getUserRes"
68
- v-ref:usersel>
69
- </res-select-user-group>
70
- <div class="col-sm-2 form-group">
71
- <label class="font_normal_body">用户类型</label>
72
- <v-select :value.sync="model.f_user_type"
73
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
74
- condition="f_user_type = '{}'"
75
- close-on-select></v-select>
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">用气地址</label>
79
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
80
- condition="f_address like '%{}%'" placeholder='用气地址'>
81
- </div>
82
-
83
- </div>
84
- </div>
85
- </criteria>
86
-
87
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
88
- <template partial='head'>
89
- <tr>
90
- <th>
91
- <!-- <nobr>用户编号</nobr>-->
92
- <data-order field="f_userinfo_code" name="客户编号"
93
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
94
- </th>
95
- <th>
96
- <nobr>用户姓名</nobr>
97
- </th>
98
- <th>
99
- <nobr>用户类型</nobr>
100
- </th>
101
- <th>
102
- <!-- <nobr>用气地址</nobr>-->
103
- <data-order field="f_address" name="用气地址"
104
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
105
- </th>
106
- <th>
107
- <nobr>气表类型</nobr>
108
- </th>
109
- <th>
110
- <nobr>表号</nobr>
111
- </th>
112
- <th>
113
- <nobr>赠送方量(方)</nobr>
114
- </th>
115
- <th>
116
- <nobr>赠送金额(元)</nobr>
117
- </th>
118
- <th>
119
- <!-- <nobr>时间</nobr>-->
120
- <data-order field="f_operate_date" name="时间"
121
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
122
- </th>
123
- <th>
124
- <nobr>操作员人员</nobr>
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
-
137
- </template>
138
- <template partial='body'>
139
- <td style="text-align: center;"><nobr>
140
- <span ><a>{{row.f_userinfo_code}}</a></span>
141
- </nobr> </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_user_name}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_user_type}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_address}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_meter_type}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_meternumber}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_privilege_gas}}</nobr>
159
- </td>
160
-
161
- <td style="text-align: center;">
162
- <nobr>{{row.f_privilege_money}}</nobr>
163
- </td>
164
- <td style="text-align: center;">
165
- <nobr>{{row.f_operate_date}}</nobr>
166
- </td>
167
- <td style="text-align: center;">
168
- <nobr>{{row.f_operator}}</nobr>
169
- </td>
170
- <td style="text-align: center;">
171
- <nobr>{{row.f_depname}}</nobr>
172
- </td>
173
- <td style="text-align: center;">
174
- <nobr>{{row.f_orgname}}</nobr>
175
- </td>
176
- <td style="text-align: center;">
177
- <nobr>{{row.f_us_orgname}}</nobr>
178
- </td>
179
- </template>
180
- </data-grid>
181
- </criteria-paged>
182
- <table class="table-hover">
183
- <tr style="position: relative" class="table-bordered">
184
- <td
185
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
186
- 汇总信息
187
- </td>
188
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
189
- 赠送方量合计:&emsp;{{sumsmodel.f_privilege_gas}}
190
- </td>
191
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
192
- 赠送金额合计:&emsp;{{sumsmodel.f_privilege_money}}
193
- </td>
194
- </tr>
195
- </table>
196
-
197
- </div>
198
-
199
- </div>
200
- </div>
201
- </template>
202
-
203
- <script>
204
- import {PagedList} from 'vue-client'
205
- import defaultPrint from './config/DefaultPrint'
206
- import exportConfig from './config/exportConfig'
207
- import ResSelectUserGroup from './ResSelectUserGroup.vue'
208
-
209
- let readySomething = async function (self) {
210
-
211
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
212
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
213
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
214
- }
215
- export default {
216
- components: {
217
- 'res-select-user-group': ResSelectUserGroup
218
- },
219
- title: '免费送气查询',
220
- data() {
221
- return {
222
- data: {},
223
- other:[],
224
- footer:[],
225
- model: new PagedList('api/af-revenue/sql/privilegeQuery', 20,{startDate: 'this.model.startDate', endDate: 'this.model.endDate',orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc '"},{
226
- f_privilege_gas:0,
227
- f_privilege_money:0
228
- }),
229
- criteriaShow: false,
230
- orgCondtionStr: '',
231
- userOrgConditionStr: '',
232
- modelval: [],
233
- printshow: false,
234
- all: false,
235
- fields: {},
236
- config: {
237
- defaultPrint: ['f_userinfo_code',
238
- 'f_user_name',
239
- 'f_user_type',
240
- 'f_address',
241
- 'f_meter_type',
242
- 'f_privilege_gas',
243
- 'f_privilege_money',
244
- 'f_operator',
245
- 'f_operate_date']
246
- },
247
- //排序
248
- orderitem:'f_operate_date desc',
249
- orderFields: {
250
- f_operate_date: 'no'
251
- },
252
- //默认打印列
253
- defaultfield: [],
254
- initres: {
255
- org:[this.$login.f.orgid],
256
- dep:[],
257
- user:[],
258
- },
259
- userInitres: {
260
- org: [],
261
- dep: [],
262
- user: []
263
- },
264
- thead: '',
265
- tfoot: '',
266
-
267
-
268
- //合计数据
269
- sumsmodel: {}
270
- }
271
- },
272
- ready() {
273
- readySomething(this)
274
- },
275
- methods: {
276
- getotherfooter(){
277
- this.other=[];
278
- this.footer=[];
279
- let exportdata = this.getCondition;
280
- let otherInData=[];
281
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
282
- let footerData=[],exportfield=this.getfield;
283
- footerData.push("合计");
284
- let self =this;
285
- for(var field in self.sumsmodel){
286
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
287
- }
288
- this.footer.push(footerData);
289
- this.other.push(otherInData);
290
- },
291
- search(){
292
- this.$refs.paged.$refs.cri.search()
293
- },
294
-
295
-
296
- selfSearch(args) {
297
- args.condition = `${args.condition}` + this.orgCondtionStr + this.userOrgConditionStr
298
- this.model.search(args.condition, args.model)
299
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
300
- },
301
- getUserRes (condition) {
302
- this.userOrgConditionStr = condition
303
- },
304
- clear() {
305
- if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
306
- this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
307
- }
308
- this.orgCondtionStr = ''
309
- this.userOrgConditionStr = ''
310
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
311
- this.$refs.paged.$refs.cri.model[key] = []
312
- })
313
- },
314
- show() {
315
- this.criteriaShow = true
316
- },
317
- hidden() {
318
- this.criteriaShow = !this.criteriaShow
319
- },
320
- getRes(obj) {
321
- console.log(obj,"========")
322
- this.orgCondtionStr = obj
323
- },
324
- stamp() {
325
- this.all = false
326
- //默认选择要打印的列
327
- this.modelval = defaultPrint.config
328
- this.fields = this.getfield
329
- console.log('所有打印字段', this.fields)
330
- this.printshow = true
331
- this.put()
332
- },
333
- dealmsg(val) {
334
- console.log('---------------dealmsg')
335
- val.model = this.model.model
336
- this.$dispatch('deal-msg', val)
337
- },
338
- put() {
339
- // 对Modelval进行排序
340
- this.sortModelval()
341
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
342
- for (let key of this.modelval) {
343
- this.thead += '<th>' + this.fields[key] + '</th>'
344
- }
345
- this.thead += '</tr>'
346
- },
347
- print() {
348
- this.$refs.print.PrintAsFile()
349
- this.printshow = false
350
- },
351
- close() {
352
- this.printshow = false
353
- this.all = false
354
- },
355
- // 对选择的列进行排序
356
- sortModelval() {
357
- let sortModel = []
358
- Object.keys(this.fields).forEach((key) => {
359
- if (this.modelval.includes(key)) {
360
- sortModel.push(key)
361
- }
362
- })
363
- this.modelval = sortModel
364
- console.log('选择的打印的字段', this.modelval)
365
- },
366
- sort (field, rule) {
367
- // 将所有排序方式设为不排序,实现相互排斥
368
- for (let key in this.orderFields) {
369
- if (key === field) {
370
- this.orderFields[key] = rule
371
- } else {
372
- this.orderFields[key] = 'no'
373
- }
374
- }
375
- // 如果新规则不排序,还原为默认排序
376
- if (rule === 'no') {
377
- this.model.paramSource.orderitem = `'${this.orderitem}'`
378
- } else {
379
- this.model.paramSource.orderitem = `'${field} ${rule}'`
380
- }
381
-
382
- this.search()
383
- }
384
- },
385
- watch: {
386
- 'all'(val) {
387
- if (val) {
388
- this.modelval = this.bodyData
389
- } else {
390
- this.modelval = defaultPrint.config
391
- this.put()
392
- }
393
- },
394
- 'modelval.length'() {
395
- this.put()
396
- },
397
- sumsmodel:{
398
- handler: function(val) {
399
- this.getotherfooter();
400
- },
401
- deep: true
402
- }
403
- },
404
- computed: {
405
- getCondition() {
406
- return {
407
- startDate: this.$refs.paged.$refs.cri.model.startDate,
408
- endDate: this.$refs.paged.$refs.cri.model.endDate,
409
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr + this.userOrgConditionStr,
410
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
411
- },
412
- getfield() {
413
- return exportConfig.PrivilegeQuery
414
- },
415
- usertypes() {
416
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
417
- }
418
- }
419
- }
420
- </script>