This commit is contained in:
曹辉 2023-05-24 10:38:57 +08:00
parent 3f1648e09e
commit 9da1e4c00e

View File

@ -51,18 +51,25 @@
<el-table v-loading="loading" :data="goodsOrderList" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" />
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
<el-table-column label="订单编号" align="center" prop="orderNo" width="190" />
<el-table-column label="订单编号" align="center" prop="orderNo" />
<el-table-column label="商品名称" align="center" prop="goodsName" />
<el-table-column label="订单总金额" align="center" prop="totalPrice" />
<el-table-column label="订单状态" align="center" width="95" prop="orderStatus">
<el-table-column label="订单状态" align="center" prop="orderStatus">
<template slot-scope="scope">
<!-- {{ orderStatus(scope.row.orderStatus) }} -->
<el-button v-if="scope.row.orderStatus == 'WAIT_PAY'">待付款</el-button>
<el-button type="primary" v-if="scope.row.orderStatus == 'PAY'">待发货</el-button>
<el-button type="danger" v-if="scope.row.orderStatus == 'CANCEL'">已取消</el-button>
<el-button type="primary" v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'">待收货</el-button>
<el-button
type="primary"
v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'&&scope.row.orderType !='HEALTH_CONSULTATION'"
>待收货</el-button>
<el-button
type="primary"
v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'&&scope.row.orderType =='HEALTH_CONSULTATION'"
>待咨询</el-button>
<el-button type="primary" v-if="scope.row.orderStatus == 'RECEIVED_GOODS'">待评价</el-button>
<el-button type="success" v-if="scope.row.orderStatus == 'EVALUATED'">交易完成</el-button>
<el-button type="success" v-if="scope.row.orderStatus == 'EVALUATED'">完成</el-button>
<el-button type="warning" v-if="scope.row.orderStatus == 'WAIT_REFUND'">退款中</el-button>
<el-button type="warning" v-if="scope.row.orderStatus == 'WAIT_RETURNED_GOODS'">待退货</el-button>
<el-button type="danger" v-if="scope.row.orderStatus == 'REFUNDED'">已退款</el-button>
@ -76,8 +83,8 @@
{{ scope.row.orderType == "HEALTH_CONSULTATION" ? "健康咨询" : "" }}
</template>
</el-table-column>
<el-table-column label="下单时间" align="center" prop="orderTime" width="180" />
<el-table-column label="联系电话" align="center" prop="phone" width="180" />
<el-table-column label="下单时间" align="center" prop="orderTime" />
<el-table-column label="联系电话" align="center" prop="phone" />
<el-table-column label="下单方式" align="center" prop="orderChannel">
<template slot-scope="scope">
{{ scope.row.orderChannel == "MOBILE_APP" ? "手机APP" : "" }}
@ -91,7 +98,7 @@
<el-button
v-if="
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
scope.row.expressNo
scope.row.expressNo&&scope.row.orderType !='HEALTH_CONSULTATION'
"
size="mini"
type="text"
@ -102,7 +109,7 @@
<el-button
v-if="
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
scope.row.expressNo == ''
scope.row.expressNo == ''&&scope.row.orderType !='HEALTH_CONSULTATION'
"
size="mini"
type="text"
@ -113,7 +120,7 @@
<el-button
v-if="
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
scope.row.expressNo == null
scope.row.expressNo == null&&scope.row.orderType !='HEALTH_CONSULTATION'
"
size="mini"
type="text"
@ -297,7 +304,6 @@
style="width: 23%; height: 100%; margin: 1%"
v-for="(item, index) in ratelist"
:src="baseurl + item.evaluatePictureUrl"
alt
:key="index"
/>
</div>