sale-client 4.3.20 → 4.3.21

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 (51) hide show
  1. package/.gradle/6.7/fileChanges/last-build.bin +0 -0
  2. package/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/6.7/gc.properties +0 -0
  4. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  6. package/.gradle/checksums/checksums.lock +0 -0
  7. package/.gradle/configuration-cache/gc.properties +0 -0
  8. package/.gradle/vcs-1/gc.properties +0 -0
  9. package/build/dev-server.js +33 -52
  10. package/index.html +2 -7
  11. package/package.json +1 -1
  12. package/src/App.vue +1 -1
  13. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  14. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  15. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  16. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  17. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  18. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  19. package/src/filiale/bayan/StockListmain.vue +543 -543
  20. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  21. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  22. package/src/filiale/bazhong/sale.js +8 -8
  23. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  24. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  25. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  26. package/src/filiale/meihekou/GasPriceUser.vue +490 -0
  27. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  28. package/src/filiale/meihekou/sale.js +2 -0
  29. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  30. package/src/filiale/ronghao/CardService.js +2144 -2144
  31. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  32. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  33. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  34. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  35. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  36. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  37. package/src/filiale/ronghao/Upload.vue +654 -654
  38. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  39. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  40. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  41. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  42. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  43. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  44. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  45. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  46. package/src/filiale/ronghao/specificInformation.vue +537 -537
  47. package/src/filiale/yangchun/ChargeList.vue +954 -954
  48. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  49. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  50. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  51. package/src/main.js +3 -3
@@ -0,0 +1,490 @@
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3" >
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
+ condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
+ </div>
12
+ <!-- <div class="form-group col-sm-3">-->
13
+ <!-- <label class="font_normal_body">客户状态</label>-->
14
+ <!-- <v-select :value.sync="model.f_user_state" v-model="model.f_user_state"-->
15
+ <!-- :options='$parent.$parent.userstates' placeholder='客户状态'-->
16
+ <!-- close-on-select condition="f_user_state='{}'"></v-select>-->
17
+ <!-- </div>-->
18
+ <div class="form-group col-sm-3" >
19
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
20
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
21
+ condition="f_meternumber = '{}'" @keyup.enter="search()">
22
+ </div>
23
+ <div class="form-group col-sm-4 button-range" >
24
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.changeprice()" v-el:cba>批量调价</button>
25
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
26
+ <export-excel
27
+ :data="{condition: $parent.$parent.condition}"
28
+ :field="$parent.$parent.getfield"
29
+ sqlurl="api/af-revenue/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"
30
+ :choose-col="true"></export-excel>
31
+ <div style="float: right" class="button_spacing"
32
+ :class="{'button_shrink_top': $parent.$parent.criteriaShow2,'button_shrink_bottom': !$parent.$parent.criteriaShow2}"
33
+ @click="$parent.$parent.criteriaShow2 = !$parent.$parent.criteriaShow2"></div>
34
+ </div>
35
+ </div>
36
+ <div class="row" v-show="$parent.$parent.criteriaShow2">
37
+ <div class="form-group col-sm-3" >
38
+ <label class="font_normal_body">气表状态</label>
39
+ <v-select style="width:60%" :value.sync="model.f_table_state"
40
+ v-model="model.f_table_state"
41
+ :options='$parent.$parent.gasStates' placeholder='气表状态'
42
+ condition="f_table_state ='{}'"></v-select>
43
+ </div>
44
+ <div class="col-sm-3 form-group">
45
+ <label class="font_normal_body">客户类型</label>
46
+ <v-select :value.sync="model.f_user_type"
47
+ @change="$parent.$parent.userTypeChange1()"
48
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
49
+ condition="f_user_type = '{}'"
50
+ close-on-select></v-select>
51
+ </div>
52
+ <div class="col-sm-3 form-group">
53
+ <label class="font_normal_body">用气性质</label>
54
+ <v-select :value.sync="model.f_gasproperties1" v-model="model.f_gasproperties1"
55
+ :options='$parent.$parent.gasproperties1' placeholder='请选择'
56
+ condition="f_gasproperties = '{}'"
57
+ close-on-select></v-select>
58
+ </div>
59
+ <div class="col-sm-3 form-group">
60
+ <label class="font_normal_body">用气类别</label>
61
+ <v-select :value.sync="model.f_gongye_type" v-model='model.f_gongye_type'
62
+ :options='$parent.$parent.gongyetype' placeholder='用气类别'
63
+ condition="f_gongye_type = '{}'"
64
+ close-on-select
65
+ v-el:cc></v-select>
66
+ </div>
67
+ <div class="form-group col-sm-3">
68
+ <label class="font_normal_body">气表类型</label>
69
+ <v-select :value.sync="model.f_meter_classify" v-model="model.f_meter_classify"
70
+ :options='$parent.$parent.meters' placeholder='气表类型'
71
+ close-on-select
72
+ condition="f_meter_classify = '{}'"
73
+ style="width: 60%"
74
+ >
75
+ </v-select>
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">小区名称</label>
79
+ <v-select :value.sync="model.f_residential_area_id" v-model="model.f_residential_area_id"
80
+ :options='$parent.$parent.areaList' placeholder='小区名称'
81
+ close-on-select @select-search="$parent.$parent.getAreaList"
82
+ condition="f_residential_area_id = '{}'"
83
+ style="width: 60%"
84
+ >
85
+ </v-select>
86
+ </div>
87
+ <div class="form-group col-sm-3" >
88
+ <label class="font_normal_body">客户地址</label>
89
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address" placeholder='客户地址'
90
+ condition="f_address like '%{}%'" @keyup.enter="search()">
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </criteria>
95
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid :optional="true">
96
+ <template partial='head'>
97
+ <th><nobr>客户编号</nobr></th>
98
+ <th><nobr>表号</nobr></th>
99
+ <th><nobr>气价名称</nobr></th>
100
+ <th><nobr>气价类型</nobr></th>
101
+ <th><nobr>客户类型</nobr></th>
102
+ <th><nobr>用气性质</nobr></th>
103
+ <th><nobr>客户名称</nobr></th>
104
+ <th><nobr>客户地址</nobr></th>
105
+ </template>
106
+ <template partial='body'>
107
+ <td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_userinfo_code}}</b></a></span></td>
108
+ <td style="text-align:center">{{row.f_meternumber}}</td>
109
+ <td style="text-align:center">{{row.f_price_name}}</td>
110
+ <td style="text-align:center">{{row.f_price_type}}</td>
111
+ <td style="text-align:center">{{row.f_user_type}}</td>
112
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
113
+ <td style="text-align:center">{{row.f_user_name}}</td>
114
+ <td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
115
+ </template>
116
+ <template partial='foot'></template>
117
+ </data-grid>
118
+ </criteria-paged>
119
+
120
+
121
+ <modal :show.sync="show" width="50%" backdrop="false">
122
+
123
+ <header slot="modal-header" class="modal-header">
124
+ <h4 class="modal-title" style="text-align: center;">气价调整</h4>
125
+ </header>
126
+ <article slot="modal-body" class="modal-body">
127
+ <div class="panel panel-primary datapanel">
128
+ <form class="form-horizontal select-overspread">
129
+ <div class="form-group">
130
+ <div class="row bg-info text-center text-center" style="height:35px">
131
+ <div style="float: left">
132
+ <label class="font_normal_body">旧气价信息</label>
133
+ </div>
134
+ </div>
135
+ <div class="row" style="margin-top: 2%">
136
+ <div class="col-sm-3 flex-row ">
137
+ <label class="control-label">客户类型</label>
138
+ <p class="form-control-static">{{oldinfo.f_user_type}}</p>
139
+ </div>
140
+ <div class="col-sm-3 flex-row ">
141
+ <label class="control-label">用气性质</label>
142
+ <p class="form-control-static">{{oldinfo.f_gasproperties}}</p>
143
+ </div>
144
+ <div class="col-sm-3 flex-row ">
145
+ <label class="control-label">气价类型</label>
146
+ <p class="form-control-static">{{oldinfo.f_price_type}}</p>
147
+ </div>
148
+ <div class="col-sm-3 flex-row ">
149
+ <label class="control-label">气价名称</label>
150
+ <p class="form-control-static">{{oldinfo.f_price_name}}</p>
151
+ </div>
152
+ </div>
153
+ <div class="row bg-info text-center text-center" style="height:35px">
154
+ <div style="float: left">
155
+ <label class="font_normal_body">新气价信息</label>
156
+ </div>
157
+ </div>
158
+ <div class="row" style="margin-top: 2%">
159
+ <div class="col-sm-4 flex-row" >
160
+ <label class="control-label">用户类型</label>
161
+ <v-select :value.sync="newinfo.f_user_type"
162
+ :options='usertypes' placeholder='用户类型'
163
+ @change="userTypeChange()"
164
+ close-on-select></v-select>
165
+ </div>
166
+ <div class="col-sm-4 flex-row">
167
+ <label class="control-label">用气性质</label>
168
+ <v-select :value.sync="newinfo.f_gasproperties" v-model="newinfo.f_gasproperties"
169
+ :options='gasproperties' placeholder='用气性质'
170
+ close-on-select v-ref:gas></v-select>
171
+ </div>
172
+ <div class="col-sm-4 flex-row">
173
+ <label class="control-label">气价类型</label>
174
+ <v-select :value.sync="newinfo.pricetype" v-model="newinfo.pricetype"
175
+ placeholder='气价类型' :options="pricetypes"
176
+ close-on-select v-ref:type>
177
+ </v-select>
178
+ </div>
179
+ </div>
180
+ <div class="row" style="margin-top: 2%">
181
+
182
+ <div class="col-sm-4 flex-row" >
183
+ <label class="control-label">气价名称</label>
184
+ <v-select :value.sync="newinfo.pricename" v-model="newinfo.pricename"
185
+ placeholder='气价名称' :options="getPricenames()" @change="priceChange"
186
+ close-on-select :disabled='newinfo.pricetype.length === 0 ' v-ref:name></v-select>
187
+ <span class="col-sm-3" v-if="newinfo.pricetype.length === 1 && gasproperties.length === 0"
188
+ style="color:red;text-align:right">请确定用气性质已选择!!</span>
189
+ </div>
190
+
191
+ <div class="col-sm-4 flex-row">
192
+ <label class="control-label">气价备注</label>
193
+ <input type="text" class="input_search" style="width:60%" v-model="newinfo.f_price_comments" placeholder='气价备注' disabled>
194
+ </div>
195
+
196
+ </div>
197
+
198
+ <div class="row" style="margin-top: 2%">
199
+ <div class="col-sm-12 flex-row">
200
+ <label class="control-label">调价原因</label>
201
+ <input type="text" class="input_search" style="width:87%" v-model="newinfo.f_comments"
202
+ placeholder='调价原因'>
203
+ </div>
204
+ </div>
205
+ <div class="row" style="margin-top: 2%">
206
+ <div class="col-sm-12 flex-row" v-if="newinfo.f_comments==='其他原因'">
207
+ <label class="control-label">其他原因</label>
208
+ <input type="text" class="input_search" style="width:80%" v-model="newinfo.f_other_comments" placeholder='其他原因' >
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </form>
213
+ </div>
214
+
215
+ <upload :blodid="blodid" :businessid="blodid" isremark="true" fusetype="批量调价" v-ref:fileupload></upload>
216
+ </article>
217
+ <footer slot="modal-footer" class="modal-footer">
218
+ <button class="button_search" @click="modifyUser">确定</button>
219
+ <button type="button" class="button_clear" @click='close'>取消</button>
220
+ </footer>
221
+
222
+ </modal>
223
+ </div>
224
+ </template>
225
+
226
+ <script>
227
+ import {HttpResetClass, PagedList} from 'vue-client'
228
+
229
+ let loadParamGem = async function (self) {
230
+ await self.$LoadParams.loadParam(self.priceorgid ? self.priceorgid : self.f_filialeid)
231
+ }
232
+ export default {
233
+ title: '气价使用人',
234
+ data () {
235
+ return {
236
+ model: new PagedList('api/af-revenue/sql/getGasUser', 20, {}),
237
+ condition: '',
238
+ criteriaShow2: false,
239
+ gasproperties1: [],
240
+ getfield: {},
241
+ show: false,
242
+ gasproperties: [],
243
+ f_filialeid: this.$login.f.orgid,
244
+ newinfo: {
245
+ f_user_type: '',
246
+ f_gasproperties: '',
247
+ pricetype: '',
248
+ pricename: '',
249
+ f_other_comments: '',
250
+ f_comments: ''
251
+ },
252
+ oldinfo: {
253
+ f_user_type: '',
254
+ f_gasproperties: '',
255
+ f_price_type: '',
256
+ f_price_name: '',
257
+ f_price_id: '',
258
+ f_stairprice_id: ''
259
+ },
260
+ areaList: [],
261
+ gongyetype: this.$appdata.getParam('用气类别') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类别')] : [],
262
+ usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
263
+ pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
264
+ meters: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
265
+ adjustpricereasons: this.$appdata.getParam('批量调价原因'),
266
+ config: {
267
+ excelHeaders: {
268
+ 'f_price_name': '气价名称',
269
+ 'f_userinfo_code': '客户编号',
270
+ 'f_user_name': '客户姓名',
271
+ 'f_address': '客户地址',
272
+ 'f_orgname': '组织机构'
273
+ }
274
+ },
275
+ blodid: '临时id' + Date.now()
276
+ }
277
+ },
278
+ props: ['priceid', 'pricename', 'priceorgid','islowincome'],
279
+ ready () {
280
+ this.search()
281
+ this.getfield = this.config.excelHeaders
282
+ loadParamGem(this)
283
+ this.getAreaList()
284
+ },
285
+ methods: {
286
+ getAreaList (searchText) {
287
+ let condition = ' 1 = 1 '
288
+ if (searchText) {
289
+ condition = ` f_residential_area like '%${searchText}%' `
290
+ }
291
+ let HttpReset = new HttpResetClass()
292
+ HttpReset.load('POST', 'api/af-revenue/sql/saleSingleTable?pageNo=1&pageSize=100', {
293
+ data: {
294
+ items: 'f_residential_area, id',
295
+ tablename: 't_area',
296
+ orderitem: 'id desc',
297
+ condition: condition
298
+ }
299
+ }, {resolveMsg: null, rejectMsg: '获取小区信息失败!'}).then((req) => {
300
+ let redata = []
301
+ req.data.forEach((row, n) => {
302
+ redata[n] = {
303
+ label: row.f_residential_area,
304
+ value: row.id
305
+ }
306
+ })
307
+ this.areaList = [{label: '全部', value: ''}, ...redata]
308
+ })
309
+ },
310
+ userTypeChange1 () {
311
+ this.gasproperties1 = []
312
+ if (this.$refs.paged.$refs.criteria.model !== null) {
313
+ this.$refs.paged.$refs.criteria.model.f_gasproperties1 = ''
314
+ this.gasproperties1 = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
315
+ } else {
316
+ this.gasproperties1 = [{label: '全部', value: ''}]
317
+ }
318
+ },
319
+ close () {
320
+ this.show = false
321
+ Object.keys(this.newinfo).forEach(key => {
322
+ this.newinfo[key] = ''
323
+ })
324
+ },
325
+ async modifyUser () {
326
+
327
+ let rowdata = this.$refs.paged.$refs.grid.getRowData()
328
+ if (rowdata.length === 0) {
329
+ // 提示
330
+ let res = await this.$showMessage(`当前未选择用户,将会针对查询结果进行调价,共 ${this.model.count} 户,是否继续?`, ['confirm', 'cancel'])
331
+ if (res !== 'confirm') {
332
+ return
333
+ }
334
+ } else {
335
+ // 提示
336
+ let res = await this.$showMessage(`当前共选择用户 ${rowdata.length} 户,是否对 ${rowdata.length} 位用户进行调价?`, ['confirm', 'cancel'])
337
+ if (res !== 'confirm') {
338
+ return
339
+ }
340
+ }
341
+ let condition = rowdata.length === 0 ? this.condition : ''
342
+ let com = rowdata.map((row) => { return row.f_userfiles_id }).join(',')
343
+ let fileuploadid = this.$refs.fileupload.fileInfoData.map((row) => { return row.id }).join(',')
344
+
345
+ let param = {
346
+ // 新气价信息
347
+ f_user_type: this.newinfo.f_user_type[0],
348
+ f_gasproperties: this.newinfo.f_gasproperties[0],
349
+ f_price_type: this.newinfo.pricetype[0],
350
+ f_price_name: this.newinfo.pricename[0].f_price_name,
351
+ f_price_id: this.newinfo.pricename[0].f_price_id,
352
+ f_perform_date: this.newinfo.pricename[0].f_perform_date,
353
+ f_stairprice_id: this.newinfo.pricename[0].id,
354
+ // 修改原因
355
+ f_comments: this.newinfo.f_other_comments ? this.newinfo.f_other_comments:this.newinfo.f_comments,
356
+ // 操作人组织机构信息
357
+ f_operator: this.$login.f.name,
358
+ f_operatorid: this.$login.f.id,
359
+ f_orgid: this.$login.f.orgid,
360
+ f_orgname: this.$login.f.orgs,
361
+ f_depid: this.$login.f.depids,
362
+ f_depname: this.$login.f.deps,
363
+ // 修改条件
364
+ con: com,
365
+ condition: condition,
366
+ fileuploadid: fileuploadid
367
+ }
368
+ if (this.priceid) {
369
+ if (this.newinfo.pricename[0].f_price_id == this.model.rows[0].f_price_id) {
370
+ this.$showMessage('选择的气价和当前气价相同, 请重新选择')
371
+ return
372
+ }
373
+ // 旧气价信息
374
+ param.f_user_type_old = this.model.rows[0].f_user_type
375
+ param.f_gasproperties_old = this.model.rows[0].f_gasproperties
376
+ param.f_price_type_old = this.model.rows[0].f_price_type
377
+ param.f_price_name_old = this.model.rows[0].f_price_name
378
+ param.f_price_id_old = this.model.rows[0].f_price_id
379
+ param.f_stairprice_id_old = this.model.rows[0].f_stairprice_id
380
+ param.f_islow_income = this.islowincome
381
+ let res = await this.$resetpost('api/af-revenue/logic/pricechangeall', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
382
+ this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
383
+ } else {
384
+ param.oldinfo = this.param
385
+ let res = await this.$resetpost('api/af-revenue/logic/pricechangebatch', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
386
+ this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
387
+ }
388
+ this.criteriaShow = false
389
+ this.close()
390
+ this.search()
391
+ },
392
+ userTypeChange () {
393
+ this.gasproperties = []
394
+ if (this.newinfo.f_user_type && this.newinfo.f_user_type.length === 1) {
395
+ this.gasproperties = this.$appdata.getParam(this.newinfo.f_user_type[0])
396
+ }
397
+ },
398
+ search () {
399
+ this.$refs.paged.$refs.criteria.search()
400
+ },
401
+ changeprice () {
402
+ let rowdata = this.$refs.paged.$refs.grid.getRowData().length > 0 ? this.$refs.paged.$refs.grid.getRowData() : this.model.rows
403
+ if (this.priceid && this.model.rows.length > 0) {
404
+ this.oldinfo = {
405
+ f_user_type: this.model.rows[0].f_user_type,
406
+ f_gasproperties: this.model.rows[0].f_gasproperties,
407
+ f_price_type: this.model.rows[0].f_price_type,
408
+ f_price_name: this.model.rows[0].f_price_name,
409
+ f_price_id: this.model.rows[0].f_price_id,
410
+ f_stairprice_id: this.model.rows[0].f_stairprice_id
411
+ }
412
+ } else {
413
+ this.oldinfo = {
414
+ f_user_type: rowdata[0].f_user_type,
415
+ f_gasproperties: rowdata[0].f_gasproperties,
416
+ f_price_type: rowdata[0].f_price_type,
417
+ f_price_name: rowdata[0].f_price_name
418
+ }
419
+ for (var i = 1; i < rowdata.length; i++) {
420
+ if (rowdata[i].f_user_type !== rowdata[i - 1].f_user_type) {
421
+ this.oldinfo.f_user_type = ''
422
+ }
423
+ if (rowdata[i].f_gasproperties !== rowdata[i - 1].f_gasproperties) {
424
+ this.oldinfo.f_gasproperties = ''
425
+ }
426
+ if (rowdata[i].f_price_type !== rowdata[i - 1].f_price_type) {
427
+ this.oldinfo.f_price_type = ''
428
+ }
429
+ if (rowdata[i].f_price_name != rowdata[i - 1].f_price_name) {
430
+ this.oldinfo.f_price_name = ''
431
+ }
432
+ }
433
+ }
434
+ this.show = true
435
+ },
436
+ selfSearch (args) {
437
+ this.$refs.paged.$refs.grid.selectInit()
438
+ if (this.priceid) {
439
+ args.condition = `${args.condition} and f_price_id = '${this.priceid}'`
440
+ } else {
441
+ args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
442
+ }
443
+ this.condition = args.condition
444
+ this.model.search(args.condition, args.model)
445
+ },
446
+ dealmsg (val) {
447
+ this.$parent.f_userinfo_id = val.f_userinfo_id
448
+ this.$parent.listpage = false
449
+ },
450
+ getPricenames () {
451
+ console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
452
+ let rs = []
453
+ if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
454
+ let params = {
455
+ f_user_type: this.newinfo.f_user_type[0],
456
+ f_gasproperties: this.newinfo.f_gasproperties[0],
457
+ f_price_type: this.newinfo.pricetype[0]
458
+ }
459
+ rs = this.$GetSaleParam.getPriceAll(params)
460
+ }
461
+ if (rs.length === 0) {
462
+ this.newinfo.pricename = ''
463
+ }
464
+ return rs
465
+ },
466
+ priceChange (val) {
467
+ if (val && val.length > 0) {
468
+ // 展示气价备注
469
+ this.$set('newinfo.f_price_comments', val[0].f_comments ? val[0].f_comments : '无')
470
+ }
471
+ }
472
+ },
473
+ watch: {
474
+ 'priceid' () {
475
+ this.search()
476
+ },
477
+ 'priceorgid' () {
478
+ this.$LoadParams.loadParam(this.priceorgid ? this.priceorgid : this.f_filialeid)
479
+ }
480
+ },
481
+ computed: {
482
+ userstates () {
483
+ return [{label: '全部', value: ''}, {label: '销户', value: '销户'}, {label: '停用', value: '停用'}, ...this.$appdata.getParam('客户状态')]
484
+ },
485
+ gasStates () {
486
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
487
+ }
488
+ }
489
+ }
490
+ </script>