You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uni-Identify-quality/pages/order-goods/order-details.vue

293 lines
8.8 KiB
Vue

1 year ago
<template>
1 year ago
<div class="order-details" >
1 year ago
<title-block class="title-block" title="订单详情">
1 year ago
<template #left>
<div> <image style="width: 112rpx;height: 52rpx" src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/785cf885-c4c9-44b3-8155-4b39988c7ef8.png" @click="back"></image></div>
</template>
</title-block>
<div :style="{height:`${distance}px`}" style="overflow-y: auto">
<div style="padding-bottom: 128rpx">
<div class="content2">
1 year ago
<image :src="info.artworkImg"></image>
1 year ago
</div>
<div class="content3">
<div class="wrap1">
<div class="wrap1_1">
<div class="wrap1_1_1">画作编号</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkNum"/>
</div>
<div class="wrap1_1_4"></div>
1 year ago
</div>
1 year ago
<div class="wrap1_1">
<div class="wrap1_1_1">画作名称</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkName"/>
</div>
<div class="wrap1_1_4"></div>
1 year ago
</div>
1 year ago
<div class="wrap1_1">
<div class="wrap1_1_1">画家名称</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artistName"/>
</div>
<div class="wrap1_1_4">
</div>
</div>
<div class="wrap1_1">
<div class="wrap1_1_1">画作平尺数</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkSquareSize"/>
</div>
1 year ago
</div>
1 year ago
</div>
1 year ago
<div class="wrap2"></div>
</div>
<div class="content3" >
<div class="wrap1">
<div class="wrap1_1">
<div class="wrap1_1_1">订单编号</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkNum"/>
1 year ago
</div>
1 year ago
<div class="wrap1_1_4"></div>
</div>
<div class="wrap1_1">
<div class="wrap1_1_1">订单状态</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled :placeholder-style="statusValue.find(x=>x.value===info.artworkStatus).style" :placeholder="statusValue.find(x=>x.value===info.artworkStatus).label"/>
1 year ago
</div>
1 year ago
<div class="wrap1_1_4"></div>
</div>
<div class="wrap1_1">
<div class="wrap1_1_1">寄存地址</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #76C458;font-size: 24rpx;" :placeholder="info.warehouseName"/>
1 year ago
</div>
1 year ago
<div class="wrap1_1_4">
</div>
</div>
<div class="wrap1_1" style="position: relative;">
<div class="wrap1_1_1" >寄存时限</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3" >
1 year ago
<div class="wrap1_1_3_1" style="position: absolute;display: flex;align-items:center;top: 50%;transform: translateY(-50%);">
1 year ago
<div class="wrap1_1_3_1_1" style="width: 70rpx;color:#fff;height: 30rpx;background: #76C458;font-size: 16rpx;display: flex;justify-content: center;align-items: center;margin-right: 2rpx">{{info.cycleName}}</div>
12 months ago
<div v-if="info.artworkStatus!==1" class="wrap1_1_3_1_2" style="color: #939393;font-size: 24rpx;vertical-align: middle">{{`${info.startAt.replaceAll('-','.') || '' }-${info.endAt.replaceAll('-','.') || ''}`}}</div>
1 year ago
</div>
</div>
1 year ago
<div class="wrap1_1_4">
1 year ago
1 year ago
</div>
</div>
1 year ago
<div class="wrap1_1" style="position: relative;">
1 year ago
<div class="wrap1_1_1">剩余天数</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
9 months ago
<div class="wrap1_1_3_1" style="position: absolute;display: flex;align-items:center;top: 50%;transform: translateY(-50%)">
<div class="wrap1_1_3_1_1" style="width: 110rpx;color:#FF4848;height: 30rpx;font-size: 24rpx;display: flex;justify-content: start;align-items: center;margin-right: 2rpx">{{info.levelDays}}</div>
12 months ago
<div v-if="info.artworkStatus===4" class="wrap1_1_3_1_2" style="color: #FF4848;font-size: 16rpx;vertical-align: middle">{{info.endAt || ''}}</div>
1 year ago
</div>
1 year ago
</div>
<div class="wrap1_1_4">
</div>
</div>
<div class="wrap1_1">
<div class="wrap1_1_1">订单金额</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="`${info.money}元`"/>
</div>
<div class="wrap1_1_4">
</div>
</div>
<div class="wrap1_1">
<div class="wrap1_1_1">每日集保金额</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="`${info.dayMoney}元`"/>
</div>
<div class="wrap1_1_4">
</div>
</div>
<div class="wrap1_1">
<div class="wrap1_1_1">待补款金额</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input disabled placeholder-style="color: #FF4848;font-size: 24rpx;" :placeholder="`${info.supplementMoney}元`"/>
</div>
1 year ago
1 year ago
</div>
1 year ago
</div>
1 year ago
<div class="wrap2"></div>
</div>
</div>
</div>
1 year ago
</div>
</template>
<script>
1 year ago
import {postDataByParams} from "../../http/service";
1 year ago
export default {
1 year ago
name: "order-details",
1 year ago
data(){
return{
distance:'',
ID:'',
info: {},
statusValue: [{label: '全部状态', value: 0}, {label: '待入库', value: 1,style:'color: #FFBA00;font-size: 24rpx'}, {
label: '已入库',
value: 2,
style:'color: #76C458;font-size: 24rpx'
9 months ago
}, {label: '即将到期', value: 3,style:'color: #FF4848;font-size: 24rpx'}, {label: '延期未补款', value: 4,style:'color: #FF4848;font-size: 24rpx'}, {label: '已取出', value: 5, style:'font-size: 24rpx'}, {label: '延期已补款', value: 7}]
1 year ago
}
},
computed:{
daysRemainingStyle(){
switch (this.info.artworkStatus){
case 1:
case 2:
case 3:
case 5:
return 'color: #939393;font-size: 24rpx;'
case 4:{
return 'color: #FF4848;font-size: 24rpx;'
}
}
}
},
1 year ago
mounted() {
1 year ago
if (this.$mp.query.ID) {
this.ID=this.$mp.query.ID
}
1 year ago
this.getData()
1 year ago
uni.createSelectorQuery().select('.title-block').boundingClientRect(data => {
let res = uni.getSystemInfoSync();
const distance = res.windowHeight - data.bottom;
this.distance = distance
}).exec()
1 year ago
},
methods: {
1 year ago
back(){
uni.navigateBack()
},
1 year ago
async getData() {
1 year ago
const res = await postDataByParams('/api/warehouse/detail',{ID:Number(this.ID)})
if (res.code===200){
this.info=res.data
}else {
uni.showToast({
title: res.msg,
icon:'none'
})
}
1 year ago
console.log(res, 'res')
}
}
1 year ago
}
</script>
<style scoped lang="scss">
1 year ago
.order-details {
1 year ago
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
1 year ago
box-sizing: border-box;
1 year ago
overflow: hidden;
1 year ago
padding-left: 30rpx;
padding-right: 30rpx;
background-size: cover;
width: 100vw;
height: 100vh;
1 year ago
.content3 {
1 year ago
margin-top: 60rpx;
1 year ago
.wrap1 {
1 year ago
border: 1rpx dashed #DFE9F0;
background-color: #fff;
1 year ago
.wrap1_1 {
1 year ago
position: relative;
height: 114rpx;
display: flex;
align-items: center;
1 year ago
.wrap1_1_4 {
1 year ago
left: 50%;
transform: translateX(-50%);
bottom: 0;
position: absolute;
height: 0;
width: 636rpx;
1 year ago
border-bottom: 0.5px solid #626262;
1 year ago
}
1 year ago
.wrap1_1_2 {
1 year ago
margin-right: 36rpx;
width: 0;
height: 66rpx;
1 year ago
border-left: 0.5px solid #626262;
1 year ago
}
1 year ago
.wrap1_1_1 {
width: 210rpx;
1 year ago
padding-left: 32rpx;
color: #626262;
font-size: 24rpx;
}
}
}
}
1 year ago
.content2 {
1 year ago
margin-top: 42rpx;
display: flex;
justify-content: center;
1 year ago
image {
1 year ago
width: 404rpx;
height: 306rpx;
}
}
1 year ago
.content1 {
1 year ago
display: flex;
align-items: center;
justify-content: space-between;
1 year ago
.wrap1 {
image {
1 year ago
width: 112rpx;
height: 52rpx;
}
}
1 year ago
.wrap2 {
1 year ago
color: #4E964D;
font-size: 32rpx;
}
1 year ago
.wrap3 {
image {
1 year ago
width: 40rpx;
height: 40rpx;
}
}
}
}
</style>