|
|
|
<template>
|
|
|
|
<view class="wrap">
|
|
|
|
<view class="block">
|
|
|
|
<view class="title">编号{{ id }}</view>
|
|
|
|
<view class="shop">
|
|
|
|
<image class="logo" :src="info.shopLogo ? info.shopLogo : Common.shopIcon"></image>
|
|
|
|
{{ info.shopName }}
|
|
|
|
<view class="status">{{ info.authentication }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="block">
|
|
|
|
<view class="title">采购内容</view>
|
|
|
|
<view class="content">
|
|
|
|
<view v-for="(item, i) in info.orderItemDtos" :key="i" class="item">
|
|
|
|
<view class="prod">
|
|
|
|
<view class="name">{{ item.prodName}}</view>
|
|
|
|
<view class="price">¥{{ item.price }}</view>
|
|
|
|
</view>
|
|
|
|
<text class="count">{{ item.prodCount }}件</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="block">
|
|
|
|
<view class="title">采购方信息</view>
|
|
|
|
<view class="info">
|
|
|
|
<view class="line">
|
|
|
|
<text class="field">采购人</text>
|
|
|
|
<text>{{ info.purchasingPerson }}</text>
|
|
|
|
</view>
|
|
|
|
<view class="line">
|
|
|
|
<text class="field">联系方式</text>
|
|
|
|
<text>{{ info.phone }}</text>
|
|
|
|
</view>
|
|
|
|
<view class="line">
|
|
|
|
<text class="field">采购类型</text>
|
|
|
|
<text>{{ info.orderType === 1 ? '个人' : '组织' }}</text>
|
|
|
|
</view>
|
|
|
|
<view class="line">
|
|
|
|
<text class="field">所属幼儿园</text>
|
|
|
|
<text>{{ info.shopName }}</text>
|
|
|
|
</view>
|
|
|
|
<view class="line">
|
|
|
|
<text class="field">提交时间</text>
|
|
|
|
<text>{{ info.createTime }}</text>
|
|
|
|
</view>
|
|
|
|
<view class="line">
|
|
|
|
<text class="field">幼儿园是否已认证/是否已实名</text>
|
|
|
|
<text>{{ info.authentication }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { orderDetail } from '@/apis/modules/order.js'
|
|
|
|
import Common from '@/config/common'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
Common,
|
|
|
|
id: '',
|
|
|
|
info: {
|
|
|
|
orderItemDtos: [],
|
|
|
|
classificationName: '',
|
|
|
|
slogan: '',
|
|
|
|
briefIntroduction: '',
|
|
|
|
address: '',
|
|
|
|
phone: ''
|
|
|
|
},
|
|
|
|
mpStyle: {
|
|
|
|
p: 'font-size: 25rpx !important;font-family: Microsoft Yahei !important;font-weight: 400 !important;color: #333 !important;',
|
|
|
|
span: 'font-size: 25rpx !important;font-family: Microsoft Yahei !important;font-weight: 400 !important;color: #333 !important;'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
const pages = getCurrentPages()
|
|
|
|
const { options } = pages[pages.length - 1]
|
|
|
|
this.id = options.id
|
|
|
|
this.getInfo()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// 获取详情
|
|
|
|
async getInfo() {
|
|
|
|
uni.showLoading({
|
|
|
|
title: '加载中'
|
|
|
|
})
|
|
|
|
const { data } = await orderDetail({
|
|
|
|
orderNumber: this.id
|
|
|
|
})
|
|
|
|
this.info = data
|
|
|
|
uni.hideLoading()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.block {
|
|
|
|
padding: 24rpx;
|
|
|
|
}
|
|
|
|
.title {
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.shop {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #333;
|
|
|
|
.logo {
|
|
|
|
width: 66rpx;
|
|
|
|
min-width: 66rpx;
|
|
|
|
height: 66rpx;
|
|
|
|
margin-right: 20rpx;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
.status {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 8rpx 28rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #fff;
|
|
|
|
background-color: $uni-primary;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.content {
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #333;
|
|
|
|
.item {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
}
|
|
|
|
.prod {
|
|
|
|
max-width: 70%;
|
|
|
|
}
|
|
|
|
.name {
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
font-size: 26rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.price {
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #8c8c8c;
|
|
|
|
}
|
|
|
|
.count {
|
|
|
|
font-size: 26rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.info {
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #333;
|
|
|
|
.line {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
}
|
|
|
|
.field {
|
|
|
|
color: #717171;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|