sale-client 3.5.31 → 3.5.34

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.5.31",
3
+ "version": "3.5.34",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -373,7 +373,7 @@
373
373
  let res = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'f_userinfo_id',
374
374
  items: '*',
375
375
  tablename: 't_user_address',
376
- condition: 'f_userinfo_id = ' + this.row.f_userinfo_id}})
376
+ condition: 'f_userinfo_id = ' + this.row.f_userinfo_id}},{resolveMsg: null,rejectMsg: null})
377
377
  console.log('=============', res.data[0])
378
378
  let data = {
379
379
  f_pcd: res.data[0].f_pcd,
@@ -244,6 +244,12 @@ let overChargeGen = async function (self) {
244
244
  self.$dispatch('success')
245
245
  }
246
246
  } catch (error) {
247
+ console.log('捕获到异常', error)
248
+ if (error instanceof Object) {
249
+ self.$showAlert(error.data, 'danger', 0)
250
+ } else {
251
+ self.$showAlert(error, 'danger', 0)
252
+ }
247
253
  self.$showAlert(error, 'danger', 0)
248
254
  self.$dispatch('refresh')
249
255
  }
@@ -74,6 +74,16 @@
74
74
  >
75
75
  </v-select>
76
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>
77
87
  </div>
78
88
  </div>
79
89
  </criteria>
@@ -216,7 +226,7 @@
216
226
  model: new PagedList('rs/sql/getGasUser', 20, {}),
217
227
  condition: '',
218
228
  criteriaShow2: false,
219
- gasproperties1:[],
229
+ gasproperties1: [],
220
230
  getfield: {},
221
231
  show: false,
222
232
  gasproperties: [],
@@ -228,18 +238,19 @@
228
238
  pricename: '',
229
239
  f_comments: ''
230
240
  },
