更改订单->隐藏总金额列表

This commit is contained in:
魏啾 2024-11-25 14:41:04 +08:00
parent d9f97b6ddb
commit ba5c3714cf
1 changed files with 18 additions and 17 deletions

View File

@ -57,9 +57,9 @@
</el-form> </el-form>
</div> </div>
<div class="head-container"> <!-- <div class="head-container">
<div class="collect_wrap"> <div class="collect_wrap">
<!-- <div class="item"> <div class="item">
<div class="icon_wrap" style="--bg-color:#C978EE"> <div class="icon_wrap" style="--bg-color:#C978EE">
<i class="icon el-icon-s-goods"></i> <i class="icon el-icon-s-goods"></i>
</div> </div>
@ -67,8 +67,8 @@
<div class="m">{{ payCountTotal }}</div> <div class="m">{{ payCountTotal }}</div>
<div class="t">总金额</div> <div class="t">总金额</div>
</div> </div>
</div> --> </div>
<div class="item" v-for="item in payCountList" :key="item.payType"> <div class="item" v-for="item in payCountList" :key="item.payType">
<div class="icon_wrap" style="--bg-color:#fff"> <div class="icon_wrap" style="--bg-color:#fff">
<el-image class="img" :src="item.icon"></el-image> <el-image class="img" :src="item.icon"></el-image>
</div> </div>
@ -78,7 +78,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>-->
<div class="head-container"> <div class="head-container">
<el-table :data="tableData.data" v-loading="tableData.loading"> <el-table :data="tableData.data" v-loading="tableData.loading">
<el-table-column label="订单号信息"> <el-table-column label="订单号信息">
@ -150,7 +150,8 @@
<template v-slot="scope"> <template v-slot="scope">
<div class="u-flex gap-10"> <div class="u-flex gap-10">
<el-button type="text" @click="$refs.orderDetail.show(scope.row)">详情</el-button> <el-button type="text" @click="$refs.orderDetail.show(scope.row)">详情</el-button>
<el-button v-if="scope.row.status == 'unpaid'" type="primary" size="mini" @click="payOrder(scope.row)">结账</el-button> <el-button v-if="scope.row.status == 'unpaid'" type="primary" size="mini"
@click="payOrder(scope.row)">结账</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -207,24 +208,24 @@ export default {
filters: { filters: {
orderTypeFilter(t) { orderTypeFilter(t) {
if (t) { if (t) {
const item= orderEnum.orderType.find(item => item.key == t); const item = orderEnum.orderType.find(item => item.key == t);
return t && item?item.label:''; return t && item ? item.label : '';
} else { } else {
return t; return t;
} }
}, },
sendTypeFilter(t) { sendTypeFilter(t) {
if (t) { if (t) {
const item= orderEnum.sendType.find(item => item.key == t); const item = orderEnum.sendType.find(item => item.key == t);
return item?item.label:''; return item ? item.label : '';
} else { } else {
return t; return t;
} }
}, },
statusFilter(t) { statusFilter(t) {
if (t) { if (t) {
const item= orderEnum.status.find(item => item.key == t); const item = orderEnum.status.find(item => item.key == t);
return t && item?item.label:''; return t && item ? item.label : '';
} else { } else {
return t; return t;
} }
@ -258,7 +259,7 @@ export default {
}, },
methods: { methods: {
// //
payOrder(order){ payOrder(order) {
console.log(order); console.log(order);
this.$router.push({ this.$router.push({
path: "/tool/Instead/index", path: "/tool/Instead/index",
@ -268,7 +269,7 @@ export default {
useType: order.useType, useType: order.useType,
masterId: order.masterId, masterId: order.masterId,
orderId: order.id, orderId: order.id,
key:'isJieZhang' key: 'isJieZhang'
}, },
}); });
}, },
@ -324,7 +325,7 @@ export default {
async getTableData(switchs = false) { async getTableData(switchs = false) {
this.tableData.loading = true; this.tableData.loading = true;
try { try {
this.payCount(); // this.payCount();
const productName = this.query.productName.replace(/\s+/g, '') const productName = this.query.productName.replace(/\s+/g, '')
const res = await tbOrderInfoData({ const res = await tbOrderInfoData({
page: this.tableData.page, page: this.tableData.page,