Commit dc0802d6 by 吕明尚

优化订单列表显示

parent d7cd9c8d
...@@ -216,36 +216,39 @@ ...@@ -216,36 +216,39 @@
</el-table-column> </el-table-column>
<el-table-column label="会员昵称" align="center" prop="consumerName" /> <el-table-column label="会员昵称" align="center" prop="consumerName" />
<el-table-column label="手机号" align="center" prop="consumerPhone" width="110"/> <el-table-column label="手机号" align="center" prop="consumerPhone" width="110"/>
<el-table-column label="门店名称" align="center" prop="storeId" width="120"> <el-table-column label="门店名称" align="center" prop="storeName" width="120"/>
<template slot-scope="scope"> <!-- <el-table-column label="门店名称" align="center" prop="storeId" width="120">-->
<span v-for="item in options" v-if="scope.row.storeId === item.id">{{item.name}}</span> <!-- <template slot-scope="scope">-->
</template> <!-- <span v-for="item in options" v-if="scope.row.storeId === item.id">{{item.name}}</span>-->
</el-table-column> <!-- </template>-->
<el-table-column label="房间名称" align="center" prop="roomId" width="120"> <!-- </el-table-column>-->
<template slot-scope="scope"> <el-table-column label="房间名称" align="center" prop="roomName" width="120"/>
<span v-for="item in roomList" v-if="scope.row.roomId === item.id">{{item.name}}</span> <!-- <el-table-column label="房间名称" align="center" prop="roomId" width="120">-->
</template> <!-- <template slot-scope="scope">-->
</el-table-column> <!-- <span v-for="item in roomList" v-if="scope.row.roomId === item.id">{{item.name}}</span>-->
<el-table-column label="套餐名称" align="center" prop="packId" width="120"> <!-- </template>-->
<template slot-scope="scope"> <!-- </el-table-column>-->
<span v-for="item in packList" v-if="scope.row.packId === item.id">{{item.name}}</span> <el-table-column label="套餐名称" align="center" prop="packName" width="120"/>
</template> <!-- <el-table-column label="套餐名称" align="center" prop="packId" width="120">-->
</el-table-column> <!-- <template slot-scope="scope">-->
<!-- <span v-for="item in packList" v-if="scope.row.packId === item.id">{{item.name}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="套餐金额" align="center" prop="packPrice" width="100"/> <el-table-column label="套餐金额" align="center" prop="packPrice" width="100"/>
<el-table-column label="优惠券名称" align="center" prop="couponId" width="100"> <el-table-column label="优惠券名称" align="center" prop="couponName" width="100"/>
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span v-for="item in couponList" v-if="scope.row.couponId === item.id">{{item.name}}</span> <!-- <span v-for="item in couponList" v-if="scope.row.couponId === item.id">{{item.name}}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="优惠券金额" align="center" prop="couponPrice" width="100" > <el-table-column label="优惠券金额" align="center" prop="couponPrice" width="100"/>
<!--先判断couponPrice是否为空,为空,遍历couponList,获取值--> <!-- &lt;!&ndash;先判断couponPrice是否为空,为空,遍历couponList,获取值&ndash;&gt;-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span v-if="scope.row.couponPrice === null"> <!-- <span v-if="scope.row.couponPrice === null">-->
<span v-for="item in couponList" v-if="scope.row.couponId === item.id">{{item.subPrice}}</span> <!-- <span v-for="item in couponList" v-if="scope.row.couponId === item.id">{{item.subPrice}}</span>-->
</span> <!-- </span>-->
<span v-else>{{scope.row.couponPrice}}</span> <!-- <span v-else>{{scope.row.couponPrice}}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="预约开始时间" align="center" prop="preStartDate" width="100"> <el-table-column label="预约开始时间" align="center" prop="preStartDate" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.preStartDate, '{y}-{m}-{d} {h}:{i}') }}</span> <span>{{ parseTime(scope.row.preStartDate, '{y}-{m}-{d} {h}:{i}') }}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment