sale-client 3.6.474 → 3.6.476
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
|
@@ -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>
|
|
@@ -270,7 +274,9 @@
|
|
|
270
274
|
|
|
271
275
|
<script>
|
|
272
276
|
/* 用户档案相关信息组件 */
|
|
273
|
-
|
|
277
|
+
import {HttpResetClass} from 'vue-client'
|
|
278
|
+
|
|
279
|
+
export default {
|
|
274
280
|
ready () {
|
|
275
281
|
console.log('看看userinfo里面接收的data数据', this.data)
|
|
276
282
|
},
|
|
@@ -303,6 +309,7 @@
|
|
|
303
309
|
f_jval: 0,
|
|
304
310
|
f_table_state: 0
|
|
305
311
|
},
|
|
312
|
+
f_arrears_fee: 0,
|
|
306
313
|
model: null,
|
|
307
314
|
showselectncuserfile: false,
|
|
308
315
|
showSelectUserFee: 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">
|
|
@@ -470,6 +470,10 @@
|
|
|
470
470
|
this.validateOk = !val.isOk
|
|
471
471
|
this.billData.bill = val.bill
|
|
472
472
|
},
|
|
473
|
+
roundToDecimalPlace (number, decimalPlaces) {
|
|
474
|
+
const factor = Math.pow(10, decimalPlaces)
|
|
475
|
+
return Math.round(number * factor) / factor
|
|
476
|
+
},
|
|
473
477
|
getcollection () {
|
|
474
478
|
let money = 0
|
|
475
479
|
let flag = true
|
|
@@ -479,8 +483,10 @@
|
|
|
479
483
|
money += ((item.f_unitprice - 0) * (item.f_number - 0)) - 0
|
|
480
484
|
}
|
|
481
485
|
})
|
|
486
|
+
console.log(money)
|
|
482
487
|
if (money != 0) {
|
|
483
|
-
this.model.f_collection =
|
|
488
|
+
this.model.f_collection = this.roundToDecimalPlace(money, 2)
|
|
489
|
+
console.log(this.model.f_collection)
|
|
484
490
|
}
|
|
485
491
|
if (!flag) this.model.f_collection = ''
|
|
486
492
|
},
|
|
@@ -325,7 +325,7 @@ let getPrice = async function (self) {
|
|
|
325
325
|
|
|
326
326
|
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
327
327
|
self.model.f_payment = self.config.payment
|
|
328
|
-
self.model.f_ladder_sync = self.config.ladderSync
|
|
328
|
+
// self.model.f_ladder_sync = self.config.ladderSync
|
|
329
329
|
self.mulPrint = self.config.printType instanceof Array
|
|
330
330
|
self.model.f_use_type = self.config.billType
|
|
331
331
|
self.model.f_bill_type = self.model.f_print
|
|
@@ -412,7 +412,7 @@ export default {
|
|
|
412
412
|
f_oldmeter_use_reference: 0 // 旧表使用量参考值
|
|
413
413
|
},
|
|
414
414
|
// 旧表底数
|
|
415
|
-
f_ladder_sync: '',
|
|
415
|
+
f_ladder_sync: '不同步',
|
|
416
416
|
f_using_base_old: '',
|
|
417
417
|
// 换表补气量
|
|
418
418
|
f_remanent_gas: 0,
|
|
@@ -20,7 +20,7 @@ let GetSaleParam = {
|
|
|
20
20
|
bookcodes:[],
|
|
21
21
|
inputtors: [],
|
|
22
22
|
async initinputtor () {
|
|
23
|
-
let res = await Vue.resetpost('rs/sql/sale_getAlluserRes', {data: {
|
|
23
|
+
let res = await Vue.resetpost('rs/sql/sale_getAlluserRes?pageNo=1&pageSize=999999', {data: {
|
|
24
24
|
condition: ' 1=1'
|
|
25
25
|
}}, {resolveMsg: null, rejectMsg: '获取用户出错!!!'})
|
|
26
26
|
console.log('resdata:', res.data)
|
|
@@ -38,11 +38,12 @@ let GetSaleParam = {
|
|
|
38
38
|
return res.rolestr.indexOf('抄表员') > -1 && res.f_orgid == orgid
|
|
39
39
|
}
|
|
40
40
|
})
|
|
41
|
-
|
|
41
|
+
console.log(arr)
|
|
42
42
|
arr.forEach((res) => {
|
|
43
43
|
inputtors.push({label: res.name, value: res.name})
|
|
44
44
|
})
|
|
45
45
|
}
|
|
46
|
+
console.log(inputtors)
|
|
46
47
|
return inputtors
|
|
47
48
|
},
|
|
48
49
|
getGasstyle (key) {
|