sale-client 3.6.170 → 3.6.172

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 (29) hide show
  1. package/build/dev-server.js +4 -1
  2. package/package.json +1 -1
  3. package/src/components/FilesManage/FileUserFiles.vue +8 -1
  4. package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +8 -1
  5. package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +8 -1
  6. package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +8 -1
  7. package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +8 -1
  8. package/src/filiale/dongguan/components/common/userinfo_detail/UserBaseInfoNew.vue +8 -1
  9. package/src/filiale/ganquan/components/FilesManage/FileUserFiles.vue +8 -1
  10. package/src/filiale/gehua/FileUserFiles.vue +8 -1
  11. package/src/filiale/gehua/UserBaseInfoNew.vue +8 -1
  12. package/src/filiale/haile/UserBaseInfoNew.vue +8 -1
  13. package/src/filiale/haile/sale.js +2 -0
  14. package/src/filiale/haile/unHandplanQuery.vue +739 -0
  15. package/src/filiale/huayin/FileUserFiles.vue +8 -1
  16. package/src/filiale/kelai/FileUserFilesKeLai.vue +8 -1
  17. package/src/filiale/konggang/FileUserFiles.vue +8 -1
  18. package/src/filiale/ningjin/FileUserFiles.vue +8 -1
  19. package/src/filiale/qianneng/components/common/userinfo_detail/UserBaseInfoNew.vue +8 -1
  20. package/src/filiale/qingjian/FileUserFiles.vue +8 -1
  21. package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +8 -1
  22. package/src/filiale/shexian/FilesManage/FileUserFiles.vue +8 -1
  23. package/src/filiale/shexian/UserBaseInfoNew.vue +8 -1
  24. package/src/filiale/wenxi/FileUserFiles.vue +8 -1
  25. package/src/filiale/wuan/FileUserFiles.vue +8 -1
  26. package/src/filiale/xinkang/UserBaseInfoNew.vue +8 -1
  27. package/src/filiale/yuansheng/UserBaseInfoNew.vue +8 -1
  28. package/src/filiale/zhongsheng/charge/UserBaseInfoNew.vue +8 -1
  29. package/src/filiale/zhongyi/FileUserFiles.vue +8 -1
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [ serverRul, localUrl ] = ['http://61.240.138.248:8400', 'http://61.240.138.248:8400']
2
+ const [ serverRul, localUrl ] = ['http://121.36.106.17:8400/', 'http://121.36.106.17:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
@@ -20,6 +20,9 @@ var devConfig = {
20
20
  '/rs/file': {
21
21
  target: localUrl
22
22
  },
23
+ '/rs/logic/filemanage_fileSave': {
24
+ target: "http://127.0.0.1:4523/m1/719967-0-default"
25
+ },
23
26
  '/rs/downloadfile': {
24
27
  target: localUrl
25
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.170",
3
+ "version": "3.6.172",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -666,7 +666,14 @@ let loadParamGem = async function (self) {
666
666
  this.rowData = obj
667
667
  },
668
668
  goChargeManage () {
669
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
669
+ try {
670
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
671
+ } catch (e) {
672
+ }
673
+ try {
674
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
675
+ } catch (e) {
676
+ }
670
677
  },
671
678
  async doCopy () {
672
679
  await this.$copyText(this.resdata)
@@ -336,7 +336,14 @@
336
336
  if (this.row.parentname === 'charge-manage') {
337
337
  this.$emit('cancel-re')
338
338
  } else {
339
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
339
+ try {
340
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
341
+ } catch (e) {
342
+ }
343
+ try {
344
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
345
+ } catch (e) {
346
+ }
340
347
  }
341
348
  },
342
349
  openUser () {
@@ -660,7 +660,14 @@ let loadParamGem = async function (self) {
660
660
  this.rowData = obj
661
661
  },
662
662
  goChargeManage () {
663
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
663
+ try {
664
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
665
+ } catch (e) {
666
+ }
667
+ try {
668
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
669
+ } catch (e) {
670
+ }
664
671
  },
665
672
  async doCopy () {
666
673
  await this.$copyText(this.resdata)
@@ -655,7 +655,14 @@ let loadParamGem = async function (self) {
655
655
  this.rowData = obj
656
656
  },
657
657
  goChargeManage () {
658
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
658
+ try {
659
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
660
+ } catch (e) {
661
+ }
662
+ try {
663
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
664
+ } catch (e) {
665
+ }
659
666
  },
660
667
  async doCopy () {
661
668
  await this.$copyText(this.resdata)
@@ -673,7 +673,14 @@ export default {
673
673
  this.rowData = obj
674
674
  },
675
675
  goChargeManage () {
676
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
676
+ try {
677
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
678
+ } catch (e) {
679
+ }
680
+ try {
681
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
682
+ } catch (e) {
683
+ }
677
684
  },
678
685
  async doCopy () {
679
686
  await this.$copyText(this.resdata)
@@ -371,7 +371,14 @@
371
371
  async goChargeManage () {
372
372
  await this.$copyText(this.row.f_userinfo_code)
373
373
  this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
374
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
374
+ try {
375
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
376
+ } catch (e) {
377
+ }
378
+ try {
379
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
380
+ } catch (e) {
381
+ }
375
382
  },
376
383
  openUser () {
377
384
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
@@ -690,7 +690,14 @@ let loadParamGem = async function (self) {
690
690
  this.rowData = obj
691
691
  },
692
692
  goChargeManage () {
693
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
693
+ try {
694
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
695
+ } catch (e) {
696
+ }
697
+ try {
698
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
699
+ } catch (e) {
700
+ }
694
701
  },
695
702
  async doCopy () {
696
703
  await this.$copyText(this.resdata)
@@ -643,7 +643,14 @@ let loadParamGem = async function (self) {
643
643
  this.rowData = obj
644
644
  },
645
645
  goChargeManage () {
646
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
646
+ try {
647
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
648
+ } catch (e) {
649
+ }
650
+ try {
651
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
652
+ } catch (e) {
653
+ }
647
654
  },
648
655
  async doCopy () {
649
656
  await this.$copyText(this.resdata)
@@ -324,7 +324,14 @@
324
324
  async goChargeManage () {
325
325
  await this.$copyText(this.row.f_userinfo_code)
326
326
  this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
327
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
327
+ try {
328
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
329
+ } catch (e) {
330
+ }
331
+ try {
332
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
333
+ } catch (e) {
334
+ }
328
335
  },
329
336
  openUser () {
330
337
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
@@ -339,7 +339,14 @@
339
339
  if (this.row.parentname === 'charge-manage') {
340
340
  this.$emit('cancel-re')
341
341
  } else {
342
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
342
+ try {
343
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
344
+ } catch (e) {
345
+ }
346
+ try {
347
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
348
+ } catch (e) {
349
+ }
343
350
  }
344
351
  },
345
352
  openUser () {
@@ -24,4 +24,6 @@ export default function () {
24
24
  Vue.component('user-meterinfodetail', (resolve) => { require(['./leftview/meterinfodetail'], resolve) })
25
25
  // 欠费查询
26
26
  Vue.component('sale-arrears-query', (resolve) => { require(['./machineHandManage/ArrearsQuery'], resolve) })
27
+ // 机表查询
28
+ Vue.component('un-handplan-query', (resolve) => { require(['./unHandplanQuery'], resolve) })
27
29
  }
@@ -0,0 +1,739 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
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
+
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
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name = '{}'" placeholder="客户名称">
38
+ </div>
39
+ <div class="span" style="float:right;">
40
+ <button class="button_search button_spacing" @click="search()">查询</button>
41
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+ <export-excel :data="$parent.$parent.getCondition"
43
+ :field="$parent.$parent.getfield"
44
+ sqlurl="rs/logic/saleExport" sql-name="unsalehandplanQuery" template-name='抄表查询导出'
45
+ :choose-col="true"></export-excel>
46
+
47
+ <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>
48
+ </div>
49
+ </div>
50
+ <div class="row" v-show="$parent.$parent.criteriaShow">
51
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :show-component="['company','department','operator']" v-ref:sel></res-select-group>
52
+
53
+
54
+ <!--<div class="col-sm-2 form-group">-->
55
+ <!--<label class="font_normal_body">小区名称</label>-->
56
+ <!--<v-select :value.sync="model.f_residential_area"-->
57
+ <!--class="select_list select"-->
58
+ <!--enter-push-->
59
+ <!--multiple = "true"-->
60
+ <!--v-model="model.f_residential_area"-->
61
+ <!--style="width: 60%"-->
62
+ <!--condition="f_residential_area in {}"-->
63
+ <!--:options='$parent.$parent.residentialArea' placeholder='选择小区'-->
64
+ <!--close-on-select>-->
65
+
66
+ <!--</v-select>-->
67
+ <!--</div>-->
68
+
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">客户地址</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
72
+ condition="f_address like '%{}%'" placeholder='客户地址'>
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">客户类型</label>
76
+ <v-select :value.sync="model.f_user_type"
77
+ @change="$parent.$parent.userTypeChange()"
78
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
79
+ condition="f_user_type = '{}'"
80
+ close-on-select></v-select>
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body">用气性质</label>
84
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
85
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
86
+ condition="f_gasproperties = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <!--<div class="col-sm-2 form-group">-->
90
+ <!--<label class="font_normal_body">气价类型</label>-->
91
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
92
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
93
+ <!--close-on-select v-ref:type>-->
94
+ <!--</v-select>-->
95
+ <!--</div>-->
96
+ <!--<div class="col-sm-2 form-group">-->
97
+ <!--<label class="font_normal_body">气价名称</label>-->
98
+ <!--<v-select :value.sync="model.f_price_name"-->
99
+ <!--v-model="model.f_price_name"-->
100
+ <!--:options="$parent.$parent.getPricenames"-->
101
+ <!--condition="f_price_name = '{}'"-->
102
+ <!--close-on-select></v-select>-->
103
+ <!--</div>-->
104
+
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">气表品牌</label>
107
+ <v-select :value.sync="model.f_meter_brand" multiple
108
+ v-model="model.f_meter_brand"
109
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
110
+ condition="f_meter_brand in {}"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">期间用气量</label>
115
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
116
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
117
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
118
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">期间用气金额</label>
122
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
123
+ v-model="model.f_oughtfee_big" condition="f_oughtfee >= {}" placeholder='大于等于'>
124
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
125
+ v-model="model.f_oughtfee_small" condition="f_oughtfee <= {}" placeholder='小于等于'>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
129
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
130
+ condition="f_meternumber = '{}' " placeholder="表号">
131
+ </div>
132
+
133
+ <!--表册片区-->
134
+ <!--<div class="col-sm-2 form-group">-->
135
+ <!--<label class="font_normal_body">表册片区</label>-->
136
+ <!--<v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"-->
137
+ <!--@change="$parent.$parent.inputtorchange"-->
138
+ <!--multiple-->
139
+ <!--:options='$parent.$parent.bookSlice' placeholder='片区/表册'-->
140
+ <!--style="width:60%"-->
141
+ <!--close-on-select-->
142
+ <!--condition="f_book_slice_area in {}"></v-select>-->
143
+ <!--</div>-->
144
+ <div class="col-sm-2 form-group">
145
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
146
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
147
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
148
+ style="width:60%"
149
+ multiple
150
+ close-on-select
151
+ condition="f_meter_book_num in {}"></v-select>
152
+ </div>
153
+
154
+ </div>
155
+ </div>
156
+ </criteria>
157
+
158
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
159
+ <template partial='head'>
160
+ <tr>
161
+ <th>
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
+ <th>
186
+ <nobr>气表品牌</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>表号</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>抄表册名称</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>册内排序</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>开户时间</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>期间初次上报日期</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>期间最后上报日期</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>期间上报次数</nobr>
208
+ </th>
209
+
210
+ <th>
211
+ <nobr>期间用气量</nobr>
212
+ </th>
213
+ <th>
214
+ <nobr>期间用气金额</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>机表未抄期数</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>物联未报天数</nobr>
221
+ </th>
222
+ <th>
223
+ <nobr>部门</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>公司</nobr>
227
+ </th>
228
+ </tr>
229
+ </template>
230
+ <template partial='body'>
231
+ <td style="text-align: center;">
232
+ <nobr>
233
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
234
+ </td>
235
+ <td style="text-align: center;">
236
+ <nobr>{{row.f_user_name}}</nobr>
237
+ </td>
238
+ <td style="text-align: center;">
239
+ <nobr>{{row.f_address}}</nobr>
240
+ </td>
241
+ <td style="text-align: center;">
242
+ <nobr>{{row.f_user_state}}</nobr>
243
+ </td>
244
+ <td style="text-align: center;">
245
+ <nobr>{{row.f_table_state}}</nobr>
246
+ </td>
247
+ <td style="text-align: center;">
248
+ <nobr>{{row.f_meter_classify}}</nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.f_user_type}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.f_gasproperties}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_meter_brand}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_meternumber}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_book_name}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_meter_book_sort}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.f_open_date}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_hand_min_date}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr>{{row.f_hand_max_date}}</nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr>{{row.f_number}}</nobr>
279
+ </td>
280
+ <td style="text-align: center;">
281
+ <nobr>{{row.f_oughtamount}}</nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr>{{row.f_oughtfee}}</nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr>{{row.f_hand_month}}</nobr>
288
+ </td>
289
+ <td style="text-align: center;">
290
+ <nobr>{{row.f_webhand_day}}</nobr>
291
+ </td>
292
+
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_depname}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_orgname}}</nobr>
298
+ </td>
299
+ </template>
300
+ <template partial='foot'></template>
301
+ </data-grid>
302
+ </criteria-paged>
303
+
304
+
305
+ </div>
306
+ </div>
307
+ <div class="flex" v-if="show">
308
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
309
+ </div>
310
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
311
+ </div>
312
+ </template>
313
+
314
+ <script>
315
+ import {PagedList, HttpResetClass} from 'vue-client'
316
+
317
+
318
+ let readySomething = async function (self) {
319
+ // 加载抄表册
320
+
321
+ await self.$LoadParams.loadMeterBook(self.f_filialeid)
322
+ self.loadMeterBooks()
323
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
324
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
325
+ await self.$LoadParams.loadParam()
326
+ self.initParams()
327
+ console.log('开始查询')
328
+ }
329
+ export default {
330
+ props: ['data'],
331
+ title: '未抄查询',
332
+ data () {
333
+ return {
334
+ iswork: false,
335
+ other: [],
336
+ footer: [],
337
+ data: {},
338
+ model: new PagedList('rs/sql/unsalehandplanQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
339
+ initres: {
340
+ org: [this.$login.f.orgid],
341
+ dep: [],
342
+ user: []
343
+ },
344
+ show: false,
345
+ rowdata: {},
346
+ criteriaShow: false,
347
+ residentialArea: [],
348
+ orgCondtionStr: '',
349
+ modelval: [],
350
+ gasproperties: [],
351
+ inputtouPerson: [],
352
+ meterbrands: [],
353
+ printshow: false,
354
+ f_filialeid: this.$login.f.f_orgid,
355
+ all: false,
356
+ fields: {},
357
+ thead: '',
358
+ tfoot: '',
359
+ showupload: false,
360
+ selected: {},
361
+
362
+ // 下拉框
363
+
364
+ // 合计数据
365
+ sumsmodel: {},
366
+ defaultfield: [],
367
+ config: {
368
+ defaultPrint1: [
369
+ 'f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_pregas', 'f_preamount', 'f_collection', 'f_balance', 'f_curbalance', 'f_idnumber'
370
+ ],
371
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber'],
372
+ excelHeaders: {'f_userinfo_code': '客户编号',
373
+ 'f_user_name': '客户名称',
374
+ 'f_address': '客户地址',
375
+ 'f_user_state': '客户状态',
376
+ 'f_table_state': '表具状态',
377
+ 'f_meter_classify': '气表类型',
378
+ 'f_user_type': '客户类型',
379
+ 'f_gasproperties': '用户性质',
380
+ 'f_meter_brand': '气表品牌',
381
+ 'f_meternumber': '表号',
382
+ 'f_book_name': '抄表册名称',
383
+ 'f_meter_book_sort': '册内排序',
384
+ 'f_open_date': '开户时间',
385
+ 'f_hand_min_date': '期间初次上报日期',
386
+ 'f_hand_max_date': '期间最后上报日期',
387
+ 'f_number': '期间上报次数',
388
+ 'f_oughtamount': '期间用气量',
389
+ 'f_oughtfee': '期间用气金额',
390
+ 'f_hand_month': '机表未抄期数',
391
+ 'f_webhand_day': '物联未报天数',
392
+ 'f_depname': '部门',
393
+ 'f_orgname': '公司'
394
+ }
395
+ },
396
+ batchmoneyShow: false,
397
+ prices: [],
398
+ bgl: [{label: '全部', value: ''}, {label: '有', value: '1'}, {label: '无', value: '0'}],
399
+ meterbooks: [{label: '全部', value: ''}], // 抄表册
400
+ tempfalg: false,
401
+ lastorgstr: '',
402
+ allorgid: [],
403
+ inputtores: [{label: '全部', value: ''}], // 抄表员
404
+ // 表册片区
405
+ bookSlice: [{label: '全部', value: ''}],
406
+ imgshow: false,
407
+ imgfilename: '',
408
+ percent: 0,
409
+ progressShow: false,
410
+ uuida: '',
411
+ timer: '',
412
+ condition: ' 1 = 1'
413
+ }
414
+ },
415
+ ready () {
416
+ this.getaddress()
417
+ readySomething(this).then(() => {
418
+ this.$emit('ready')
419
+ }).catch((error) => {
420
+ this.$emit('error', error)
421
+ })
422
+ },
423
+ methods: {
424
+ loadMeterBooks () {
425
+ this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
426
+ },
427
+ progressclose () {
428
+ this.progressShow = false
429
+ if (this.timer != null) {
430
+ clearInterval(this.timer)
431
+ }
432
+ },
433
+ async initmeterbook (orgstr) {
434
+ if (orgstr == null) {
435
+ orgstr = this.f_filialeid
436
+ }
437
+ // 获取新的抄表册,先去清理所有的抄表册
438
+ this.$GetSaleParam.meterbooks = []
439
+ // 开始加载新的抄表册
440
+ await this.$LoadParams.loadMeterBook(orgstr)
441
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
442
+ },
443
+ // 初始化片区
444
+ async initSlice (val) {
445
+ if (val) {
446
+ let getAllArea = await this.$resetpost('/rs/search', {
447
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
448
+ userid: this.$login.f.id
449
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
450
+ let arr = getAllArea.data.filter((res) => {
451
+ return res.parentid == val
452
+ })
453
+ this.bookSlice = []
454
+ arr.forEach((res) => {
455
+ this.bookSlice.push({label: res.name, value: res.name})
456
+ })
457
+ }
458
+ },
459
+ // 表册片区和抄表册关联
460
+ async inputtorchange () {
461
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', [])
462
+ let val2 = this.$refs.paged.$refs.cri.model.f_book_slice_area
463
+ if ((val2.length > 0)) {
464
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
465
+ let aaa = '('
466
+ val2.forEach((item) => {
467
+ aaa = aaa + `'${item}',`
468
+ })
469
+ aaa = aaa + `'')`
470
+ condition = condition + ` and f_book_slice_area in ${aaa} `
471
+ let param = {
472
+ items: '*',
473
+ tablename: 't_meter_book',
474
+ condition: condition,
475
+ orderitem: 'id'
476
+ }
477
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
478
+ if (getMeterBooks.data) {
479
+ if (getMeterBooks.data.length > 0) {
480
+ let rs = []
481
+ getMeterBooks.data.forEach((item) => {
482
+ let temp = {
483
+ label: item.f_book_name,
484
+ value: item.id
485
+ }
486
+ rs.push(temp)
487
+ })
488
+ this.meterbooks = [{label: '全部', value: ''}, ...rs]
489
+ } else {
490
+ this.meterbooks = [{label: '全部', value: ''}]
491
+ }
492
+ }
493
+ } else {
494
+ this.meterbooks = [{label: '全部', value: ''}]
495
+ this.initmeterbook()
496
+ }
497
+ },
498
+
499
+ async getinputtores () {
500
+ // 获取抄表员
501
+ let rs = []
502
+ if (this.$login.f.f_gasman.length > 0) {
503
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
504
+ let temp = {
505
+ label: this.$login.f.f_gasman[i].name,
506
+ value: this.$login.f.f_gasman[i].name
507
+ }
508
+ rs.push(temp)
509
+ }
510
+ }
511
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
512
+ this.inputtores.push({label: '微信公众号', value: '微信公众号'})
513
+ },
514
+ async updateParams () {
515
+ await this.$LoadParams.loadParam(this.f_filialeid)
516
+ this.inputtores = []
517
+ this.inputtores.push({label: '全部', value: ''})
518
+ this.initSlice(this.f_filialeid)
519
+ if (this.allorgid != null) {
520
+ this.allorgid.forEach((res) => {
521
+ this.inputtores = this.inputtores.concat(this.$GetSaleParam.getresinputtor(res))
522
+ })
523
+ }
524
+ this.initParams(this.f_filialeid)
525
+ },
526
+ imgclose () {
527
+ this.imgshow = false
528
+ },
529
+ imgShow (val) {
530
+ this.imgfilename = `rs/image/file/` + val
531
+ this.imgshow = true
532
+ },
533
+ initParams () {
534
+ // 初始化气表品牌
535
+ let brandArr = []
536
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
537
+ let temp = {}
538
+ temp.label = item.label
539
+ temp.value = item.label
540
+ brandArr.push(temp)
541
+ })
542
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
543
+ // 初始化气表价格
544
+ this.prices = this.$GetSaleParam.getPrice(this.$login.f.orgid)
545
+ },
546
+ async getaddress () {
547
+ let HttpReset = new HttpResetClass()
548
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
549
+ data: {
550
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
551
+ }
552
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
553
+ console.log('小区', data)
554
+ let house = [{label: '全部', value: ''}]
555
+ for (let row of data.data) {
556
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
557
+ }
558
+ this.residentialArea = house
559
+ },
560
+ Fileinput () {
561
+ this.batchmoneyShow = true
562
+ },
563
+ search () {
564
+ this.$refs.paged.$refs.cri.search()
565
+ },
566
+ cancel () {
567
+ this.show = false
568
+ },
569
+ selfSearch (args) {
570
+ if (this.data) {
571
+ this.$parent.$parent.$parent.data.startDate = this.$refs.paged.$refs.cri.model.startDate
572
+ this.$parent.$parent.$parent.data.endDate = this.$refs.paged.$refs.cri.model.endDate
573
+ }
574
+ args.condition = `${args.condition}` + this.orgCondtionStr
575
+ this.condition = args.condition
576
+ this.model.search(args.condition, args.model)
577
+ },
578
+ clear () {
579
+ // 清空部门和人员
580
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
581
+ // 部门和人员变为全选
582
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
583
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
584
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
585
+ this.$refs.paged.$refs.cri.model[key] = []
586
+ })
587
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
588
+ },
589
+ show () {
590
+ this.criteriaShow = true
591
+ },
592
+ hidden () {
593
+ this.criteriaShow = !this.criteriaShow
594
+ },
595
+ async getRes (condition, obj) {
596
+ console.log('condition:----------', condition)
597
+ console.log('obj:----------', obj)
598
+ this.orgCondtionStr = condition
599
+ },
600
+ stamp () {
601
+ this.all = false
602
+ // 默认选择要打印的列
603
+ this.modelval = this.defaultPrint1
604
+ this.fields = this.getfield
605
+ this.printshow = true
606
+ this.put()
607
+ },
608
+ put () {
609
+ // 对Modelval进行排序
610
+ this.sortModelval()
611
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
612
+ for (let key of this.modelval) {
613
+ this.thead += '<th>' + this.fields[key] + '</th>'
614
+ }
615
+ this.thead += '</tr>'
616
+ },
617
+ print () {
618
+ this.$refs.print.PrintAsFile()
619
+ this.printshow = false
620
+ },
621
+ dealmsg (val) {
622
+ this.rowdata = val
623
+ this.show = true
624
+ val.model = this.model.model
625
+ this.$dispatch('deal-msg', val)
626
+ },
627
+ close () {
628
+ this.printshow = false
629
+ this.all = false
630
+ },
631
+
632
+ userTypeChange () {
633
+ this.gasproperties = []
634
+ if (this.$refs.paged.$refs.cri.model !== null) {
635
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
636
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
637
+ } else {
638
+ this.gasproperties = [{label: '全部', value: ''}]
639
+ }
640
+ },
641
+ // 对选择的列进行排序
642
+ sortModelval () {
643
+ let sortModel = []
644
+ Object.keys(this.fields).forEach((key) => {
645
+ if (this.modelval.includes(key)) {
646
+ sortModel.push(key)
647
+ }
648
+ })
649
+ this.modelval = sortModel
650
+ }
651
+ },
652
+ watch: {
653
+ 'model.rows' (val) {
654
+ if (val.length === 0) {
655
+ this.sumsmodel = {}
656
+ }
657
+ },
658
+ 'all' (val) {
659
+ if (val) {
660
+ this.modelval = this.bodyData
661
+ } else {
662
+ this.modelval = this.defaultPrint1
663
+ this.put()
664
+ }
665
+ },
666
+ 'modelval.length' () {
667
+ this.put()
668
+ },
669
+ },
670
+ computed: {
671
+ banklist () {
672
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
673
+ },
674
+ getCondition () {
675
+ return {
676
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
677
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
678
+ condition: this.condition
679
+ }
680
+ },
681
+ getfield () {
682
+ return this.config.excelHeaders
683
+ },
684
+ usertypes () {
685
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
686
+ },
687
+ accountsState () {
688
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
689
+ },
690
+ meterstate () {
691
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
692
+ },
693
+ handstate () {
694
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
695
+ },
696
+ // inputtor() {
697
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
698
+ // },
699
+ pricetypes () {
700
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
701
+ },
702
+ getPricenames () {
703
+ let f_filialeid = this.f_filialeid
704
+ let result = []
705
+ this.$GetSaleParam.prices.forEach((item) => {
706
+ if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
707
+ let value = {
708
+ label: item.f_price_name,
709
+ value: item
710
+ }
711
+ result.push(value)
712
+ }
713
+ })
714
+ return Array.from(new Set(result))
715
+ },
716
+ inputtores () {
717
+ // 获取抄表员
718
+ console.log('获取抄表员', this.$login.f)
719
+ let rs = []
720
+ if (this.$login.f.f_gasman.length > 0) {
721
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
722
+ let temp = {
723
+ label: this.$login.f.f_gasman[i].name,
724
+ value: this.$login.f.f_gasman[i].name
725
+ }
726
+ rs.push(temp)
727
+ }
728
+ }
729
+ return [...rs]
730
+ },
731
+ whetherPay () {
732
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
733
+ }
734
+
735
+ },
736
+ events: {
737
+ }
738
+ }
739
+ </script>
@@ -643,7 +643,14 @@ let loadParamGem = async function (self) {
643
643
  this.rowData = obj
644
644
  },
645
645
  goChargeManage () {
646
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
646
+ try {
647
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
648
+ } catch (e) {
649
+ }
650
+ try {
651
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
652
+ } catch (e) {
653
+ }
647
654
  },
648
655
  async doCopy () {
649
656
  await this.$copyText(this.resdata)
@@ -663,7 +663,14 @@ let loadParamGem = async function (self) {
663
663
  this.rowData = obj
664
664
  },
665
665
  goChargeManage () {
666
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
666
+ try {
667
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
668
+ } catch (e) {
669
+ }
670
+ try {
671
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
672
+ } catch (e) {
673
+ }
667
674
  },
668
675
  async doCopy () {
669
676
  await this.$copyText(this.resdata)
@@ -629,7 +629,14 @@ let loadParamGem = async function (self) {
629
629
  this.rowData = obj
630
630
  },
631
631
  goChargeManage () {
632
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
632
+ try {
633
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
634
+ } catch (e) {
635
+ }
636
+ try {
637
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
638
+ } catch (e) {
639
+ }
633
640
  },
634
641
  async doCopy () {
635
642
  await this.$copyText(this.resdata)
@@ -643,7 +643,14 @@ let loadParamGem = async function (self) {
643
643
  this.rowData = obj
644
644
  },
645
645
  goChargeManage () {
646
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
646
+ try {
647
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
648
+ } catch (e) {
649
+ }
650
+ try {
651
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
652
+ } catch (e) {
653
+ }
647
654
  },
648
655
  async doCopy () {
649
656
  await this.$copyText(this.resdata)
@@ -347,7 +347,14 @@
347
347
  async goChargeManage () {
348
348
  await this.$copyText(this.row.f_userinfo_code)
349
349
  this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
350
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
350
+ try {
351
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
352
+ } catch (e) {
353
+ }
354
+ try {
355
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
356
+ } catch (e) {
357
+ }
351
358
  },
352
359
  openUser () {
353
360
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
@@ -670,7 +670,14 @@ let loadParamGem = async function (self) {
670
670
  this.rowData = obj
671
671
  },
672
672
  goChargeManage () {
673
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
673
+ try {
674
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
675
+ } catch (e) {
676
+ }
677
+ try {
678
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
679
+ } catch (e) {
680
+ }
674
681
  },
675
682
  async doCopy () {
676
683
  await this.$copyText(this.resdata)
@@ -640,7 +640,14 @@ let loadParamGem = async function (self) {
640
640
  this.rowData = obj
641
641
  },
642
642
  goChargeManage () {
643
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
643
+ try {
644
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
645
+ } catch (e) {
646
+ }
647
+ try {
648
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
649
+ } catch (e) {
650
+ }
644
651
  },
645
652
  async doCopy () {
646
653
  await this.$copyText(this.resdata)
@@ -681,7 +681,14 @@ let loadParamGem = async function (self) {
681
681
  this.rowData = obj
682
682
  },
683
683
  goChargeManage () {
684
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
684
+ try {
685
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
686
+ } catch (e) {
687
+ }
688
+ try {
689
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
690
+ } catch (e) {
691
+ }
685
692
  },
686
693
  async doCopy () {
687
694
  await this.$copyText(this.resdata)
@@ -336,7 +336,14 @@
336
336
  if (this.row.parentname === 'charge-manage') {
337
337
  this.$emit('cancel-re')
338
338
  } else {
339
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
339
+ try {
340
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
341
+ } catch (e) {
342
+ }
343
+ try {
344
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
345
+ } catch (e) {
346
+ }
340
347
  }
341
348
  },
342
349
  openUser () {
@@ -663,7 +663,14 @@ let loadParamGem = async function (self) {
663
663
  this.rowData = obj
664
664
  },
665
665
  goChargeManage () {
666
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
666
+ try {
667
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
668
+ } catch (e) {
669
+ }
670
+ try {
671
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
672
+ } catch (e) {
673
+ }
667
674
  },
668
675
  async doCopy () {
669
676
  await this.$copyText(this.resdata)
@@ -639,7 +639,14 @@ let loadParamGem = async function (self) {
639
639
  this.rowData = obj
640
640
  },
641
641
  goChargeManage () {
642
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
642
+ try {
643
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
644
+ } catch (e) {
645
+ }
646
+ try {
647
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
648
+ } catch (e) {
649
+ }
643
650
  },
644
651
  async doCopy () {
645
652
  await this.$copyText(this.resdata)
@@ -323,7 +323,14 @@
323
323
  async goChargeManage () {
324
324
  await this.$copyText(this.row.f_userinfo_code)
325
325
  this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
326
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
326
+ try {
327
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
328
+ } catch (e) {
329
+ }
330
+ try {
331
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
332
+ } catch (e) {
333
+ }
327
334
  },
328
335
  openUser () {
329
336
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
@@ -323,7 +323,14 @@
323
323
  if (this.row.parentname === 'charge-manage') {
324
324
  this.$emit('cancel-re')
325
325
  } else {
326
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
326
+ try {
327
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
328
+ } catch (e) {
329
+ }
330
+ try {
331
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
332
+ } catch (e) {
333
+ }
327
334
  }
328
335
  },
329
336
  openUser () {
@@ -328,7 +328,14 @@
328
328
  async goChargeManage () {
329
329
  await this.$copyText(this.row.f_userinfo_code)
330
330
  this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
331
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
331
+ try {
332
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
333
+ } catch (e) {
334
+ }
335
+ try {
336
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
337
+ } catch (e) {
338
+ }
332
339
  },
333
340
  openUser () {
334
341
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
@@ -642,7 +642,14 @@ let loadParamGem = async function (self) {
642
642
  this.rowData = obj
643
643
  },
644
644
  goChargeManage () {
645
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
645
+ try {
646
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
647
+ } catch (e) {
648
+ }
649
+ try {
650
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
651
+ } catch (e) {
652
+ }
646
653
  },
647
654
  async doCopy () {
648
655
  await this.$copyText(this.resdata)