sale-client 3.6.591 → 3.6.593

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.591",
3
+ "version": "3.6.593",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,110 @@
1
+ <template>
2
+ <modal :show.sync="modalShow" backdrop="false" width="50%" title="提示信息">
3
+ <article slot="modal-body">
4
+ <div style="width:98%;margin: auto" v-show="showInformation">
5
+ <p>{{warninginfo.data.msgData}}</p>
6
+ <div style="font-size: 15px;padding: 10px">
7
+ <span style="float: right">
8
+ <button class="button_search" v-show="!warninginfo.data.state.info" @click="operational('files_complete')" style="width: max-content;">完善信息</button>
9
+ <button class="button_search" v-show="warninginfo.data.state.blacklist&&!warninginfo.data.state.dibao" @click="operational('basic-living')" style="width: max-content;">低保续保</button>
10
+ <button class="button_search" v-show="warninginfo.data.state.blacklist&&!warninginfo.data.state.dibao && warninginfo.data.state.dibaoend" @click="operational('stop-basic-living')" style="width: max-content;">停止续保</button>
11
+ <button class="button_search" v-show="!(!warninginfo.data.state.dibao&&warninginfo.data.state.dibaoend) && warninginfo.data.canCharge" @click="success()">确认</button>
12
+ <button class="button_search" v-show="warninginfo.data.state.hasOwnProperty('chargeAccount') && warninginfo.data.state.chargeAccount === false" @click="goToAccount()">去挂账管理</button>
13
+ </span>
14
+ </div>
15
+ <p>{{authorityInformation}}</p>
16
+ </div>
17
+ <div style="width:98%;margin: auto" v-show="!showInformation" >
18
+ <route v-ref:route @close="close" @success="success" v-show="!showInformation" :data="row"></route>
19
+ </div>
20
+ </article>
21
+ <footer slot="modal-footer" class="modal-footer" style="text-align: center;border: 0">
22
+ <!--如果想忽略到期信息,modal的值设为null-->
23
+ <!-- <button class="button_clear" @click="ignore" v-if="basicLiving">忽略</button>-->
24
+ </footer>
25
+ </modal>
26
+ </template>
27
+ <script>
28
+ let initGen = async function (self) {
29
+ if(self.warninginfo){
30
+ if (!self.warninginfo.data.state.info && !self.warninginfo.data.state.blacklist && !self.warninginfo.data.state.dibao) {
31
+ self.authorityInformation = '您没有相关的业务操作权限, 请联系管理员!!'
32
+ }
33
+ }
34
+
35
+ }
36
+
37
+ export default {
38
+ title: '收费弹出框',
39
+ props: {
40
+ // 动态属性表数据
41
+ warninginfo:{
42
+ type:Object
43
+ },
44
+ // 双击用户的数据
45
+ row: {
46
+ type: Object
47
+ },
48
+ modalShow: {
49
+ type: Boolean
50
+ }
51
+ },
52
+ data () {
53
+ return {
54
+ showInformation: true,
55
+ informationtype: '',
56
+
57
+ // 终止低保户 必选低保户到期
58
+ stopBasicLiving: false,
59
+
60
+ // 低保户到期提醒时间
61
+ dibao_remind: this.$appdata.getSingleValue('低保快到期提醒') ? this.$appdata.getSingleValue('低保快到期提醒') : 0,
62
+ // 低保户权限
63
+ basicLivingAuthority: false,
64
+ // 档案完善权限
65
+ filesCompleteAuthority: true
66
+ }
67
+ },
68
+ methods: {
69
+ goToAccount () {
70
+ console.log('点击了去挂帐管理')
71
+ if (window.parent !== window) {
72
+ window.parent.postMessage({type: 'route', path:'/duizhang/credit'}, '*')
73
+ this.close()
74
+ }
75
+ },
76
+ close () {
77
+ this.$emit('close')
78
+ },
79
+ async success (val) {
80
+
81
+ // 如果所有提示信息均处理,获取改户数据,进入收费操作
82
+ if (!this.warninginfo.data.info && !this.warninginfo.data.blacklist && !this.warninginfo.data.dibao) {
83
+ this.showInformation = false
84
+ let data = await this.$resetpost('rs/sql/sale_getUser', {data: {condition: `1=1 and f_userinfo_code = '${this.row.f_userinfo_code}' and u.f_filialeid = '${this.$login.f.orgid}'`}}, {resolveMsg: '', rejectMsg: ''})
85
+ this.$emit('modalsuccess', data.data[0])
86
+ } else { // 没有处理完,显示提示信息
87
+ this.showInformation = true
88
+ }
89
+ },
90
+ operational (val) {
91
+ this.showInformation = false
92
+ this.$refs.route.init(val, {data: this.row})
93
+ }
94
+ },
95
+ ready () {
96
+ initGen(this)
97
+ console.log('charge-modal', this.warninginfo.data.state)
98
+ }
99
+ // watch: {
100
+ // 'modalShow' (val) {
101
+ // this.modal = val
102
+ // }
103
+ // }
104
+ }
105
+ </script>
106
+ <style>
107
+ .basic-main {
108
+ width: 79%;
109
+ }
110
+ </style>
@@ -236,6 +236,17 @@
236
236
  close-on-select condition="f_send_usegas_card='{}'"
237
237
  placeholder='天然气使用证' v-model="model.f_send_usegas_card"></v-select>
238
238
  </div>
239
+ <div
240
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
241
+ class="form-group">
242
+ <label class="font_normal_body">区&emsp;&emsp;域</label>
243
+ <v-select :options='$parent.$parent.adjustarea' :search='true'
244
+ :value.sync="model.f_region_id" multiple
245
+ condition="f_region_id in {}"
246
+ close-on-select
247
+ placeholder='区域'
248
+ v-model='model.f_region_id'></v-select>
249
+ </div>
239
250
  <div
240
251
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
241
252
  class="form-group">
@@ -340,6 +351,12 @@
340
351
  <th>
341
352
  <nobr>客户电话</nobr>
342
353
  </th>
354
+ <th>
355
+ <nobr>区域</nobr>
356
+ </th>
357
+ <th>
358
+ <nobr>调压箱</nobr>
359
+ </th>
343
360
  <th v-if="!$parent.$parent.$parent.isOper">
344
361
  <nobr>客户地址</nobr>
345
362
  </th>
@@ -395,6 +412,8 @@
395
412
  <td style="text-align: center;">{{row.f_meternumber}}</td>
396
413
  <td style="text-align: center;">{{row.f_card_id}}</td>
397
414
  <td style="text-align: center;">{{row.f_user_phone}}</td>
415
+ <td style="text-align: center;">{{row.f_area}}</td>
416
+ <td style="text-align: center;">{{row.f_adjustable_name}}</td>
398
417
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.isOper">{{row.f_address_detail ? row.f_address + row.f_address_detail :
399
418
  row.f_address}}
400
419
  </td>
@@ -526,6 +545,7 @@ let loadParamGem = async function (self) {
526
545
  await self.$LoadParams.loadParam(self.f_filialeid)
527
546
  // await self.$LoadParams.loadMeterBook(self.f_filialeid)
528
547
  // await self.search()
548
+ await self.initAdjustArea()
529
549
  await self.initAdjustables()
530
550
  }
531
551
 
