|
|
|
@ -1,18 +1,22 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="wrap"> |
|
|
|
|
<view class="block"> |
|
|
|
|
<view class="title">编号134561321</view> |
|
|
|
|
<view class="title">编号{{ id }}</view> |
|
|
|
|
<view class="shop"> |
|
|
|
|
<image class="logo" :src="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 class="item"> |
|
|
|
|
<text class="name">测试11</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<text class="name">测试11</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<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> |
|
|
|
@ -20,28 +24,28 @@ |
|
|
|
|
<view class="title">采购方信息</view> |
|
|
|
|
<view class="info"> |
|
|
|
|
<view class="line"> |
|
|
|
|
<text class="field">采购内容</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<text class="field">采购人</text> |
|
|
|
|
<text>{{ info.purchasingPerson }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<text class="field">联系方式</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<text>{{ info.phone }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<text class="field">采购类型</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<text>{{ info.orderType === 1 ? '个人' : '组织' }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<text class="field">所属幼儿园</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<text>{{ info.shopName }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<text class="field">提交时间</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<text>{{ info.createTime }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<text class="field">幼儿园是否已认证/是否已实名</text> |
|
|
|
|
<text>测试11</text> |
|
|
|
|
<text>{{ info.authentication }}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -49,19 +53,21 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { queryTeamInfo } from '@/apis/modules/user.js' |
|
|
|
|
import { orderDetail } from '@/apis/modules/order.js' |
|
|
|
|
import Common from '@/config/common' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
teamId: '', |
|
|
|
|
form: { |
|
|
|
|
Common, |
|
|
|
|
id: '', |
|
|
|
|
info: { |
|
|
|
|
orderItemDtos: [], |
|
|
|
|
classificationName: '', |
|
|
|
|
slogan: '', |
|
|
|
|
briefIntroduction: '', |
|
|
|
|
address: '', |
|
|
|
|
phone: '' |
|
|
|
|
}, |
|
|
|
|
curPic: 0, |
|
|
|
|
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;' |
|
|
|
@ -71,7 +77,7 @@ |
|
|
|
|
onShow() { |
|
|
|
|
const pages = getCurrentPages() |
|
|
|
|
const { options } = pages[pages.length - 1] |
|
|
|
|
this.teamId = options.teamId |
|
|
|
|
this.id = options.id |
|
|
|
|
this.getInfo() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -80,27 +86,12 @@ |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中' |
|
|
|
|
}) |
|
|
|
|
const res = await queryTeamInfo({ |
|
|
|
|
teamId: this.teamId |
|
|
|
|
const { data } = await orderDetail({ |
|
|
|
|
orderNumber: this.id |
|
|
|
|
}) |
|
|
|
|
const data = res.teamInfo |
|
|
|
|
if (data) { |
|
|
|
|
// 处理描述图片 |
|
|
|
|
if (data.pictureUrl) { |
|
|
|
|
this.desPics = data.pictureUrl.split(',') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.form = data |
|
|
|
|
this.info = data |
|
|
|
|
uni.hideLoading() |
|
|
|
|
}, |
|
|
|
|
// 描述图片切换 |
|
|
|
|
picChange(e) { |
|
|
|
|
this.curPic = e.detail.current; |
|
|
|
|
}, |
|
|
|
|
// tab切换 |
|
|
|
|
tabChange(id) { |
|
|
|
|
this.curTab = id |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
@ -109,30 +100,73 @@ |
|
|
|
|
.block { |
|
|
|
|
padding: 24rpx; |
|
|
|
|
} |
|
|
|
|
.content { |
|
|
|
|
.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 { |
|
|
|
|
width: 50%; |
|
|
|
|
color: #ccc; |
|
|
|
|
margin-bottom: 10rpx; |
|
|
|
|
font-size: 26rpx; |
|
|
|
|
color: #333; |
|
|
|
|
} |
|
|
|
|
.price { |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
color: #8c8c8c; |
|
|
|
|
} |
|
|
|
|
.count { |
|
|
|
|
font-size: 26rpx; |
|
|
|
|
color: #333; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.info { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
font-size: 28rpx; |
|
|
|
|
color: #333; |
|
|
|
|
.line { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 20rpx; |
|
|
|
|
} |
|
|
|
|
.field { |
|
|
|
|
color: #ccc; |
|
|
|
|
color: #717171; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|