pad-app/pages/shipWork/index.vue

211 lines
4.1 KiB
Vue
Raw Normal View History

2023-07-05 10:56:11 +08:00
<template>
<view class="app">
<head-info></head-info>
<view class="container">
<side-bar path='3'></side-bar>
<view class="content">
<view class="form">
<view class="select">
<uni-data-select v-model="value" :localdata="range" @change="change">
</uni-data-select>
</view>
2023-07-06 17:08:59 +08:00
<view class="input">
<uni-easyinput class="input" suffixIcon="search" v-model="value1" placeholder="船名/航次"
@iconClick="iconClick">
</uni-easyinput>
</view>
2023-07-05 10:56:11 +08:00
</view>
<view class="itemList">
2023-07-13 11:18:17 +08:00
<view v-for="(item, index) in ltemList" :key="index" class="item" @click="toGo">
2023-07-05 10:56:11 +08:00
<view class="title">
<view class="name">
海王星领袖
</view>
</view>
2023-07-06 17:08:59 +08:00
<view class="table">
<view class="row">
<view class="nitem">
进口航次: <text>735546</text>
</view>
<view class="nitem">
贸易类型: <text>内贸</text>
</view>
</view>
<view class="row">
<view class="nitem">
出口航次: <text>555546</text>
</view>
<view class="nitem">
贸易类型: <text>外贸</text>
</view>
</view>
<view class="row">
<view class="nitem">
计划泊位: <text>一泊位</text>
</view>
<view class="nitem">
实际泊位: <text>一泊位</text>
</view>
</view>
<view class="row">
<view class="nitem" v-if="item==1">
<text class="green"></text> 已下载
<text>2023/09/21 12:00</text>
</view>
<view class="nitem" v-if="item==2">
<text></text> 未下载
</view>
<view class="nitem" v-if="item==1">
<text class="green"></text> 已上传
<text>2023/09/21 12:00</text>
</view>
<view class="nitem" v-if="item==2">
<text></text> 未上传
</view>
</view>
<view class="footer">
<view class="fitem">
下载
2023-07-05 10:56:11 +08:00
</view>
2023-07-06 17:08:59 +08:00
<view class="fitem">
上传
2023-07-05 10:56:11 +08:00
</view>
</view>
2023-07-13 11:18:17 +08:00
2023-07-05 10:56:11 +08:00
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import SideBar from '@/components/sider-bar/slider-bar';
import HeadInfo from '@/components/head-info/head-info';
export default {
data() {
return {
value: 0,
2023-07-13 11:18:17 +08:00
value1: '',
2023-07-05 10:56:11 +08:00
range: [{
value: 0,
2023-07-06 17:08:59 +08:00
text: "一号港"
2023-07-05 10:56:11 +08:00
},
{
value: 1,
2023-07-06 17:08:59 +08:00
text: "二号港"
2023-07-05 10:56:11 +08:00
},
{
value: 2,
2023-07-06 17:08:59 +08:00
text: "不冻港"
2023-07-05 10:56:11 +08:00
},
],
2023-07-06 17:08:59 +08:00
ltemList: [1, 2, 1, 1, 2, 1, 1, 1, 1],
2023-07-05 10:56:11 +08:00
}
},
onLoad() {
},
components: {
SideBar,
HeadInfo
},
methods: {
change(e) {
console.log("e:", e);
},
2023-07-13 11:18:17 +08:00
toGo() {
uni.navigateTo({
url: `/pages/shipWork/documentList`
})
}
2023-07-05 10:56:11 +08:00
}
};
</script>
<style>
.container {
background-color: #f5f6fa;
display: flex;
}
.content {
padding: 20px;
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.form {
display: flex;
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.select {
width: 100px;
}
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.input {
width: 200px;
height: 35px;
line-height: 35px;
margin-left: 15px;
}
}
.itemList {
width: 100%;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.item {
2023-07-06 17:08:59 +08:00
width: 49%;
2023-07-05 10:56:11 +08:00
margin-top: 15px;
2023-07-06 17:08:59 +08:00
margin-right: 2%;
2023-07-05 10:56:11 +08:00
border: 1px solid #c9cacb;
.title {
display: flex;
justify-content: space-between;
font-size: 21px;
2023-07-06 17:08:59 +08:00
padding: 10px 20px;
2023-07-05 10:56:11 +08:00
font-weight: 700;
}
.row {
display: flex;
justify-content: space-between;
font-size: 18px;
2023-07-06 17:08:59 +08:00
padding: 10px 20px;
2023-07-05 10:56:11 +08:00
2023-07-06 17:08:59 +08:00
.nitem {
width: 46%;
.text {
color: #929292;
}
2023-07-05 10:56:11 +08:00
}
}
2023-07-06 17:08:59 +08:00
.footer {
display: flex;
justify-content: space-between;
height: 60px;
line-height: 60px;
font-size: 21px;
background-color: #f7f9fa;
color: #8d8f8f;
.fitem {
width: 50%;
text-align: center;
}
}
2023-07-05 10:56:11 +08:00
}
.item:nth-child(2n) {
margin-right: 0;
}
}
}
2023-07-13 11:18:17 +08:00
</style>