Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_web
Commits
dc0802d6
Commit
dc0802d6
authored
Mar 08, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化订单列表显示
parent
d7cd9c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
29 deletions
+32
-29
index.vue
src/views/system/order/index.vue
+32
-29
No files found.
src/views/system/order/index.vue
View file @
dc0802d6
...
...
@@ -216,36 +216,39 @@
</el-table-column>
<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=
"storeId"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"item in options"
v-if=
"scope.row.storeId === item.id"
>
{{
item
.
name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"房间名称"
align=
"center"
prop=
"roomId"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"item in roomList"
v-if=
"scope.row.roomId === item.id"
>
{{
item
.
name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"套餐名称"
align=
"center"
prop=
"packId"
width=
"120"
>
<
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=
"storeName"
width=
"120"
/>
<!-- <el-table-column label="门店名称" align="center" prop="storeId" width="120">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-for="item in options" v-if="scope.row.storeId === item.id">{{item.name}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
label=
"房间名称"
align=
"center"
prop=
"roomName"
width=
"120"
/>
<!-- <el-table-column label="房间名称" align="center" prop="roomId" width="120">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-for="item in roomList" v-if="scope.row.roomId === item.id">{{item.name}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
label=
"套餐名称"
align=
"center"
prop=
"packName"
width=
"120"
/>
<!-- <el-table-column label="套餐名称" align="center" prop="packId" width="120">-->
<!-- <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=
"coupon
Id"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"item in couponList"
v-if=
"scope.row.couponId === item.id"
>
{{
item
.
name
}}
</span
>
</
template
>
<
/el-table-column
>
<el-table-column
label=
"优惠券金额"
align=
"center"
prop=
"couponPrice"
width=
"100"
>
<!--先判断couponPrice是否为空,为空,遍历couponList,获取值
-->
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.couponPrice === null"
>
<span
v-for=
"item in couponList"
v-if=
"scope.row.couponId === item.id"
>
{{
item
.
subPrice
}}
</span
>
</span
>
<span
v-else
>
{{
scope
.
row
.
couponPrice
}}
</span
>
</
template
>
<
/el-table-column
>
<el-table-column
label=
"优惠券名称"
align=
"center"
prop=
"coupon
Name"
width=
"100"
/
>
<!-- <template slot-scope="scope">--
>
<!-- <span v-for="item in couponList" v-if="scope.row.couponId === item.id">{{item.name}}</span>--
>
<!-- </template>--
>
<
!-- </el-table-column>--
>
<el-table-column
label=
"优惠券金额"
align=
"center"
prop=
"couponPrice"
width=
"100"
/
>
<!-- <!–先判断couponPrice是否为空,为空,遍历couponList,获取值–>
-->
<!-- <template slot-scope="scope">--
>
<!-- <span v-if="scope.row.couponPrice === null">--
>
<!-- <span v-for="item in couponList" v-if="scope.row.couponId === item.id">{{item.subPrice}}</span>--
>
<!-- </span>--
>
<!-- <span v-else>{{scope.row.couponPrice}}</span>--
>
<!-- </template>--
>
<
!-- </el-table-column>--
>
<el-table-column
label=
"预约开始时间"
align=
"center"
prop=
"preStartDate"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
preStartDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment