sale-client 3.5.126 → 3.5.129

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.
File without changes
@@ -0,0 +1,2 @@
1
+ #Thu Nov 10 15:53:56 CST 2022
2
+ gradle.version=5.2.1
File without changes
@@ -13,7 +13,7 @@ var compiler = webpack(config)
13
13
  var bendi = 'http://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
14
14
  // 公司测试服务
15
15
  // var fuwu = 'http://192.168.50.4:8400'
16
- var fuwu = 'http://192.168.50.4:8400'
16
+ var fuwu = 'http://39.108.82.124:8400/'
17
17
  // var fuwu = 'http://121.36.106.17:8400/'
18
18
  // 铜川正式
19
19
  // var fuwu = 'http://61.134.55.234:9999/'
@@ -189,5 +189,5 @@ module.exports = app.listen(8085, function (err) {
189
189
  console.log(err)
190
190
  return
191
191
  }
192
- console.log('Listening at http://localhost:8089')
192
+ console.log('Listening at http://localhost:8085')
193
193
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.126",
3
+ "version": "3.5.129",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,151 +1,151 @@
1
- <template>
2
- <div id='PaymentCode'>
3
- <modal :show.sync="paymentCodeShow" backdrop="false">
4
- <header slot="modal-header" class="modal-header">
5
- <h4 class="modal-title">请扫描用户付款码</h4>
6
- </header>
7
- <article slot="modal-body" class="modal-body">
8
- <div class="form-horizontal">
9
- <div class="form-group">
10
- <input type="text" class="form-control" @keyup.enter="ConfirmCode" @blur="paycodefocus"
11
- v-model="paymentCode" placeholder="请扫描用户付款码" v-el:paycode>
12
- </div>
13
- </div>
14
- </article>
15
- <footer slot="modal-footer" class="modal-footer">
16
- <button type="button" class="btn btn-default" @click='closeCode'>取消</button>
17
- </footer>
18
- </modal>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- export default {
24
- name: 'PaymentCode',
25
- props: {
26
- // 付款方式
27
- payment: {},
28
- // 用户信息
29
- row: {},
30
- // 付款金额
31
- money: {}
32
- },
33
- data () {
34
- return {
35
- // 付款码弹框显示
36
- paymentCodeShow: false,
37
- // 付款码值
38
- paymentCode: null,
39
- // 付款码流程控制
40
- paycoderesolve: null,
41
- // 付款码返回数据
42
- paymentCodeReturnData: {},
43
- // 定时器
44
- timer: null,
45
- // 收费成功id
46
- sellinggasId: null
47
- }
48
- },
49
- created () {
50
- },
51
- ready () {
52
- },
53
- methods: {
54
- // 返回结果为true意味着可以通行
55
- flowPath () {
56
- return new Promise((resolve) => {
57
- this.paycoderesolve = resolve
58
- // 如果是付款码支付则显示界面扫用户付款码收钱
59
- if (this.payment.toString().indexOf('&') !== -1) {
60
- this.paymentCodeShow = true
61
- this.paycodefocus()
62
- } else {
63
- this.paycoderesolve({msg: '不是付款码支付', result: true})
64
- }
65
- })
66
- },
67
- // 付款码框获得焦点
68
- paycodefocus () {
69
- this.$nextTick(() => {
70
- this.$els.paycode.focus()
71
- })
72
- },
73
- // 付款码支付流程
74
- async ConfirmCode () {
75
- // 扫完一次码之后失去焦点,避免重复扫码
76
- this.paymentCodeShow = false
77
- let data = {
78
- f_userinfo_id: this.row ? this.row.f_userinfo_id : null,
79
- f_user_id: this.row ? this.row.f_user_id : null,
80
- f_userfiles_id: this.row ? this.row.f_userfiles_id : null,
81
- money: this.money,
82
- f_payment: this.payment,
83
- auth_code: this.paymentCode,
84
- filiale: this.$login.f.orgid,
85
- body: this.$login.f.orgs
86
- }
87
- let res = await this.$resetpost('rs/logic/WeiXinPay', data, {resolveMsg: null, rejectMsg: '服务器内部出错,'})
88
- this.paymentCodeReturnData = res = res.data
89
- if (res.result_msg == '支付确认成功') {
90
- this.paycoderesolve({msg: '支付完成', result: true})
91
- this.$closeAlert()
92
- } else if (res.result_msg == '支付结果未知') {
93
- // 支付结果未知, 根据商户订单号继续查询
94
- this.$showAlert(`正在查询用户付款状态,请勿进行任何操作,耐心等待,如长时间未响应可手动取消`, 'warning')
95
- let self = this
96
- // 启动定时器之前先关闭定时器,防止之前的定时器未关闭
97
- if (this.timer) {
98
- this.closeTimer()
99
- }
100
- let times = 1
101
- this.timer = setInterval(async () => {
102
- times++
103
- let res1 = await self.$resetpost('rs/logic/WeiXinPayStatus', res, {resolveMsg: null, rejectMsg: '付款码支付查询出错,'})
104
- res1 = res1.data
105
- // 支付成功关闭定时器
106
- if (res1.result_msg == '支付确认成功') {
107
- self.paycoderesolve({msg: '支付完成', result: true})
108
- self.closeTimer()
109
- return
110
- }
111
- if (times > 24) {
112
- self.$showAlert(`多次查询未成功,请重新扫描用户付款码`, 'danger')
113
- self.closeTimer()
114
- }
115
- }, 5000)
116
- } else {
117
- this.$showAlert(`${res.result_msg}, 请重新扫描用户付款码`, 'danger')
118
- }
119
- // 清空付款码
120
- this.paymentCode = ''
121
- },
122
- // 付款成功更新收费记录订单号
123
- async updateSellinggas () {
124
- if (this.payment.toString().indexOf('&') !== -1) {
125
- let sqldata = `update t_sellinggas set f_serial_id = '${this.paymentCodeReturnData.f_out_trade_no}' where id = '${this.sellinggasId}'`
126
- await this.$resetpost('rs/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: '更新收费记录订单号失败'})
127
- }
128
- },
129
- // 关闭定时器
130
- closeTimer () {
131
- console.log('关闭定时器')
132
- clearInterval(this.timer)
133
- this.timer = null
134
- },
135
- closeCode () {
136
- this.$showMessage('取消后无法继续收款,确定取消吗?', ['confirm', 'cancel']).then((res) => {
137
- if (res == 'confirm') {
138
- this.paymentCodeShow = false
139
- this.$closeAlert()
140
- this.paycoderesolve({msg: '支付取消', result: false})
141
- this.closeTimer()
142
- }
143
- })
144
- }
145
- }
146
- }
147
- </script>
148
-
149
- <style lang="less">
150
-
151
- </style>
1
+ <template>
2
+ <div id='PaymentCode'>
3
+ <modal :show.sync="paymentCodeShow" backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h4 class="modal-title">请扫描用户付款码</h4>
6
+ </header>
7
+ <article slot="modal-body" class="modal-body">
8
+ <div class="form-horizontal">
9
+ <div class="form-group">
10
+ <input type="text" class="form-control" @keyup.enter="ConfirmCode" @blur="paycodefocus"
11
+ v-model="paymentCode" placeholder="请扫描用户付款码" v-el:paycode>
12
+ </div>
13
+ </div>
14
+ </article>
15
+ <footer slot="modal-footer" class="modal-footer">
16
+ <button type="button" class="btn btn-default" @click='closeCode'>取消</button>
17
+ </footer>
18
+ </modal>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ export default {
24
+ name: 'PaymentCode',
25
+ props: {
26
+ // 付款方式
27
+ payment: {},
28
+ // 用户信息
29
+ row: {},
30
+ // 付款金额
31
+ money: {}
32
+ },
33
+ data () {
34
+ return {
35
+ // 付款码弹框显示
36
+ paymentCodeShow: false,
37
+ // 付款码值
38
+ paymentCode: null,
39
+ // 付款码流程控制
40
+ paycoderesolve: null,
41
+ // 付款码返回数据
42
+ paymentCodeReturnData: {},
43
+ // 定时器
44
+ timer: null,
45
+ // 收费成功id
46
+ sellinggasId: null
47
+ }
48
+ },
49
+ created () {
50
+ },
51
+ ready () {
52
+ },
53
+ methods: {
54
+ // 返回结果为true意味着可以通行
55
+ flowPath () {
56
+ return new Promise((resolve) => {
57
+ this.paycoderesolve = resolve
58
+ // 如果是付款码支付则显示界面扫用户付款码收钱
59
+ if (this.payment.toString().indexOf('&') !== -1) {
60
+ this.paymentCodeShow = true
61
+ this.paycodefocus()
62
+ } else {
63
+ this.paycoderesolve({msg: '不是付款码支付', result: true})
64
+ }
65
+ })
66
+ },
67
+ // 付款码框获得焦点
68
+ paycodefocus () {
69
+ this.$nextTick(() => {
70
+ this.$els.paycode.focus()
71
+ })
72
+ },
73
+ // 付款码支付流程
74
+ async ConfirmCode () {
75
+ // 扫完一次码之后失去焦点,避免重复扫码
76
+ this.paymentCodeShow = false
77
+ let data = {
78
+ f_userinfo_id: this.row ? this.row.f_userinfo_id : null,
79
+ f_user_id: this.row ? this.row.f_user_id : null,
80
+ f_userfiles_id: this.row ? this.row.f_userfiles_id : null,
81
+ money: this.money,
82
+ f_payment: this.payment,
83
+ auth_code: this.paymentCode,
84
+ filiale: this.$login.f.orgid,
85
+ body: this.$login.f.orgs
86
+ }
87
+ let res = await this.$resetpost('rs/logic/WeiXinPay', data, {resolveMsg: null, rejectMsg: '服务器内部出错,'})
88
+ this.paymentCodeReturnData = res = res.data
89
+ if (res.result_msg == '支付确认成功') {
90
+ this.paycoderesolve({msg: '支付完成', result: true})
91
+ this.$closeAlert()
92
+ } else if (res.result_msg == '支付结果未知') {
93
+ // 支付结果未知, 根据商户订单号继续查询
94
+ this.$showAlert(`正在查询用户付款状态,请勿进行任何操作,耐心等待,如长时间未响应可手动取消`, 'warning')
95
+ let self = this
96
+ // 启动定时器之前先关闭定时器,防止之前的定时器未关闭
97
+ if (this.timer) {
98
+ this.closeTimer()
99
+ }
100
+ let times = 1
101
+ this.timer = setInterval(async () => {
102
+ times++
103
+ let res1 = await self.$resetpost('rs/logic/WeiXinPayStatus', res, {resolveMsg: null, rejectMsg: '付款码支付查询出错,'})
104
+ res1 = res1.data
105
+ // 支付成功关闭定时器
106
+ if (res1.result_msg == '支付确认成功') {
107
+ self.paycoderesolve({msg: '支付完成', result: true})
108
+ self.closeTimer()
109
+ return
110
+ }
111
+ if (times > 24) {
112
+ self.$showAlert(`多次查询未成功,请重新扫描用户付款码`, 'danger')
113
+ self.closeTimer()
114
+ }
115
+ }, 5000)
116
+ } else {
117
+ this.$showAlert(`${res.result_msg}, 请重新扫描用户付款码`, 'danger')
118
+ }
119
+ // 清空付款码
120
+ this.paymentCode = ''
121
+ },
122
+ // 付款成功更新收费记录订单号
123
+ async updateSellinggas () {
124
+ if (this.payment.toString().indexOf('&') !== -1) {
125
+ let sqldata = `update t_sellinggas set f_serial_id = '${this.paymentCodeReturnData.f_out_trade_no}' where id = '${this.sellinggasId}'`
126
+ await this.$resetpost('rs/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: '更新收费记录订单号失败'})
127
+ }
128
+ },
129
+ // 关闭定时器
130
+ closeTimer () {
131
+ console.log('关闭定时器')
132
+ clearInterval(this.timer)
133
+ this.timer = null
134
+ },
135
+ closeCode () {
136
+ this.$showMessage('取消后无法继续收款,确定取消吗?', ['confirm', 'cancel']).then((res) => {
137
+ if (res == 'confirm') {
138
+ this.paymentCodeShow = false
139
+ this.$closeAlert()
140
+ this.paycoderesolve({msg: '支付取消', result: false})
141
+ this.closeTimer()
142
+ }
143
+ })
144
+ }
145
+ }
146
+ }
147
+ </script>
148
+
149
+ <style lang="less">
150
+
151
+ </style>