231
- oldinfo:{
232
- f_user_type:'',
233
- f_gasproperties:'',
234
- f_price_type:'',
235
- f_price_name:'',
236
- f_price_id:'',
237
- f_stairprice_id:''
241
+ oldinfo: {
242
+ f_user_type: '',
243
+ f_gasproperties: '',
244
+ f_price_type: '',
245
+ f_price_name: '',
246
+ f_price_id: '',
247
+ f_stairprice_id: ''
238
248
  },
239
- gongyetype: this.$appdata.getParam('用气类别')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气类别')] : [],
249
+ areaList: [],
250
+ gongyetype: this.$appdata.getParam('用气类别') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类别')] : [],
240
251
  usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
241
252
  pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
242
- meters: this.$appdata.getParam('气表类型') ? [{label: '全部',value: ''}, ...this.$appdata.getParam('气表类型')] : [],
253
+ meters: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
243
254
  adjustpricereasons: this.$appdata.getParam('批量调价原因'),
244
255
  config: {
245
256
  excelHeaders: {
@@ -258,8 +269,33 @@
258
269
  this.search()
259
270
  this.getfield = this.config.excelHeaders
260
271
  loadParamGem(this)
272
+ this.getAreaList()
261
273
  },
262
274
  methods: {
275
+ getAreaList (searchText) {
276
+ let condition = ' 1 = 1 '
277
+ if (searchText) {
278
+ condition = ` f_residential_area like '%${searchText}%' `
279
+ }
280
+ let HttpReset = new HttpResetClass()
281
+ HttpReset.load('POST', 'rs/sql/saleSingleTable?pageNo=1&pageSize=100', {
282
+ data: {
283
+ items: 'f_residential_area, id',
284
+ tablename: 't_area',
285
+ orderitem: 'id desc',
286
+ condition: condition
287
+ }
288
+ }, {resolveMsg: null, rejectMsg: '获取小区信息失败!'}).then((req) => {
289
+ let redata = []
290
+ req.data.forEach((row, n) => {
291
+ redata[n] = {
292
+ label: row.f_residential_area,
293
+ value: row.id
294
+ }
295
+ })
296
+ this.areaList = [{label: '全部', value: ''}, ...redata]
297
+ })
298
+ },
263
299
  userTypeChange1 () {
264
300
  this.gasproperties1 = []
265
301
  if (this.$refs.paged.$refs.criteria.model !== null) {
@@ -304,7 +340,7 @@
304
340
  condition: condition,
305
341
  fileuploadid: fileuploadid
306
342
  }
307
- if(this.priceid){
343
+ if (this.priceid) {
308
344
  if (this.newinfo.pricename[0].f_price_id == this.model.rows[0].f_price_id) {
309
345
  this.$showMessage('选择的气价和当前气价相同, 请重新选择')
310
346
  return
@@ -318,9 +354,8 @@
318
354
  param.f_stairprice_id_old = this.model.rows[0].f_stairprice_id
319
355
  let res = await this.$resetpost('rs/logic/pricechangeall', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
320
356
  this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
321
-
322
- }else{
323
- param.oldinfo=this.param
357
+ } else {
358
+ param.oldinfo = this.param
324
359
  let res = await this.$resetpost('rs/logic/pricechangebatch', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
325
360
  this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
326
361
  }
@@ -338,47 +373,45 @@
338
373
  this.$refs.paged.$refs.criteria.search()
339
374
  },
340
375
  changeprice () {
341
- let rowdata = this.$refs.paged.$refs.grid.getRowData().length>0? this.$refs.paged.$refs.grid.getRowData():this.model.rows
342
- if(this.priceid && this.model.rows.length>0){
343
- this.oldinfo = {
344
- f_user_type : this.model.rows[0].f_user_type,
345
- f_gasproperties : this.model.rows[0].f_gasproperties,
346
- f_price_type : this.model.rows[0].f_price_type,
347
- f_price_name : this.model.rows[0].f_price_name,
348
- f_price_id : this.model.rows[0].f_price_id,
349
- f_stairprice_id : this.model.rows[0].f_stairprice_id
350
- }
351
- } else
352
- {
353
- this.oldinfo={
354
- f_user_type : rowdata[0].f_user_type,
355
- f_gasproperties : rowdata[0].f_gasproperties,
356
- f_price_type : rowdata[0].f_price_type,
357
- f_price_name : rowdata[0].f_price_name
358
- }
359
- for ( var i = 1 ; i < rowdata.length ; i++ ) {
360
- if (rowdata[i].f_user_type !== rowdata[i-1].f_user_type) {
376
+ let rowdata = this.$refs.paged.$refs.grid.getRowData().length > 0 ? this.$refs.paged.$refs.grid.getRowData() : this.model.rows
377
+ if (this.priceid && this.model.rows.length > 0) {
378
+ this.oldinfo = {
379
+ f_user_type: this.model.rows[0].f_user_type,
380
+ f_gasproperties: this.model.rows[0].f_gasproperties,
381
+ f_price_type: this.model.rows[0].f_price_type,
382
+ f_price_name: this.model.rows[0].f_price_name,
383
+ f_price_id: this.model.rows[0].f_price_id,
384
+ f_stairprice_id: this.model.rows[0].f_stairprice_id
385
+ }
386
+ } else {
387
+ this.oldinfo = {
388
+ f_user_type: rowdata[0].f_user_type,
389
+ f_gasproperties: rowdata[0].f_gasproperties,
390
+ f_price_type: rowdata[0].f_price_type,
391
+ f_price_name: rowdata[0].f_price_name
392
+ }
393
+ for (var i = 1; i < rowdata.length; i++) {
394
+ if (rowdata[i].f_user_type !== rowdata[i - 1].f_user_type) {
361
395
  this.oldinfo.f_user_type = ''
362
396
  }
363
- if (rowdata[i].f_gasproperties !== rowdata[i-1].f_gasproperties) {
397
+ if (rowdata[i].f_gasproperties !== rowdata[i - 1].f_gasproperties) {
364
398
  this.oldinfo.f_gasproperties = ''
365
399
  }
366
- if (rowdata[i].f_price_type !== rowdata[i-1].f_price_type) {
400
+ if (rowdata[i].f_price_type !== rowdata[i - 1].f_price_type) {
367
401
  this.oldinfo.f_price_type = ''
368
402
  }
369
- if (rowdata[i].f_price_name != rowdata[i-1].f_price_name) {
403
+ if (rowdata[i].f_price_name != rowdata[i - 1].f_price_name) {
370
404
  this.oldinfo.f_price_name = ''
371
405
  }
372
406
  }
373
-
374
407
  }
375
408
  this.show = true
376
409
  },
377
410
  selfSearch (args) {
378
411
  this.$refs.paged.$refs.grid.selectInit()
379
- if(this.priceid){
412
+ if (this.priceid) {
380
413
  args.condition = `${args.condition} and f_price_id = '${this.priceid}'`
381
- }else{
414
+ } else {
382
415
  args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
383
416
  }
384
417
  this.condition = args.condition
@@ -465,7 +465,7 @@
465
465
  <!-- 已抄表,已审核,冲正(状态改为冲正,添加负记录,需要重新下发)-->
466
466
  <button type="button" name="button" class="button_search button_spacing width-60"
467
467
  @click.stop="$parent.$parent.$parent.cancelHand(row)"
468
- v-if="row.f_meter_state === '已抄表' && row.maxid==row.id && (row.f_whether_pay === '否' || row.f_accounts_state === '自动下账')" >冲正
468
+ v-if="row.f_meter_state === '已抄表' && row.maxid==row.id && (row.f_whether_pay === '否' || row.f_accounts_state === '自动下账' || (row.f_whether_pay === '是' && row.f_oughtfee == 0 ))" >冲正
469
469
  </button>
470
470
 
471
471
  <!-- <button type="button" name="button" class="btn btn-link"-->
@@ -7,7 +7,14 @@
7
7
  <criteria @condition-changed="$parent.selfSearch" partial='criteria' v-ref:criteria>
8
8
  <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
9
  <div class="row">
10
-
10
+ <div
11
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
12
+ class="form-group">
13
+ <label class="font_normal_body">客户电话</label>
14
+ <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
15
+ type="text"
16
+ v-model="model.f_user_phone">
17
+ </div>
11
18
  <div
12
19
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
13
20
  class="form-group"
@@ -17,8 +24,6 @@
17
24
  placeholder='客户编号'
18
25
  style="width:60%" type="text" v-model="model.f_userinfo_code">
19
26
  </div>
20
- <res-select-group v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
21
-
22
27
  <div
23
28
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
24
29
  class="form-group"
@@ -28,7 +33,6 @@
28
33
  placeholder='客户编号'
29
34
  style="width:60%" type="text" v-model="model.f_userinfo_code">
30
35
  </div>
31
-
32
36
  <div
33
37
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
34
38
  class="form-group" v-if="!$parent.$parent.createFile">
@@ -86,7 +90,6 @@
86
90
  </div>
87
91
  </div>
88
92
  <div class="row" v-if="$parent.$parent.criteriaShow">
89
-
90
93
  <div
91
94
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
92
95
  class="form-group"
@@ -96,8 +99,19 @@
96
99
  placeholder='客户编号'
97
100
  style="width:60%" type="text" v-model="model.f_userinfo_code">
98
101
  </div>
99
- <res-select-group v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
100
- <res-select-group v-if="$parent.$parent.clientWidth>=1600" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
102
+ <!-- 身份证号-->
103
+ <div
104
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
105
+ class="form-group">
106
+ <label class="font_normal_body">身份证号</label>
107
+ <input class="input_search" condition="f_idnumber = '{}'" placeholder='身份证号'
108
+ style="width:60%"
109
+ type="text"
110
+ v-model="model.f_idnumber">
111
+ </div>
112
+ <!-- <res-select-group v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
113
+ <!-- <res-select-group v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
114
+ <res-select-group :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
101
115
 
102
116
  <div
103
117
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
@@ -156,14 +170,6 @@
156
170
  <!-- close-on-select condition="f_meter_brand='{}'"-->
157
171
  <!-- placeholder='气表品牌' v-model="model.f_meter_brand"></v-select>-->
158
172
  <!-- </div>-->
159
- <div
160
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
161
- class="form-group">
162
- <label class="font_normal_body">客户电话</label>
163
- <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
164
- type="text"
165
- v-model="model.f_user_phone">
166
- </div>
167
173
  <div
168
174
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
169
175
  class="form-group">
@@ -298,6 +304,9 @@
298
304
  <th>
299
305
  <nobr>客户名称</nobr>
300
306
  </th>
307
+ <th>
308
+ <nobr>身份证号</nobr>
309
+ </th>
301
310
  <th>
302
311
  <nobr>表号</nobr>
303
312
  </th>
@@ -349,6 +358,8 @@
349
358
  <td style="text-align: center;">
350
359
  <span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_user_name}}</b></a></span>
351
360
  </td>
361
+ <!-- 身份证号-->
362
+ <td style="text-align: center;">{{row.f_idnumber}}</td>
352
363
  <td style="text-align: center;">{{row.f_meternumber}}</td>
353
364
  <td style="text-align: center;">{{row.f_card_id}}</td>
354
365
  <td style="text-align: center;">{{row.f_user_phone}}</td>