超市订单详情

This commit is contained in:
zzyuan 2025-06-09 11:06:05 +08:00
parent f843c28b73
commit 475eea21b9
3 changed files with 23 additions and 24 deletions

View File

@ -138,7 +138,7 @@ export function refundOrderPartApi(data) {
// 订单-退单 // 订单-退单
export function refundOrderApi(data) { export function refundOrderApi(data) {
return request({ return request({
url: '/smart-canteen/api/v2/web/order/refund', url: '/smart-canteen/order/refund/'+data.orderId,
method: 'post', method: 'post',
headers: { headers: {
"merchant-id":"378915229716713472", "merchant-id":"378915229716713472",

View File

@ -135,7 +135,7 @@ export function refundOrderPartApi(data) {
// 订单-退单 // 订单-退单
export function refundOrderApi(data) { export function refundOrderApi(data) {
return request({ return request({
url: '/smart-canteen/api/v2/web/order/refund', url: '/smart-canteen/order/refund/'+data.orderId,
method: 'post', method: 'post',
headers: { headers: {
"merchant-id":"378915229716713472", "merchant-id":"378915229716713472",

View File

@ -115,7 +115,7 @@
<!-- <el-table-column label="流水号" align="center" prop="mealCode" :show-overflow-tooltip="true" width="80"/> --> <!-- <el-table-column label="流水号" align="center" prop="mealCode" :show-overflow-tooltip="true" width="80"/> -->
<el-table-column label="商品明细" align="center" prop="orderDetailList" :show-overflow-tooltip="true" width="120"> <el-table-column label="商品明细" align="center" prop="orderDetailList" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item in scope.row.orderDetailList" :key="item.detailId">{{ item.goodsDishesName }}*{{ item.goodsGetNum }};</span> <span v-for="item in scope.row.orderDetailList" :key="item.detailId">{{ item.goodsName }}*{{ item.quantity }};</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="订单类型" align="center" prop="orderType" :show-overflow-tooltip="true" width="100"> <el-table-column label="订单类型" align="center" prop="orderType" :show-overflow-tooltip="true" width="100">
@ -128,11 +128,11 @@
<span>{{ (scope.row.payableAmount/100).toFixed(2) }}</span> <span>{{ (scope.row.payableAmount/100).toFixed(2) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配送费" align="center" prop="deliveryAmount" :show-overflow-tooltip="true" width="80"> <!-- <el-table-column label="配送费" align="center" prop="deliveryAmount" :show-overflow-tooltip="true" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (scope.row.deliveryAmount/100).toFixed(2) }}</span> <span>{{ (scope.row.deliveryAmount/100).toFixed(2) }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="实付金额" align="center" prop="realAmount" :show-overflow-tooltip="true" width="80"> <el-table-column label="实付金额" align="center" prop="realAmount" :show-overflow-tooltip="true" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (scope.row.realAmount/100).toFixed(2) }}</span> <span>{{ (scope.row.realAmount/100).toFixed(2) }}</span>
@ -162,16 +162,17 @@
type="text" type="text"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>详情</el-button> >详情</el-button>
<el-button
size="mini" style="color: red;"
type="text" v-if="scope.row.orderState==1||scope.row.orderState==4"
@click="handleRefund(scope.row)"
>退单</el-button>
<!-- <el-button <!-- <el-button
size="mini" size="mini"
type="text" v-if="scope.row.orderStateMix==1||scope.row.orderStateMix==11" type="text" v-if="scope.row.orderStateMix==1||scope.row.orderStateMix==11"
@click="handleRefundPart(scope.row)" @click="handleRefundPart(scope.row)"
>部分退款</el-button> >部分退款</el-button>
<el-button
size="mini" style="color: red;"
type="text" v-if="scope.row.orderStateMix==1||scope.row.orderStateMix==11"
@click="handleRefund(scope.row)"
>退单</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" v-if="scope.row.orderStateMix==1" type="text" v-if="scope.row.orderStateMix==1"
@ -234,23 +235,23 @@
<template slot="label"> 订单金额</template> <template slot="label"> 订单金额</template>
{{ (orderInfoData.payableAmount/100).toFixed(2) }} {{ (orderInfoData.payableAmount/100).toFixed(2) }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <!-- <el-descriptions-item>
<template slot="label"> 配送费</template> <template slot="label"> 配送费</template>
{{ (orderInfoData.deliveryAmount/100).toFixed(2) }} {{ (orderInfoData.deliveryAmount/100).toFixed(2) }}
</el-descriptions-item> </el-descriptions-item> -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 实付金额</template> <template slot="label"> 实付金额</template>
{{ (orderInfoData.realAmount/100).toFixed(2) }} {{ (orderInfoData.realAmount/100).toFixed(2) }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <!-- <el-descriptions-item>
<template slot="label"> 配送方式</template> <template slot="label"> 配送方式</template>
<!-- <div v-for="item in deliveryTypeOptions" :key="item.key" v-if="item.key==orderInfoData.deliveryType"> <div v-for="item in deliveryTypeOptions" :key="item.key" v-if="item.key==orderInfoData.deliveryType">
{{ item.value }} {{ item.value }}
</div> --> </div>
</el-descriptions-item> </el-descriptions-item> -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 支付方式</template> <template slot="label"> 支付方式</template>
{{orderInfoData.payTypesStr}} <dict-tag :options="dict.type.sm_order_pay_type" :value="orderInfoData.payType"/>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
@ -264,14 +265,12 @@
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 订单状态</template> <template slot="label"> 订单状态</template>
<!-- <div v-for="item in orderStateOptions" :key="item.key" v-if="item.key==orderInfoData.orderStateMix"> <dict-tag :options="dict.type.sm_order_status" :value="orderInfoData.orderState"/>
{{ item.value }}
</div> -->
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <!-- <el-descriptions-item>
<template slot="label"> 流水号</template> <template slot="label"> 流水号</template>
{{ orderInfoData.mealCode }} {{ orderInfoData.mealCode }}
</el-descriptions-item> </el-descriptions-item> -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 备注</template> <template slot="label"> 备注</template>
{{ orderInfoData.remark }} {{ orderInfoData.remark }}
@ -279,7 +278,7 @@
</el-descriptions> </el-descriptions>
<div style="margin: 10px 0;font-weight: bold;font-size: 16px;color: #000;">商品信息</div> <div style="margin: 10px 0;font-weight: bold;font-size: 16px;color: #000;">商品信息</div>
<el-table :data="orderInfoData.orderDetailList"> <el-table :data="orderInfoData.orderDetailList">
<el-table-column label="商品名称" align="center" prop="goodsDishesName" :show-overflow-tooltip="true"/> <el-table-column label="商品名称" align="center" prop="goodsName" :show-overflow-tooltip="true"/>
<el-table-column label="单价(元)" align="center" prop="prefPrice" :show-overflow-tooltip="true"> <el-table-column label="单价(元)" align="center" prop="prefPrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (scope.row.prefPrice/100).toFixed(2) }}</span> <span>{{ (scope.row.prefPrice/100).toFixed(2) }}</span>
@ -309,7 +308,7 @@
<!-- 部分退款对话框 --> <!-- 部分退款对话框 -->
<el-dialog title="部分退款" :visible.sync="openPart" width="80%" append-to-body> <el-dialog title="部分退款" :visible.sync="openPart" width="80%" append-to-body>
<el-table :data="orderDetailList"> <el-table :data="orderDetailList">
<el-table-column label="商品名称" align="center" prop="goodsDishesName" :show-overflow-tooltip="true"/> <el-table-column label="商品名称" align="center" prop="goodsName" :show-overflow-tooltip="true"/>
<el-table-column label="商品单价" align="center" prop="prefPrice" :show-overflow-tooltip="true"> <el-table-column label="商品单价" align="center" prop="prefPrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (scope.row.prefPrice/100).toFixed(2) }}</span> <span>{{ (scope.row.prefPrice/100).toFixed(2) }}</span>