manage-client 3.2.60-aode → 3.2.61-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 (71) hide show
  1. package/build/dev-server.js +193 -193
  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/InspectManage.vue +34 -34
  18. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  19. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  20. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  21. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  22. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  23. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  24. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  25. package/src/components/sale/config/exportConfig.js +260 -260
  26. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  27. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  28. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  29. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  30. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  31. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  32. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  33. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  34. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  35. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  36. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  37. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  38. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  39. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  40. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  41. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  42. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  43. package/src/components/sale/report/aode/iot/ReportQuery.vue +5 -0
  44. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  45. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  46. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  47. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  48. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  49. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  50. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  51. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  52. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  53. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  54. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  55. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  56. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  57. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  58. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  59. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  60. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  61. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  62. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  63. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  65. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  67. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  69. package/src/components/webmeter/report/ReportList.vue +211 -211
  70. package/src/main.js +56 -56
  71. package/src/saleManage.js +256 -256
@@ -1,340 +1,340 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" >
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <res-select-group :show-component="$parent.$parent.shouc" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
- <div class="col-sm-2 form-group">
12
- <label for="startDate" class="font_normal_body">开始日期</label>
13
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
14
- v-model="model.startDate"
15
- :value.sync="model.startDate"
16
- :format="'yyyy-MM-dd HH:mm:ss'"
17
- :show-reset-button="true"
18
- condition="f_operate_date >= '{}'">
19
- </datepicker>
20
- </div>
21
- <div class="span" style="float:right;">
22
- <button class="button_search button_spacing" @click="search()">查询</button>
23
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
24
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
25
-
26
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
27
- :field="$parent.$parent.getfield"
28
- :defaultselect="$parent.$parent.selectfields"
29
- sqlurl="rs/logic/exportfile" sql-name="toolcardquery" template-name='工具卡制作日志导出'
30
- :choose-col="true"></export-excel>
31
-
32
- <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>
33
- </div>
34
- </div>
35
-
36
- <div class="row" v-show="$parent.$parent.criteriaShow">
37
-
38
- <div class="col-sm-2 form-group">
39
- <label for="endDate" class="font_normal_body">结束日期</label>
40
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
41
- v-model="model.endDate"
42
- :value.sync="model.endDate"
43
- :format="'yyyy-MM-dd HH:mm:ss'"
44
- :show-reset-button="true"
45
- condition="f_operate_date <= '{}'">
46
- </datepicker>
47
- </div>
48
- <div class="col-sm-2 form-group">
49
- <label class="font_normal_body">卡&nbsp;品&nbsp;&nbsp;牌</label>
50
- <v-select :value.sync="model.name"
51
- v-model="model.name"
52
- :options='$parent.$parent.cardbrands' placeholder='请选择'
53
- condition="name = '{}'"
54
- close-on-select></v-select>
55
- </div>
56
- <div class="col-sm-2 form-group">
57
- <label class="font_normal_body">卡&nbsp;类&nbsp;&nbsp;型</label>
58
- <v-select :value.sync="model.cardtype"
59
- v-model="model.cardtype"
60
- :options='$parent.$parent.cardtypes' placeholder='请选择'
61
- condition="cardtype = '{}'"
62
- close-on-select></v-select>
63
- </div>
64
-
65
- </div>
66
-
67
- </div>
68
- </criteria>
69
-
70
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
71
- <template partial='head'>
72
- <tr>
73
- <th>
74
- <nobr>卡品牌</nobr>
75
- </th>
76
- <th>
77
- <nobr>卡类型</nobr>
78
- </th>
79
- <th>
80
- <nobr>制作状态</nobr>
81
- </th>
82
- <th>
83
- <nobr>操作时间</nobr>
84
- </th>
85
- <th>
86
- <nobr>所属公司</nobr>
87
- </th>
88
- <th>
89
- <nobr>所属部门</nobr>
90
- </th>
91
- <th>
92
- <nobr>操作人</nobr>
93
- </th>
94
- <th>
95
- <nobr>制卡参数</nobr>
96
- </th>
97
- </tr>
98
- </template>
99
- <template partial='body'>
100
- <td style="text-align: center;">
101
- <nobr>{{row.name}}</nobr>
102
- </td>
103
- <td style="text-align: center;">
104
- <nobr>{{row.cardtype}}</nobr>
105
- </td>
106
- <td style="text-align: center;">
107
- <nobr>{{row.f_state}}</nobr>
108
- </td>
109
- <td style="text-align: center;">
110
- <nobr>{{row.f_operate_date}}</nobr>
111
- </td>
112
- <td style="text-align: center;">
113
- <nobr>{{row.f_orgname}}</nobr>
114
- </td>
115
- <td style="text-align: center;">
116
- <nobr>{{row.f_depname}}</nobr>
117
- </td>
118
- <td style="text-align: center;">
119
- <nobr>{{row.f_operator}}</nobr>
120
- </td>
121
- <td style="text-align: center;">
122
- <nobr>{{row.cardjson}}</nobr>
123
- </td>
124
- </template>
125
- <template partial='foot'></template>
126
- </data-grid>
127
-
128
- </criteria-paged>
129
-
130
- </div>
131
- </div>
132
- </div>
133
- </template>
134
-
135
- <script>
136
- import {PagedList} from 'vue-client'
137
- import defaultPrint from '../config/DefaultPrint'
138
- import exportConfig from '../config/exportConfig'
139
-
140
- let readySomething = async function (self) {
141
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
142
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
143
- // await self.$refs.paged.$refs.cri.search()
144
- //await self.$MagLoadParams.loadParam()
145
- // self.initParams()
146
-
147
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
148
- }
149
- export default {
150
- data() {
151
- return {
152
- shouc:['company','department','operator'],
153
- selectfields:[],
154
- data: {},
155
- model: new PagedList('rs/sql/toolcardquery', 20),
156
- criteriaShow: false,
157
- headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司"],
158
- bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
159
-
160
- orgCondtionStr: '',
161
- initres: {
162
- org:[this.$login.f.orgid],
163
- dep:[],
164
- user:[],
165
- },
166
- modelval: [],
167
- printshow: false,
168
- all: false,
169
- fields: {},
170
- thead: '',
171
- tfoot: '',
172
- gasproperties:[],
173
- meterbrands: [],
174
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
175
-
176
- show:false,
177
- rowdata:{},
178
- //合计数据
179
- sumsmodel: {}
180
- }
181
- },
182
- props:['selectorg'],
183
- ready() {
184
- if(this.selectorg != null && this.selectorg != null != ''){
185
- this.initres.org=[]
186
- this.initres.org.push(this.selectorg);
187
- }
188
- readySomething(this).then(() => {
189
- this.$emit('ready')
190
- }).catch((error) => {
191
- this.$emit('error', error)
192
- })
193
- for(var item in exportConfig.toolcardconfig){
194
- this.selectfields.push(item)
195
- }
196
- },
197
- methods: {
198
- userTypeChange () {
199
- this.gasproperties=[]
200
- if(this.$refs.paged.$refs.cri.model !==null) {
201
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
202
-
203
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
204
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
205
- // this.gasproperties.push({label: '全部', value: ''})
206
- }
207
- else{
208
- this.gasproperties =[{label: '全部', value: ''}]
209
- }
210
- },
211
- search(){
212
- this.$refs.paged.$refs.cri.search()
213
- },
214
- cancel() {
215
- this.show = false
216
- },
217
- selfSearch(args) {
218
- args.condition = `${args.condition}` + this.orgCondtionStr
219
- this.model.search(args.condition, args.model)
220
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
221
- },
222
-
223
- initParams() {
224
- // 初始化气表品牌
225
- let brandArr = []
226
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
227
- let temp = {}
228
- temp.label = item.label
229
- temp.value = item.value.f_meter_brand
230
- brandArr.push(temp)
231
- })
232
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
233
- },
234
-
235
- clear() {
236
- //清空部门和人员
237
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
238
- //部门和人员变为全选
239
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
240
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
241
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
242
- this.$refs.paged.$refs.cri.model[key] = ''
243
- })
244
- },
245
- show() {
246
- this.criteriaShow = true
247
- },
248
- hidden() {
249
- this.criteriaShow = !this.criteriaShow
250
- },
251
- getRes(condition) {
252
- this.orgCondtionStr = condition
253
- },
254
- dealmsg(val) {
255
- console.log('---------------dealmsg')
256
- this.rowdata=val
257
- this.show=true
258
- val.model = this.model.model
259
- this.$dispatch('deal-msg', val)
260
- },
261
- stamp() {
262
- this.all = false
263
- //默认选择要打印的列
264
- this.modelval = defaultPrint.config
265
- this.fields = this.getfield
266
- console.log('所有打印字段', this.fields)
267
- this.printshow = true
268
- this.put()
269
- },
270
- put() {
271
- // 对Modelval进行排序
272
- this.sortModelval()
273
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
274
- for (let key of this.modelval) {
275
- this.thead += '<th>' + this.fields[key] + '</th>'
276
- }
277
- this.thead += '</tr>'
278
- },
279
- print() {
280
- this.$refs.print.PrintAsFile()
281
- this.printshow = false
282
- },
283
- close() {
284
- this.printshow = false
285
- this.all = false
286
- },
287
- // 对选择的列进行排序
288
- sortModelval() {
289
- let sortModel = []
290
- Object.keys(this.fields).forEach((key) => {
291
- if (this.modelval.includes(key)) {
292
- sortModel.push(key)
293
- }
294
- })
295
- this.modelval = sortModel
296
- console.log('选择的打印的字段', this.modelval)
297
- },
298
- async updateParams() {
299
- await this.$MagLoadParams.loadParam(this.f_filialeid)
300
- this.initParams()
301
- },
302
- },
303
- watch: {
304
- 'all'(val) {
305
- if (val) {
306
- this.modelval = this.bodyData
307
- } else {
308
- this.modelval = defaultPrint.config
309
- this.put()
310
- }
311
- },
312
- 'modelval.length'() {
313
- this.put()
314
- },
315
- 'orgCondtionStr'(val) {
316
- let res = val.match(/'(.*?)'/)
317
- console.log('正则提取:',res && res[1])
318
- if (res) {
319
- this.selectorg = res[1]
320
- this.f_filialeid = res[1]
321
- // this.updateParams()
322
- }
323
- }
324
- },
325
- computed: {
326
- getCondition() {
327
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
328
- },
329
- getfield() {
330
- return exportConfig.toolcardconfig
331
- },
332
- cardbrands() {
333
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('工具卡品牌')]
334
- },
335
- cardtypes() {
336
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('工具卡类型')]
337
- }
338
- }
339
- }
340
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" >
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <res-select-group :show-component="$parent.$parent.shouc" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
+ <div class="col-sm-2 form-group">
12
+ <label for="startDate" class="font_normal_body">开始日期</label>
13
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
14
+ v-model="model.startDate"
15
+ :value.sync="model.startDate"
16
+ :format="'yyyy-MM-dd HH:mm:ss'"
17
+ :show-reset-button="true"
18
+ condition="f_operate_date >= '{}'">
19
+ </datepicker>
20
+ </div>
21
+ <div class="span" style="float:right;">
22
+ <button class="button_search button_spacing" @click="search()">查询</button>
23
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
24
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
25
+
26
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
27
+ :field="$parent.$parent.getfield"
28
+ :defaultselect="$parent.$parent.selectfields"
29
+ sqlurl="rs/logic/exportfile" sql-name="toolcardquery" template-name='工具卡制作日志导出'
30
+ :choose-col="true"></export-excel>
31
+
32
+ <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>
33
+ </div>
34
+ </div>
35
+
36
+ <div class="row" v-show="$parent.$parent.criteriaShow">
37
+
38
+ <div class="col-sm-2 form-group">
39
+ <label for="endDate" class="font_normal_body">结束日期</label>
40
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
41
+ v-model="model.endDate"
42
+ :value.sync="model.endDate"
43
+ :format="'yyyy-MM-dd HH:mm:ss'"
44
+ :show-reset-button="true"
45
+ condition="f_operate_date <= '{}'">
46
+ </datepicker>
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body">卡&nbsp;品&nbsp;&nbsp;牌</label>
50
+ <v-select :value.sync="model.name"
51
+ v-model="model.name"
52
+ :options='$parent.$parent.cardbrands' placeholder='请选择'
53
+ condition="name = '{}'"
54
+ close-on-select></v-select>
55
+ </div>
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">卡&nbsp;类&nbsp;&nbsp;型</label>
58
+ <v-select :value.sync="model.cardtype"
59
+ v-model="model.cardtype"
60
+ :options='$parent.$parent.cardtypes' placeholder='请选择'
61
+ condition="cardtype = '{}'"
62
+ close-on-select></v-select>
63
+ </div>
64
+
65
+ </div>
66
+
67
+ </div>
68
+ </criteria>
69
+
70
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
71
+ <template partial='head'>
72
+ <tr>
73
+ <th>
74
+ <nobr>卡品牌</nobr>
75
+ </th>
76
+ <th>
77
+ <nobr>卡类型</nobr>
78
+ </th>
79
+ <th>
80
+ <nobr>制作状态</nobr>
81
+ </th>
82
+ <th>
83
+ <nobr>操作时间</nobr>
84
+ </th>
85
+ <th>
86
+ <nobr>所属公司</nobr>
87
+ </th>
88
+ <th>
89
+ <nobr>所属部门</nobr>
90
+ </th>
91
+ <th>
92
+ <nobr>操作人</nobr>
93
+ </th>
94
+ <th>
95
+ <nobr>制卡参数</nobr>
96
+ </th>
97
+ </tr>
98
+ </template>
99
+ <template partial='body'>
100
+ <td style="text-align: center;">
101
+ <nobr>{{row.name}}</nobr>
102
+ </td>
103
+ <td style="text-align: center;">
104
+ <nobr>{{row.cardtype}}</nobr>
105
+ </td>
106
+ <td style="text-align: center;">
107
+ <nobr>{{row.f_state}}</nobr>
108
+ </td>
109
+ <td style="text-align: center;">
110
+ <nobr>{{row.f_operate_date}}</nobr>
111
+ </td>
112
+ <td style="text-align: center;">
113
+ <nobr>{{row.f_orgname}}</nobr>
114
+ </td>
115
+ <td style="text-align: center;">
116
+ <nobr>{{row.f_depname}}</nobr>
117
+ </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.f_operator}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.cardjson}}</nobr>
123
+ </td>
124
+ </template>
125
+ <template partial='foot'></template>
126
+ </data-grid>
127
+
128
+ </criteria-paged>
129
+
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </template>
134
+
135
+ <script>
136
+ import {PagedList} from 'vue-client'
137
+ import defaultPrint from '../config/DefaultPrint'
138
+ import exportConfig from '../config/exportConfig'
139
+
140
+ let readySomething = async function (self) {
141
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
142
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
143
+ // await self.$refs.paged.$refs.cri.search()
144
+ //await self.$MagLoadParams.loadParam()
145
+ // self.initParams()
146
+
147
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
148
+ }
149
+ export default {
150
+ data() {
151
+ return {
152
+ shouc:['company','department','operator'],
153
+ selectfields:[],
154
+ data: {},
155
+ model: new PagedList('rs/sql/toolcardquery', 20),
156
+ criteriaShow: false,
157
+ headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司"],
158
+ bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
159
+
160
+ orgCondtionStr: '',
161
+ initres: {
162
+ org:[this.$login.f.orgid],
163
+ dep:[],
164
+ user:[],
165
+ },
166
+ modelval: [],
167
+ printshow: false,
168
+ all: false,
169
+ fields: {},
170
+ thead: '',
171
+ tfoot: '',
172
+ gasproperties:[],
173
+ meterbrands: [],
174
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
175
+
176
+ show:false,
177
+ rowdata:{},
178
+ //合计数据
179
+ sumsmodel: {}
180
+ }
181
+ },
182
+ props:['selectorg'],
183
+ ready() {
184
+ if(this.selectorg != null && this.selectorg != null != ''){
185
+ this.initres.org=[]
186
+ this.initres.org.push(this.selectorg);
187
+ }
188
+ readySomething(this).then(() => {
189
+ this.$emit('ready')
190
+ }).catch((error) => {
191
+ this.$emit('error', error)
192
+ })
193
+ for(var item in exportConfig.toolcardconfig){
194
+ this.selectfields.push(item)
195
+ }
196
+ },
197
+ methods: {
198
+ userTypeChange () {
199
+ this.gasproperties=[]
200
+ if(this.$refs.paged.$refs.cri.model !==null) {
201
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
202
+
203
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
204
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
205
+ // this.gasproperties.push({label: '全部', value: ''})
206
+ }
207
+ else{
208
+ this.gasproperties =[{label: '全部', value: ''}]
209
+ }
210
+ },
211
+ search(){
212
+ this.$refs.paged.$refs.cri.search()
213
+ },
214
+ cancel() {
215
+ this.show = false
216
+ },
217
+ selfSearch(args) {
218
+ args.condition = `${args.condition}` + this.orgCondtionStr
219
+ this.model.search(args.condition, args.model)
220
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
221
+ },
222
+
223
+ initParams() {
224
+ // 初始化气表品牌
225
+ let brandArr = []
226
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
227
+ let temp = {}
228
+ temp.label = item.label
229
+ temp.value = item.value.f_meter_brand
230
+ brandArr.push(temp)
231
+ })
232
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
233
+ },
234
+
235
+ clear() {
236
+ //清空部门和人员
237
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
238
+ //部门和人员变为全选
239
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
240
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
241
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
242
+ this.$refs.paged.$refs.cri.model[key] = ''
243
+ })
244
+ },
245
+ show() {
246
+ this.criteriaShow = true
247
+ },
248
+ hidden() {
249
+ this.criteriaShow = !this.criteriaShow
250
+ },
251
+ getRes(condition) {
252
+ this.orgCondtionStr = condition
253
+ },
254
+ dealmsg(val) {
255
+ console.log('---------------dealmsg')
256
+ this.rowdata=val
257
+ this.show=true
258
+ val.model = this.model.model
259
+ this.$dispatch('deal-msg', val)
260
+ },
261
+ stamp() {
262
+ this.all = false
263
+ //默认选择要打印的列
264
+ this.modelval = defaultPrint.config
265
+ this.fields = this.getfield
266
+ console.log('所有打印字段', this.fields)
267
+ this.printshow = true
268
+ this.put()
269
+ },
270
+ put() {
271
+ // 对Modelval进行排序
272
+ this.sortModelval()
273
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
274
+ for (let key of this.modelval) {
275
+ this.thead += '<th>' + this.fields[key] + '</th>'
276
+ }
277
+ this.thead += '</tr>'
278
+ },
279
+ print() {
280
+ this.$refs.print.PrintAsFile()
281
+ this.printshow = false
282
+ },
283
+ close() {
284
+ this.printshow = false
285
+ this.all = false
286
+ },
287
+ // 对选择的列进行排序
288
+ sortModelval() {
289
+ let sortModel = []
290
+ Object.keys(this.fields).forEach((key) => {
291
+ if (this.modelval.includes(key)) {
292
+ sortModel.push(key)
293
+ }
294
+ })
295
+ this.modelval = sortModel
296
+ console.log('选择的打印的字段', this.modelval)
297
+ },
298
+ async updateParams() {
299
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
300
+ this.initParams()
301
+ },
302
+ },
303
+ watch: {
304
+ 'all'(val) {
305
+ if (val) {
306
+ this.modelval = this.bodyData
307
+ } else {
308
+ this.modelval = defaultPrint.config
309
+ this.put()
310
+ }
311
+ },
312
+ 'modelval.length'() {
313
+ this.put()
314
+ },
315
+ 'orgCondtionStr'(val) {
316
+ let res = val.match(/'(.*?)'/)
317
+ console.log('正则提取:',res && res[1])
318
+ if (res) {
319
+ this.selectorg = res[1]
320
+ this.f_filialeid = res[1]
321
+ // this.updateParams()
322
+ }
323
+ }
324
+ },
325
+ computed: {
326
+ getCondition() {
327
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
328
+ },
329
+ getfield() {
330
+ return exportConfig.toolcardconfig
331
+ },
332
+ cardbrands() {
333
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('工具卡品牌')]
334
+ },
335
+ cardtypes() {
336
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工具卡类型')]
337
+ }
338
+ }
339
+ }
340
+ </script>