manage-client 1.22.3-ca → 1.22.7-ca

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 (50) hide show
  1. package/build/dev-server.js +102 -93
  2. package/package.json +1 -1
  3. package/src/components/MeterManage/ChargeQuery.vue +228 -228
  4. package/src/components/MeterManage/LiushuiQuery.vue +169 -169
  5. package/src/components/SellReport/BonSummary.vue +233 -233
  6. package/src/components/SellReport/BusSummary.vue +238 -238
  7. package/src/components/SellReport/ChanganDaySellGAs.vue +242 -242
  8. package/src/components/SellReport/ChanganSellMsg.vue +232 -232
  9. package/src/components/SellReport/ChanganSellMsg_Month.vue +240 -240
  10. package/src/components/SellReport/FenxiangSell.vue +182 -182
  11. package/src/components/SellReport/GasCollect.vue +174 -174
  12. package/src/components/SellReport/ManageBusSummary.vue +229 -229
  13. package/src/components/SellReport/ManageGasPrice.vue +221 -221
  14. package/src/components/SellReport/ManageSellType.vue +229 -229
  15. package/src/components/SellReport/UserStatistics.vue +162 -0
  16. package/src/components/sale/businessquery/BusinessManage.vue +108 -108
  17. package/src/components/sale/businessquery/ChangeUserQuery.vue +330 -330
  18. package/src/components/sale/businessquery/ChargeQuery.vue +569 -569
  19. package/src/components/sale/businessquery/DisableQuery.vue +286 -286
  20. package/src/components/sale/businessquery/EnableQuery.vue +258 -258
  21. package/src/components/sale/businessquery/FillCardQuery.vue +373 -373
  22. package/src/components/sale/businessquery/FillGasQuery.vue +311 -311
  23. package/src/components/sale/businessquery/HandplanQuery.vue +296 -296
  24. package/src/components/sale/businessquery/LiuShuiQuery.vue +356 -356
  25. package/src/components/sale/businessquery/OtherChargeQuery.vue +308 -308
  26. package/src/components/sale/businessquery/ReverseQuery.vue +305 -305
  27. package/src/components/sale/businessquery/RfCardReadBack.vue +412 -412
  28. package/src/components/sale/businessquery/SellGasGroupPrice.vue +211 -211
  29. package/src/components/sale/businessquery/SellgasQuerybyDay.vue +185 -185
  30. package/src/components/sale/businessquery/SellgasQuerybyDep.vue +186 -186
  31. package/src/components/sale/businessquery/SellgasQuerybySpot.vue +191 -191
  32. package/src/components/sale/businessquery/SellingHand.vue +267 -267
  33. package/src/components/sale/businessquery/TransferQuery.vue +291 -291
  34. package/src/components/sale/businessquery/TreaDownQuery.vue +439 -439
  35. package/src/components/sale/businessquery/ValveQuery.vue +275 -275
  36. package/src/components/sale/config/exportConfig.js +136 -136
  37. package/src/components/sale/filesquery/ArchivesManage.vue +60 -60
  38. package/src/components/sale/filesquery/DeviceCount.vue +333 -333
  39. package/src/components/sale/filesquery/DeviceQuery.vue +361 -361
  40. package/src/components/sale/filesquery/FilesRecord.vue +160 -160
  41. package/src/components/sale/filesquery/MeterQuery.vue +499 -499
  42. package/src/components/sale/filesquery/NoSaleQuery.vue +423 -412
  43. package/src/components/webmeter/DrillData/UserGasAll.vue +490 -490
  44. package/src/plugins/Table.js +194 -194
  45. package/src/reportManage.js +208 -204
  46. package/src/saleManage.js +134 -134
  47. package/src/stores/MagLoadParams.js +71 -71
  48. package/.npmignore +0 -10
  49. package/build/.npmignore +0 -1
  50. package/yarn.lock +0 -7516
