|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-dialog :visible="showDetail" :show-close="false" @closed="view = true"> |
|
|
|
|
<el-dialog :visible="open" :show-close="false" @closed="view = true"> |
|
|
|
|
<div slot="title" class="title"> |
|
|
|
|
<span>订单详情</span> |
|
|
|
|
<i :class="{ |
|
|
|
@ -19,6 +19,9 @@ |
|
|
|
|
<el-form-item label="订单号"> |
|
|
|
|
<el-input v-model="form.orderId"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="购买门店" v-if="type === 2" style="margin-left:20px"> |
|
|
|
|
<el-input v-model="form.shopName"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<br /> |
|
|
|
|
<el-form-item label="用户昵称"> |
|
|
|
|
<el-input v-model="form.user.nickName"></el-input> |
|
|
|
@ -26,14 +29,16 @@ |
|
|
|
|
<el-form-item label="用户ID" style="margin-left:20px"> |
|
|
|
|
<el-input v-model="form.user.userId"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="配送物流"> |
|
|
|
|
<el-form-item :label="'配送' + (type === 1 ? '物流' : '类型')"> |
|
|
|
|
<el-input v-model="form.logisticsCompany"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<template v-if="type === 1"> |
|
|
|
|
<el-form-item label="快递单号" style="margin-left:20px"> |
|
|
|
|
<el-input v-model="form.expressNumber"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<br /> |
|
|
|
|
<el-form-item label="创建时间"> |
|
|
|
|
</template> |
|
|
|
|
<el-form-item label="创建时间" :style="type === 2 ? 'margin-left:20px' : ''"> |
|
|
|
|
<el-input v-model="form.createTime"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<br /> |
|
|
|
@ -92,7 +97,7 @@ |
|
|
|
|
<el-button @click="$emit('close')">关闭</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<order-progress v-else /> |
|
|
|
|
<order-progress :type="type" v-else /> |
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
@ -101,7 +106,10 @@ export default { |
|
|
|
|
name: "OrderDetail", |
|
|
|
|
components: { OrderProgress }, |
|
|
|
|
props: { |
|
|
|
|
showDetail: Boolean |
|
|
|
|
// 是否显示dialog |
|
|
|
|
open: Boolean, |
|
|
|
|
//TODO: 1 自营商城订单详情,2 骑手配送订单详情,应该通过订单类型来判断,先开发UI所以这么写。 |
|
|
|
|
type: Number |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -113,6 +121,7 @@ export default { |
|
|
|
|
userId: 123131, |
|
|
|
|
nickName: '用户昵称' |
|
|
|
|
}, |
|
|
|
|
shopName: '门店名称', |
|
|
|
|
logisticsCompany: '美团转送', |
|
|
|
|
expressNumber: '13132131361313132', |
|
|
|
|
createTime: '2022-12-31 12:31', |