shish 3 年 前
コミット
11037a5fb2
1 ファイル変更43 行追加13 行削除
  1. 43 13
      ghsApp/src/admin/stat/clear.vue

+ 43 - 13
ghsApp/src/admin/stat/clear.vue

@@ -5,6 +5,11 @@
 			<DateSelect class="bar" top="0" defaultShowName="开单时间" @selectDateFn="selectDateFn" />
 			<DateSelect class="bar" top="0" defaultShowName="开单时间" @selectDateFn="selectDateFn" />
 			<DateSelect class="bar" top="0" defaultShowName="结账时间" @selectDateFn="selectDateFn" />
 			<DateSelect class="bar" top="0" defaultShowName="结账时间" @selectDateFn="selectDateFn" />
 		</view>
 		</view>
+		<view style="position:absolute;top:80upx;">
+			<text style="margin-left:140upx;color:#333333;">选客户</text>
+			<text style="margin-left:130upx;color:#333333;">待结清</text>
+			<text style="margin-left:130upx;color:#333333;">重置</text>
+		</view>
 		<view class="main-view">
 		<view class="main-view">
 			<view class="space-view ex-table">
 			<view class="space-view ex-table">
 				<block>
 				<block>
@@ -16,18 +21,40 @@
 							<t-th>状态</t-th>
 							<t-th>状态</t-th>
 						</t-tr>
 						</t-tr>
 							<block v-if="profile.list && !$util.isEmpty(profile.list)">
 							<block v-if="profile.list && !$util.isEmpty(profile.list)">
-								<view v-for="(item, index) in profile.list" :key="index">
-									<t-tr>
-										<t-td><view style="color:#333333;">{{item.customName?item.customName:'-'}}</view></t-td>
-										<t-td><view style="color:#333333;">
-											<view>{{item.addTime.substr(5,11)}}</view>
-											<view>{{item.clearTime.substr(5,11)}}</view>
-											</view>
-										</t-td>
-										<t-td><view style="color:#333333;">¥{{item.actPrice?parseFloat(item.actPrice):0}}</view></t-td>
-										<t-td><view style="color:#333333;"></view></t-td>
-									</t-tr>
-								</view>
+								<block v-for="(item, index) in profile.list" :key="index">
+									<view @click="goClear(item)">
+										<t-tr>
+											<t-td><view style="color:#333333;">{{item.customName?item.customName:'-'}}</view></t-td>
+											<t-td>
+												<view style="color:#333333;">
+													<view>{{item.addTime.substr(5,11)}}</view>
+													<block v-if="item.debtPrice && Number(item.debtPrice)>0">
+														<view v-if="item.clearId && Number(item.clearId)>0" style="margin-top:5upx;">{{item.clearTime.substr(5,11)}}</view>
+														<view v-else style="margin-top:5upx;">待结清</view>
+													</block>
+												</view>
+											</t-td>
+											<t-td>
+												<block v-if="item.debtPrice && Number(item.debtPrice)>0">
+													<view style="color:#333333;" v-if="item.clearId && Number(item.clearId)>0">¥{{item.actPrice?parseFloat(item.actPrice):0}}</view>
+													<view style="color:red;font-weight:bold;" v-else>¥{{item.actPrice?parseFloat(item.actPrice):0}}</view>
+												</block>
+												<block v-else>
+													<view style="color:#333333;">¥{{item.actPrice?parseFloat(item.actPrice):0}}</view>
+												</block>
+											</t-td>
+											<t-td>
+												<block v-if="item.debtPrice && Number(item.debtPrice)>0">
+													<view style="color:#CCCCCC;font-weight:bold;" v-if="item.clearId && Number(item.clearId)>0">已结清</view>
+													<view style="color:red;font-weight:bold;font-size:30upx;" v-else>欠款</view>
+												</block>
+												<block v-else>
+													<view style="color:red;font-weight:bold;">-</view>
+												</block>
+											</t-td>
+										</t-tr>
+									</view>
+								</block>
 							</block>
 							</block>
 					</t-table>
 					</t-table>
 				</block>
 				</block>
@@ -68,6 +95,9 @@ export default {
 	},
 	},
 	methods: {
 	methods: {
 		...mapActions(['setUserShopAll']),
 		...mapActions(['setUserShopAll']),
+		goClear(order){
+			this.$util.pageTo({ url: '/pagesArrears/details?id='+order.customId})
+		},
 		searchFn(e){
 		searchFn(e){
 			this.searchText = e;
 			this.searchText = e;
 		},
 		},
@@ -113,7 +143,7 @@ export default {
 		}
 		}
 	}
 	}
 	.main-view {
 	.main-view {
-		margin-top:50upx;
+		margin-top:110upx;
 		flex: 1;
 		flex: 1;
 		background-color: #f9fbfc;
 		background-color: #f9fbfc;
 		.space-view {
 		.space-view {