shish 4 anni fa
parent
commit
d7c683de41

+ 77 - 0
ghsApp/src/admin/custom/debtChangeDetail.vue

@@ -0,0 +1,77 @@
+<template>
+<view class="app-content">
+		<block v-if="!$util.isEmpty(list.data)">
+			<t-table :headerBackgroundColor="'#F0F2F6'">
+				<t-tr header>
+					<t-th>事项</t-th>
+					<t-th>金额</t-th>
+					<t-th>可提现余额</t-th>
+					<t-th>总余额</t-th>
+				</t-tr>
+				<view v-for="(item, index) in list.data" :key="index" @click="goDetail(item)">
+					<t-tr>
+						<t-td align="center" color="info"><view style="width:200upx;">{{ item.event }}</view></t-td>
+						<t-td align="center" color="info"><view >{{ parseFloat(item.amount) }}</view></t-td>
+						<t-td align="center" color="info"><view >{{ parseFloat(item.txBalance) }}</view></t-td>
+						<t-td align="center" color="info"><view >{{ parseFloat(item.balance) }}</view></t-td>
+					</t-tr>
+				</view>
+			</t-table>
+		</block>
+		<block v-else>
+			<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+		</block>
+	</view>
+</template>
+
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { changeList } from '@/api/shop-ye-change'
+import list from '@/mixins/list'
+export default {
+	name: "debtChangeDetail",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+		};
+	},
+	methods: {
+		async init(){
+			const res = await changeList({
+				page:this.list.page,tx:0
+			})
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			let currentList = res.data.list
+			currentList.forEach(function(item,index,array){
+				array[index].amount = item.io ==0 ? '-'+item.amount : '+'+item.amount
+			});
+			res.data.list = currentList
+			this.completes(res)
+		},
+		goDetail(item){
+		}
+	},
+	async onPullDownRefresh() {
+		this.resetList();
+		await this.init()
+		uni.stopPullDownRefresh();
+	},
+	async onReachBottom() {
+		if (!this.list.finished) {
+			await this.init()
+			uni.stopPullDownRefresh();;
+		} else {
+			uni.stopPullDownRefresh();
+		}
+	},
+	
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 2 - 1
ghsApp/src/pages.json

@@ -39,7 +39,8 @@
 			"pages": [
 				{"path": "selectCustom","style": {"navigationBarTitleText": "选择客户"}},
 				{"path": "levelSet","style": {"navigationBarTitleText": "客户等级标准"}},
-				{"path": "visit","style": {"navigationBarTitleText": "今日访客"}}
+				{"path": "visit","style": {"navigationBarTitleText": "今日访客"}},
+				{"path": "debtChangeDetail","style": {"navigationBarTitleText": "变化明细"}}
 			]
 		},
 		{

+ 6 - 9
ghsApp/src/pagesClient/member/detail.vue

@@ -22,33 +22,31 @@
         <view class="user-info_data order-wrap">
             <view class="total-blo">
 
-              <view class="total-list" @click="pageTo({ url: '/pagesArrears/details',query: {id: userInfo.id}})">
+              <view class="total-list" @click="pageTo({url:'/pagesArrears/details',query: {id: userInfo.id}})">
                 <view class="app-color-3">欠款</view>
-                <view class="list-num">{{ userInfo.debtAmount || 0.00 }}</view>
+                <view class="list-num">{{ parseFloat(userInfo.debtAmount) || 0 }}</view>
               </view>
 
               <view class="total-list">
                 <view class="app-color-3">消费次数</view>
-                <view class="list-num">{{ userInfo.buyNum || 0 }}</view>
+                <view class="list-num">{{ parseFloat(userInfo.buyNum) || 0 }}</view>
               </view>
 
               <view class="total-list">
                 <view class="app-color-3">消费金额</view>
-                <view class="list-num">{{ userInfo.buyAmount || 0.00 }}</view>
+                <view class="list-num">{{ parseFloat(userInfo.buyAmount) || 0 }}</view>
               </view>
           </view>
         </view>
       </view>
       <view class="module-com user-address_bx">
-          <view class="address-tit">
-            地址
-          </view>
+          <view class="address-tit"> 地址 </view>
           <view class="address-des_bx">
             <view>
                 <view>
                   {{userInfo.name}} {{userInfo.mobile}}
                 </view>
-                <view style="margin-bottom:20upx;color:#333333">店长:{{userInfo.superInfo.name||''}}</view>
+                <view style="margin-bottom:20upx;color:#333333">{{userInfo.superInfo.name||''}}</view>
                 <view>
                   {{userInfo.address}}
                 </view>
@@ -99,7 +97,6 @@
               </div>
             </tui-list-cell>
 
-
         </view>
       </view>
     </templete>

+ 1 - 1
hdApp/src/pagesPurchase/order.vue

@@ -14,7 +14,7 @@
               <view class="btn_entrance" @click.stop="pageTo({ url: '/admin/clear/list',query: {ghsId: item.id}})"> 结账记录 </view>
               <view class="btn_entrance" @click.stop="settleAccounts(item)" > 欠款订单 </view>
               <view class="btn_entrance" @click.stop="pageTo({url:'/pagesPurchase/shopping'})" > 采购记录 </view>
-              <view class="btn_entrance" style="text-decoration:none;color:red;font-size:22upx;" v-if="item.debtAmount > 0"> 欠账 ¥{{parseFloat(item.debtAmount)}} </view>
+              <view class="btn_entrance" style="text-decoration:none;color:red;font-size:25upx;"> 欠账 ¥{{parseFloat(item.debtAmount)}} </view>
             </view>
           </view>
         </block>

+ 1 - 1
hdApp/src/pagesPurchase/particulars.vue

@@ -7,7 +7,7 @@
         <view class="result-title">支付成功</view>
         <view v-if="ghsCgScene!=''">
         <view>关闭页面后,微信下拉找到【花惠宝】小程序,如下图点采购可以再次下单</view>
-        <view style="margin-bottom:30upx;">
+        <view style="margin-bottom:30upx;margin-top:15upx;">
           <image class="image" :src="`${constant.imgUrl}/cg/hd_cg_route.png`" mode="widthFix"></image>
         </view>
         </view>