manage-client 3.2.79-aode → 3.2.80-aode

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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,329 +1,329 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
-
12
- <div class="span" style = "float:right;">
13
- <button class="button_search button_spacing" @click="search()">查询</button>
14
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
-
17
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
- :field="$parent.$parent.getExportField"
19
- sqlurl="rs/logic/exportfile" sql-name="deviceQuery" template-name='设备查询导出' :choose-col="true"></export-excel>
20
-
21
- <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>
22
- </div>
23
- </div>
24
- <div class="row" v-show="$parent.$parent.criteriaShow">
25
- <div class="col-sm-2" >
26
- <label class="font_normal_body">客户编号</label>
27
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
28
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
29
- </div>
30
- <div class="col-sm-2" >
31
- <label class="font_normal_body">客户名称</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
33
- condition="f_user_name like '%{}%'" placeholder="客户名称">
34
- </div>
35
- <div class="col-sm-2" >
36
- <label class="font_normal_body">客户状态</label>
37
- <v-select :value.sync="model.f_user_state"
38
- v-model="model.f_user_state"
39
- :options='$parent.$parent.userstates' placeholder='请选择'
40
- condition="f_user_state = '{}'"
41
- close-on-select></v-select>
42
- </div>
43
- <div class="col-sm-2" >
44
- <label class="font_normal_body">客户地址</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
- condition="f_address like '%{}%'" placeholder='客户地址'>
47
- </div>
48
- <div class="col-sm-2" >
49
- <label class="font_normal_body">所&nbsp;属&nbsp;表</label>
50
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
51
- condition="f_meternumber like '%{}%'" placeholder='所属表(表号)'>
52
- </div>
53
-
54
- <div class="col-sm-2" >
55
- <label class="font_normal_body">设备类型</label>
56
- <v-select :value.sync="model.f_devices_type"
57
- v-model="model.f_devices_type"
58
- :options='$parent.$parent.deviceTypes' placeholder='请选择'
59
- condition="f_devices_type = '{}'"
60
- close-on-select></v-select>
61
- </div>
62
- <div class="col-sm-2" >
63
- <label class="font_normal_body">设备品牌</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_brand"
65
- condition="f_brand like '%{}%'" placeholder='设备品牌'>
66
- </div>
67
- <div class="col-sm-2" >
68
- <label class="font_normal_body">设备型号</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_devices_model"
70
- condition="f_devices_model like '%{}%'" placeholder='设备型号'>
71
- </div>
72
- <div class="col-sm-2" >
73
- <label for="startDate" class="font_normal_body">开始日期</label>
74
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
75
- v-model="model.startDate"
76
- :value.sync="model.startDate"
77
- :format="'yyyy-MM-dd'"
78
- :show-reset-button="true"
79
- condition="f_operate_date >= '{} 00:00:00'">
80
- </datepicker>
81
- </div>
82
- <div class="col-sm-2" >
83
- <label for="endDate" class="font_normal_body">结束日期</label>
84
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
85
- v-model="model.endDate"
86
- :value.sync="model.endDate"
87
- :format="'yyyy-MM-dd'"
88
- :show-reset-button="true"
89
- condition="f_operate_date <= '{} 23:59:59'">
90
- </datepicker>
91
- </div>
92
-
93
- </div>
94
- </div>
95
- </criteria>
96
-
97
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
98
- <template partial='head'>
99
- <tr>
100
- <th><nobr>客户编号</nobr></th>
101
- <th><nobr>客户名称</nobr></th>
102
- <th><nobr>客户地址</nobr></th>
103
- <th><nobr>所属表具(表号)</nobr></th>
104
- <th><nobr>设备类型</nobr></th>
105
- <th><nobr>设备编号</nobr></th>
106
- <th><nobr>设备品牌</nobr></th>
107
- <th><nobr>设备型号</nobr></th>
108
- <th><nobr>录入日期</nobr></th>
109
- </tr>
110
- </template>
111
- <template partial='body'>
112
- <td style="text-align: center;"><nobr>
113
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
114
- </nobr> </td>
115
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
116
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
117
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
118
- <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
119
- <td style="text-align: center;"><nobr>{{row.f_devices_no}}</nobr></td>
120
- <td style="text-align: center;"><nobr>{{row.f_brand}}</nobr></td>
121
- <td style="text-align: center;"><nobr>{{row.f_devices_model}}</nobr></td>
122
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
123
- </template>
124
- <template partial='foot'>
125
-
126
- </template>
127
- </data-grid>
128
- </criteria-paged>
129
-
130
- <table class="table-hover">
131
- <tr style="position: relative" class="table-bordered">
132
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
133
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">暂无合计字段</td>
134
- </tr>
135
- </table>
136
-
137
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
138
- <header slot="modal-header" class="modal-header text-center">
139
- <h4 class="modal-title">打印列选择</h4>
140
- <input type="checkbox" class="" id="f_generations" v-model="all">
141
- <label for="f_generations" class="font-size">全选</label>
142
- </header>
143
- <article slot="modal-body">
144
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
145
- <div class="col-sm-3" v-for="f in fields">
146
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
147
- <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
148
- </div>
149
- </div>
150
- </article>
151
- <footer slot="modal-footer" class="modal-footer">
152
- <center>
153
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
154
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
155
- <print-table :model='model' v-show="false" v-ref:print
156
- :top='40' :left='60' :right='40' :bottom='60'
157
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
158
- :fields="modelval" :printpage="true">
159
- </print-table>
160
- </center>
161
- </footer>
162
- </modal>
163
- </div>
164
- <div v-if="show">
165
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
166
- </div>
167
- </div></div></div>
168
- </template>
169
-
170
- <script>
171
- import { PagedList } from 'vue-client'
172
- import defaultPrint from '../config/DefaultPrint'
173
- import exportConfig from '../config/exportConfig'
174
-
175
- let readySomething = async function (self) {
176
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
177
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
178
- // await self.$refs.paged.$refs.cri.search()
179
- }
180
- export default {
181
- data() {
182
- return {
183
- selectfields:[],
184
- model: new PagedList('rs/sql/deviceQuery', 20),
185
- criteriaShow: false,
186
- orgCondtionStr:'',
187
-
188
- modelval: [],
189
- printshow: false,
190
- all: false,
191
- fields: {},
192
- thead: '',
193
- tfoot: '',
194
- show:false,
195
- rowdata:{},
196
- // 下拉框参数
197
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
198
- deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
199
- brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
200
- initres: {
201
- org:[this.$login.f.orgid],
202
- dep:[],
203
- user:[],
204
- },
205
- // 合计数据
206
- sumsmodel: {}
207
- }
208
- },
209
- ready(){
210
- readySomething(this).then(() => {
211
- this.$emit('ready')
212
- }).catch((error) => {
213
- this.$emit('error', error)
214
- })
215
- for(var item in exportConfig.dataReportConfig){
216
- this.selectfields.push(item)
217
- }
218
- },
219
- methods: {
220
- search(){
221
- this.$refs.paged.$refs.cri.search()
222
- },
223
- cancel() {
224
- this.show = false
225
- },
226
- showmsg(obj){
227
- this.rowdata=obj
228
- this.show=true
229
- },
230
- selfSearch (args) {
231
- if (!this.orgCondtionStr) {
232
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
233
- } else {
234
- args.condition = `${args.condition}` + this.orgCondtionStr
235
- }
236
-
237
- this.model.search(args.condition, args.model)
238
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
239
- console.log('合计字段',this.sumsmodel)
240
- },
241
- clear(){
242
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
243
- this.$refs.paged.$refs.cri.model[key] = ''
244
- })
245
- },
246
- hidden(){
247
- this.criteriaShow = !this.criteriaShow
248
- },
249
- getRes(obj) {
250
- this.orgCondtionStr = obj
251
- },
252
- stamp () {
253
- this.all = false
254
- //默认选择要打印的列
255
- this.modelval = defaultPrint.config
256
- this.fields = this.getfield
257
- console.log('所有打印字段',this.fields)
258
- this.printshow = true
259
- this.put()
260
- },
261
- put () {
262
- // 对Modelval进行排序
263
- this.sortModelval()
264
- this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
265
- for (let key of this.modelval) {
266
- this.thead += '<th>' + this.fields[key] + '</th>'
267
- }
268
- this.thead += '</tr>'
269
- },
270
- print () {
271
- this.$refs.print.PrintAsFile()
272
- this.printshow = false
273
- },
274
- close () {
275
- this.printshow = false
276
- this.all = false
277
- },
278
- // 对选择的列进行排序
279
- sortModelval () {
280
- let sortModel = []
281
- Object.keys(this.fields).forEach((key) => {
282
- if (this.modelval.includes(key)) {
283
- sortModel.push(key)
284
- }
285
- })
286
- this.modelval = sortModel
287
- console.log('选择的打印的字段', this.modelval)
288
- }
289
- },
290
- watch:{
291
- 'all' (val) {
292
- if (val) {
293
- this.modelval = this.bodyData
294
- } else {
295
- this.modelval = defaultPrint.config
296
- this.put()
297
- }
298
- },
299
- 'modelval.length' () {
300
- this.put()
301
- },
302
- },
303
- computed:{
304
- getCondition(){
305
- return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
306
- },
307
- getfield(){
308
- let data = {}
309
- this.bodyData.forEach((value, index)=>{
310
- data[this.bodyData[index]] = this.headData[index]
311
- })
312
- //合计字段打印
313
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
314
- if(this.sumsmodel){
315
- Object.keys(this.sumsmodel).forEach((key) => {
316
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
317
- })
318
- }else{
319
- this.tfoot += '暂无'
320
- }
321
- this.tfoot += '</th></tr>'
322
- return data
323
- },
324
- getExportField() {
325
- return exportConfig.deviceConfig
326
- }
327
- }
328
- }
329
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
+
12
+ <div class="span" style = "float:right;">
13
+ <button class="button_search button_spacing" @click="search()">查询</button>
14
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
+
17
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
+ :field="$parent.$parent.getExportField"
19
+ sqlurl="rs/logic/exportfile" sql-name="deviceQuery" template-name='设备查询导出' :choose-col="true"></export-excel>
20
+
21
+ <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>
22
+ </div>
23
+ </div>
24
+ <div class="row" v-show="$parent.$parent.criteriaShow">
25
+ <div class="col-sm-2" >
26
+ <label class="font_normal_body">客户编号</label>
27
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
28
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
29
+ </div>
30
+ <div class="col-sm-2" >
31
+ <label class="font_normal_body">客户名称</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
33
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
34
+ </div>
35
+ <div class="col-sm-2" >
36
+ <label class="font_normal_body">客户状态</label>
37
+ <v-select :value.sync="model.f_user_state"
38
+ v-model="model.f_user_state"
39
+ :options='$parent.$parent.userstates' placeholder='请选择'
40
+ condition="f_user_state = '{}'"
41
+ close-on-select></v-select>
42
+ </div>
43
+ <div class="col-sm-2" >
44
+ <label class="font_normal_body">客户地址</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
+ condition="f_address like '%{}%'" placeholder='客户地址'>
47
+ </div>
48
+ <div class="col-sm-2" >
49
+ <label class="font_normal_body">所&nbsp;属&nbsp;表</label>
50
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
51
+ condition="f_meternumber like '%{}%'" placeholder='所属表(表号)'>
52
+ </div>
53
+
54
+ <div class="col-sm-2" >
55
+ <label class="font_normal_body">设备类型</label>
56
+ <v-select :value.sync="model.f_devices_type"
57
+ v-model="model.f_devices_type"
58
+ :options='$parent.$parent.deviceTypes' placeholder='请选择'
59
+ condition="f_devices_type = '{}'"
60
+ close-on-select></v-select>
61
+ </div>
62
+ <div class="col-sm-2" >
63
+ <label class="font_normal_body">设备品牌</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_brand"
65
+ condition="f_brand like '%{}%'" placeholder='设备品牌'>
66
+ </div>
67
+ <div class="col-sm-2" >
68
+ <label class="font_normal_body">设备型号</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_devices_model"
70
+ condition="f_devices_model like '%{}%'" placeholder='设备型号'>
71
+ </div>
72
+ <div class="col-sm-2" >
73
+ <label for="startDate" class="font_normal_body">开始日期</label>
74
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
75
+ v-model="model.startDate"
76
+ :value.sync="model.startDate"
77
+ :format="'yyyy-MM-dd'"
78
+ :show-reset-button="true"
79
+ condition="f_operate_date >= '{} 00:00:00'">
80
+ </datepicker>
81
+ </div>
82
+ <div class="col-sm-2" >
83
+ <label for="endDate" class="font_normal_body">结束日期</label>
84
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
85
+ v-model="model.endDate"
86
+ :value.sync="model.endDate"
87
+ :format="'yyyy-MM-dd'"
88
+ :show-reset-button="true"
89
+ condition="f_operate_date <= '{} 23:59:59'">
90
+ </datepicker>
91
+ </div>
92
+
93
+ </div>
94
+ </div>
95
+ </criteria>
96
+
97
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
98
+ <template partial='head'>
99
+ <tr>
100
+ <th><nobr>客户编号</nobr></th>
101
+ <th><nobr>客户名称</nobr></th>
102
+ <th><nobr>客户地址</nobr></th>
103
+ <th><nobr>所属表具(表号)</nobr></th>
104
+ <th><nobr>设备类型</nobr></th>
105
+ <th><nobr>设备编号</nobr></th>
106
+ <th><nobr>设备品牌</nobr></th>
107
+ <th><nobr>设备型号</nobr></th>
108
+ <th><nobr>录入日期</nobr></th>
109
+ </tr>
110
+ </template>
111
+ <template partial='body'>
112
+ <td style="text-align: center;"><nobr>
113
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
114
+ </nobr> </td>
115
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
116
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
117
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
118
+ <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
119
+ <td style="text-align: center;"><nobr>{{row.f_devices_no}}</nobr></td>
120
+ <td style="text-align: center;"><nobr>{{row.f_brand}}</nobr></td>
121
+ <td style="text-align: center;"><nobr>{{row.f_devices_model}}</nobr></td>
122
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
123
+ </template>
124
+ <template partial='foot'>
125
+
126
+ </template>
127
+ </data-grid>
128
+ </criteria-paged>
129
+
130
+ <table class="table-hover">
131
+ <tr style="position: relative" class="table-bordered">
132
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
133
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">暂无合计字段</td>
134
+ </tr>
135
+ </table>
136
+
137
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
138
+ <header slot="modal-header" class="modal-header text-center">
139
+ <h4 class="modal-title">打印列选择</h4>
140
+ <input type="checkbox" class="" id="f_generations" v-model="all">
141
+ <label for="f_generations" class="font-size">全选</label>
142
+ </header>
143
+ <article slot="modal-body">
144
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
145
+ <div class="col-sm-3" v-for="f in fields">
146
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
147
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
148
+ </div>
149
+ </div>
150
+ </article>
151
+ <footer slot="modal-footer" class="modal-footer">
152
+ <center>
153
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
154
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
155
+ <print-table :model='model' v-show="false" v-ref:print
156
+ :top='40' :left='60' :right='40' :bottom='60'
157
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
158
+ :fields="modelval" :printpage="true">
159
+ </print-table>
160
+ </center>
161
+ </footer>
162
+ </modal>
163
+ </div>
164
+ <div v-if="show">
165
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
166
+ </div>
167
+ </div></div></div>
168
+ </template>
169
+
170
+ <script>
171
+ import { PagedList } from 'vue-client'
172
+ import defaultPrint from '../config/DefaultPrint'
173
+ import exportConfig from '../config/exportConfig'
174
+
175
+ let readySomething = async function (self) {
176
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
177
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
178
+ // await self.$refs.paged.$refs.cri.search()
179
+ }
180
+ export default {
181
+ data() {
182
+ return {
183
+ selectfields:[],
184
+ model: new PagedList('rs/sql/deviceQuery', 20),
185
+ criteriaShow: false,
186
+ orgCondtionStr:'',
187
+
188
+ modelval: [],
189
+ printshow: false,
190
+ all: false,
191
+ fields: {},
192
+ thead: '',
193
+ tfoot: '',
194
+ show:false,
195
+ rowdata:{},
196
+ // 下拉框参数
197
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
198
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
199
+ brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
200
+ initres: {
201
+ org:[this.$login.f.orgid],
202
+ dep:[],
203
+ user:[],
204
+ },
205
+ // 合计数据
206
+ sumsmodel: {}
207
+ }
208
+ },
209
+ ready(){
210
+ readySomething(this).then(() => {
211
+ this.$emit('ready')
212
+ }).catch((error) => {
213
+ this.$emit('error', error)
214
+ })
215
+ for(var item in exportConfig.dataReportConfig){
216
+ this.selectfields.push(item)
217
+ }
218
+ },
219
+ methods: {
220
+ search(){
221
+ this.$refs.paged.$refs.cri.search()
222
+ },
223
+ cancel() {
224
+ this.show = false
225
+ },
226
+ showmsg(obj){
227
+ this.rowdata=obj
228
+ this.show=true
229
+ },
230
+ selfSearch (args) {
231
+ if (!this.orgCondtionStr) {
232
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
233
+ } else {
234
+ args.condition = `${args.condition}` + this.orgCondtionStr
235
+ }
236
+
237
+ this.model.search(args.condition, args.model)
238
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
239
+ console.log('合计字段',this.sumsmodel)
240
+ },
241
+ clear(){
242
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
243
+ this.$refs.paged.$refs.cri.model[key] = ''
244
+ })
245
+ },
246
+ hidden(){
247
+ this.criteriaShow = !this.criteriaShow
248
+ },
249
+ getRes(obj) {
250
+ this.orgCondtionStr = obj
251
+ },
252
+ stamp () {
253
+ this.all = false
254
+ //默认选择要打印的列
255
+ this.modelval = defaultPrint.config
256
+ this.fields = this.getfield
257
+ console.log('所有打印字段',this.fields)
258
+ this.printshow = true
259
+ this.put()
260
+ },
261
+ put () {
262
+ // 对Modelval进行排序
263
+ this.sortModelval()
264
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
265
+ for (let key of this.modelval) {
266
+ this.thead += '<th>' + this.fields[key] + '</th>'
267
+ }
268
+ this.thead += '</tr>'
269
+ },
270
+ print () {
271
+ this.$refs.print.PrintAsFile()
272
+ this.printshow = false
273
+ },
274
+ close () {
275
+ this.printshow = false
276
+ this.all = false
277
+ },
278
+ // 对选择的列进行排序
279
+ sortModelval () {
280
+ let sortModel = []
281
+ Object.keys(this.fields).forEach((key) => {
282
+ if (this.modelval.includes(key)) {
283
+ sortModel.push(key)
284
+ }
285
+ })
286
+ this.modelval = sortModel
287
+ console.log('选择的打印的字段', this.modelval)
288
+ }
289
+ },
290
+ watch:{
291
+ 'all' (val) {
292
+ if (val) {
293
+ this.modelval = this.bodyData
294
+ } else {
295
+ this.modelval = defaultPrint.config
296
+ this.put()
297
+ }
298
+ },
299
+ 'modelval.length' () {
300
+ this.put()
301
+ },
302
+ },
303
+ computed:{
304
+ getCondition(){
305
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
306
+ },
307
+ getfield(){
308
+ let data = {}
309
+ this.bodyData.forEach((value, index)=>{
310
+ data[this.bodyData[index]] = this.headData[index]
311
+ })
312
+ //合计字段打印
313
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
314
+ if(this.sumsmodel){
315
+ Object.keys(this.sumsmodel).forEach((key) => {
316
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
317
+ })
318
+ }else{
319
+ this.tfoot += '暂无'
320
+ }
321
+ this.tfoot += '</th></tr>'
322
+ return data
323
+ },
324
+ getExportField() {
325
+ return exportConfig.deviceConfig
326
+ }
327
+ }
328
+ }
329
+ </script>