<script>
|
export default {
|
data() {
|
return {
|
id: '',
|
dto: {},
|
type: '',
|
// #ifdef PUB_CUSTOMER
|
type: 'customer',
|
// #endif
|
// #ifdef PUB_PARTNER
|
type: 'partner',
|
// #endif
|
// #ifdef PUB_CUSTOMER
|
type: 'customer',
|
// #endif
|
};
|
},
|
async onLoad(options) {
|
console.log('options', options)
|
this.id = options.id || ''
|
if (this.id) {
|
await this.getDetail()
|
}
|
},
|
methods: {
|
|
async getDetail() {
|
this.$message.showLoading()
|
const {
|
code,
|
data
|
} = await this.$http.request('get', `/api/${this.type}/sales/list/view`, {
|
params: {
|
id: this.id
|
}
|
})
|
this.$message.hideLoading()
|
console.log('getDetail', data)
|
if (code === 0) {
|
this.dto = {
|
...this.dto,
|
...data,
|
items: data.items || []
|
}
|
}
|
},
|
|
|
},
|
}
|
</script>
|
|
<template>
|
<view class="order-detail-page">
|
<view class="address-container bg-white br-4 m-t-12">
|
<view class="flex">
|
<image src="/static/common/icon-loc.png" class="image m-r-10"></image>
|
|
<!-- <view class="icon-loc m-r-10">
|
<image src="/static/common/icon-loc.png" class="image"></image>
|
</view> -->
|
<view class="info">
|
<view class="title">
|
{{ dto.customer }}<span class="tel">{{ dto.customerTel }}</span>
|
</view>
|
<view class="content">
|
{{ ((dto.customerProvince||'')+ (dto.customerCity&&'-'||'') + (dto.customerCity||'')+ (dto.customerRegion&&'-'||'')+(dto.customerRegion||'')) ||dto.customerAddress || '暂无详细地址'}}
|
|
</view>
|
</view>
|
</view>
|
</view>
|
<view class="flower-info m-b-20 m-t-12 br-4" :key="index">
|
<view class="supplier-name ">
|
<image class="icon-dp" src="/static/common/icon-dp.png"></image>
|
{{ dto.supplierName }}
|
</view>
|
<view class="flex m-t-12 flex-wrap-normal">
|
<image class="flower-img img100 br-4 m-r-6" :src="dto.flowerCover" @click="previewImg(dto.flowerCover)">
|
</image>
|
<view class="flex1">
|
<view class=" flex">
|
<view class="title"><span class="level">{{ dto.flowerCategory }}</span><span
|
class="level">{{ dto.flowerLevelStr }}</span>{{ dto.flowerName }}
|
</view>
|
</view>
|
<view class="each-list">
|
<view class="each-item">
|
<view class="label">颜色</view>
|
<view class="value">{{ dto.flowerColor || '-' }}</view>
|
|
</view>
|
<view class="each-item">
|
<view class="label">规格</view>
|
<view class="value">{{ dto.flowerUnit || '-' }}</view>
|
</view>
|
|
<view class="each-item">
|
<view class="label">数量</view>
|
<view class="value">{{ dto.flowerNum || 0 }}</view>
|
|
</view>
|
<view class="each-item">
|
<view class="label">售价</view>
|
<view class="value">¥{{ dto.price || 0 }}</view>
|
|
</view>
|
<view class="each-item">
|
<view class="label">商品总金额</view>
|
<view class="value">¥{{ dto.total || 0 }}</view>
|
|
</view>
|
<!-- <view class="each-item">
|
<view class="label">责任方</view>
|
<view class="value">{{ dto.personInChargeStr || '-' }}</view>
|
</view> -->
|
|
<!-- <view class="each-item">
|
<view class="label">赔付金额</view>
|
<view class="value t-red">¥{{ item.amount || '-' }}</view>
|
</view> -->
|
</view>
|
</view>
|
</view>
|
<view class=" m-t-12 flex-wrap-normal" v-if="item.remarks">
|
<view class="each-list">
|
<view class="each-item" style="max-width: 90%;text-align: left;">
|
<view class="label">平台回复</view>
|
<view class="value">{{ item.remarks || '-' }}</view>
|
</view>
|
</view>
|
</view>
|
|
</view>
|
|
|
<view class="info-container bg-white br-4">
|
<view class="form-item">
|
<view class="label">订单编号:</view>
|
<view class="value">{{ dto.orderNo || '-' }}</view>
|
<view class="button m-l-a m-r-0" @click="copyTxt(dto.orderNo)">复制
|
</view>
|
</view>
|
<view class="form-item">
|
<view class="label">状态:</view>
|
<view class="value">{{ dto.statusStr || '-' }}</view>
|
</view>
|
<view class="form-item">
|
<view class="label">集货站:</view>
|
<view class="value">{{ dto.stationName || '-' }}</view>
|
</view>
|
<!-- <view class="form-item">
|
<view class="label">订单金额:</view>
|
<view class="value">{{ dto.totalOrderAmount || '-' }}</view>
|
</view> -->
|
<view class="form-item">
|
<view class="label">理由:</view>
|
<view class="value">{{ dto.reason || '-' }}</view>
|
</view>
|
<!-- <view class="form-item">
|
<view class="label">提交人:</view>
|
<view class="value">{{ dto.createName || '-' }}</view>
|
</view> -->
|
<view class="form-item">
|
<view class="label">提交时间:</view>
|
<view class="value">{{ dto.createTime || '-' }}</view>
|
</view>
|
</view>
|
|
<view class="info-container bg-white m-t-12 br-4">
|
|
<view class="form-item">
|
<view class="label">售后单号:</view>
|
<view class="value">{{ dto.salesNo || '-' }}</view>
|
<view class="button m-l-a m-r-0" @click="copyTxt(dto.salesNo)">复制
|
</view>
|
</view>
|
<view class="form-item">
|
<view class="label">申请数量:</view>
|
<view class="value">{{ dto.num || '-' }}</view>
|
</view>
|
|
<view class="form-item" v-if="dto.feeSupplier">
|
<view class="label">供应商扣款:</view>
|
<view class="value">{{ dto.feeSupplier || '-' }}</view>
|
</view>
|
<view class="form-item" v-if="dto.feePartner">
|
<view class="label">合伙人扣款:</view>
|
<view class="value">{{ dto.feePartner || '-' }}</view>
|
</view>
|
<view class="form-item" v-if="dto.feePlatform">
|
<view class="label">平台扣款:</view>
|
<view class="value">{{ dto.feePlatform || '-' }}</view>
|
</view>
|
<view class="form-item" v-if="dto.feePlatformPack">
|
<view class="label">平台打包扣款:</view>
|
<view class="value">{{ dto.feePlatformPack || '-' }}</view>
|
</view>
|
<view class="form-item" v-if="dto.feePlatformCheck">
|
<view class="label">平台质检扣款:</view>
|
<view class="value">{{ dto.feePlatformCheck || '-' }}</view>
|
</view>
|
<view class="form-item" v-if="dto.feePlatformTransport">
|
<view class="label">物流扣款:</view>
|
<view class="value">{{ dto.feePlatformTransport || '-' }}</view>
|
</view>
|
<!-- <view class="form-item">
|
<view class="label">审核时间:</view>
|
<view class="value">{{ dto.auditTime || '-' }}</view>
|
</view> -->
|
<!-- <view class="form-item">
|
<view class="label">审核状态:</view>
|
<view class="value">{{ dto.auditStatusStr || '-' }}</view>
|
</view> -->
|
<!-- <view class="form-item">
|
<view class="label">审核备注:</view>
|
<view class="value">{{ dto.auditRemarks || '-' }}</view>
|
</view> -->
|
<view class="form-item">
|
<view class="label">实际退款:</view>
|
<view class="value">{{ dto.totalFee || '-' }}</view>
|
</view>
|
<!-- <view class="form-item">
|
<view class="label">转账状态:</view>
|
<view class="value">{{ dto.transferStatusStr || '-' }}</view>
|
</view> -->
|
|
</view>
|
|
|
<view class="info-container bg-white m-t-12 br-4">
|
<view v-if="dto.pictureList&&dto.pictureList.length>0">
|
<view class="form-item">
|
<view class="label">图片:
|
</view>
|
</view>
|
<view class="flex p20">
|
<view class="m-t-12 m-r-10 " v-for="(timg,index) of dto.pictureList" :key="index">
|
<image class="check-img" :src="timg" @click.stop="previewImg(timg)">
|
</image>
|
</view>
|
</view>
|
</view>
|
<view v-if="dto.videoList&&dto.videoList.length>0">
|
<view class="form-item">
|
<view class="label">视频:
|
</view>
|
</view>
|
<view class="flex p20">
|
<view class="m-t-12 m-r-10 " v-for="(timg,index) of dto.videoList" :key="index">
|
<video :src="timg" style="display: block;margin: 0 auto;"></video>
|
|
</view>
|
</view>
|
</view>
|
|
</view>
|
|
|
</view>
|
</template>
|
|
<style lang="scss" scoped>
|
.order-detail-page {
|
background: #F7F7F7;
|
padding: 30rpx;
|
|
.info-container {
|
.button-space {
|
min-height: 140rpx;
|
}
|
|
.icon-kf {
|
width: 44rpx;
|
height: 44rpx;
|
}
|
|
.icon-call {
|
width: 32rpx;
|
height: 32rpx;
|
}
|
|
.icon-view {
|
line-height: 40rpx;
|
|
.icon {
|
display: inline-block;
|
vertical-align: middle;
|
}
|
}
|
|
.buttons-bottom {
|
position: fixed;
|
left: 0;
|
bottom: 0;
|
right: 0;
|
height: 120rpx;
|
|
.button {
|
border-radius: 42rpx;
|
border: 2rpx solid #CECECE;
|
font-weight: 400;
|
font-size: 28rpx;
|
color: #999999;
|
text-align: center;
|
line-height: 76rpx;
|
}
|
|
.button-1 {}
|
}
|
}
|
|
.info-container {
|
padding: 28rpx;
|
|
.check-img {
|
width: 96rpx;
|
height: 96rpx;
|
border-radius: 4rpx;
|
border: 2rpx dashed #CECECE;
|
}
|
|
.form-item {
|
font-weight: 400;
|
font-size: 28rpx;
|
color: #666666;
|
line-height: 60rpx;
|
display: flex;
|
|
.label {
|
min-width: 140rpx;
|
margin-right: 20rpx;
|
}
|
|
.value {
|
word-break: break-all;
|
}
|
}
|
|
.line {
|
height: 2rpx solid #EEEEEE;
|
}
|
}
|
|
.top-tip {
|
.icon-car {
|
width: 52rpx;
|
height: 52rpx;
|
}
|
}
|
|
.address-container {
|
padding: 28rpx;
|
|
.image {
|
// background-color: #20613D;
|
border-radius: 50%;
|
margin-top: 8rpx;
|
margin-left: 8rpx;
|
width: 32rpx;
|
height: 32rpx;
|
// padding: 8rpx;
|
}
|
|
// .icon-loc {
|
// width: 48rpx;
|
// height: 48rpx;
|
// background: #20613D;
|
// border-radius: 50%;
|
|
// .image {
|
// margin-top: 8rpx;
|
// margin-left: 8rpx;
|
// width: 32rpx;
|
// height: 32rpx;
|
// }
|
// }
|
|
.info {
|
.title {
|
font-weight: 600;
|
font-size: 32rpx;
|
color: #000000;
|
line-height: 44rpx;
|
|
.tel {
|
display: inline-block;
|
margin-left: 20rpx;
|
}
|
}
|
|
.content {
|
font-weight: 400;
|
font-size: 28rpx;
|
color: #000000;
|
line-height: 40rpx;
|
}
|
|
}
|
}
|
|
.flower-info {
|
padding: 28rpx;
|
|
background: #FFFFFF;
|
border-radius: 8rpx;
|
|
.supplier-name {
|
border-bottom: 2rpx solid #EEEEEE;
|
font-weight: 600;
|
font-size: 28rpx;
|
color: #000000;
|
padding-bottom: 10rpx;
|
line-height: 40rpx;
|
|
.icon-dp {
|
width: 27rpx;
|
height: 27rpx;
|
display: inline-block;
|
vertical-align: middle;
|
}
|
}
|
|
.title {
|
font-weight: 600;
|
font-size: 28rpx;
|
color: #000000;
|
line-height: 40rpx;
|
|
.level {
|
font-weight: 400;
|
font-size: 28rpx;
|
color: #20613D;
|
line-height: 40rpx;
|
margin-right: 20rpx;
|
}
|
}
|
|
.flower-img {
|
width: 128rpx;
|
height: 118rpx;
|
min-width: 128rpx;
|
min-height: 118rpx;
|
}
|
|
.each-list {
|
display: flex;
|
flex-wrap: wrap;
|
margin-top: 6rpx;
|
|
.each-item {
|
min-width: 40%;
|
max-width: 50%;
|
text-align: center;
|
margin-left: 0rpx;
|
margin-right: auto;
|
display: flex;
|
|
.label {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #666666;
|
text-align: left;
|
padding-right: 10rpx;
|
}
|
|
.label::after {
|
content: ": "
|
}
|
|
.value {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #666666;
|
}
|
}
|
}
|
|
}
|
|
}
|
</style>
|