@@ -1,439 +1,439 @@
1
- <template>
2
- <div style="flex:1;" class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="$parent.$parent.criteriaShow">
7
- <div class="col-sm-1-5 form-group form-fix-width">
8
- <label class="font_normal_body _zoom4">卡号</label>
9
- <input type="text" class="form-control" v-numfilter v-model="model.f_card_id" style="width: 60%"
10
- condition="f_card_id = '{}' " placeholder="卡号">
11
- </div>
12
- <div class="col-sm-1-5 form-group form-fix-width">
13
- <label class="font_normal_body _zoom4">用户姓名</label>
14
- <input type="text" class="form-control" v-model="model.f_user_name" style="width: 60%"
15
- condition=" f_user_name like '%{}%'" placeholder='用户姓名'>
16
- </div>
17
- <div class="col-sm-1-5 form-group form-fix-width">
18
- <label for="startDate" class="font_normal_body _zoom4">开始日期</label>
19
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
20
- v-model="model.startDate"
21
- :value.sync="model.startDate"
22
- :format="'yyyy-MM-dd'"
23
- :show-reset-button="true"
24
- condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
25
- </datepicker>
26
- </div>
27
- <div class="col-sm-1-5 form-group form-fix-width">
28
- <label for="endDate" class="font_normal_body _zoom4">结束日期</label>
29
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
30
- v-model="model.endDate"
31
- :value.sync="model.endDate"
32
- :format="'yyyy-MM-dd'"
33
- :show-reset-button="true"
34
- condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
35
- </datepicker>
36
- </div>
37
- <div class="col-sm-1-5 form-group form-fix-width">
38
- <label for="endDate" class="font_normal_body _zoom4">是否收费</label>
39
- <v-select v-model="model.f_ispay"
40
- placeholder='是否收费'
41
- :value.sync="model.f_ispay"
42
- :options='$parent.$parent.isresetup'
43
- condition="f_ispay = '{}'"
44
- close-on-select></v-select>
45
- </div>
46
- <div class="col-sm-1-5 form-group form-fix-width">
47
- <label for="endDate" class="font_normal_body _zoom4">是否复装</label>
48
- <v-select v-model="model.f_isresetup"
49
- placeholder='是否复装'
50
- :value.sync="model.f_isresetup"
51
- :options='$parent.$parent.isresetup'
52
- condition="f_isresetup = '{}'"
53
- close-on-select></v-select>
54
- </div>
55
- <div class="col-sm-1-5 form-group form-fix-width">
56
- <label for="endDate" class="font_normal_body _zoom4">拆表类型</label>
57
- <v-select :value.sync="model.f_type" v-model="model.f_type"
58
- condition="f_type = '{}'"
59
- placeholder='拆表类型' :options="$parent.$parent.teardowntype"
60
- close-on-select v-ref:name></v-select>
61
- </div>
62
- <div class="col-sm-1-5 form-group form-fix-width">
63
- <label for="startDate" class="font_normal_body _zoom4">开始日期</label>
64
- <datepicker id="restartDate" placeholder="开始日期" style="width: 60%"
65
- v-model="model.restartDate"
66
- :value.sync="model.restartDate"
67
- :format="'yyyy-MM-dd'"
68
- :show-reset-button="true"
69
- condition="f_resetup_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
70
- </datepicker>
71
- </div>
72
- <div class="col-sm-1-5 form-group form-fix-width">
73
- <label for="endDate" class="font_normal_body _zoom4">结束日期</label>
74
- <datepicker id="reendDate" placeholder="结束日期" style="width: 60%"
75
- v-model="model.reendDate"
76
- :value.sync="model.reendDate"
77
- :format="'yyyy-MM-dd'"
78
- :show-reset-button="true"
79
- condition="f_resetup_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
80
- </datepicker>
81
- </div>
82
- <div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
83
- <button class="btn btn-success" @click="search()">查询</button>
84
- <button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
85
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
86
-
87
- <!-- <export-excel :data="$parent.$parent.getCondition"-->
88
- <!-- :field="$parent.$parent.getfield"-->
89
- <!-- sqlurl="rs/logic/exportfile" sql-name="disableQuery" template-name='拆除查询导出' :choose-col="true"></export-excel>-->
90
- <div
91
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
92
- @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
93
- </div>
94
- </div>
95
- </div>
96
- </criteria>
97
-
98
- <data-grid :model="model" partial='list' v-ref:grid>
99
- <template partial='head'>
100
- <tr>
101
- <th>
102
- <nobr>卡号</nobr>
103
- </th>
104
- <th>
105
- <nobr>用户姓名</nobr>
106
- </th>
107
- <th>
108
- <nobr>电话</nobr>
109
- </th>
110
- <th>
111
- <nobr>用户地址</nobr>
112
- </th>
113
- <th>
114
- <nobr>小区</nobr>
115
- </th>
116
- <th>
117
- <nobr>楼号</nobr>
118
- </th>
119
- <th>
120
- <nobr>单元号</nobr>
121
- </th>
122
- <th>
123
- <nobr>楼层</nobr>
124
- </th>
125
- <th>
126
- <nobr>房号</nobr>
127
- </th>
128
- <th>
129
- <nobr>旧表号</nobr>
130
- </th>
131
- <th>
132
- <nobr>旧表型号</nobr>
133
- </th>
134
- <th>
135
- <nobr>旧表生产日期</nobr>
136
- </th>
137
- <th>
138
- <nobr>基表读数</nobr>
139
- </th>
140
- <th>
141
- <nobr>剩余气量</nobr>
142
- </th>
143
- <th>
144
- <nobr>剩余金额</nobr>
145
- </th>
146
- <th>
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 style="padding: 10px 150px">
162
- <nobr>拆表备注</nobr>
163
- </th>
164
- <th>
165
- <nobr>操作员</nobr>
166
- </th>
167
- <th>
168
- <nobr>操作站点</nobr>
169
- </th>
170
- <th>
171
- <nobr>操作日期</nobr>
172
- </th>
173
- <th>
174
- <nobr>是否复装</nobr>
175
- </th>
176
- <th>
177
- <nobr>复装时间</nobr>
178
- </th>
179
- <th>
180
- <nobr>复装操作人</nobr>
181
- </th>
182
- <th>
183
- <nobr>复装信息</nobr>
184
- </th>
185
- </tr>
186
- </template>
187
- <template partial='body'>
188
- <td style="text-align: center;">
189
- <nobr>
190
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_card_id }}</a></span></nobr>
191
- </td>
192
- <td style="text-align: center;">
193
- <nobr>{{ row.f_user_name }}</nobr>
194
- </td>
195
- <td style="text-align: center;">
196
- <nobr>{{ row.f_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_residential_area }}</nobr>
203
- </td>
204
- <td style="text-align: center;">
205
- <nobr>{{ row.f_building }}</nobr>
206
- </td>
207
- <td style="text-align: center;">
208
- <nobr>{{ row.f_unit }}</nobr>
209
- </td>
210
- <td style="text-align: center;">
211
- <nobr>{{ row.f_floor }}</nobr>
212
- </td>
213
- <td style="text-align: center;">
214
- <nobr>{{ row.f_room }}</nobr>
215
- </td>
216
- <td style="text-align: center;">
217
- <nobr>{{ row.f_meter_id }}</nobr>
218
- </td>
219
- <td style="text-align: center;">
220
- <nobr>{{ row.f_gasbrand }}</nobr>
221
- </td>
222
- <td style="text-align: center;">
223
- <nobr>{{ row.f_table_up }}</nobr>
224
- </td>
225
- <td style="text-align: center;">
226
- <nobr>{{ row.f_init_base }}</nobr>
227
- </td>
228
- <td style="text-align: center;">
229
- <nobr>{{ row.f_remanent_gas }}</nobr>
230
- </td>
231
- <td style="text-align: center;">
232
- <nobr>{{ row.f_remanent_fee }}</nobr>
233
- </td>
234
- <td style="text-align: center;">
235
- <nobr>{{ row.f_meter_saver }}</nobr>
236
- </td>
237
- <td style="text-align: center;">
238
- <nobr>{{ row.f_ispay }}</nobr>
239
- </td>
240
- <td style="text-align: center;">
241
- <nobr>{{ row.f_teardown_fee }}</nobr>
242
- </td>
243
- <td style="text-align: center;">
244
- <nobr>{{ row.f_iscall }}</nobr>
245
- </td>
246
- <td style="text-align: center;">
247
- <nobr>{{ row.f_type }}</nobr>
248
- </td>
249
- <td style="text-align: center;word-break: break-word;">
250
- <p :id="'f_remark-'+$index"
251
- style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;margin: 0"
252
- @click="$parent.$parent.$parent.p_click('f_remark-'+$index,'f_remarkinput-'+$index)">
253
- {{ row.f_remark }}</p>
254
- <textarea rows="2" style="display: none;margin: 0;width: 100%;border: 1px solid #e4f9f5"
255
- @blur="$parent.$parent.$parent.input_blur('f_remark-'+$index,'f_remarkinput-'+$index)"
256
- :id="'f_remarkinput-'+$index">{{row.f_remark}}</textarea>
257
- </td>
258
- <td style="text-align: center;">
259
- <nobr>{{ row.f_operator }}</nobr>
260
- </td>
261
- <td style="text-align: center;">
262
- <nobr>{{ row.op_spot }}</nobr>
263
- </td>
264
- <td style="text-align: center;">
265
- <nobr>{{ row.f_operate_date }}</nobr>
266
- </td>
267
- <td style="text-align: center;">
268
- <nobr>{{ row.f_isresetup }}</nobr>
269
- </td>
270
- <td style="text-align: center;">
271
- <nobr>{{ row.f_resetup_date }}</nobr>
272
- </td>
273
- <td style="text-align: center;">
274
- <nobr>{{ row.f_resetup_person }}</nobr>
275
- </td>
276
- <td style="text-align: center;">
277
- <nobr>{{ row.f_resetup_type }}-{{ row.f_resetup }}</nobr>
278
- </td>
279
- </template>
280
- <template partial='foot'></template>
281
- </data-grid>
282
- </criteria-paged>
283
- </div>
284
- </template>
285
-
286
- <script>
287
- import {PagedList} from 'vue-client'
288
- import defaultPrint from '../config/DefaultPrint'
289
- import exportConfig from '../config/exportConfig'
290
-
291
- let readySomething = async function (self) {
292
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
293
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
294
- }
295
- export default {
296
- data() {
297
- return {
298
- data: {},
299
- model: new PagedList('rs/sql/teraDownQuery', 20, {}),
300
- criteriaShow: true,
301
- headData: ["卡号", "用户姓名", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
302
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_reason", "f_othereason", "f_sendsuccess"],
303
-
304
- filialeNameStr: null,
305
- filialeCodeStr: this.$login.f.f_orgids,
306
- userid: this.$login.f.id,
307
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
308
-
309
- modelval: [],
310
- printshow: false,
311
- all: false,
312
- fields: {},
313
- thead: '',
314
- tfoot: '',
315
- //合计数据
316
- sumsmodel: {},
317
- isresetup: [
318
- {label: '是', value: '是'},
319
- {label: '否', value: '否'}
320
- ],
321
- teardowntype: this.$appdata.getParam('拆表类型')
322
- }
323
- },
324
- ready() {
325
- readySomething(this).then(() => {
326
- this.$emit('ready')
327
- }).catch((error) => {
328
- this.$emit('error', error)
329
- })
330
- },
331
- methods: {
332
- //p标签点击方法
333
- p_click(p_id, i_id) {
334
- document.getElementById(p_id).style.display = "none"
335
- document.getElementById(i_id).style.display = "inline-block"
336
- document.getElementById(i_id).select()
337
- console.log(p_id, i_id)
338
- },
339
- //input失去焦点方法
340
- input_blur(p_id, i_id) {
341
- document.getElementById(p_id).style.display = "-webkit-box"
342
- document.getElementById(i_id).style.display = "none"
343
- console.log(p_id, i_id)
344
- },
345
- selfSearch(args) {
346
- this.model.search(args.condition, args.model)
347
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
348
- },
349
- clear() {
350
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
351
- this.$refs.paged.$refs.cri.model[key] = ''
352
- })
353
- },
354
- show() {
355
- this.criteriaShow = true
356
- },
357
- hidden() {
358
- this.criteriaShow = !this.criteriaShow
359
- },
360
- getRes(obj) {
361
- this.filialeNameStr = obj.res
362
- this.filialeCodeStr = obj.resids
363
- },
364
- stamp() {
365
- this.all = false
366
- //默认选择要打印的列
367
- this.modelval = defaultPrint.config
368
- this.fields = this.getfield
369
- console.log('所有打印字段', this.fields)
370
- this.printshow = true
371
- this.put()
372
- },
373
- put() {
374
- // 对Modelval进行排序
375
- this.sortModelval()
376
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
377
- for (let key of this.modelval) {
378
- this.thead += '<th>' + this.fields[key] + '</th>'
379
- }
380
- this.thead += '</tr>'
381
- },
382
- dealmsg(val) {
383
- console.log('---------------dealmsg')
384
- val.model = this.model.model
385
- this.$dispatch('deal-msg', val)
386
- },
387
- print() {
388
- this.$refs.print.PrintAsFile()
389
- this.printshow = false
390
- },
391
- close() {
392
- this.printshow = false
393
- this.all = false
394
- },
395
- // 对选择的列进行排序
396
- sortModelval() {
397
- let sortModel = []
398
- Object.keys(this.fields).forEach((key) => {
399
- if (this.modelval.includes(key)) {
400
- sortModel.push(key)
401
- }
402
- })
403
- this.modelval = sortModel
404
- console.log('选择的打印的字段', this.modelval)
405
- }
406
- },
407
- watch: {
408
- 'all'(val) {
409
- if (val) {
410
- this.modelval = this.bodyData
411
- } else {
412
- this.modelval = defaultPrint.config
413
- this.put()
414
- }
415
- },
416
- 'modelval.length'() {
417
- this.put()
418
- },
419
- },
420
- computed: {
421
- getCondition() {
422
- return {condition: `${this.$refs.paged.$refs.cri.condition} `}
423
- },
424
- getfield() {
425
- return exportConfig.disableConfig
426
- }
427
- }
428
- }
429
- </script>
430
- <style scoped>
431
- .cell {
432
- width: 500px
433
- }
434
-
435
- .sp {
436
- width: 500px;
437
- word-break: break-word;
438
- }
439
- </style>
1
+ <template>
2
+ <div style="flex:1;" class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="$parent.$parent.criteriaShow">
7
+ <div class="col-sm-1-5 form-group form-fix-width">
8
+ <label class="font_normal_body _zoom4">卡号</label>
9
+ <input type="text" class="form-control" v-numfilter v-model="model.f_card_id" style="width: 60%"
10
+ condition="f_card_id = '{}' " placeholder="卡号">
11
+ </div>
12
+ <div class="col-sm-1-5 form-group form-fix-width">
13
+ <label class="font_normal_body _zoom4">用户姓名</label>
14
+ <input type="text" class="form-control" v-model="model.f_user_name" style="width: 60%"
15
+ condition=" f_user_name like '%{}%'" placeholder='用户姓名'>
16
+ </div>
17
+ <div class="col-sm-1-5 form-group form-fix-width">
18
+ <label for="startDate" class="font_normal_body _zoom4">开始日期</label>
19
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
20
+ v-model="model.startDate"
21
+ :value.sync="model.startDate"
22
+ :format="'yyyy-MM-dd'"
23
+ :show-reset-button="true"
24
+ condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-1-5 form-group form-fix-width">
28
+ <label for="endDate" class="font_normal_body _zoom4">结束日期</label>
29
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
30
+ v-model="model.endDate"
31
+ :value.sync="model.endDate"
32
+ :format="'yyyy-MM-dd'"
33
+ :show-reset-button="true"
34
+ condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
35
+ </datepicker>
36
+ </div>
37
+ <div class="col-sm-1-5 form-group form-fix-width">
38
+ <label for="endDate" class="font_normal_body _zoom4">是否收费</label>
39
+ <v-select v-model="model.f_ispay"
40
+ placeholder='是否收费'
41
+ :value.sync="model.f_ispay"
42
+ :options='$parent.$parent.isresetup'
43
+ condition="f_ispay = '{}'"
44
+ close-on-select></v-select>
45
+ </div>
46
+ <div class="col-sm-1-5 form-group form-fix-width">
47
+ <label for="endDate" class="font_normal_body _zoom4">是否复装</label>
48
+ <v-select v-model="model.f_isresetup"
49
+ placeholder='是否复装'
50
+ :value.sync="model.f_isresetup"
51
+ :options='$parent.$parent.isresetup'
52
+ condition="f_isresetup = '{}'"
53
+ close-on-select></v-select>
54
+ </div>
55
+ <div class="col-sm-1-5 form-group form-fix-width">
56
+ <label for="endDate" class="font_normal_body _zoom4">拆表类型</label>
57
+ <v-select :value.sync="model.f_type" v-model="model.f_type"
58
+ condition="f_type = '{}'"
59
+ placeholder='拆表类型' :options="$parent.$parent.teardowntype"
60
+ close-on-select v-ref:name></v-select>
61
+ </div>
62
+ <div class="col-sm-1-5 form-group form-fix-width">
63
+ <label for="startDate" class="font_normal_body _zoom4">开始日期</label>
64
+ <datepicker id="restartDate" placeholder="开始日期" style="width: 60%"
65
+ v-model="model.restartDate"
66
+ :value.sync="model.restartDate"
67
+ :format="'yyyy-MM-dd'"
68
+ :show-reset-button="true"
69
+ condition="f_resetup_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
70
+ </datepicker>
71
+ </div>
72
+ <div class="col-sm-1-5 form-group form-fix-width">
73
+ <label for="endDate" class="font_normal_body _zoom4">结束日期</label>
74
+ <datepicker id="reendDate" placeholder="结束日期" style="width: 60%"
75
+ v-model="model.reendDate"
76
+ :value.sync="model.reendDate"
77
+ :format="'yyyy-MM-dd'"
78
+ :show-reset-button="true"
79
+ condition="f_resetup_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
80
+ </datepicker>
81
+ </div>
82
+ <div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
83
+ <button class="btn btn-success" @click="search()">查询</button>
84
+ <button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
85
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
86
+
87
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
88
+ <!-- :field="$parent.$parent.getfield"-->
89
+ <!-- sqlurl="rs/logic/exportfile" sql-name="disableQuery" template-name='拆除查询导出' :choose-col="true"></export-excel>-->
90
+ <div
91
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
92
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </criteria>
97
+
98
+ <data-grid :model="model" partial='list' v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <th>
102
+ <nobr>卡号</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>用户姓名</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>电话</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>用户地址</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>小区</nobr>
115
+ </th>
116
+ <th>
117
+ <nobr>楼号</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>单元号</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>楼层</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>房号</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>旧表号</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>旧表型号</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>旧表生产日期</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>基表读数</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>剩余气量</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>剩余金额</nobr>
145
+ </th>
146
+ <th>
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 style="padding: 10px 150px">
162
+ <nobr>拆表备注</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>操作员</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>操作站点</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>操作日期</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>是否复装</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>复装时间</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>复装操作人</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>复装信息</nobr>
184
+ </th>
185
+ </tr>
186
+ </template>
187
+ <template partial='body'>
188
+ <td style="text-align: center;">
189
+ <nobr>
190
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_card_id }}</a></span></nobr>
191
+ </td>
192
+ <td style="text-align: center;">
193
+ <nobr>{{ row.f_user_name }}</nobr>
194
+ </td>
195
+ <td style="text-align: center;">
196
+ <nobr>{{ row.f_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_residential_area }}</nobr>
203
+ </td>
204
+ <td style="text-align: center;">
205
+ <nobr>{{ row.f_building }}</nobr>
206
+ </td>
207
+ <td style="text-align: center;">
208
+ <nobr>{{ row.f_unit }}</nobr>
209
+ </td>
210
+ <td style="text-align: center;">
211
+ <nobr>{{ row.f_floor }}</nobr>
212
+ </td>
213
+ <td style="text-align: center;">
214
+ <nobr>{{ row.f_room }}</nobr>
215
+ </td>
216
+ <td style="text-align: center;">
217
+ <nobr>{{ row.f_meter_id }}</nobr>
218
+ </td>
219
+ <td style="text-align: center;">
220
+ <nobr>{{ row.f_gasbrand }}</nobr>
221
+ </td>
222
+ <td style="text-align: center;">
223
+ <nobr>{{ row.f_table_up }}</nobr>
224
+ </td>
225
+ <td style="text-align: center;">
226
+ <nobr>{{ row.f_init_base }}</nobr>
227
+ </td>
228
+ <td style="text-align: center;">
229
+ <nobr>{{ row.f_remanent_gas }}</nobr>
230
+ </td>
231
+ <td style="text-align: center;">
232
+ <nobr>{{ row.f_remanent_fee }}</nobr>
233
+ </td>
234
+ <td style="text-align: center;">
235
+ <nobr>{{ row.f_meter_saver }}</nobr>
236
+ </td>
237
+ <td style="text-align: center;">
238
+ <nobr>{{ row.f_ispay }}</nobr>
239
+ </td>
240
+ <td style="text-align: center;">
241
+ <nobr>{{ row.f_teardown_fee }}</nobr>
242
+ </td>
243
+ <td style="text-align: center;">
244
+ <nobr>{{ row.f_iscall }}</nobr>
245
+ </td>
246
+ <td style="text-align: center;">
247
+ <nobr>{{ row.f_type }}</nobr>
248
+ </td>
249
+ <td style="text-align: center;word-break: break-word;">
250
+ <p :id="'f_remark-'+$index"
251
+ style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;margin: 0"
252
+ @click="$parent.$parent.$parent.p_click('f_remark-'+$index,'f_remarkinput-'+$index)">
253
+ {{ row.f_remark }}</p>
254
+ <textarea rows="2" style="display: none;margin: 0;width: 100%;border: 1px solid #e4f9f5"
255
+ @blur="$parent.$parent.$parent.input_blur('f_remark-'+$index,'f_remarkinput-'+$index)"
256
+ :id="'f_remarkinput-'+$index">{{row.f_remark}}</textarea>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{ row.f_operator }}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{ row.op_spot }}</nobr>
263
+ </td>
264
+ <td style="text-align: center;">
265
+ <nobr>{{ row.f_operate_date }}</nobr>
266
+ </td>
267
+ <td style="text-align: center;">
268
+ <nobr>{{ row.f_isresetup }}</nobr>
269
+ </td>
270
+ <td style="text-align: center;">
271
+ <nobr>{{ row.f_resetup_date }}</nobr>
272
+ </td>
273
+ <td style="text-align: center;">
274
+ <nobr>{{ row.f_resetup_person }}</nobr>
275
+ </td>
276
+ <td style="text-align: center;">
277
+ <nobr>{{ row.f_resetup_type }}-{{ row.f_resetup }}</nobr>
278
+ </td>
279
+ </template>
280
+ <template partial='foot'></template>
281
+ </data-grid>
282
+ </criteria-paged>
283
+ </div>
284
+ </template>
285
+
286
+ <script>
287
+ import {PagedList} from 'vue-client'
288
+ import defaultPrint from '../config/DefaultPrint'
289
+ import exportConfig from '../config/exportConfig'
290
+
291
+ let readySomething = async function (self) {
292
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
293
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
294
+ }
295
+ export default {
296
+ data() {
297
+ return {
298
+ data: {},
299
+ model: new PagedList('rs/sql/teraDownQuery', 20, {}),
300
+ criteriaShow: true,
301
+ headData: ["卡号", "用户姓名", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
302
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_reason", "f_othereason", "f_sendsuccess"],
303
+
304
+ filialeNameStr: null,
305
+ filialeCodeStr: this.$login.f.f_orgids,
306
+ userid: this.$login.f.id,
307
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
308
+
309
+ modelval: [],
310
+ printshow: false,
311
+ all: false,
312
+ fields: {},
313
+ thead: '',
314
+ tfoot: '',
315
+ //合计数据
316
+ sumsmodel: {},
317
+ isresetup: [
318
+ {label: '是', value: '是'},
319
+ {label: '否', value: '否'}
320
+ ],
321
+ teardowntype: this.$appdata.getParam('拆表类型')
322
+ }
323
+ },
324
+ ready() {
325
+ readySomething(this).then(() => {
326
+ this.$emit('ready')
327
+ }).catch((error) => {
328
+ this.$emit('error', error)
329
+ })
330
+ },
331
+ methods: {
332
+ //p标签点击方法
333
+ p_click(p_id, i_id) {
334
+ document.getElementById(p_id).style.display = "none"
335
+ document.getElementById(i_id).style.display = "inline-block"
336
+ document.getElementById(i_id).select()
337
+ console.log(p_id, i_id)
338
+ },
339
+ //input失去焦点方法
340
+ input_blur(p_id, i_id) {
341
+ document.getElementById(p_id).style.display = "-webkit-box"
342
+ document.getElementById(i_id).style.display = "none"
343
+ console.log(p_id, i_id)
344
+ },
345
+ selfSearch(args) {
346
+ this.model.search(args.condition, args.model)
347
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
348
+ },
349
+ clear() {
350
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
351
+ this.$refs.paged.$refs.cri.model[key] = ''
352
+ })
353
+ },
354
+ show() {
355
+ this.criteriaShow = true
356
+ },
357
+ hidden() {
358
+ this.criteriaShow = !this.criteriaShow
359
+ },
360
+ getRes(obj) {
361
+ this.filialeNameStr = obj.res
362
+ this.filialeCodeStr = obj.resids
363
+ },
364
+ stamp() {
365
+ this.all = false
366
+ //默认选择要打印的列
367
+ this.modelval = defaultPrint.config
368
+ this.fields = this.getfield
369
+ console.log('所有打印字段', this.fields)
370
+ this.printshow = true
371
+ this.put()
372
+ },
373
+ put() {
374
+ // 对Modelval进行排序
375
+ this.sortModelval()
376
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
377
+ for (let key of this.modelval) {
378
+ this.thead += '<th>' + this.fields[key] + '</th>'
379
+ }
380
+ this.thead += '</tr>'
381
+ },
382
+ dealmsg(val) {
383
+ console.log('---------------dealmsg')
384
+ val.model = this.model.model
385
+ this.$dispatch('deal-msg', val)
386
+ },
387
+ print() {
388
+ this.$refs.print.PrintAsFile()
389
+ this.printshow = false
390
+ },
391
+ close() {
392
+ this.printshow = false
393
+ this.all = false
394
+ },
395
+ // 对选择的列进行排序
396
+ sortModelval() {
397
+ let sortModel = []
398
+ Object.keys(this.fields).forEach((key) => {
399
+ if (this.modelval.includes(key)) {
400
+ sortModel.push(key)
401
+ }
402
+ })
403
+ this.modelval = sortModel
404
+ console.log('选择的打印的字段', this.modelval)
405
+ }
406
+ },
407
+ watch: {
408
+ 'all'(val) {
409
+ if (val) {
410
+ this.modelval = this.bodyData
411
+ } else {
412
+ this.modelval = defaultPrint.config
413
+ this.put()
414
+ }
415
+ },
416
+ 'modelval.length'() {
417
+ this.put()
418
+ },
419
+ },
420
+ computed: {
421
+ getCondition() {
422
+ return {condition: `${this.$refs.paged.$refs.cri.condition} `}
423
+ },
424
+ getfield() {
425
+ return exportConfig.disableConfig
426
+ }
427
+ }
428
+ }
429
+ </script>
430
+ <style scoped>
431
+ .cell {
432
+ width: 500px
433
+ }
434
+
435
+ .sp {
436
+ width: 500px;
437
+ word-break: break-word;
438
+ }
439
+ </style>