|
@@ -810,21 +810,15 @@ export default {
|
|
|
let unit = [ ['元', '万', '亿'], ['', '拾', '佰', '仟'] ];
|
|
|
let head = n < 0? '欠': '';
|
|
|
n = Math.abs(n);
|
|
|
-
|
|
|
let s = '';
|
|
|
-
|
|
|
- for (let i = 0; i < fraction.length; i++)
|
|
|
- {
|
|
|
+ for (let i = 0; i < fraction.length; i++){
|
|
|
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
|
}
|
|
|
s = s || '整';
|
|
|
n = Math.floor(n);
|
|
|
-
|
|
|
- for (let i = 0; i < unit[0].length && n > 0; i++)
|
|
|
- {
|
|
|
+ for (let i = 0; i < unit[0].length && n > 0; i++){
|
|
|
let p = '';
|
|
|
- for (let j = 0; j < unit[1].length && n > 0; j++)
|
|
|
- {
|
|
|
+ for (let j = 0; j < unit[1].length && n > 0; j++){
|
|
|
p = digit[n % 10] + unit[1][j] + p;
|
|
|
n = Math.floor(n / 10);
|
|
|
}
|
|
@@ -833,11 +827,9 @@ export default {
|
|
|
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整');
|
|
|
},
|
|
|
change(scope) {
|
|
|
- console.log(this.contentList)
|
|
|
for (let item in this.contentList) {
|
|
|
for (let li in this.listData.fFeeid) {
|
|
|
if (this.contentList[item].fFeeid == this.listData.fFeeid[li].value) {
|
|
|
- // console.log("111")
|
|
|
this.$set(this.contentList[item], 'fFeeunitid', this.listData.fFeeid[li].fFeeunitid)
|
|
|
this.$set(this.contentList[item], 'fCurrencyName', this.listData.fFeeid[li].fCurrency)
|
|
|
}
|
|
@@ -846,11 +838,9 @@ export default {
|
|
|
},
|
|
|
homePage() {
|
|
|
let date = this.$route.query
|
|
|
- console.log(date)
|
|
|
if (this.$route.query.list) {
|
|
|
// this.contentButton = this.$options.data().contentButton
|
|
|
// this.contentButton.push(JSON.parse(this.$route.query.list))
|
|
|
- console.log(this.contentButton)
|
|
|
let scope = {
|
|
|
row: {
|
|
|
fId: JSON.parse(this.$route.query.data).billId
|
|
@@ -858,7 +848,6 @@ export default {
|
|
|
}
|
|
|
this.viewMethod(scope)
|
|
|
} else {
|
|
|
- // console.log("111")
|
|
|
this.pageDisplay = true
|
|
|
}
|
|
|
},
|