From 4fabfe4dbd2eb28d07a4350597d314958cc1c281 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 09 十月 2025 11:16:43 +0800
Subject: [PATCH] 优化
---
admin/src/views/business/wxBillDetail.vue | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/admin/src/views/business/wxBillDetail.vue b/admin/src/views/business/wxBillDetail.vue
index 32cc4d7..5118499 100644
--- a/admin/src/views/business/wxBillDetail.vue
+++ b/admin/src/views/business/wxBillDetail.vue
@@ -55,9 +55,20 @@
</template>
</el-table-column>
<el-table-column prop="cmmsAmt" label="鎵嬬画璐�" min-width="100px" align="center"></el-table-column>
- <el-table-column prop="total" label="缁撶畻閲戦" min-width="100px" align="center">
+ <el-table-column prop="total" label="缁撶畻閲戦锛堝厓锛�" min-width="100px" align="center">
<template slot-scope="scope">
<span>{{scope.row.total == 0 ? '-' : scope.row.total }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column prop="bikefee" label="楠戣鏀跺叆锛堝厓锛�" min-width="100px" align="center">
+ <template slot-scope="scope">
+ <span>{{scope.row.bikeFee == 0 ? '-' : scope.row.bikeFee }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="濂楅鏀跺叆(鍏�)" min-width="100px" align="center">
+ <template slot-scope="scope">
+<!-- <span>{{scope.row.discountFee >= 0 ? scope.row.discountFee : '-' }}</span>-->
+ <span>{{ [0,2].includes(scope.$index) ? scope.row.discountFee : '-' }}</span>
</template>
</el-table-column>
<!-- v-if="containPermissions(['business:pricingparam:update', 'business:pricingparam:delete'])" -->
@@ -76,7 +87,6 @@
</template>
</el-table-column>
</el-table>
-
</template>
<BillDetailWindow ref="billDetailWindow"/>
</TableLayout>
@@ -187,7 +197,6 @@
search () {
fetchList(this.searchForm)
.then(res => {
- console.log(res)
this.tableData.list = [
{ billType: '浜ゆ槗瀹炴敹', ...res[0], cmmsAmt: (res[0].sumCmmsAmt + res[0].sumRefundCmmsAmt).toFixed(2) },
{ billType: '閫�娆�', ...res[1], cmmsAmt: (res[1].sumCmmsAmt + res[1].sumRefundCmmsAmt).toFixed(2) },
@@ -207,7 +216,7 @@
this.search()
},
arraySpanMethod ({ row, column, rowIndex, columnIndex }) {
- if (rowIndex == 3) {
+ if (rowIndex === 3) {
if (columnIndex === 0) {
return [1, 8]
} else {
--
Gitblit v1.9.3