@@ -569,6 +589,7 @@ let loadParamGem = async function (self) {
569
589
  model: new PagedList('rs/sql/filemanage_getUserfies', 30, {orderitem: '"f_userinfo_id DESC"'}),
570
590
  row: null, // 选择一条客户信息,对其进行修改
571
591
  areainfo: null, // 小区批量建档使用的数据
592
+ adjustarea: [],
572
593
  rows: [], // 客户档案选择一条时,将只显示一条信息,rows用来存放整页的数据
573
594
  headers: {'username': this.$login.f.name, 'blodid': this.$login.guid()},
574
595
  contract: [{label: '全部', value: ' is null or f_contract_id is not null'}, {
@@ -649,7 +670,7 @@ let loadParamGem = async function (self) {
649
670
  resdata: '',
650
671
  resshow: false,
651
672
  batchpinshow: false, // 导入销户
652
- titleShow: true, //是否显示部分档案信息类的筛选框
673
+ titleShow: true, // 是否显示部分档案信息类的筛选框
653
674
  useoptions: this.$appdata.getParam('使用类型'),
654
675
 
655
676
  userlevel: this.$appdata.getParam('用户等级') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')] : []
@@ -657,7 +678,7 @@ let loadParamGem = async function (self) {
657
678
  },
658
679
  ready () {
659
680
  loadParamGem(this)
660
- this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
681
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null ? true : this.$appdata.getSingleValue('是否显示筛选框')
661
682
  this.getAuthority()
662
683
  },
663
684
  compiled () {
@@ -671,13 +692,12 @@ let loadParamGem = async function (self) {
671
692
  closeBatchAdjustables () {
672
693
  this.showModifyAdjustables = false
673
694
  },
674
- async openBatchModal() {
695
+ async openBatchModal () {
675
696
  let rowdata = this.$refs.paged.$refs.grid.getRowData()
676
697
  if (rowdata.length <= 0) {
677
- this.$showMessage('请至少选择一个表具!')
678
- return
698
+ this.$showMessage('不选择具体档案将批量修改所有满足条件的档案!')
679
699
  }
680
- const getAdjustables = await this.$resetpost('rs/sql/singleTable_OrderBy',{
700
+ const getAdjustables = await this.$resetpost('rs/sql/singleTable_OrderBy', {
681
701
  data: {
682
702
  tablename: 't_adjustablebox',
683
703
  items: 'f_adjustable_name as label, id as value',
@@ -689,9 +709,9 @@ let loadParamGem = async function (self) {
689
709
  this.adjustablesNew = getAdjustables.data
690
710
  this.showModifyAdjustables = true
691
711
  },
692
- async batchModifyAdjustables() {
712
+ async batchModifyAdjustables () {
693
713
  let rowdata = this.$refs.paged.$refs.grid.getRowData()
694
- let userfilesIds = rowdata.map(item => item.f_userfiles_id);
714
+ let userfilesIds = rowdata.map(item => item.f_userfiles_id)
695
715
  console.log('已选择的数据', userfilesIds)
696
716
  console.log('已选择的调压箱', this.f_adjustable_id)
697
717
  let model = {
@@ -703,12 +723,11 @@ let loadParamGem = async function (self) {
703
723
  rejectMsg: '批量修改调压箱失败'
704
724
  }).then((res) => {
705
725
  if (res && res.data) {
706
- this.$showMessage(`本次批量修改: ${res.data}户`);
726
+ this.$showMessage(`本次批量修改: ${res.data}户`)
707
727
  }
708
728
  this.closeBatchAdjustables()
709
729
  this.selfSearch()
710
730
  })
711
-
712
731
  },
713
732
  getAuthority () {
714
733
  if (this.$login.r.find(value => value == '销户导入')) {
@@ -716,18 +735,17 @@ let loadParamGem = async function (self) {
716
735
  }
717
736
  },
718
737
  getRes (obj) {
719
- console.log("-----------------")
738
+ console.log('-----------------')
720
739
  this.orgcondition = obj
721
- if(this.$refs.paged.$refs.criteria.$refs.sel.depresid.length>0){
722
- this.f_filialeid=this.$refs.paged.$refs.criteria.$refs.sel.depresid[0]
723
- }else{
724
- this.f_filialeid=this.$login.f.orgid
740
+ if (this.$refs.paged.$refs.criteria.$refs.sel.depresid.length > 0) {
741
+ this.f_filialeid = this.$refs.paged.$refs.criteria.$refs.sel.depresid[0]
742
+ } else {
743
+ this.f_filialeid = this.$login.f.orgid
725
744
  }
726
-
727
745
  },
728
- downloadFiles(){
729
- let downurl='rs/downloadfile/file?filename=批量建档导出Excel模板';
730
- this.$downFile(downurl,'批量建档导出Excel模板.xlsx')
746
+ downloadFiles () {
747
+ let downurl = 'rs/downloadfile/file?filename=批量建档导出Excel模板'
748
+ this.$downFile(downurl, '批量建档导出Excel模板.xlsx')
731
749
  },
732
750
  /**
733
751
  * 退出用户详细信息页面
@@ -750,7 +768,7 @@ let loadParamGem = async function (self) {
750
768
  } catch (e) {
751
769
  }
752
770
  try {
753
- window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}));
771
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}))
754
772
  } catch (e) {
755
773
  }
756
774
  },
@@ -859,8 +877,8 @@ let loadParamGem = async function (self) {
859
877
  count++
860
878
  })
861
879
  await this.$resetpost('rs/logic/saveCancellation', {infoIds: infoIds}, {resolveMsg: null, rejectMsg: '批量销户失败'}).then((res) => {
862
- if(res && res.data){
863
- this.$showMessage(`本次批量销户总计: ${res.data.allnum}户 ,成功: ${res.data.successnum}户 ,失败(已经销户): ${res.data.errornum2} 户,失败(待审核): ${res.data.errornum1}户 `);
880
+ if (res && res.data) {
881
+ this.$showMessage(`本次批量销户总计: ${res.data.allnum}户 ,成功: ${res.data.successnum}户 ,失败(已经销户): ${res.data.errornum2} 户,失败(待审核): ${res.data.errornum1}户 `)
864
882
  }
865
883
  this.xiaohushow = false
866
884
  this.close()
@@ -901,8 +919,6 @@ let loadParamGem = async function (self) {
901
919
  this.criteriaShow = false
902
920
  this.$refs.paged.$refs.grid.$el.scrollTop = 0
903
921
  this.model.search(args.condition, args.model)
904
- let http = new HttpResetClass()
905
-
906
922
  this.clean()
907
923
  },
908
924
  // printok () {
@@ -939,6 +955,15 @@ let loadParamGem = async function (self) {
939
955
  delete row.id
940
956
  this.bulidFiles(row)
941
957
  },
958
+ async initAdjustArea () {
959
+ let area = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: { tablename: 't_region',
960
+ items: 'f_name label, id as value',
961
+ condition: `f_name is not null`,
962
+ orderitem: 'id desc'
963
+ }}, {resolveMsg: '', rejectMsg: ''})
964
+ console.log(area)
965
+ this.adjustarea = [{label: '全部', value: ''}, ...area.data]
966
+ },
942
967
  async initAdjustables () {
943
968
  console.log('初始化调压箱', this.$GetSaleParam)
944
969
  let arr = []
@@ -17,4 +17,6 @@ export default function () {
17
17
  Vue.component('iot-refund', (resolve) => { require(['./IOTRefund'], resolve) })
18
18
  // 用户基本信息test
19
19
  Vue.component('file-user-essential-info', (resolve) => { require(['./UserEssentialInfoTest'], resolve) })
20
+ // 售气收费 --弹出框
21
+ Vue.component('charge-modal', (resolve) => { require(['./ChargeModal'], resolve) })
20
22
  }