sale-client 3.4.204 → 3.4.205

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.4.204",
3
+ "version": "3.4.205",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -186,6 +186,8 @@
186
186
  self.model.payments = self.paymentModel
187
187
 
188
188
  let param = {
189
+ f_share_times: self.row.f_share_times,
190
+ f_hascard: self.row.f_hascard,
189
191
  f_open_way: self.row.f_open_type,
190
192
  f_user_name: self.row.f_user_name,
191
193
  f_user_type: self.row.f_user_type,
@@ -63,7 +63,7 @@
63
63
  <div class="col-sm-1" v-if="$parent.$parent.$parent.isOperate" title="涉及权限:冲正权限">
64
64
  <dropdown class="auto"
65
65
  v-if="(row.type ==='机表收费撤销' || row.type ==='卡表收费撤销' || row.type ==='物联网收费撤销' || row.type ==='其他收费撤销' || row.type ==='气损收费撤销' ||
66
- row.type ==='预存缴费' || row.type === '补卡' || row.type === '物联网收费' || row.type === '用户退费' || row.type === '机表收费' ||
66
+ row.type ==='预存缴费' || row.type === '补卡' || row.type === '物联网收费' || row.type === '用户退费' || row.type === '机表收费' || row.type === '数码表收费' ||
67
67
  row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' ||
68
68
  row.type === '换表' || row.state === 1 || row.type==='调价补费' || row.type==='卡表赠气' ||
69
69
  row.type==='物联网赠气'|| row.type==='物联网赠费'|| row.type==='卡表赠费'|| row.type==='卡表赠气'||
@@ -890,7 +890,7 @@ export default {
890
890
  data: {
891
891
  items: 'f_whether_pay',
892
892
  tablename: 't_handplan',
893
- condition: ` f_user_id = '${this.row.f_user_id}' and f_hand_state = '有效' and f_meter_state='已抄表' `,
893
+ condition: ` f_user_id = '${this.row.f_user_id}' and f_oughtfee > 0 and f_hand_state = '有效' and f_meter_state='已抄表' `,
894
894
  orderitem: ' id desc'
895
895
  }
896
896
  }, {resolveMsg: null, rejectMsg: null}
@@ -28,6 +28,7 @@
28
28
  condition="f_address like '%{}%'" placeholder='客户地址'>
29
29
  </div>
30
30
  <div class="span" style="float:right;">
31
+ <button class="button_search button_spacing" @click="$parent.$parent.meterRead()">抄表</button>
31
32
  <button class="button_search button_spacing" @click="$parent.$parent.confirmaddress()">取消关联</button>
32
33
  <button class="button_search button_spacing" @click="search()">查询</button>
33
34
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -251,7 +252,7 @@ export default {
251
252
  }
252
253
  let param = {
253
254
  f_orgid: this.$login.f.orgid,
254
- f_orgname: this.$login.f.orgs,
255
+ f_orgname: this.$login.f.name,
255
256
  concentratorid: this.fileinfo.id,
256
257
  f_mpc_number: this.fileinfo.f_mpc_number,
257
258
  userfilesid: '',
@@ -262,6 +263,35 @@ export default {
262
263
  this.search()
263
264
  }
264
265
  },
266
+ async meterRead () {
267
+ let res = await this.$showMessage('确定对选择的表具进行抄表操作吗?', ['confirm', 'cancel'])
268
+ if (res === 'confirm') {
269
+ let rowdata = this.$refs.paged.$refs.grid.getRowData()
270
+ if (rowdata.length <= 0) {
271
+ this.$showMessage('请至少选择一个表具!')
272
+ return
273
+ }
274
+ console.log(rowdata)
275
+ let userfilesids = []
276
+ for (let row of rowdata) {
277
+ userfilesids.push({
278
+ f_userfiles_id: row.f_userfiles_id,
279
+ f_meternumber: row.f_meternumber
280
+ })
281
+ }
282
+ let param = {
283
+ f_orgid: this.$login.f.orgid,
284
+ f_orgname: this.$login.f.name,
285
+ concentratorid: this.fileinfo.id,
286
+ f_mpc_number: this.fileinfo.f_mpc_number,
287
+ userfilesid: '',
288
+ userfilesids: userfilesids,
289
+ state: 'delete'
290
+ }
291
+ await this.$resetpost('rs/logic/concentratorMeterRead', param, {resolveMsg: '抄表操作成功!', rejectMsg: '抄表操作失败!'})
292
+ this.search()
293
+ }
294
+ },
265
295
  search () {
266
296
  this.$refs.paged.$refs.cri.search()
267
297
  },
@@ -39,6 +39,13 @@
39
39
 
40
40
  <button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
41
41
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+ <export-excel
43
+ :data="{condition: $parent.$parent.excelCondition}"
44
+ :field="$parent.$parent.fields"
45
+ sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="getAuditMachineHand"
46
+ template-name='抄表审核导出'
47
+ :choose-col="true">
48
+ </export-excel>
42
49
  <button class="button_search button_spacing width-60"
43
50
  @click="$parent.$parent.allsuccess()" v-el:cx>全部通过</button>
44
51
  <button class="button_search button_spacing width-60"
@@ -316,7 +323,7 @@
316
323
  <!--<td>{{row.f_building}}</td>-->
317
324
  <!--<td>{{row.f_unit}}</td>-->
318
325
  <!--<td>{{row.f_room}}</td>-->
319
- <td>{{row.f_balacne}}</td>
326
+ <td>{{row.f_balance}}</td>
320
327
  <td style="text-align: center;">{{Math.round(row.avggas)}}</td>
321
328
  <td>{{row.f_meternumber}}</td>
322
329
  <td>{{row.f_meter_base}}</td>
@@ -416,6 +423,27 @@
416
423
  imgshow: false,
417
424
  criteriaShow:false,
418
425
  orgCondtionStr: '',
426
+ excelCondition: '',
427
+ fields: {
428
+ 'f_userinfo_code': '客户编号',
429
+ 'f_user_name': '客户名称',
430
+ 'f_address': '客户地址',
431
+ 'f_user_level': '用户等级',
432
+ 'f_balance': '上期结余',
433
+ 'f_meternumber': '表号',
434
+ 'f_meter_base': '上期底数',
435
+ 'f_tablebase': '本期底数',
436
+ 'f_oughtamount': '应交气量',
437
+ 'f_adjustment_volume': '增量值',
438
+ 'f_oughtfee': '应交金额',
439
+ 'f_result_state': '抄表结果状态',
440
+ 'f_last_input_date': '上次抄表录入日期',
441
+ 'f_hand_date': '下发日期',
442
+ 'f_input_date': '抄表录入日期',
443
+ 'f_book_name': '抄表册',
444
+ 'f_adjustable_name': '调压箱名称',
445
+ 'f_inputtor': '抄表员'
446
+ },
419
447
  auditState:[{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
420
448
  auditState1:[{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
421
449
  meters: [{label: '全部', value: ''}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
@@ -604,6 +632,7 @@
604
632
  } else {
605
633
  args.condition = `${args.condition}` + this.orgCondtionStr
606
634
  }
635
+ this.excelCondition = args.condition
607
636
  this.$refs.paged.$refs.grid.selectInit()
608
637
  this.model.search(args.condition, args.model)
609
638
  },
@@ -842,7 +842,7 @@ export default {
842
842
  data: {
843
843
  items: 'f_whether_pay',
844
844
  tablename: 't_handplan',
845
- condition: ` f_user_id = '${this.row.f_user_id}' and f_hand_state = '有效' and f_meter_state='已抄表' `,
845
+ condition: ` f_user_id = '${this.row.f_user_id}' and f_oughtfee > 0 and f_hand_state = '有效' and f_meter_state='已抄表' `,
846
846
  orderitem: ' id desc'
847
847
  }
848
848
  }, {resolveMsg: null, rejectMsg: null}
@@ -328,7 +328,7 @@ export default {
328
328
  usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
329
329
  opentype: [{label: '指令开户', value: '指令开户'}, {label: '发卡开户', value: '发卡开户'}],
330
330
  pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
331
- changeoperator:this.$appdata.getParam('维修人') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('维修人')] : []
331
+ changeoperator: this.$appdata.getParam('维修人') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('维修人')] : []
332
332
  }
333
333
  },
334
334
  props: ['row'],
@@ -445,7 +445,7 @@ export default {
445
445
  this.model.f_depname = this.$login.f.deps
446
446
  this.model.f_zoneid = this.$login.f.zoneid
447
447
  this.model.f_zones = this.$login.f.zones
448
- this.model.f_change_operator=this.model.f_change_operator[0]
448
+ this.model.f_change_operator = this.model.f_change_operator[0]
449
449
  let data = {
450
450
  model: this.model,
451
451
  f_meter_book: this.newinfo.f_meter_book[0],
@@ -682,13 +682,13 @@ export default {
682
682
  this.addbalance = true
683
683
  this.model.f_remanent_money = this.model.f_remanent_money?(this.model.f_remanent_money - 0) + (this.row.f_balance-0):(this.row.f_balance-0)
684
684
  }
685
- }*/
685
+ } */
686
686
  }
687
687
  },
688
688
 
689
689
  remanentChange () {
690
690
  // 气量转金额 或者 金额转气量的时候对气量和金额不做限制, 可以修改, 但是只变单价
691
- if (this.model.f_remanent_money>0) {
691
+ if (this.model.f_remanent_money > 0) {
692
692
  this.model.f_remanent_gas = ((this.model.f_remanent_money) / (this.model.f_remanent_price)).toFixed(4)
693
693
  }
694
694
  },
@@ -699,7 +699,7 @@ export default {
699
699
  data: {
700
700
  items: 'f_whether_pay',
701
701
  tablename: 't_handplan',
702
- condition: ` f_user_id = '${this.row.f_user_id}' and f_hand_state = '有效' and f_meter_state='已抄表' `,
702
+ condition: ` f_user_id = '${this.row.f_user_id}' and f_oughtfee > 0 and f_hand_state = '有效' and f_meter_state='已抄表' `,
703
703
  orderitem: ' id desc'
704
704
  }
705
705
  }, {resolveMsg: null, rejectMsg: null}
@@ -730,16 +730,16 @@ export default {
730
730
  this.model.f_remanent_money = (val * this.model.f_remanent_price).toFixed(4)
731
731
  }
732
732
  },
733
- 'model.metermessage.gasbrand'(val){
734
- console.log('监听',val)
735
- if(val[0]){
736
- if(val[0].f_meter_type ==='物联网表'&& val[0].f_hascard==='是'){
737
- this.model.f_open_type ='发卡开户'
738
- }else if (val[0].f_meter_type ==='物联网表'&& val[0].f_hascard !=='是'){
739
- this.model.f_open_type ='指令开户'
740
- }
733
+ 'model.metermessage.gasbrand' (val) {
734
+ console.log('监听', val)
735
+ if (val[0]) {
736
+ if (val[0].f_meter_type === '物联网表' && val[0].f_hascard === '是') {
737
+ this.model.f_open_type = '发卡开户'
738
+ } else if (val[0].f_meter_type === '物联网表' && val[0].f_hascard !== '是') {
739
+ this.model.f_open_type = '指令开户'
740
+ }
741
741
  }
742
- }
742
+ }
743
743
 
744
744
  }
745
745
  }
@@ -141,6 +141,8 @@ let CardService = {
141
141
  // 补气开户发卡
142
142
  remanentinitCard (model, row, allot) {
143
143
  let param = {
144
+ f_share_times: row.f_share_times,
145
+ f_hascard: row.f_hascard,
144
146
  f_open_way: row.f_open_type,
145
147
  f_serial_id: model.f_serial_id,
146
148
  f_userinfo_id: row.f_userinfo_id,