|
@@ -1,5 +1,9 @@
|
|
|
-const _Http = getApp().globalData.http;
|
|
|
-
|
|
|
+const _Http = getApp().globalData.http,
|
|
|
+ currency = require("../../utils/currency"),
|
|
|
+ CNY = value => currency(value, {
|
|
|
+ symbol: "¥",
|
|
|
+ precision: 2
|
|
|
+ }).format();
|
|
|
Page({
|
|
|
data: {
|
|
|
loading: true,
|
|
@@ -35,6 +39,10 @@ Page({
|
|
|
}).then(res => {
|
|
|
console.log("开票申请列表", res)
|
|
|
this.selectComponent('#ListBox').RefreshToComplete();
|
|
|
+ res.data = res.data.map(v => {
|
|
|
+ v.redamount = CNY(v.redamount)
|
|
|
+ return v
|
|
|
+ })
|
|
|
this.setData({
|
|
|
list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
|
|
|
"content.pageNumber": res.pageNumber + 1,
|