sale-client 3.6.77 → 3.6.79

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [serverRul, localUrl ] = ['http://121.36.106.17:8400/', 'http://localhost:8080/']
2
+ const [serverRul, localUrl ] = ['http://59.48.150.94:8300', 'http://59.48.150.94:8300']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.77",
3
+ "version": "3.6.79",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,7 +24,12 @@
24
24
  <div style="height: auto;width: 100%">
25
25
  <div style="margin-bottom: 2%; margin-top: 2%">
26
26
  <img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
27
+ <span v-if="!usertype">
27
28
  <a style="font-size: 20px;font-weight: 500;">发票信息</a>&nbsp;<a style="color: #999999"></a>
29
+ </span>
30
+ <span v-if="usertype">
31
+ <a style="font-size: 20px;font-weight: 500;">企业信息</a>&nbsp;<a style="color: #999999"></a>
32
+ </span>
28
33
  </div>
29
34
  <user-paper-info-test :baseinfo="data.baseinfo"></user-paper-info-test>
30
35
  </div>
@@ -425,7 +430,7 @@ export default {
425
430
 
426
431
  // 将oldAddress 置为空,
427
432
  this.oldAddress = {}
428
- this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state === '预备' ? ['正常'] : [this.data.baseinfo.base.f_user_state]
433
+ this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state === '预备' ? '正常' : this.data.baseinfo.base.f_user_state
429
434
  // this.data.baseinfo.base.f_user_nature = this.data.baseinfo.base.f_user_nature ? [this.data.baseinfo.base.f_user_nature] : '民用'
430
435
  // this.data.baseinfo.base.f_credentials = this.data.baseinfo.base.f_credentials ? [this.data.baseinfo.base.f_credentials] : '身份证'
431
436
  this.data.baseinfo.base.f_cost_type = this.data.baseinfo.base.f_cost_type ? [this.data.baseinfo.base.f_cost_type] : '现金缴费'
@@ -649,6 +654,12 @@ export default {
649
654
  }
650
655
  },
651
656
  computed: {
657
+ usertype () {
658
+ if (this.row && this.row.f_user_type) {
659
+ return this.row.f_user_type == '非民用'
660
+ }
661
+ return this.$refs.useressential.$refs.useraddressinfile.usertype
662
+ },
652
663
  meterbrands () {
653
664
  return this.$GetSaleParam.getGasbrand()
654
665
  },
@@ -20,7 +20,12 @@
20
20
  <div style="height: auto;width: 100%">
21
21
  <div style="margin-bottom: 2%; margin-top: 2%">
22
22
  <img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
23
+ <span v-if="!usertype">
23
24
  <a style="font-size: 20px;font-weight: 500;">发票信息</a>&nbsp;<a style="color: #999999"></a>
25
+ </span>
26
+ <span v-if="usertype">
27
+ <a style="font-size: 20px;font-weight: 500;">企业信息</a>&nbsp;<a style="color: #999999"></a>
28
+ </span>
24
29
  </div>
25
30
  <user-paper-info-test :baseinfo="data.baseinfo"></user-paper-info-test>
26
31
  </div>
@@ -581,6 +586,12 @@ export default {
581
586
  }
582
587
  },
583
588
  computed: {
589
+ usertype () {
590
+ if (this.row && this.row.f_user_type) {
591
+ return this.row.f_user_type == '非民用'
592
+ }
593
+ return this.$refs.useressential.$refs.useraddressinfile.usertype
594
+ },
584
595
  meterbrands () {
585
596
  return this.$GetSaleParam.getGasbrand()
586
597
  },
@@ -74,6 +74,7 @@
74
74
  userid: array,
75
75
  instructtype: '阀门控制',
76
76
  isOpen: '关阀',
77
+ reasonInfo: '表具停用自动关阀',
77
78
  f_instruct_state: '待发送',
78
79
  inputtor: this.$login.f.name
79
80
  }
@@ -660,6 +660,7 @@ import axios from 'axios'
660
660
  userid: array,
661
661
  instructtype: f_apply_type,
662
662
  isOpen: f_apply_value,
663
+ reasonInfo: this.f_beizhu,
663
664
  f_instruct_state: '待发送',
664
665
  inputtor: Vue.$login.f.name
665
666
  }
