2023-07-06 17:08:59 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="app">
|
|
|
|
|
<head-info></head-info>
|
|
|
|
|
<view class="container">
|
|
|
|
|
<side-bar path='5'></side-bar>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="form">
|
2023-07-10 17:11:31 +08:00
|
|
|
|
<button type="primary" class="button" @click="add">
|
2023-07-06 17:08:59 +08:00
|
|
|
|
<uni-icons type="plusempty" color="#fff" size="20"></uni-icons>新增
|
|
|
|
|
</button>
|
|
|
|
|
<view class="right">
|
|
|
|
|
<uni-easyinput suffixIcon="search" v-model="value" placeholder="船名/航次" @iconClick="iconClick">
|
|
|
|
|
</uni-easyinput>
|
|
|
|
|
<view class="select">
|
|
|
|
|
<uni-data-select v-model="value1" :localdata="range1" @change="change">
|
|
|
|
|
</uni-data-select>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="select">
|
|
|
|
|
<uni-data-select v-model="value2" :localdata="range2" @change="change">
|
|
|
|
|
</uni-data-select>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="select">
|
|
|
|
|
<uni-data-select v-model="value3" :localdata="range3" @change="change">
|
|
|
|
|
</uni-data-select>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="itemList">
|
|
|
|
|
<view class="item" v-for="item in itemList" :key="item.index">
|
|
|
|
|
<view class="row">
|
|
|
|
|
<view class="col weight">
|
|
|
|
|
CJH290387532753799
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
品牌:特斯拉
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
车型:轿车
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row">
|
|
|
|
|
<view class="col">
|
|
|
|
|
船名:运程10
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
航次:HC867468096
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
场位:A2-09-08
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row">
|
|
|
|
|
<view class="col">
|
|
|
|
|
货物状态:已装船
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
2023-07-10 17:11:31 +08:00
|
|
|
|
作业时间:2023/09/08 14:00
|
2023-07-06 17:08:59 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
作业人:张星星
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row">
|
|
|
|
|
<view class="col">
|
|
|
|
|
质损发生环节:收车交接
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
质损概况:碰撞
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col">
|
|
|
|
|
处置情况:带伤发运
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="rowFoot">
|
|
|
|
|
<view class="col">
|
|
|
|
|
详情
|
|
|
|
|
</view>
|
2023-07-10 17:11:31 +08:00
|
|
|
|
<view class="col" @click="edit">
|
2023-07-06 17:08:59 +08:00
|
|
|
|
编辑
|
|
|
|
|
</view>
|
|
|
|
|
</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 {
|
2023-07-10 17:11:31 +08:00
|
|
|
|
value: '',
|
|
|
|
|
value1: '',
|
|
|
|
|
value2: '',
|
|
|
|
|
value3: '',
|
2023-07-06 17:08:59 +08:00
|
|
|
|
range1: [{
|
2023-07-10 17:11:31 +08:00
|
|
|
|
value: 0,
|
|
|
|
|
text: "一号港"
|
|
|
|
|
}, ],
|
2023-07-06 17:08:59 +08:00
|
|
|
|
range2: [{
|
2023-07-10 17:11:31 +08:00
|
|
|
|
value: 0,
|
|
|
|
|
text: "一号港"
|
|
|
|
|
}, ],
|
2023-07-06 17:08:59 +08:00
|
|
|
|
range3: [{
|
2023-07-10 17:11:31 +08:00
|
|
|
|
value: 0,
|
|
|
|
|
text: "一号港"
|
|
|
|
|
}, ],
|
2023-07-06 17:08:59 +08:00
|
|
|
|
itemList: [1, 1, 1, 1, 2, 1, 1, 1, 1],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
SideBar,
|
|
|
|
|
HeadInfo
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
iconClick(type) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: `点击了${type==='prefix'?'左侧':'右侧'}的图标`,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
change(e) {
|
|
|
|
|
console.log(e);
|
2023-07-10 17:11:31 +08:00
|
|
|
|
},
|
|
|
|
|
// 点击新增
|
|
|
|
|
add() {
|
|
|
|
|
console.log("新增")
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: 'pages/monitor/edit'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 点击编辑
|
|
|
|
|
edit() {
|
|
|
|
|
console.log("编辑")
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: 'pages/monitor/edit'
|
|
|
|
|
})
|
|
|
|
|
},
|
2023-07-06 17:08:59 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.container {
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
|
|
.form {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
height: 40px;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
|
|
|
|
|
.button {
|
|
|
|
|
width: 90px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right {
|
|
|
|
|
width: 600px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.select {
|
|
|
|
|
width: 130px;
|
|
|
|
|
margin-left: 20px;
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.uni-select {
|
|
|
|
|
height: 40px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.itemList {
|
|
|
|
|
margin-top: 30px;
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.item {
|
|
|
|
|
height: 110px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
border-bottom: 2px solid #e9e9e9;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.weight {
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
}
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.row {
|
|
|
|
|
width: 22%;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
2023-07-10 17:11:31 +08:00
|
|
|
|
|
2023-07-06 17:08:59 +08:00
|
|
|
|
.rowFoot {
|
|
|
|
|
width: 12%;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
color: #1890ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-10 17:11:31 +08:00
|
|
|
|
</style>
|