sale-client 3.6.141 → 3.6.142

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.141",
3
+ "version": "3.6.142",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  <label for="f_meternumber" class="font_normal_body">&ensp;表&emsp;&emsp;号</label>
27
27
  <input type="text" class="input_search" style="width:60%" v-model="row.f_meternumber"
28
28
  @blur="meternumberValidate()" placeholder='表号' v-validate:f_meternumber='{required: true }'
29
- v-next-el="{id: 'metertitles'}">
29
+ v-next-el="{id: 'metertitles'}" :disabled="meterNumberDisabled && meterChangeDisabled">
30
30
  </div>
31
31
  <div class="col-sm-4 form-group" v-else>
32
32
  <label for="f_meternumber" class="font_normal_body">&ensp;表&emsp;&emsp;号</label>
@@ -573,6 +573,8 @@
573
573
  oldrow: [],
574
574
  overdueset:[],
575
575
  isiot: true,
576
+ meterNumberDisabled: false,
577
+ meterChangeDisabled: this.$appdata.getSingleValue('建档后禁止更改表号') ? this.$appdata.getSingleValue('建档后禁止更改表号') : false,
576
578
  templng: '', // 临时经度
577
579
  templat: '' // 临时纬度
578
580
  }
@@ -595,6 +597,9 @@
595
597
  if (this.row.pricetype === '混合气价') {
596
598
  this.ratioshow = true
597
599
  }
600
+ if (this.row.f_meternumber) {
601
+ this.meterNumberDisabled = true
602
+ }
598
603
  await this.getConcentrators()
599
604
  co(meterBookGen(this))
600
605
  },
@@ -25,7 +25,7 @@
25
25
  <div class="form-group col-sm-2">
26
26
  <label class="font_normal_body">客户名称</label>
27
27
  <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
28
- @keyup.enter="search()" condition="f_user_name = '{}'" placeholder='客户姓名'>
28
+ @keyup.enter="search()" condition="f_user_name like '%{}%'" placeholder='客户姓名'>
29
29
  </div>
30
30
 
31
31
  <div style="float:right">
@@ -0,0 +1,488 @@
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="rs/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_olduserinfo_code" placeholder='旧档案编号'
90
+ condition="f_olduserinfo_code = '{}'" @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
+ <th><nobr>客户地址</nobr></th>
106
+ </template>
107
+ <template partial='body'>
108
+ <td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_userinfo_code}}</b></a></span></td>
109
+ <td style="text-align:center">{{row.f_olduserinfo_code}}</td>
110
+ <td style="text-align:center">{{row.f_meternumber}}</td>
111
+ <td style="text-align:center">{{row.f_price_name}}</td>
112
+ <td style="text-align:center">{{row.f_price_type}}</td>
113
+ <td style="text-align:center">{{row.f_user_type}}</td>
114
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
115
+ <td style="text-align:center">{{row.f_user_name}}</td>
116
+ <td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
117
+ </template>
118
+ <template partial='foot'></template>
119
+ </data-grid>
120
+ </criteria-paged>
121
+
122
+
123
+ <modal :show.sync="show" width="50%" backdrop="false">
124
+
125
+ <header slot="modal-header" class="modal-header">
126
+ <h4 class="modal-title" style="text-align: center;">气价调整</h4>
127
+ </header>
128
+ <article slot="modal-body" class="modal-body">
129
+ <div class="panel panel-primary datapanel">
130
+ <form class="form-horizontal select-overspread">
131
+ <div class="form-group">
132
+ <div class="row bg-info text-center text-center" style="height:35px">
133
+ <div style="float: left">
134
+ <label class="font_normal_body">旧气价信息</label>
135
+ </div>
136
+ </div>
137
+ <div class="row" style="margin-top: 2%">
138
+ <div class="col-sm-3 flex-row ">
139
+ <label class="control-label">客户类型</label>
140
+ <p class="form-control-static">{{oldinfo.f_user_type}}</p>
141
+ </div>
142
+ <div class="col-sm-3 flex-row ">
143
+ <label class="control-label">用气性质</label>
144
+ <p class="form-control-static">{{oldinfo.f_gasproperties}}</p>
145
+ </div>
146
+ <div class="col-sm-3 flex-row ">
147
+ <label class="control-label">气价类型</label>
148
+ <p class="form-control-static">{{oldinfo.f_price_type}}</p>
149
+ </div>
150
+ <div class="col-sm-3 flex-row ">
151
+ <label class="control-label">气价名称</label>
152
+ <p class="form-control-static">{{oldinfo.f_price_name}}</p>
153
+ </div>
154
+ </div>
155
+ <div class="row bg-info text-center text-center" style="height:35px">
156
+ <div style="float: left">
157
+ <label class="font_normal_body">新气价信息</label>
158
+ </div>
159
+ </div>
160
+ <div class="row" style="margin-top: 2%">
161
+ <div class="col-sm-4 flex-row" >
162
+ <label class="control-label">用户类型</label>
163
+ <v-select :value.sync="newinfo.f_user_type"
164
+ :options='usertypes' placeholder='用户类型'
165
+ @change="userTypeChange()"
166
+ close-on-select></v-select>
167
+ </div>
168
+ <div class="col-sm-4 flex-row">
169
+ <label class="control-label">用气性质</label>
170
+ <v-select :value.sync="newinfo.f_gasproperties" v-model="newinfo.f_gasproperties"
171
+ :options='gasproperties' placeholder='用气性质'
172
+ close-on-select v-ref:gas></v-select>
173
+ </div>
174
+ <div class="col-sm-4 flex-row">
175
+ <label class="control-label">气价类型</label>
176
+ <v-select :value.sync="newinfo.pricetype" v-model="newinfo.pricetype"
177
+ placeholder='气价类型' :options="pricetypes"
178
+ close-on-select v-ref:type>
179
+ </v-select>
180
+ </div>
181
+ </div>
182
+ <div class="row" style="margin-top: 2%">
183
+
184
+ <div class="col-sm-4 flex-row" >
185
+ <label class="control-label">气价名称</label>
186
+ <v-select :value.sync="newinfo.pricename" v-model="newinfo.pricename"
187
+ placeholder='气价名称' :options="getPricenames()" @change="priceChange"
188
+ close-on-select :disabled='newinfo.pricetype.length === 0 ' v-ref:name></v-select>
189
+ <span class="col-sm-3" v-if="newinfo.pricetype.length === 1 && gasproperties.length === 0"
190
+ style="color:red;text-align:right">请确定用气性质已选择!!</span>
191
+ </div>
192
+
193
+ <div class="col-sm-4 flex-row">
194
+ <label class="control-label">气价备注</label>
195
+ <input type="text" class="input_search" style="width:60%" v-model="newinfo.f_price_comments" placeholder='气价备注' disabled>
196
+ </div>
197
+
198
+ <div class="col-sm-4 flex-row">
199
+ <label class="control-label">调价原因</label>
200
+ <v-select :value.sync="newinfo.f_comments" v-model="newinfo.f_comments"
201
+ placeholder='调价原因' :options="adjustpricereasons" :value-single="true"
202
+ close-on-select v-ref:type>
203
+ </v-select>
204
+ </div>
205
+
206
+ </div>
207
+
208
+ </div>
209
+ </form>
210
+ </div>
211
+
212
+ <upload :blodid="blodid" :businessid="blodid" isremark="true" fusetype="批量调价" v-ref:fileupload></upload>
213
+ </article>
214
+ <footer slot="modal-footer" class="modal-footer">
215
+ <button class="button_search" @click="modifyUser">确定</button>
216
+ <button type="button" class="button_clear" @click='close'>取消</button>
217
+ </footer>
218
+
219
+ </modal>
220
+ </div>
221
+ </template>
222
+
223
+ <script>
224
+ import {HttpResetClass, PagedList} from 'vue-client'
225
+
226
+ let loadParamGem = async function (self) {
227
+ await self.$LoadParams.loadParam(self.priceorgid ? self.priceorgid : self.f_filialeid)
228
+ }
229
+ export default {
230
+ title: '气价使用人',
231
+ data () {
232
+ return {
233
+ model: new PagedList('rs/sql/getGasUser', 20, {}),
234
+ condition: '',
235
+ criteriaShow2: false,
236
+ gasproperties1: [],
237
+ getfield: {},
238
+ show: false,
239
+ gasproperties: [],
240
+ f_filialeid: this.$login.f.orgid,
241
+ newinfo: {
242
+ f_user_type: '',
243
+ f_gasproperties: '',
244
+ pricetype: '',
245
+ pricename: '',
246
+ f_comments: ''
247
+ },
248
+ oldinfo: {
249
+ f_user_type: '',
250
+ f_gasproperties: '',
251
+ f_price_type: '',
252
+ f_price_name: '',
253
+ f_price_id: '',
254
+ f_stairprice_id: ''
255
+ },
256
+ areaList: [],
257
+ gongyetype: this.$appdata.getParam('用气类别') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类别')] : [],
258
+ usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
259
+ pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
260
+ meters: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
261
+ adjustpricereasons: this.$appdata.getParam('批量调价原因'),
262
+ config: {
263
+ excelHeaders: {
264
+ 'f_price_name': '气价名称',
265
+ 'f_userinfo_code': '客户编号',
266
+ 'f_olduserinfo_code': '旧档案编号',
267
+ 'f_meternumber': '表号',
268
+ 'f_user_type': '用户类型',
269
+ 'f_gasproperties': '用户性质',
270
+ 'f_user_name': '客户姓名',
271
+ 'f_address': '客户地址',
272
+ 'f_orgname': '组织机构'
273
+ }
274
+ },
275
+ blodid: '临时id' + Date.now()
276
+ }
277
+ },
278
+ props: ['priceid', 'pricename', 'priceorgid'],
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', 'rs/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
+ let rowdata = this.$refs.paged.$refs.grid.getRowData()
327
+ if (rowdata.length === 0) {
328
+ // 提示
329
+ let res = await this.$showMessage(`当前未选择用户,将会针对查询结果进行调价,共 ${this.model.count} 户,是否继续?`, ['confirm', 'cancel'])
330
+ if (res !== 'confirm') {
331
+ return
332
+ }
333
+ } else {
334
+ // 提示
335
+ let res = await this.$showMessage(`当前共选择用户 ${rowdata.length} 户,是否对 ${rowdata.length} 位用户进行调价?`, ['confirm', 'cancel'])
336
+ if (res !== 'confirm') {
337
+ return
338
+ }
339
+ }
340
+ let condition = rowdata.length === 0 ? this.condition : ''
341
+ let com = rowdata.map((row) => { return row.f_userfiles_id }).join(',')
342
+ let fileuploadid = this.$refs.fileupload.fileInfoData.map((row) => { return row.id }).join(',')
343
+
344
+ let param = {
345
+ // 新气价信息
346
+ f_user_type: this.newinfo.f_user_type[0],
347
+ f_gasproperties: this.newinfo.f_gasproperties[0],
348
+ f_price_type: this.newinfo.pricetype[0],
349
+ f_price_name: this.newinfo.pricename[0].f_price_name,
350
+ f_price_id: this.newinfo.pricename[0].f_price_id,
351
+ f_perform_date: this.newinfo.pricename[0].f_perform_date,
352
+ f_stairprice_id: this.newinfo.pricename[0].id,
353
+ // 修改原因
354
+ f_comments: this.newinfo.f_comments,
355
+ // 操作人组织机构信息
356
+ f_operator: this.$login.f.name,
357
+ f_operatorid: this.$login.f.id,
358
+ f_orgid: this.$login.f.orgid,
359
+ f_orgname: this.$login.f.orgs,
360
+ f_depid: this.$login.f.depids,
361
+ f_depname: this.$login.f.deps,
362
+ // 修改条件
363
+ con: com,
364
+ condition: condition,
365
+ fileuploadid: fileuploadid
366
+ }
367
+ if (this.priceid) {
368
+ if (this.newinfo.pricename[0].f_price_id == this.model.rows[0].f_price_id) {
369
+ this.$showMessage('选择的气价和当前气价相同, 请重新选择')
370
+ return
371
+ }
372
+ // 旧气价信息
373
+ param.f_user_type_old = this.model.rows[0].f_user_type
374
+ param.f_gasproperties_old = this.model.rows[0].f_gasproperties
375
+ param.f_price_type_old = this.model.rows[0].f_price_type
376
+ param.f_price_name_old = this.model.rows[0].f_price_name
377
+ param.f_price_id_old = this.model.rows[0].f_price_id
378
+ param.f_stairprice_id_old = this.model.rows[0].f_stairprice_id
379
+ let res = await this.$resetpost('rs/logic/pricechangeall', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
380
+ this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
381
+ } else {
382
+ param.oldinfo = this.param
383
+ let res = await this.$resetpost('rs/logic/pricechangebatch', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
384
+ this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
385
+ }
386
+ this.criteriaShow = false
387
+ this.close()
388
+ this.search()
389
+ },
390
+ userTypeChange () {
391
+ this.gasproperties = []
392
+ if (this.newinfo.f_user_type.length === 1) {
393
+ this.gasproperties = this.$appdata.getParam(this.newinfo.f_user_type[0])
394
+ }
395
+ },
396
+ search () {
397
+ this.$refs.paged.$refs.criteria.search()
398
+ },
399
+ changeprice () {
400
+ let rowdata = this.$refs.paged.$refs.grid.getRowData().length > 0 ? this.$refs.paged.$refs.grid.getRowData() : this.model.rows
401
+ if (this.priceid && this.model.rows.length > 0) {
402
+ this.oldinfo = {
403
+ f_user_type: this.model.rows[0].f_user_type,
404
+ f_gasproperties: this.model.rows[0].f_gasproperties,
405
+ f_price_type: this.model.rows[0].f_price_type,
406
+ f_price_name: this.model.rows[0].f_price_name,
407
+ f_price_id: this.model.rows[0].f_price_id,
408
+ f_stairprice_id: this.model.rows[0].f_stairprice_id
409
+ }
410
+ } else {
411
+ this.oldinfo = {
412
+ f_user_type: rowdata[0].f_user_type,
413
+ f_gasproperties: rowdata[0].f_gasproperties,
414
+ f_price_type: rowdata[0].f_price_type,
415
+ f_price_name: rowdata[0].f_price_name
416
+ }
417
+ for (var i = 1; i < rowdata.length; i++) {
418
+ if (rowdata[i].f_user_type !== rowdata[i - 1].f_user_type) {
419
+ this.oldinfo.f_user_type = ''
420
+ }
421
+ if (rowdata[i].f_gasproperties !== rowdata[i - 1].f_gasproperties) {
422
+ this.oldinfo.f_gasproperties = ''
423
+ }
424
+ if (rowdata[i].f_price_type !== rowdata[i - 1].f_price_type) {
425
+ this.oldinfo.f_price_type = ''
426
+ }
427
+ if (rowdata[i].f_price_name != rowdata[i - 1].f_price_name) {
428
+ this.oldinfo.f_price_name = ''
429
+ }
430
+ }
431
+ }
432
+ this.show = true
433
+ },
434
+ selfSearch (args) {
435
+ this.$refs.paged.$refs.grid.selectInit()
436
+ if (this.priceid) {
437
+ args.condition = `${args.condition} and f_price_id = '${this.priceid}'`
438
+ } else {
439
+ args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
440
+ }
441
+ this.condition = args.condition
442
+ this.model.search(args.condition, args.model)
443
+ },
444
+ dealmsg (val) {
445
+ this.$parent.f_userinfo_id = val.f_userinfo_id
446
+ this.$parent.listpage = false
447
+ },
448
+ getPricenames () {
449
+ console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
450
+ let rs = []
451
+ if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
452
+ let params = {
453
+ f_user_type: this.newinfo.f_user_type[0],
454
+ f_gasproperties: this.newinfo.f_gasproperties[0],
455
+ f_price_type: this.newinfo.pricetype[0]
456
+ }
457
+ rs = this.$GetSaleParam.getPriceAll(params)
458
+ }
459
+ if (rs.length === 0) {
460
+ this.newinfo.pricename = ''
461
+ }
462
+ return rs
463
+ },
464
+ priceChange (val) {
465
+ if (val && val.length > 0) {
466
+ // 展示气价备注
467
+ this.$set('newinfo.f_price_comments', val[0].f_comments ? val[0].f_comments : '无')
468
+ }
469
+ }
470
+ },
471
+ watch: {
472
+ 'priceid' () {
473
+ this.search()
474
+ },
475
+ 'priceorgid' () {
476
+ this.$LoadParams.loadParam(this.priceorgid ? this.priceorgid : this.f_filialeid)
477
+ }
478
+ },
479
+ computed: {
480
+ userstates () {
481
+ return [{label: '全部', value: ''}, {label: '销户', value: '销户'}, {label: '停用', value: '停用'}, ...this.$appdata.getParam('客户状态')]
482
+ },
483
+ gasStates () {
484
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
485
+ }
486
+ }
487
+ }
488
+ </script>
@@ -9,4 +9,6 @@ export default function () {
9
9
  Vue.component('file-user-general-info', (resolve) => { require(['./components/UserFiles/UserGeneralInfoTest'], resolve) })
10
10
  // 档案信息
11
11
  Vue.component('file-user-files', (resolve) => { require(['./components/FilesManage/FileUserFiles'], resolve) })
12
+ // 使用该气价的用户信息
13
+ Vue.component('gasprice-user', (resolve) => { require(['./components/revenue/comprehen/StairPrice/GasPriceUser'], resolve) })
12
14
  }
@@ -493,7 +493,7 @@
493
493
  street = item.label
494
494
  }
495
495
  })
496
- this.model.f_address = street
496
+ this.model.f_address = ''
497
497
  }
498
498
  if (val) {
499
499
  // 那就把[小区]重新组织一下