manage-client 3.1.45 → 3.1.46

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