@@ -0,0 +1,178 @@
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
+ <div v-show="filesNotComplete" style="font-size: 15px;padding: 10px"> 用户档案信息不全,请完善
6
+ <span style="float: right">
7
+ <button class="button_search" @click="operational('files_complete')"
8
+ style="width: max-content;">完善信息</button>
9
+ <button class="button_search" @click="close">取消</button>
10
+ </span>
11
+ </div>
12
+ <div v-show="isBlackList" style="font-size: 15px;padding: 10px"> 黑名单用户,无法进行收费操作,{{ userproperties }}
13
+ </div>
14
+ <div v-show="isInvoList" style="font-size: 15px;padding: 10px"> {{ involists }}
15
+ </div>
16
+ <span v-show="isInvoList || isBlackList" style="float: right">
17
+ <button class="button_search" @click="close">确定</button>
18
+ </span>
19
+ <div v-show="!isBlackList&&isBasicLiving" style="font-size: 15px;padding: 10px"> {{ basicinformation }}
20
+ <span style="float: right">
21
+ <button class="button_search" @click="operational('basic-living')"
22
+ style="width: max-content;">低保续保</button>
23
+ <button class="button_search" @click="operational('stop-basic-living')" v-if="stopBasicLiving"
24
+ style="width: max-content;">停止续保</button>
25
+ <button class="button_search btn-gn" @click="success('isBasicLiving')" v-if="!stopBasicLiving">确认</button>
26
+ </span>
27
+ </div>
28
+ <p>{{ authorityInformation }}</p>
29
+ </div>
30
+ <div style="width:98%;margin: auto" v-show="!showInformation">
31
+ <route v-ref:route @close="close" @success="success" v-show="!showInformation" :data="row"></route>
32
+ </div>
33
+ </article>
34
+ <footer slot="modal-footer" class="modal-footer" style="text-align: center;border: 0">
35
+ <!--如果想忽略到期信息,modal的值设为null-->
36
+ <!-- <button class="button_clear" @click="ignore" v-if="basicLiving">忽略</button>-->
37
+ </footer>
38
+ </modal>
39
+ </template>
40
+ <script>
41
+
42
+ let initGen = async function (self) {
43
+ if (!self.row.f_price_id || !self.row.f_gasmodel_id || !self.row.f_gasbrand_id) {
44
+ self.filesNotComplete = true
45
+ }
46
+ let _this = self
47
+ self.$login.f.functions[1].children.forEach(function (value) {
48
+ if (value.name === '特殊用户') {
49
+ _this.basicLivingAuthority = true
50
+ }
51
+ })
52
+ console.log('============================', self.data)
53
+ console.log('============================', self.data2)
54
+ if (self.data2.data.length > 0) {
55
+ // isInvoList involists
56
+ _this.isInvoList = true
57
+ self.data2.data.forEach(function (value) {
58
+ _this.involists = '尊敬的' + (value.f_invoice_name) + '用户您好, 您有一张未领取发票, 发票金额为' + (value.f_invoice_money) +
59
+ ', 发票日期为' + (value.f_invoice_date) + ', 请您及时领取'
60
+ })
61
+ }
62
+
63
+ self.data.data.forEach(function (value) {
64
+ if (value.f_parameter_key === 'dibaohu_endDate' && _this.basicLivingAuthority) {
65
+ if (value.days <= 0) {
66
+ _this.isBasicLiving = true
67
+ _this.basicinformation = '低保已到期' + (-value.days) + '天'
68
+ _this.stopBasicLiving = true
69
+ } else if (value.days > 0 && value.days < self.dibao_remind) {
70
+ _this.isBasicLiving = true
71
+ _this.basicinformation = '低保还有' + (value.days) + '天到期'
72
+ } else {
73
+ console.log('低保剩余天数大于提醒天数')
74
+ }
75
+ } else if (value.f_parameter_key === 'blackList' && _this.filesCompleteAuthority) {
76
+ _this.isBlackList = true
77
+ _this.userproperties = '该用户为黑名单用户,被限制购气,原因为' + (value.f_comments)
78
+ if (value.f_offsite_time) {
79
+ _this.userproperties += '(安检日期)' + (value.f_offsite_time)
80
+ }
81
+ }
82
+ })
83
+ if (!self.filesNotComplete && !self.isBlackList && !self.isBasicLiving) {
84
+ self.authorityInformation = '您没有相关的业务操作权限, 请联系管理员!!'
85
+ }
86
+ }
87
+
88
+ export default {
89
+ title: '收费弹出框',
90
+ props: {
91
+ // 动态属性表数据
92
+ data: {
93
+ type: Object
94
+ },
95
+ // 动态属性表数据
96
+ data2: {
97
+ type: Object
98
+ },
99
+ // 双击用户的数据
100
+ row: {
101
+ type: Object
102
+ },
103
+ modalShow: {
104
+ type: Boolean
105
+ }
106
+ },
107
+ data() {
108
+ return {
109
+ showInformation: true,
110
+ informationtype: '',
111
+ // 档案不完善
112
+ filesNotComplete: false,
113
+ // 黑名单
114
+ isBlackList: false,
115
+ // 未领发票
116
+ isInvoList: false,
117
+ // 低保户到期
118
+ isBasicLiving: false,
119
+ // 终止低保户 必选低保户到期
120
+ stopBasicLiving: false,
121
+ // 低保户信息
122
+ basicinformation: '',
123
+ // 黑名单信息
124
+ userproperties: '',
125
+ // 发票未领取信息
126
+ involists: '',
127
+ // 低保户到期提醒时间
128
+ dibao_remind: this.$appdata.getSingleValue('低保快到期提醒') ? this.$appdata.getSingleValue('低保快到期提醒') : 0,
129
+ // 低保户权限
130
+ basicLivingAuthority: false,
131
+ // 档案完善权限
132
+ filesCompleteAuthority: true
133
+ }
134
+ },
135
+ methods: {
136
+ close () {
137
+ this.$emit('close')
138
+ },
139
+ async success(val) {
140
+ //
141
+ if (val === 'filesNotComplete') {
142
+ this.filesNotComplete = false
143
+ } else if (val === 'isBasicLiving') {
144
+ this.isBasicLiving = false
145
+ }
146
+ // 如果所有提示信息均处理,获取改户数据,进入收费操作
147
+ if (!this.filesNotComplete && !this.isBlackList && !this.isBasicLiving) {
148
+ this.showInformation = false
149
+ 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}`}}, {
150
+ resolveMsg: '',
151
+ rejectMsg: ''
152
+ })
153
+ this.$emit('modalsuccess', data.data[0])
154
+ } else {
155
+ // 没有处理完,显示提示信息
156
+ this.showInformation = true
157
+ }
158
+ },
159
+ operational(val) {
160
+ this.showInformation = false
161
+ this.$refs.route.init(val, {data: this.row})
162
+ }
163
+ },
164
+ ready () {
165
+ initGen(this)
166
+ }
167
+ // watch: {
168
+ // 'modalShow' (val) {
169
+ // this.modal = val
170
+ // }
171
+ // }
172
+ }
173
+ </script>
174
+ <style>
175
+ .basic-main {
176
+ width: 79%;
177
+ }
178
+ </style>
@@ -105,4 +105,6 @@ export default function () {
105
105
 
106
106
  // 用户表具信息test
107
107
  Vue.component('file-user-meter-info', (resolve) => { require(['./UserMeterInfoTest'], resolve) })
108
+ // 售气收费 --弹出框
109
+ Vue.component('charge-modal', (resolve) => { require(['./ChargeModal'], resolve) })
108
110
  }
@@ -662,6 +662,7 @@ import axios from 'axios'
662
662
  instructtype: f_apply_type,
663
663
  isOpen: f_apply_value,
664
664
  f_instruct_state: '待发送',
665
+ reasonInfo: this.f_beizhu,
665
666
  inputtor: Vue.$login.f.name
666
667
  }
667
668
  }
@@ -440,7 +440,7 @@ export default {
440
440
 
441
441
  // 将oldAddress 置为空,
442
442
  this.oldAddress = {}
443
- this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state === '预备' ? ['正常'] : [this.data.baseinfo.base.f_user_state]
443
+ this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state === '预备' ? '正常' : this.data.baseinfo.base.f_user_state
444
444
  // this.data.baseinfo.base.f_user_nature = this.data.baseinfo.base.f_user_nature ? [this.data.baseinfo.base.f_user_nature] : '民用'
445
445
  // this.data.baseinfo.base.f_credentials = this.data.baseinfo.base.f_credentials ? [this.data.baseinfo.base.f_credentials] : '身份证'
446
446
  this.data.baseinfo.base.f_cost_type = this.data.baseinfo.base.f_cost_type ? [this.data.baseinfo.base.f_cost_type] : '现金缴费'
@@ -209,7 +209,7 @@ let FileManageService = {
209
209
  meter.f_adjustable_id = meter.f_adjustable.length > 0 ? meter.f_adjustable[0].id : null
210
210
  meter.f_userfiles_address = meter.f_userfiles_address ? meter.f_userfiles_address : null
211
211
  // 气表状态需要根据表型判断是否需要开通操作 目前物联网表需要做开通操作
212
- meter.f_table_state = result.f_user_state === '预备' ? '待开通' : '正常'
212
+ meter.f_table_state = result.f_user_state === '预备' ? '待开通' : (meter.f_table_state? meter.f_table_state : '正常')
213
213
  if (!meter.f_userfiles_id) {
214
214
  // meter.f_whether_hairpin = !item.gasbrand[0].f_meter_type.includes('机表') ? '未发' : '无卡'
215
215
  // 所有表变成未发
package/src/main.js CHANGED
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
- import wenxi from './filiale/yuansheng/sale'
6
+ import wenxi from './filiale/wenxi/sale'
7
7
  // import FilialeSale from './filiale/yuansheng/sale'
8
8
  import address from 'address-client/src/address'
9
9
  import ldap from 'ldap-clients/src/ldap'
@@ -210,7 +210,7 @@ let FileManageService = {
210
210
  meter.f_adjustable_id = meter.f_adjustable.length > 0 ? meter.f_adjustable[0].id : null
211
211
  meter.f_userfiles_address = meter.f_userfiles_address ? meter.f_userfiles_address : null
212
212
  // 气表状态需要根据表型判断是否需要开通操作 目前物联网表需要做开通操作
213
- meter.f_table_state = result.f_user_state === '预备' ? '待开通' : '正常'
213
+ meter.f_table_state = result.f_user_state === '预备' ? '待开通' : (meter.f_table_state? meter.f_table_state : '正常')
214
214
  if (!meter.f_userfiles_id) {
215
215
  // meter.f_whether_hairpin = !item.gasbrand[0].f_meter_type.includes('机表') ? '未发' : '无卡'
216
216
  // 所有表变成未发