You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.7 KiB
79 lines
1.7 KiB
<style lang="scss" scoped>
|
|
.container{
|
|
padding:30rpx;
|
|
background:#F6F6F6;
|
|
min-height:100%;
|
|
.card{
|
|
margin:0;
|
|
.item{
|
|
border-top:2rpx solid rgba(216,216,216,0.4);
|
|
height:80rpx;
|
|
display:flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
color:#777;
|
|
font-size:28rpx;
|
|
text{
|
|
&:first-child{
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
<template>
|
|
<view class="container">
|
|
<view class="card">
|
|
<view class="title">基本信息</view>
|
|
|
|
<view class="item">
|
|
<text>仓库名称</text> <text>{{detail.warehouseName}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text>仓库位置</text> <text>{{detail.warehouseAddress}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text>仓库容量</text> <text>{{detail.warehouseVolume}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text>仓库类型</text> <text>{{detail.warehouseType}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text>仓库管理员</text> <text>{{detail.warehouseKeeper}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text>库管员电话</text> <text>{{detail.warehouseKeeperTelephone}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import request from '@/common/request.js'
|
|
export default{
|
|
data(){
|
|
return{
|
|
detail:{}
|
|
}
|
|
},
|
|
onLoad(options){
|
|
this.getDetail(options.id)
|
|
},
|
|
methods:{
|
|
async getDetail(warehouseId){
|
|
var res=await request("/api/WarehouseManageApi/querysWarehouseDetails",{
|
|
params:{warehouseId}
|
|
})
|
|
if(res.statu){
|
|
this.detail=res.data
|
|
}else{
|
|
uni.showModal({
|
|
title:"提示",
|
|
content:res.msg||"获取仓库详情失败!",
|
|
showCancel:false,
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|