diff --git a/pageQuota/balanceDetail/index.vue b/pageQuota/balanceDetail/index.vue
index 8a098ad..a38036c 100644
--- a/pageQuota/balanceDetail/index.vue
+++ b/pageQuota/balanceDetail/index.vue
@@ -3,17 +3,49 @@
-
-
-
- {{item.title}}
- {{item.amount}}
-
-
- {{item.create_time}}
- 余额 {{item.before_balance}}
+
+
+
+
+ {{item.title}}
+ {{ item.type=='in'?'+':'-' }}{{item.amount}}
+
+
+ {{item.create_time}}
+ 余额 {{item.before_balance}}
+
+
+
+
+ {{item.title}}
+ {{ item.financial_pm?'+':'-' }}{{item.number}}
+
+
+ {{item.create_time}}
+
+
+
+
+
+
+ {{item.order_sn}}
+ {{ item.status?'+':'-' }}{{item.number}}
+
+
+ {{item.create_time}}
+
+
+
+
+
+
+
+
@@ -24,13 +56,14 @@
reactive
} from "vue"
import {
- onLoad
+ onLoad,
+ onPullDownRefresh
} from "@dcloudio/uni-app"
import {
getFundList
} from "@/api/address.js"
-
+ const navLists = ['', '采购款明细', '余额明细', '礼品券明细', '返还金明细']
const tabsLst = reactive([{
name: '全部'
},
@@ -50,20 +83,28 @@
const lists = ref([])
- let type = ''
- const getLists = async () => {
+ let type = ref('')
+ const getLists = async (isPullDown = false) => {
let res = await getFundList({
- type,
+ type: type.value,
mark: mark.value || ''
})
lists.value = res.data.lists
+ if (isPullDown) uni.stopPullDownRefresh()
+
}
-
onLoad((opt) => {
- type = opt.type
+ type.value = opt.type
+ uni.setNavigationBarTitle({
+ title: navLists[type.value]
+ })
getLists()
})
+
+ onPullDownRefresh(() => {
+ getLists(true)
+ })