manage-client 3.2.67-aode → 3.2.68-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 (65) hide show
  1. package/build/dev-server.js +5 -2
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +41 -4
  35. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  36. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  37. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  38. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  39. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,336 +1,336 @@
1
- <template >
2
- <div id="stand-work-list" class="flex bg-white p-10 datapanel">
3
- <div class="height:auto">
4
- <criteria-paged :model="model" v-ref:paged >
5
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="col-sm-2 form-group form-input-group" >
9
- <label class="control-label">客户编号</label>
10
- <input type="text" class="form-control"
11
- v-model="model.f_userinfo_code"
12
- placeholder='客户名称'
13
- condition="f_userinfo_code = '{}'"
14
- >
15
- </div>
16
- <div class="col-sm-2 form-group form-input-group" >
17
- <label class="control-label">客户名称</label>
18
- <input type="text" class="form-control"
19
- v-model="model.f_user_name"
20
- placeholder='客户名称'
21
- condition="f_user_name = '{}'"
22
- >
23
- </div>
24
- <div class="col-sm-2 form-group form-input-group" >
25
- <label class="control-label">&nbsp;&nbsp;地&nbsp;&nbsp;址&nbsp;&nbsp;</label>
26
- <input type="text" class="form-control fixed-width"
27
- v-model="model.f_address"
28
- placeholder='用气地址'
29
- condition="f_address like '%{}%'"
30
- >
31
- </div>
32
- <div class="col-sm-2 form-group form-input-group" >
33
- <label class="control-label">&nbsp;&nbsp;表&nbsp;&nbsp;号&nbsp;&nbsp;</label>
34
- <input type="text" class="form-control"
35
- v-model="model.f_user_id"
36
- placeholder='表号'
37
- condition="f_user_id = '{}'"
38
- >
39
- </div>
40
- <div class="col-sm-2 form-group form-input-group" >
41
- <label class="control-label">用户类型</label>
42
- <v-select
43
- placeholder='用户类型'
44
- :value.sync="model.f_user_type"
45
- v-model="model.f_user_type"
46
- :options='$parent.$parent.Gasusertype'
47
- close-on-select condition="f_user_type='{}'">
48
- </v-select>
49
- </div>
50
-
51
- <div class="col-sm-2 form-group form-input-group" >
52
- <label class="control-label">用气性质</label>
53
- <v-select
54
- placeholder='用气性质'
55
- :value.sync="model.f_gasproperties"
56
- v-model="model.f_gasproperties"
57
- :options='$parent.$parent.Gasproperties'
58
- close-on-select condition="f_gasproperties='{}'">
59
- </v-select>
60
- </div>
61
- <div class="col-sm-2 form-group form-input-group">
62
- <label class="control-label">气表状态</label>
63
- <v-select
64
- placeholder='气表状态'
65
- :value.sync="model.f_table_state"
66
- v-model="model.f_table_state"
67
- :options='$parent.$parent.TableStates'
68
- close-on-select
69
- condition="f_table_state='{}'">
70
- </v-select>
71
- </div>
72
-
73
- <div class="col-sm-2 form-group form-input-group" >
74
- <label class="control-label" style="word-break:keep-all;">安装时间</label>
75
- <datepicker placeholder="起始时间"
76
- :value.sync="model.f_start_date"
77
- v-model="model.f_start_date"
78
- :format="'yyyy-MM-dd 00:00:00'"
79
- condition="f_createfile_date > '{}'"
80
- ></datepicker>
81
- </div>
82
- <div class="col-sm-2 form-group form-input-group" >
83
- <label class="control-label" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
84
- <datepicker placeholder="结束时间"
85
- :value.sync="model.f_end_date"
86
- v-model="model.f_end_date"
87
- :format="'yyyy-MM-dd 23:59:59'"
88
- condition="f_createfile_date < '{}'"
89
- ></datepicker>
90
- </div>
91
- <div class="col-sm-2 form-group form-input-group">
92
- <label class="control-label">组织机构</label>
93
- <right-tree :userid.sync='$parent.$parent.obj.userid'
94
- :source.sync='$parent.$parent.obj.source'
95
- @re-res="$parent.$parent.getRes"></right-tree>
96
- </div>
97
- <!--<div class="col-sm-2 form-group form-input-group">-->
98
- <!--<label class="control-label">标记状态</label>-->
99
- <!--<v-select :value.sync="model.f_parameter_state" v-model="model.f_parameter_state"-->
100
- <!--placeholder='标记状态'-->
101
- <!--:options='$parent.$parent.parameterState'-->
102
- <!--close-on-select-->
103
- <!--condition="f_parameter_state = '{}'"></v-select>-->
104
- <!--</div>-->
105
- <!--<div class="col-sm-2 form-group form-input-group">-->
106
- <!--<label class="control-label">标记名称</label>-->
107
- <!--<v-select :value.sync="model.f_parameter_name" v-model="model.f_parameter_name"-->
108
- <!--placeholder='标记名称'-->
109
- <!--:options='$parent.$parent.signtype1'-->
110
- <!--close-on-select-->
111
- <!--condition="f_parameter_name like '%{}%'"></v-select>-->
112
- <!--</div>-->
113
- <!--<div class="col-sm-2 form-group form-input-group">-->
114
- <!--<label class="control-label">上报状态</label>-->
115
- <!--<v-select :value.sync="model.f_userfiles_state" v-model="model.f_userfiles_state"-->
116
- <!--placeholder='上报状态'-->
117
- <!--:options='$parent.$parent.userfilesState'-->
118
- <!--close-on-select-->
119
- <!--condition="f_userfiles_state = '{}'"></v-select>-->
120
- <!--</div>-->
121
- </div>
122
-
123
- <div class="row" style="float: right">
124
- <button class="btn btn-success width-100" @click="search()" v-el:cba>查询</button>
125
- <button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
126
- <!--<button class="btn btn-success width-100" @click="$parent.$parent.SaveAsFile('meterlist')">导出</button>-->
127
- <!--<div v-show="!$parent.$parent.searchshow" @click="$parent.$parent.clickshow" style="position: relative;float: right;margin-right: 1%;">-->
128
- <!--<img src="../../../static/webMeter/shousuo.png"><span>展开</span>-->
129
- <!--</div>-->
130
- <!--<div v-show="$parent.$parent.searchshow" @click="$parent.$parent.clickshow" style="position: relative;float: right;margin-right: 1%;">-->
131
- <!--<img src="../../../static/webMeter/shangsheng.png"><span>收缩</span>-->
132
- <!--</div>-->
133
- </div>
134
- </div>
135
- </criteria>
136
- <data-grid id='meterlist' partial='list' v-ref:grid :model="model">
137
- <template partial='head'>
138
- <tr>
139
- <th style="text-align:center"><nobr>客户编号</nobr></th>
140
- <th style="text-align:center"><nobr>客户名称</nobr></th>
141
- <th style="text-align:center"><nobr>用气地址</nobr></th>
142
- <th style="text-align:center;color:#3c763d"><nobr>表号</nobr></th>
143
- <th style="text-align:center"><nobr>表类型</nobr></th>
144
- <th style="text-align:center"><nobr>表品牌</nobr></th>
145
- <th style="text-align:center"><nobr>表型号</nobr></th>
146
- <th style="text-align:center"><nobr>表底数</nobr></th>
147
- <th style="text-align:center"><nobr>累计充值金额(元)</nobr></th>
148
- <th style="text-align:center"><nobr>累计用气量(m³)</nobr></th>
149
- <th style="text-align:center"><nobr>累计用气金额(元)</nobr></th>
150
- <th style="text-align:center"><nobr>剩余金额(元)</nobr></th>
151
- <th style="text-align:center"><nobr>表状态</nobr></th>
152
- <th style="text-align:center"><nobr>用户类型</nobr></th>
153
- <th style="text-align:center"><nobr>用气性质</nobr></th>
154
- <th style="text-align:center"><nobr>安装时间</nobr></th>
155
- <th style="text-align:center"><nobr>安装位置</nobr></th>
156
- <th style="text-align:center"><nobr>组织机构</nobr></th>
157
- </tr>
158
- </template>
159
- <template partial='body'>
160
- <tr>
161
- <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
162
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
163
- <td ><nobr>{{row.f_address}}</nobr></td>
164
- <td style="text-align:center" v-show="$parent.$parent.$parent.isdeal">
165
- <nobr>
166
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_user_id}}</a></span>
167
- </nobr>
168
- </td>
169
- <td style="text-align:center;color:#3c763d" v-show="!$parent.$parent.$parent.isdeal"><nobr>
170
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_user_id}}</a></span>
171
- </nobr></td>
172
- <td style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></td>
173
- <td style="text-align:center"><nobr>{{row.f_brand}}</nobr></td>
174
- <td style="text-align:center"><nobr>{{row.f_meter_style}}</nobr></td>
175
- <td style="text-align:center"><nobr>{{row.f_meter_base}}</nobr></td>
176
- <td style="text-align:center"><nobr>{{row.f_collection}}</nobr></td>
177
- <td style="text-align:center"><nobr>{{row.f_initial_base}}</nobr></td>
178
- <td style="text-align:center"><nobr>{{row.f_total_fee}}</nobr></td>
179
- <td style="text-align:center"><nobr>{{row.f_balance}}</nobr></td>
180
- <td style="text-align:center"><nobr>{{row.f_table_state}}</nobr></td>
181
- <td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
182
- <td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
183
- <td style="text-align:center"><nobr>{{row.f_input_date}}</nobr></td>
184
- <td style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
185
- <!--<td style="text-align:center"><nobr>{{row.f_signal}}</nobr></td>-->
186
- <!--<td style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></td>-->
187
- <!--<td style="text-align:center"><nobr>{{row.f_valvestate == 1 ? '关阀' : row.f_valvestate == 0 ? '开阀' : '未上报'}}</nobr></td>-->
188
- <td style="text-align:center"><nobr>{{row.f_filiale}}</nobr></td>
189
- </tr>
190
- </template>
191
- </data-grid>
192
- </criteria-paged>
193
- </div>
194
- </div>
195
- </template>
196
- <script>
197
- import {PagedList} from 'vue-client'
198
-
199
- let asyncReadyGen = async function (self) {
200
- // 获取营收参数
201
- // await self.search()
202
- await self.$LoadParams.loadParam()
203
- self.initQueryParam()
204
- self.$refs.paged.$refs.criteria.search()
205
- }
206
- export default {
207
- title: '表具管理',
208
- data () {
209
- return {
210
- model: new PagedList('rs/sql/web_getWebmeterInfo', 50),
211
- row: null,
212
- meterbrand: [],
213
- searchshow: false,
214
- obj: {
215
- userid: this.$login.f.id,
216
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
217
- res: this.$login.f.f_fengongsi,
218
- resids: this.$login.f.f_orgids
219
- },
220
- show: false,
221
- // isdeal: true,
222
- f_signal_1: '',
223
- f_signal_2: '',
224
- str: '',
225
- f_batterylevel_1: 0,
226
- f_batterylevel_2: 0
227
- }
228
- },
229
- props: ['searchobj','isdeal'],
230
- ready () {
231
- asyncReadyGen(this)
232
- console.log(this.resids)
233
- },
234
- watch: {
235
- 'searchobj' (val) {
236
- if (this.searchobj != null) {
237
- this.$refs.paged.$refs.criteria.model.f_user_id = this.searchobj.f_user_id
238
- this.$refs.paged.$refs.criteria.search()
239
- }
240
- }
241
- },
242
- methods: {
243
- // SaveAsFile(str) {
244
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
245
- // if (res === 'confirm') {
246
- // let style = '<style>' +
247
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
248
- // let strHtml = style + document.getElementById(str).innerHTML;
249
- // console.log(strHtml);
250
- // let LODOP = getLodop();
251
- // LODOP.PRINT_INIT('');
252
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
253
- // LODOP.SAVE_TO_FILE('表具管理.xls')
254
- // }
255
- // })
256
- // },
257
- initQueryParam () {
258
- let arr = []
259
- this.$GetSaleParam.getGasbrand().forEach((item) => {
260
- let temp = {}
261
- temp.label = item.label
262
- temp.value = item.value.f_meter_brand
263
- arr.push(temp)
264
- })
265
- console.log("f_meter_brand1111",arr)
266
- this.meterbrand = [{label: '全部', value: ''}, ...arr]
267
- },
268
- clearmsg () {
269
- this.$refs.paged.$refs.criteria.model = {}
270
- },
271
- dealmsg (val) {
272
- val.model = this.model.model
273
- this.$emit('deal-msg', val)
274
- },
275
- search (args) {
276
- // this.obj.resids = this.obj.resids.replace(/\./g, '')
277
- // args.condition = `${args.condition}`
278
- args.condition = `${args.condition} and f_filialeids like '${this.obj.resids}%'`
279
- this.model.search(args.condition, args.model)
280
- },
281
- getRes (obj) {
282
- this.obj.resids = obj.resids
283
- this.obj.res = obj.res
284
- // this.obj.resids = obj.resids.replace(/\./g, '')
285
- }
286
- },
287
- ready(){
288
-
289
- console.log(this.$login.f)
290
- },
291
- computed: {
292
- // WarningType () {
293
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表品牌')]
294
- // },
295
- meterType () {
296
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
297
- },
298
- TableStates () {
299
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
300
- },
301
- Gasproperties () {
302
- let rs = []
303
- if (this.$refs.paged.$refs.criteria.model.f_user_type.length === 1) {
304
- rs = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
305
- }
306
- return [{label: '全部', value: ''}, ...rs]
307
- },
308
- Gasusertype () {
309
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
310
- },
311
- signtype1 () {
312
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('标记名称')]
313
- },
314
- parameterState () {
315
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('标记状态')]
316
- },
317
- userfilesState () {
318
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('上报状态')]
319
- }
320
- }
321
- }
322
- </script>
323
- <style scoped>
324
- .form-input-group label {
325
- text-align: right;
326
- width: auto;
327
- }
328
- .datapanel {
329
- color: #333;
330
- background-color: white;
331
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
332
- padding: 10px 30px 10px 30px;
333
- border-radius:15px;
334
- }
335
- </style>
336
-
1
+ <template >
2
+ <div id="stand-work-list" class="flex bg-white p-10 datapanel">
3
+ <div class="height:auto">
4
+ <criteria-paged :model="model" v-ref:paged >
5
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group form-input-group" >
9
+ <label class="control-label">客户编号</label>
10
+ <input type="text" class="form-control"
11
+ v-model="model.f_userinfo_code"
12
+ placeholder='客户名称'
13
+ condition="f_userinfo_code = '{}'"
14
+ >
15
+ </div>
16
+ <div class="col-sm-2 form-group form-input-group" >
17
+ <label class="control-label">客户名称</label>
18
+ <input type="text" class="form-control"
19
+ v-model="model.f_user_name"
20
+ placeholder='客户名称'
21
+ condition="f_user_name = '{}'"
22
+ >
23
+ </div>
24
+ <div class="col-sm-2 form-group form-input-group" >
25
+ <label class="control-label">&nbsp;&nbsp;地&nbsp;&nbsp;址&nbsp;&nbsp;</label>
26
+ <input type="text" class="form-control fixed-width"
27
+ v-model="model.f_address"
28
+ placeholder='用气地址'
29
+ condition="f_address like '%{}%'"
30
+ >
31
+ </div>
32
+ <div class="col-sm-2 form-group form-input-group" >
33
+ <label class="control-label">&nbsp;&nbsp;表&nbsp;&nbsp;号&nbsp;&nbsp;</label>
34
+ <input type="text" class="form-control"
35
+ v-model="model.f_user_id"
36
+ placeholder='表号'
37
+ condition="f_user_id = '{}'"
38
+ >
39
+ </div>
40
+ <div class="col-sm-2 form-group form-input-group" >
41
+ <label class="control-label">用户类型</label>
42
+ <v-select
43
+ placeholder='用户类型'
44
+ :value.sync="model.f_user_type"
45
+ v-model="model.f_user_type"
46
+ :options='$parent.$parent.Gasusertype'
47
+ close-on-select condition="f_user_type='{}'">
48
+ </v-select>
49
+ </div>
50
+
51
+ <div class="col-sm-2 form-group form-input-group" >
52
+ <label class="control-label">用气性质</label>
53
+ <v-select
54
+ placeholder='用气性质'
55
+ :value.sync="model.f_gasproperties"
56
+ v-model="model.f_gasproperties"
57
+ :options='$parent.$parent.Gasproperties'
58
+ close-on-select condition="f_gasproperties='{}'">
59
+ </v-select>
60
+ </div>
61
+ <div class="col-sm-2 form-group form-input-group">
62
+ <label class="control-label">气表状态</label>
63
+ <v-select
64
+ placeholder='气表状态'
65
+ :value.sync="model.f_table_state"
66
+ v-model="model.f_table_state"
67
+ :options='$parent.$parent.TableStates'
68
+ close-on-select
69
+ condition="f_table_state='{}'">
70
+ </v-select>
71
+ </div>
72
+
73
+ <div class="col-sm-2 form-group form-input-group" >
74
+ <label class="control-label" style="word-break:keep-all;">安装时间</label>
75
+ <datepicker placeholder="起始时间"
76
+ :value.sync="model.f_start_date"
77
+ v-model="model.f_start_date"
78
+ :format="'yyyy-MM-dd 00:00:00'"
79
+ condition="f_createfile_date > '{}'"
80
+ ></datepicker>
81
+ </div>
82
+ <div class="col-sm-2 form-group form-input-group" >
83
+ <label class="control-label" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
84
+ <datepicker placeholder="结束时间"
85
+ :value.sync="model.f_end_date"
86
+ v-model="model.f_end_date"
87
+ :format="'yyyy-MM-dd 23:59:59'"
88
+ condition="f_createfile_date < '{}'"
89
+ ></datepicker>
90
+ </div>
91
+ <div class="col-sm-2 form-group form-input-group">
92
+ <label class="control-label">组织机构</label>
93
+ <right-tree :userid.sync='$parent.$parent.obj.userid'
94
+ :source.sync='$parent.$parent.obj.source'
95
+ @re-res="$parent.$parent.getRes"></right-tree>
96
+ </div>
97
+ <!--<div class="col-sm-2 form-group form-input-group">-->
98
+ <!--<label class="control-label">标记状态</label>-->
99
+ <!--<v-select :value.sync="model.f_parameter_state" v-model="model.f_parameter_state"-->
100
+ <!--placeholder='标记状态'-->
101
+ <!--:options='$parent.$parent.parameterState'-->
102
+ <!--close-on-select-->
103
+ <!--condition="f_parameter_state = '{}'"></v-select>-->
104
+ <!--</div>-->
105
+ <!--<div class="col-sm-2 form-group form-input-group">-->
106
+ <!--<label class="control-label">标记名称</label>-->
107
+ <!--<v-select :value.sync="model.f_parameter_name" v-model="model.f_parameter_name"-->
108
+ <!--placeholder='标记名称'-->
109
+ <!--:options='$parent.$parent.signtype1'-->
110
+ <!--close-on-select-->
111
+ <!--condition="f_parameter_name like '%{}%'"></v-select>-->
112
+ <!--</div>-->
113
+ <!--<div class="col-sm-2 form-group form-input-group">-->
114
+ <!--<label class="control-label">上报状态</label>-->
115
+ <!--<v-select :value.sync="model.f_userfiles_state" v-model="model.f_userfiles_state"-->
116
+ <!--placeholder='上报状态'-->
117
+ <!--:options='$parent.$parent.userfilesState'-->
118
+ <!--close-on-select-->
119
+ <!--condition="f_userfiles_state = '{}'"></v-select>-->
120
+ <!--</div>-->
121
+ </div>
122
+
123
+ <div class="row" style="float: right">
124
+ <button class="btn btn-success width-100" @click="search()" v-el:cba>查询</button>
125
+ <button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
126
+ <!--<button class="btn btn-success width-100" @click="$parent.$parent.SaveAsFile('meterlist')">导出</button>-->
127
+ <!--<div v-show="!$parent.$parent.searchshow" @click="$parent.$parent.clickshow" style="position: relative;float: right;margin-right: 1%;">-->
128
+ <!--<img src="../../../static/webMeter/shousuo.png"><span>展开</span>-->
129
+ <!--</div>-->
130
+ <!--<div v-show="$parent.$parent.searchshow" @click="$parent.$parent.clickshow" style="position: relative;float: right;margin-right: 1%;">-->
131
+ <!--<img src="../../../static/webMeter/shangsheng.png"><span>收缩</span>-->
132
+ <!--</div>-->
133
+ </div>
134
+ </div>
135
+ </criteria>
136
+ <data-grid id='meterlist' partial='list' v-ref:grid :model="model">
137
+ <template partial='head'>
138
+ <tr>
139
+ <th style="text-align:center"><nobr>客户编号</nobr></th>
140
+ <th style="text-align:center"><nobr>客户名称</nobr></th>
141
+ <th style="text-align:center"><nobr>用气地址</nobr></th>
142
+ <th style="text-align:center;color:#3c763d"><nobr>表号</nobr></th>
143
+ <th style="text-align:center"><nobr>表类型</nobr></th>
144
+ <th style="text-align:center"><nobr>表品牌</nobr></th>
145
+ <th style="text-align:center"><nobr>表型号</nobr></th>
146
+ <th style="text-align:center"><nobr>表底数</nobr></th>
147
+ <th style="text-align:center"><nobr>累计充值金额(元)</nobr></th>
148
+ <th style="text-align:center"><nobr>累计用气量(m³)</nobr></th>
149
+ <th style="text-align:center"><nobr>累计用气金额(元)</nobr></th>
150
+ <th style="text-align:center"><nobr>剩余金额(元)</nobr></th>
151
+ <th style="text-align:center"><nobr>表状态</nobr></th>
152
+ <th style="text-align:center"><nobr>用户类型</nobr></th>
153
+ <th style="text-align:center"><nobr>用气性质</nobr></th>
154
+ <th style="text-align:center"><nobr>安装时间</nobr></th>
155
+ <th style="text-align:center"><nobr>安装位置</nobr></th>
156
+ <th style="text-align:center"><nobr>组织机构</nobr></th>
157
+ </tr>
158
+ </template>
159
+ <template partial='body'>
160
+ <tr>
161
+ <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
162
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
163
+ <td ><nobr>{{row.f_address}}</nobr></td>
164
+ <td style="text-align:center" v-show="$parent.$parent.$parent.isdeal">
165
+ <nobr>
166
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_user_id}}</a></span>
167
+ </nobr>
168
+ </td>
169
+ <td style="text-align:center;color:#3c763d" v-show="!$parent.$parent.$parent.isdeal"><nobr>
170
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_user_id}}</a></span>
171
+ </nobr></td>
172
+ <td style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></td>
173
+ <td style="text-align:center"><nobr>{{row.f_brand}}</nobr></td>
174
+ <td style="text-align:center"><nobr>{{row.f_meter_style}}</nobr></td>
175
+ <td style="text-align:center"><nobr>{{row.f_meter_base}}</nobr></td>
176
+ <td style="text-align:center"><nobr>{{row.f_collection}}</nobr></td>
177
+ <td style="text-align:center"><nobr>{{row.f_initial_base}}</nobr></td>
178
+ <td style="text-align:center"><nobr>{{row.f_total_fee}}</nobr></td>
179
+ <td style="text-align:center"><nobr>{{row.f_balance}}</nobr></td>
180
+ <td style="text-align:center"><nobr>{{row.f_table_state}}</nobr></td>
181
+ <td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
182
+ <td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
183
+ <td style="text-align:center"><nobr>{{row.f_input_date}}</nobr></td>
184
+ <td style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
185
+ <!--<td style="text-align:center"><nobr>{{row.f_signal}}</nobr></td>-->
186
+ <!--<td style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></td>-->
187
+ <!--<td style="text-align:center"><nobr>{{row.f_valvestate == 1 ? '关阀' : row.f_valvestate == 0 ? '开阀' : '未上报'}}</nobr></td>-->
188
+ <td style="text-align:center"><nobr>{{row.f_filiale}}</nobr></td>
189
+ </tr>
190
+ </template>
191
+ </data-grid>
192
+ </criteria-paged>
193
+ </div>
194
+ </div>
195
+ </template>
196
+ <script>
197
+ import {PagedList} from 'vue-client'
198
+
199
+ let asyncReadyGen = async function (self) {
200
+ // 获取营收参数
201
+ // await self.search()
202
+ await self.$LoadParams.loadParam()
203
+ self.initQueryParam()
204
+ self.$refs.paged.$refs.criteria.search()
205
+ }
206
+ export default {
207
+ title: '表具管理',
208
+ data () {
209
+ return {
210
+ model: new PagedList('rs/sql/web_getWebmeterInfo', 50),
211
+ row: null,
212
+ meterbrand: [],
213
+ searchshow: false,
214
+ obj: {
215
+ userid: this.$login.f.id,
216
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
217
+ res: this.$login.f.f_fengongsi,
218
+ resids: this.$login.f.f_orgids
219
+ },
220
+ show: false,
221
+ // isdeal: true,
222
+ f_signal_1: '',
223
+ f_signal_2: '',
224
+ str: '',
225
+ f_batterylevel_1: 0,
226
+ f_batterylevel_2: 0
227
+ }
228
+ },
229
+ props: ['searchobj','isdeal'],
230
+ ready () {
231
+ asyncReadyGen(this)
232
+ console.log(this.resids)
233
+ },
234
+ watch: {
235
+ 'searchobj' (val) {
236
+ if (this.searchobj != null) {
237
+ this.$refs.paged.$refs.criteria.model.f_user_id = this.searchobj.f_user_id
238
+ this.$refs.paged.$refs.criteria.search()
239
+ }
240
+ }
241
+ },
242
+ methods: {
243
+ // SaveAsFile(str) {
244
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
245
+ // if (res === 'confirm') {
246
+ // let style = '<style>' +
247
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
248
+ // let strHtml = style + document.getElementById(str).innerHTML;
249
+ // console.log(strHtml);
250
+ // let LODOP = getLodop();
251
+ // LODOP.PRINT_INIT('');
252
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
253
+ // LODOP.SAVE_TO_FILE('表具管理.xls')
254
+ // }
255
+ // })
256
+ // },
257
+ initQueryParam () {
258
+ let arr = []
259
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
260
+ let temp = {}
261
+ temp.label = item.label
262
+ temp.value = item.value.f_meter_brand
263
+ arr.push(temp)
264
+ })
265
+ console.log("f_meter_brand1111",arr)
266
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
267
+ },
268
+ clearmsg () {
269
+ this.$refs.paged.$refs.criteria.model = {}
270
+ },
271
+ dealmsg (val) {
272
+ val.model = this.model.model
273
+ this.$emit('deal-msg', val)
274
+ },
275
+ search (args) {
276
+ // this.obj.resids = this.obj.resids.replace(/\./g, '')
277
+ // args.condition = `${args.condition}`
278
+ args.condition = `${args.condition} and f_filialeids like '${this.obj.resids}%'`
279
+ this.model.search(args.condition, args.model)
280
+ },
281
+ getRes (obj) {
282
+ this.obj.resids = obj.resids
283
+ this.obj.res = obj.res
284
+ // this.obj.resids = obj.resids.replace(/\./g, '')
285
+ }
286
+ },
287
+ ready(){
288
+
289
+ console.log(this.$login.f)
290
+ },
291
+ computed: {
292
+ // WarningType () {
293
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表品牌')]
294
+ // },
295
+ meterType () {
296
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
297
+ },
298
+ TableStates () {
299
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
300
+ },
301
+ Gasproperties () {
302
+ let rs = []
303
+ if (this.$refs.paged.$refs.criteria.model.f_user_type.length === 1) {
304
+ rs = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
305
+ }
306
+ return [{label: '全部', value: ''}, ...rs]
307
+ },
308
+ Gasusertype () {
309
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
310
+ },
311
+ signtype1 () {
312
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('标记名称')]
313
+ },
314
+ parameterState () {
315
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('标记状态')]
316
+ },
317
+ userfilesState () {
318
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('上报状态')]
319
+ }
320
+ }
321
+ }
322
+ </script>
323
+ <style scoped>
324
+ .form-input-group label {
325
+ text-align: right;
326
+ width: auto;
327
+ }
328
+ .datapanel {
329
+ color: #333;
330
+ background-color: white;
331
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
332
+ padding: 10px 30px 10px 30px;
333
+ border-radius:15px;
334
+ }
335
+ </style>
336
+