|
@@ -29,25 +29,15 @@ const state = reactive({
|
|
|
data: [] as Array<any>,
|
|
data: [] as Array<any>,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
columns: [
|
|
columns: [
|
|
|
- { label: "用户ID", prop: "userId", width: 200 },
|
|
|
|
|
- { label: "归属站点", prop: "stationName", width: 200 },
|
|
|
|
|
- { label: "手机号", prop: "mobilePhone", width: 120 },
|
|
|
|
|
- { label: "总余额", prop: "balance", width: 100 },
|
|
|
|
|
- { label: "充值余额", prop: "rechargeBalance", width: 100 },
|
|
|
|
|
- { label: "赠金余额", prop: "grantsBalance", width: 100 },
|
|
|
|
|
- { label: "冻结余额", prop: "frozenAmount", width: 100 },
|
|
|
|
|
- { label: "状态", prop: "status", width: 80 },
|
|
|
|
|
- { label: "注册时间", prop: "registerTime", width: 160 },
|
|
|
|
|
- { label: "充值次数", prop: "rechargeTimes", width: 90 },
|
|
|
|
|
- { label: "充值金额", prop: "rechargeAmount", width: 100 },
|
|
|
|
|
- { label: "退款次数", prop: "refundTimes", width: 90 },
|
|
|
|
|
- { label: "退款金额", prop: "refundAmount", width: 100 },
|
|
|
|
|
|
|
+ { label: "用户ID", prop: "userId", width: 180 },
|
|
|
|
|
+ { label: "归属站点", prop: "stationName", width: 160 },
|
|
|
|
|
+ { label: "手机号", prop: "mobilePhone", width: 130 },
|
|
|
|
|
+ { label: "总余额", prop: "balance", width: 120 },
|
|
|
|
|
+ { label: "充值金额", prop: "rechargeAmount", width: 120 },
|
|
|
{ label: "洗车次数", prop: "washTimes", width: 90 },
|
|
{ label: "洗车次数", prop: "washTimes", width: 90 },
|
|
|
- { label: "消费总额", prop: "amount", width: 100 },
|
|
|
|
|
- { label: "应付总额", prop: "amountReceivable", width: 100 },
|
|
|
|
|
- { label: "实付总额", prop: "amountReceived", width: 100 },
|
|
|
|
|
- { label: "优惠总额", prop: "discountAmount", width: 100 },
|
|
|
|
|
- { label: "退款扣除优惠", prop: "refundDiscountAmount", width: 120 }
|
|
|
|
|
|
|
+ { label: "消费总额", prop: "amount", width: 120 },
|
|
|
|
|
+ { label: "状态", prop: "status", width: 80 },
|
|
|
|
|
+ { label: "注册时间", prop: "registerTime", width: 170 }
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -57,7 +47,7 @@ onMounted(() => {
|
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
|
const bodyHeight = document.body.clientHeight;
|
|
const bodyHeight = document.body.clientHeight;
|
|
|
const queryHeight = queryRef.value?.$el?.clientHeight || 0;
|
|
const queryHeight = queryRef.value?.$el?.clientHeight || 0;
|
|
|
- state.tableData.height = bodyHeight - queryHeight - 280;
|
|
|
|
|
|
|
+ state.tableData.height = bodyHeight - queryHeight - 230;
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -111,19 +101,7 @@ const formatMoney = (value: number) => {
|
|
|
const handleDetail = (row: any) => detailRef.value?.open(row);
|
|
const handleDetail = (row: any) => detailRef.value?.open(row);
|
|
|
|
|
|
|
|
const isMoneyField = (prop: string) => {
|
|
const isMoneyField = (prop: string) => {
|
|
|
- return [
|
|
|
|
|
- "balance",
|
|
|
|
|
- "rechargeBalance",
|
|
|
|
|
- "grantsBalance",
|
|
|
|
|
- "frozenAmount",
|
|
|
|
|
- "rechargeAmount",
|
|
|
|
|
- "refundAmount",
|
|
|
|
|
- "amount",
|
|
|
|
|
- "amountReceivable",
|
|
|
|
|
- "amountReceived",
|
|
|
|
|
- "discountAmount",
|
|
|
|
|
- "refundDiscountAmount"
|
|
|
|
|
- ].includes(prop);
|
|
|
|
|
|
|
+ return ["balance", "rechargeAmount", "amount"].includes(prop);
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|