manage-client 3.2.26 → 3.2.30

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 (54) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/SellReport/ChargePrick.vue +43 -122
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -348
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -627
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  16. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  17. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  18. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  19. package/src/components/sale/businessquery/FillCardQuery.vue +486 -477
  20. package/src/components/sale/businessquery/FillGasQuery.vue +511 -491
  21. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  22. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -619
  23. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  24. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  25. package/src/components/sale/businessquery/TransferQuery.vue +418 -404
  26. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  27. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  28. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  29. package/src/components/sale/filesquery/FireQuery.vue +477 -0
  30. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  31. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  32. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  33. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  34. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  35. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  38. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  39. package/src/filiale/pingxiang/sale.js +9 -9
  40. package/src/filiale/qingtongxia/sale.js +13 -13
  41. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  42. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  43. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  44. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  45. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  46. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  47. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  48. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  49. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  50. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1252
  51. package/src/filiale/tongchuan/FillGasQuery.vue +523 -508
  52. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  53. package/src/main.js +10 -11
  54. package/src/saleManage.js +5 -0
@@ -1,508 +1,523 @@
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>
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">
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
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- :footer="$parent.$parent.footer"
49
- :header="$parent.$parent.other"
50
- sqlurl="rs/logic/exportfile" sql-name="fillGasQuery" 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">客户电话</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">客户地址</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
70
- condition="f_address like '%{}%'" placeholder='客户地址'>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">操作类型</label>
74
- <v-select :value.sync="model.f_type"
75
- v-model="model.f_type"
76
- :options='$parent.$parent.fillGasTypes' placeholder='请选择'
77
- condition="f_type = '{}'"
78
- close-on-select></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">补气类型</label>
82
- <v-select :value.sync="model.f_fill_type"
83
- v-model="model.f_fill_type"
84
- :options='$parent.$parent.fillTypes' placeholder='请选择'
85
- condition="f_fill_type = '{}'"
86
- close-on-select></v-select>
87
- </div>
88
-
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
91
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
92
- condition="f_card_id like '%{}%'" placeholder='卡号'>
93
- </div>
94
- <div class="col-sm-2 form-group">
95
- <label class="font_normal_body">气表品牌</label>
96
- <v-select :value.sync="model.f_meter_brand"
97
- v-model="model.f_meter_brand"
98
- :options='$parent.$parent.meterbrands' placeholder='请选择'
99
- condition="f_meter_brand = '{}'"
100
- close-on-select></v-select>
101
- </div>
102
- <div class="col-sm-2 form-group">
103
- <label class="font_normal_body">补气状态</label>
104
- <v-select :value.sync="model.f_state"
105
- v-model="model.f_state"
106
- :options='$parent.$parent.chargeState' placeholder='请选择'
107
- condition="f_state = '{}'"
108
- close-on-select></v-select>
109
- </div>
110
- <div class="col-sm-2 form-group">
111
- <label class="font_normal_body">用户类型</label>
112
- <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
113
- :options='$parent.$parent.usertypes' placeholder='请选择'
114
- @change="$parent.$parent.userTypeChange()"
115
- condition="f_user_type = '{}'"
116
- close-on-select></v-select>
117
- </div>
118
- <div class="col-sm-2 form-group">
119
- <label class="font_normal_body">用气性质</label>
120
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
121
- :options='$parent.$parent.gasproperties' placeholder='请选择'
122
- condition="f_gasproperties = '{}'"
123
- close-on-select></v-select>
124
- </div>
125
- </div>
126
-
127
- </div>
128
- </criteria>
129
-
130
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
131
- <template partial='head'>
132
- <tr>
133
- <th>
134
- <nobr>客户编号</nobr>
135
- </th>
136
- <th>
137
- <nobr>客户名称</nobr>
138
- </th>
139
- <th>
140
- <nobr>客户类型</nobr>
141
- </th>
142
- <th>
143
- <nobr>客户电话</nobr>
144
- </th>
145
- <th>
146
- <nobr>客户地址</nobr>
147
- </th>
148
- <th>
149
- <nobr>卡号</nobr>
150
- </th>
151
- <th>
152
- <nobr>气表品牌</nobr>
153
- </th>
154
- <th>
155
- <nobr>补气量</nobr>
156
- </th>
157
- <th>
158
- <nobr>补气金额</nobr>
159
- </th>
160
- <th>
161
- <nobr>操作类型</nobr>
162
- </th>
163
- <th>
164
- <nobr>补气类型</nobr>
165
- </th>
166
- <th>
167
- <nobr>补气日期</nobr>
168
- </th>
169
- <th>
170
- <nobr>补气原因</nobr>
171
- </th>
172
- <th>
173
- <nobr>操作员</nobr>
174
- </th>
175
- <th>
176
- <nobr>部门</nobr>
177
- </th>
178
- <th>
179
- <nobr>公司</nobr>
180
- </th>
181
- <th><nobr>附件</nobr></th>
182
- </tr>
183
- </template>
184
- <template partial='body'>
185
- <td style="text-align: center;">
186
- <nobr>
187
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
188
- </td>
189
- <td style="text-align: center;">
190
- <nobr>{{row.f_user_name}}</nobr>
191
- </td>
192
- <td style="text-align: center;">
193
- <nobr>{{row.f_user_type}}</nobr>
194
- </td>
195
- <td style="text-align: center;">
196
- <nobr>{{row.f_user_phone}}</nobr>
197
- </td>
198
- <td style="text-align: center;">
199
- <nobr>{{row.f_address}}</nobr>
200
- </td>
201
- <td style="text-align: center;">
202
- <nobr>{{row.f_card_id}}</nobr>
203
- </td>
204
- <td style="text-align: center;">
205
- <nobr>{{row.f_meter_brand}}</nobr>
206
- </td>
207
- <td style="text-align: center;">
208
- <nobr>{{row.f_pregas}}</nobr>
209
- </td>
210
- <td style="text-align: center;">
211
- <nobr>{{row.f_preamount}}</nobr>
212
- </td>
213
- <td style="text-align: center;">
214
- <nobr>{{row.f_type}}</nobr>
215
- </td>
216
- <td style="text-align: center;">
217
- <nobr>{{row.f_fill_type}}</nobr>
218
- </td>
219
- <td style="text-align: center;">
220
- <nobr>{{row.f_operate_date}}</nobr>
221
- </td>
222
- <td style="text-align: center;">
223
- <nobr>{{row.f_comments}}</nobr>
224
- </td>
225
- <td style="text-align: center;">
226
- <nobr>{{row.f_operator}}</nobr>
227
- </td>
228
- <td style="text-align: center;">
229
- <nobr>{{row.f_depname}}</nobr>
230
- </td>
231
- <td style="text-align: center;">
232
- <nobr>{{row.f_orgname}}</nobr>
233
- </td>
234
- <td style="text-align: center;"><nobr>
235
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
236
- </nobr></td>
237
- </template>
238
- <template partial='foot'></template>
239
- </data-grid>
240
- </criteria-paged>
241
-
242
- <table class="table-hover">
243
- <tr style="position: relative" class="table-bordered">
244
- <td
245
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
246
- 汇总信息
247
- </td>
248
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
249
- 补气量合计:&emsp;{{sumsmodel.f_pregas}}
250
- </td>
251
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
252
- 补气金额合计:&emsp;{{sumsmodel.f_preamount}}
253
- </td>
254
- </tr>
255
- </table>
256
- </div>
257
- <div class="flex" v-if="show">
258
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
259
- </div>
260
- </div>
261
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
262
- <article slot="modal-body">
263
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="补气" :isremark="false" style="width:auto" ></upload>
264
- </article>
265
- <footer slot="modal-footer" class="modal-footer">
266
- </footer>
267
- </modal>
268
- </div>
269
- </template>
270
-
271
- <script>
272
- import {PagedList} from 'vue-client'
273
- import defaultPrint from './config/DefaultPrint'
274
- import exportConfig from './config/exportConfig'
275
-
276
- let readySomething = async function (self) {
277
-
278
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
279
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
280
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
281
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
282
- // await self.$refs.paged.$refs.cri.search()
283
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
284
- self.initParams()
285
- await self.$MagLoadParams.loadParam()
286
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
287
- }
288
- export default {
289
- props:['data'],
290
- title: '补气查询',
291
- data() {
292
- return {
293
- data: {},
294
- other:[],
295
- footer:[],
296
- model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0,f_preamount: 0}),
297
- criteriaShow: false,
298
- headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
299
- bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", "f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
300
- orgCondtionStr: '',
301
- config: {
302
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_idnumber', 'f_type', 'f_meter_brand', 'f_fillgas','f_operate_date', 'f_operator']
303
- },
304
- //默认打印列
305
- defaultfield: [],
306
- modelval: [],
307
- printshow: false,
308
- all: false,
309
- fields: {},
310
- thead: '',
311
- tfoot: '',
312
- show:false,
313
- rowdata:{},
314
- meterbrands: [],
315
- initres: {
316
- org:[this.$login.f.orgid],
317
- dep:[],
318
- user:[],
319
- },
320
- showupload:false,
321
- selected:{},
322
- gasproperties:[],
323
- //合计数据
324
- sumsmodel: {}
325
- }
326
- },
327
- ready() {
328
- readySomething(this).then(() => {
329
- this.$emit('ready')
330
- }).catch((error) => {
331
- this.$emit('error', error)
332
- })
333
- },
334
- methods: {
335
- view(row){
336
- this.showupload = true
337
- this.selected= row
338
- },
339
- getotherfooter(){
340
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
341
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
342
- this.other=[];
343
- this.footer=[];
344
- let exportdata = this.getCondition;
345
- let otherInData=[];
346
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
347
- let footerData=[],exportfield=this.getfield;
348
- footerData.push("合计");
349
- let self = this;
350
- for(var field in self.sumsmodel){
351
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
352
- }
353
- this.footer.push(footerData);
354
- this.other.push(otherInData);
355
- },
356
- search(){
357
- this.$refs.paged.$refs.cri.search()
358
- },
359
- initParams() {
360
- // 初始化气表品牌
361
- let brandArr = []
362
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
363
- let temp = {}
364
- temp.label = item.label
365
- temp.value = item.value.f_meter_brand
366
- brandArr.push(temp)
367
- })
368
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
369
- },
370
- selfSearch(args) {
371
- if (this.data) {
372
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
373
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
374
- }
375
- args.condition = `${args.condition}` + this.orgCondtionStr
376
- this.model.search(args.condition, args.model)
377
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
378
- },
379
- clear() {
380
- //清空部门和人员
381
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
382
- //部门和人员变为全选
383
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
384
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
385
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
386
- this.$refs.paged.$refs.cri.model[key] = []
387
- })
388
- },
389
- show() {
390
- this.criteriaShow = true
391
- },
392
- hidden() {
393
- this.criteriaShow = !this.criteriaShow
394
- },
395
- getRes(condition) {
396
- this.orgCondtionStr = condition
397
- },
398
- stamp() {
399
- this.all = false
400
- //默认选择要打印的列
401
- this.modelval = defaultPrint.config
402
- this.fields = this.getfield
403
- console.log('所有打印字段', this.fields)
404
- this.printshow = true
405
- this.put()
406
- },
407
- cancel() {
408
- this.show = false
409
- },
410
- dealmsg(val) {
411
- console.log('---------------dealmsg')
412
- this.rowdata=val
413
- this.show=true
414
- val.model = this.model.model
415
- this.$dispatch('deal-msg', val)
416
- },
417
- put() {
418
- // 对Modelval进行排序
419
- this.sortModelval()
420
- this.thead = `<tr><th colspan=${this.modelval.length}>补气查询统计报表</th></tr><tr>`
421
- for (let key of this.modelval) {
422
- this.thead += '<th>' + this.fields[key] + '</th>'
423
- }
424
- this.thead += '</tr>'
425
- },
426
- print() {
427
- this.$refs.print.PrintAsFile()
428
- this.printshow = false
429
- },
430
- close() {
431
- this.printshow = false
432
- this.all = false
433
- },
434
- // 对选择的列进行排序
435
- sortModelval() {
436
- let sortModel = []
437
- Object.keys(this.fields).forEach((key) => {
438
- if (this.modelval.includes(key)) {
439
- sortModel.push(key)
440
- }
441
- })
442
- this.modelval = sortModel
443
- console.log('选择的打印的字段', this.modelval)
444
- },
445
- async updateParams() {
446
- await this.$MagLoadParams.loadParam(this.f_filialeid)
447
- this.initParams()
448
- },
449
- userTypeChange () {
450
- this.gasproperties=[]
451
- if(this.$refs.paged.$refs.cri.model !==null) {
452
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
453
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
454
- }
455
- else{
456
- this.gasproperties =[{label: '全部', value: ''}]
457
- }
458
- }
459
- },
460
- watch: {
461
- 'all'(val) {
462
- if (val) {
463
- this.modelval = this.bodyData
464
- } else {
465
- this.modelval = defaultPrint.config
466
- this.put()
467
- }
468
- },
469
- 'modelval.length'() {
470
- this.put()
471
- },
472
- sumsmodel:{
473
- handler: function(val) {
474
- this.getotherfooter();
475
- },
476
- deep: true
477
- },
478
- 'orgCondtionStr'(val) {
479
- let res = val.match(/'(.*?)'/)
480
- console.log('正则提取:',res && res[1])
481
- if (res) {
482
- this.f_filialeid = res[1]
483
- this.updateParams()
484
- }
485
- }
486
- },
487
- computed: {
488
- getCondition() {
489
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
490
- },
491
- getfield() {
492
- return exportConfig.fillgasConfig
493
- },
494
- fillGasTypes() {
495
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
496
- },
497
- fillTypes() {
498
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型细化')]
499
- },
500
- chargeState() {
501
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气状态')]
502
- },
503
- usertypes() {
504
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
505
- }
506
- }
507
- }
508
- </script>
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>
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">
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
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :footer="$parent.$parent.footer"
49
+ :header="$parent.$parent.other"
50
+ sqlurl="rs/logic/exportfile" sql-name="fillGasQuery" 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">客户电话</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户地址</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
70
+ condition="f_address like '%{}%'" placeholder='客户地址'>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">操作类型</label>
74
+ <v-select :value.sync="model.f_type"
75
+ v-model="model.f_type"
76
+ :options='$parent.$parent.fillGasTypes' placeholder='请选择'
77
+ condition="f_type = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">补气类型</label>
82
+ <v-select :value.sync="model.f_fill_type"
83
+ :multiple="true"
84
+ v-model="model.f_fill_type"
85
+ :options='$parent.$parent.fillTypes' placeholder='请选择'
86
+ condition="f_fill_type in {}"
87
+ close-on-select></v-select>
88
+ </div>
89
+
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
92
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
93
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">气表类型</label>
97
+ <v-select :value.sync="model.f_meter_type" multiple
98
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
99
+ condition="f_meter_type in {}"
100
+ close-on-select></v-select>
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">气表品牌</label>
104
+ <v-select :value.sync="model.f_meter_brand"
105
+ v-model="model.f_meter_brand"
106
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
107
+ condition="f_meter_brand = '{}'"
108
+ close-on-select></v-select>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">补气状态</label>
112
+ <v-select :value.sync="model.f_state"
113
+ v-model="model.f_state"
114
+ :options='$parent.$parent.chargeState' placeholder='请选择'
115
+ condition="f_state = '{}'"
116
+ close-on-select></v-select>
117
+ </div>
118
+ <div class="col-sm-2 form-group">
119
+ <label class="font_normal_body">用户类型</label>
120
+ <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
121
+ :options='$parent.$parent.usertypes' placeholder='请选择'
122
+ @change="$parent.$parent.userTypeChange()"
123
+ condition="f_user_type = '{}'"
124
+ close-on-select></v-select>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">用气性质</label>
128
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
129
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
130
+ condition="f_gasproperties = '{}'"
131
+ close-on-select></v-select>
132
+ </div>
133
+ </div>
134
+
135
+ </div>
136
+ </criteria>
137
+
138
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
139
+ <template partial='head'>
140
+ <tr>
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
+ </th>
153
+ <th>
154
+ <nobr>客户地址</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>卡号</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>气表品牌</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>补气量</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>补气金额</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>操作类型</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>补气类型</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>补气日期</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>补气原因</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>操作员</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>部门</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>公司</nobr>
188
+ </th>
189
+ <th><nobr>附件</nobr></th>
190
+ </tr>
191
+ </template>
192
+ <template partial='body'>
193
+ <td style="text-align: center;">
194
+ <nobr>
195
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{row.f_user_name}}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{row.f_user_type}}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_user_phone}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_address}}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_card_id}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_meter_brand}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_pregas}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_preamount}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_type}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_fill_type}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_operate_date}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_comments}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_operator}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_depname}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_orgname}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;"><nobr>
243
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
244
+ </nobr></td>
245
+ </template>
246
+ <template partial='foot'></template>
247
+ </data-grid>
248
+ </criteria-paged>
249
+
250
+ <table class="table-hover">
251
+ <tr style="position: relative" class="table-bordered">
252
+ <td
253
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
254
+ 汇总信息
255
+ </td>
256
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
257
+ 补气量合计:&emsp;{{sumsmodel.f_pregas}}
258
+ </td>
259
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
+ 补气金额合计:&emsp;{{sumsmodel.f_preamount}}
261
+ </td>
262
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
+ 户数合计:&emsp;{{sumsmodel.hushu}}
264
+ </td>
265
+ </tr>
266
+ </table>
267
+ </div>
268
+ <div class="flex" v-if="show">
269
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
270
+ </div>
271
+ </div>
272
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
273
+ <article slot="modal-body">
274
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="补气" :isremark="false" style="width:auto" ></upload>
275
+ </article>
276
+ <footer slot="modal-footer" class="modal-footer">
277
+ </footer>
278
+ </modal>
279
+ </div>
280
+ </template>
281
+
282
+ <script>
283
+ import {PagedList} from 'vue-client'
284
+ import defaultPrint from './config/DefaultPrint'
285
+ import exportConfig from './config/exportConfig'
286
+
287
+ let readySomething = async function (self) {
288
+
289
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
290
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
291
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
292
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
293
+ // await self.$refs.paged.$refs.cri.search()
294
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
295
+ self.initParams()
296
+ await self.$MagLoadParams.loadParam()
297
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
298
+ }
299
+ export default {
300
+ props:['data'],
301
+ title: '补气查询',
302
+ data() {
303
+ return {
304
+ data: {},
305
+ other:[],
306
+ footer:[],
307
+ model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0,f_preamount: 0,hushu:0}),
308
+ criteriaShow: false,
309
+ headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
310
+ bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", "f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
311
+ orgCondtionStr: '',
312
+ config: {
313
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_idnumber', 'f_type', 'f_meter_brand', 'f_fillgas','f_operate_date', 'f_operator']
314
+ },
315
+ //默认打印列
316
+ defaultfield: [],
317
+ modelval: [],
318
+ printshow: false,
319
+ all: false,
320
+ fields: {},
321
+ thead: '',
322
+ tfoot: '',
323
+ show:false,
324
+ rowdata:{},
325
+ meterbrands: [],
326
+ initres: {
327
+ org:[this.$login.f.orgid],
328
+ dep:[],
329
+ user:[],
330
+ },
331
+ metertypes: this.$appdata.getParam('气表类型')?[{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]:[],
332
+ showupload:false,
333
+ selected:{},
334
+ gasproperties:[],
335
+ //合计数据
336
+ sumsmodel: {}
337
+ }
338
+ },
339
+ ready() {
340
+ readySomething(this).then(() => {
341
+ this.$emit('ready')
342
+ }).catch((error) => {
343
+ this.$emit('error', error)
344
+ })
345
+ },
346
+ methods: {
347
+ view(row){
348
+ this.showupload = true
349
+ this.selected= row
350
+ },
351
+ getotherfooter(){
352
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
353
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
354
+ this.other=[];
355
+ this.footer=[];
356
+ let exportdata = this.getCondition;
357
+ let otherInData=[];
358
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
359
+ let footerData=[],exportfield=this.getfield;
360
+ footerData.push("合计");
361
+ let self = this;
362
+ for(var field in self.sumsmodel){
363
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
364
+ }
365
+ this.footer.push(footerData);
366
+ this.other.push(otherInData);
367
+ },
368
+ search(){
369
+ this.$refs.paged.$refs.cri.search()
370
+ },
371
+ initParams() {
372
+ // 初始化气表品牌
373
+ let brandArr = []
374
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
375
+ let temp = {}
376
+ temp.label = item.label
377
+ temp.value = item.value.f_meter_brand
378
+ brandArr.push(temp)
379
+ })
380
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
381
+ },
382
+ async selfSearch(args) {
383
+ if (this.data) {
384
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
385
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
386
+ }
387
+ args.condition = `${args.condition}` + this.orgCondtionStr
388
+ await this.model.search(args.condition, args.model)
389
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
390
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
391
+ console.log("this.sumsmodel",this.sumsmodel,this.$refs.paged.$refs.grid)
392
+
393
+ },
394
+ clear() {
395
+ //清空部门和人员
396
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
397
+ //部门和人员变为全选
398
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
399
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
400
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
401
+ this.$refs.paged.$refs.cri.model[key] = []
402
+ })
403
+ },
404
+ show() {
405
+ this.criteriaShow = true
406
+ },
407
+ hidden() {
408
+ this.criteriaShow = !this.criteriaShow
409
+ },
410
+ getRes(condition) {
411
+ this.orgCondtionStr = condition
412
+ },
413
+ stamp() {
414
+ this.all = false
415
+ //默认选择要打印的列
416
+ this.modelval = defaultPrint.config
417
+ this.fields = this.getfield
418
+ console.log('所有打印字段', this.fields)
419
+ this.printshow = true
420
+ this.put()
421
+ },
422
+ cancel() {
423
+ this.show = false
424
+ },
425
+ dealmsg(val) {
426
+ console.log('---------------dealmsg')
427
+ this.rowdata=val
428
+ this.show=true
429
+ val.model = this.model.model
430
+ this.$dispatch('deal-msg', val)
431
+ },
432
+ put() {
433
+ // 对Modelval进行排序
434
+ this.sortModelval()
435
+ this.thead = `<tr><th colspan=${this.modelval.length}>补气查询统计报表</th></tr><tr>`
436
+ for (let key of this.modelval) {
437
+ this.thead += '<th>' + this.fields[key] + '</th>'
438
+ }
439
+ this.thead += '</tr>'
440
+ },
441
+ print() {
442
+ this.$refs.print.PrintAsFile()
443
+ this.printshow = false
444
+ },
445
+ close() {
446
+ this.printshow = false
447
+ this.all = false
448
+ },
449
+ // 对选择的列进行排序
450
+ sortModelval() {
451
+ let sortModel = []
452
+ Object.keys(this.fields).forEach((key) => {
453
+ if (this.modelval.includes(key)) {
454
+ sortModel.push(key)
455
+ }
456
+ })
457
+ this.modelval = sortModel
458
+ console.log('选择的打印的字段', this.modelval)
459
+ },
460
+ async updateParams() {
461
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
462
+ this.initParams()
463
+ },
464
+ userTypeChange () {
465
+ this.gasproperties=[]
466
+ if(this.$refs.paged.$refs.cri.model !==null) {
467
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
468
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
469
+ }
470
+ else{
471
+ this.gasproperties =[{label: '全部', value: ''}]
472
+ }
473
+ }
474
+ },
475
+ watch: {
476
+ 'all'(val) {
477
+ if (val) {
478
+ this.modelval = this.bodyData
479
+ } else {
480
+ this.modelval = defaultPrint.config
481
+ this.put()
482
+ }
483
+ },
484
+ 'modelval.length'() {
485
+ this.put()
486
+ },
487
+ sumsmodel:{
488
+ handler: function(val) {
489
+ this.getotherfooter();
490
+ },
491
+ deep: true
492
+ },
493
+ 'orgCondtionStr'(val) {
494
+ let res = val.match(/'(.*?)'/)
495
+ console.log('正则提取:',res && res[1])
496
+ if (res) {
497
+ this.f_filialeid = res[1]
498
+ this.updateParams()
499
+ }
500
+ }
501
+ },
502
+ computed: {
503
+ getCondition() {
504
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
505
+ },
506
+ getfield() {
507
+ return exportConfig.fillgasConfig
508
+ },
509
+ fillGasTypes() {
510
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
511
+ },
512
+ fillTypes() {
513
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型细化')]
514
+ },
515
+ chargeState() {
516
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气状态')]
517
+ },
518
+ usertypes() {
519
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
520
+ }
521
+ }
522
+ }
523
+ </script>