sale-client 4.0.76-preview → 4.0.77-preview
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/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/package.json +1 -1
- package/src/components/revenue/base/leftview/meterinfodetail.vue +32 -2
- package/src/filiale/ronghao/BatchCancellation.vue +1 -1
- package/src/filiale/ronghao/PaymentCode.vue +5 -3
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
<label class = "col-sm-5 " style="color: brown">表端上报余额</label>
|
|
46
46
|
<span class = "col-sm-7" style="color: brown">{{data?data.f_jval:dafault.f_jval}}</span>
|
|
47
47
|
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<label class = "col-sm-5 " >欠费金额</label>
|
|
50
|
+
<span class = "col-sm-7">{{f_arrears_fee ? f_arrears_fee : 0}}</span>
|
|
51
|
+
</div>
|
|
48
52
|
<div class="row">
|
|
49
53
|
<label class = "col-sm-5 " >初始表底数</label>
|
|
50
54
|
<span class = "col-sm-7" >{{data?data.f_initial_base:dafault.f_initial_base}}</span>
|
|
@@ -268,6 +272,8 @@
|
|
|
268
272
|
</partial-view>
|
|
269
273
|
</template>
|
|
270
274
|
|
|
275
|
+
import { HttpResetClass } from 'vue-client'
|
|
276
|
+
|
|
271
277
|
<script>
|
|
272
278
|
/* 用户档案相关信息组件 */
|
|
273
279
|
export default {
|
|
@@ -304,6 +310,7 @@
|
|
|
304
310
|
f_table_state: 0
|
|
305
311
|
},
|
|
306
312
|
model: null,
|
|
313
|
+
f_arrears_fee: 0,
|
|
307
314
|
showselectncuserfile: false,
|
|
308
315
|
showSelectUserFee: false,
|
|
309
316
|
showSelectUserGas: false,
|
|
@@ -314,6 +321,29 @@
|
|
|
314
321
|
},
|
|
315
322
|
props: ['data'],
|
|
316
323
|
methods: {
|
|
324
|
+
async getArrears () {
|
|
325
|
+
let http = new HttpResetClass()
|
|
326
|
+
let arrearsFee = 0
|
|
327
|
+
let res = await http.load('POST', 'rs/logic/sale_getOwe', {
|
|
328
|
+
data: {
|
|
329
|
+
f_userinfo_id: this.data.f_userinfo_id
|
|
330
|
+
}
|
|
331
|
+
}, {resolveMsg: null, rejectMsg: '获取欠费出错!!'})
|
|
332
|
+
if (res.data.length > 0) {
|
|
333
|
+
const owes = res.data.flatMap(item => item.rows)
|
|
334
|
+
for (let i = 0; i < owes.length; i++) {
|
|
335
|
+
arrearsFee = arrearsFee + owes[i].f_oughtfee
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
this.list = res.data
|
|
339
|
+
if (this.data.f_meter_type == '物联网表') {
|
|
340
|
+
this.f_arrears_fee = (this.data.f_balance_amount - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance_amount - arrearsFee)
|
|
341
|
+
} else if (this.data.f_meter_type == '机表') {
|
|
342
|
+
this.f_arrears_fee = (this.data.f_balance - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance - arrearsFee)
|
|
343
|
+
} else {
|
|
344
|
+
this.f_arrears_fee = (this.data.f_balance - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance - arrearsFee)
|
|
345
|
+
}
|
|
346
|
+
},
|
|
317
347
|
dealmsg (val) {
|
|
318
348
|
this.$dispatch('deal-msg', val)
|
|
319
349
|
},
|
|
@@ -375,9 +405,9 @@
|
|
|
375
405
|
watch: {
|
|
376
406
|
'data' (val) {
|
|
377
407
|
console.log('val========', val)
|
|
408
|
+
this.getArrears()
|
|
378
409
|
}
|
|
379
|
-
}
|
|
380
|
-
|
|
410
|
+
}
|
|
381
411
|
}
|
|
382
412
|
</script>
|
|
383
413
|
<style lang="less">
|
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
},
|
|
110
110
|
props: ['useraccount'],
|
|
111
111
|
async ready () {
|
|
112
|
-
await this.$getConfig(this, '
|
|
112
|
+
await this.$getConfig(this, 'BatchCancellation')
|
|
113
113
|
this.getAuditor()
|
|
114
114
|
this.useraccount.forEach((item) => {
|
|
115
115
|
if (item.f_user_state !== '销户') {
|
|
@@ -110,25 +110,27 @@
|
|
|
110
110
|
let times = 1
|
|
111
111
|
this.timer = setInterval(async () => {
|
|
112
112
|
times++
|
|
113
|
+
res.filiale = this.$login.f.dir
|
|
114
|
+
res.flag = 'microPayRongHaoJsbc'
|
|
113
115
|
let res1 = await self.$resetpost('weixin2/rs/pay/microPayOrderStatus', res, {resolveMsg: null, rejectMsg: '付款码支付查询出错,'})
|
|
114
116
|
this.paymentCodeReturnData = res1.data
|
|
115
117
|
res1 = res1.data
|
|
116
118
|
// 支付成功关闭定时器
|
|
117
|
-
if (res1.
|
|
119
|
+
if (res1.trade_state == '已支付') {
|
|
118
120
|
self.paycoderesolve({msg: '支付完成', result: true})
|
|
119
121
|
self.closeTimer()
|
|
120
122
|
return
|
|
121
123
|
}
|
|
122
|
-
if (res1.result_msg == '
|
|
124
|
+
if (res1.result_msg == '扣款失败') {
|
|
123
125
|
this.$showAlert(`支付失败, 请提醒用户重新付款`, 'danger')
|
|
124
126
|
this.closeTimer()
|
|
127
|
+
this.paymentCodeShow = false
|
|
125
128
|
return
|
|
126
129
|
}
|
|
127
130
|
if (times > 24) {
|
|
128
131
|
self.$showAlert(`多次查询未成功,请重新扫描用户付款码`, 'danger')
|
|
129
132
|
self.closeTimer()
|
|
130
133
|
}
|
|
131
|
-
|
|
132
134
|
}, 5000)
|
|
133
135
|
} else {
|
|
134
136
|
this.$showAlert(`${res.result_msg}, 请重新扫描用户付款码`, 'danger')
|