基本配置修改 优化

This commit is contained in:
lizhenhua 2025-09-11 14:43:16 +08:00
parent b4b0fbbe21
commit cfc37c65ff
1 changed files with 134 additions and 123 deletions

View File

@ -151,10 +151,21 @@
<el-table-column label="就餐日期" align="center" prop="orderDate" :show-overflow-tooltip="true" width="100"/>
<el-table-column label="餐次" align="center" prop="mealtimeName" :show-overflow-tooltip="true" width="80"/>
<el-table-column label="菜品明细" align="center" prop="orderDetailList" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope">
<span v-for="item in scope.row.orderDetailList" :key="item.detailId">{{ item.goodsName }}*{{ item.quantity }};</span>
</template>
<template slot-scope="scope">
<!-- 如果是数组List<OrderDetail> -->
<span v-if="Array.isArray(scope.row.orderDetailList)">
<span v-for="item in scope.row.orderDetailList" :key="item.detailId">
{{ item.goodsName }}*{{ item.quantity }};
</span>
</span>
<!-- 如果是字符串yrorder_details -->
<span v-else>
{{ scope.row.orderDetailList }}
</span>
</template>
</el-table-column>
<el-table-column label="订单金额" align="center" prop="payableAmount" :show-overflow-tooltip="true" width="80">
<template slot-scope="scope">
<span>{{ (scope.row.payableAmount/100).toFixed(2) }}</span>