2023-07-12 17:46:47 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="shipInfo">
|
2023-08-24 17:06:35 +08:00
|
|
|
|
<head-view :title="title" url="/pages/shipWork/documentList"></head-view>
|
2023-11-01 18:40:05 +08:00
|
|
|
|
<view class="container contentFixed">
|
2023-07-12 17:46:47 +08:00
|
|
|
|
<view class="ul">
|
2023-12-22 17:48:52 +08:00
|
|
|
|
<view class="li">
|
|
|
|
|
<p>船名:</p><text>{{shipInfo.vslCnname}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>总重:</p><text>{{shipInfo.vslGton}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>净重:</p>
|
|
|
|
|
<text>{{shipInfo.vslNetton}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>长度:</p>
|
|
|
|
|
<text>{{shipInfo.vslLoa}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>宽度:</p>
|
|
|
|
|
<text>{{shipInfo.vslBreadth}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>空载吃水:</p>
|
|
|
|
|
<text>{{shipInfo.vslDraftunload}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>重载吃水:</p>
|
|
|
|
|
<text>{{shipInfo.vslDraftload}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>舱口高度:</p>
|
|
|
|
|
<text>{{shipInfo.spmCabinht}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>最低作业潮水:</p>
|
|
|
|
|
<text>{{shipInfo.spmMintide}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>驾驶台位置:</p>
|
|
|
|
|
<text>{{shipInfo.spmCab}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>跳板中左:</p>
|
|
|
|
|
<text>{{shipInfo.spmBoardCentrele}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>跳板前左:</p>
|
|
|
|
|
<text>{{shipInfo.spmBoardFrontle}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>跳板后左:</p>
|
|
|
|
|
<text>{{shipInfo.spmBoardLaterle}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>跳板中右:</p>
|
|
|
|
|
<text>{{shipInfo.spmBoardCentrerg}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>跳板后右 :</p>
|
|
|
|
|
<text>{{shipInfo.spmBoardLaterrg}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>跳板前右:</p>
|
|
|
|
|
<text>{{shipInfo.spmBoardFrontrg}}</text>
|
|
|
|
|
</view>
|
2023-07-12 17:46:47 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-08-03 15:36:23 +08:00
|
|
|
|
import sqlite from "../../common/sqlite.js"
|
2023-07-21 17:25:04 +08:00
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2023-08-24 16:22:29 +08:00
|
|
|
|
title: "船名 - 船舶资料",
|
2023-08-03 15:36:23 +08:00
|
|
|
|
shipInfo: {},
|
2023-11-01 18:40:05 +08:00
|
|
|
|
vtpId: "",
|
2023-07-21 17:25:04 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
2023-11-01 18:40:05 +08:00
|
|
|
|
let title = uni.getStorageSync('shipWorkTitle')
|
|
|
|
|
this.title = `${title} / 船舶资料 `
|
|
|
|
|
this.vtpId = uni.getStorageSync('vtpId')
|
|
|
|
|
this.executeSql1('shipInfoTable')
|
2023-08-01 09:32:45 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-08-03 15:36:23 +08:00
|
|
|
|
// 查
|
|
|
|
|
executeSql1(tableName) {
|
2023-11-01 18:40:05 +08:00
|
|
|
|
let sql = `select * from ${tableName} WHERE vtpId = '${this.vtpId}'`
|
2023-08-03 15:36:23 +08:00
|
|
|
|
sqlite.executeSqlCeshi(sql).then((value) => {
|
|
|
|
|
// 在resolve时执行的回调函数
|
|
|
|
|
this.shipInfo = value[0]
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
// 在reject时执行的回调函数
|
|
|
|
|
console.error(error);
|
|
|
|
|
});
|
|
|
|
|
},
|
2023-07-21 17:25:04 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-12 17:46:47 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.shipInfo {
|
|
|
|
|
.container {
|
2023-12-22 17:48:52 +08:00
|
|
|
|
padding: 16px;
|
2023-07-12 17:46:47 +08:00
|
|
|
|
|
|
|
|
|
.ul {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
2023-12-22 17:48:52 +08:00
|
|
|
|
padding: 24px 16px;
|
|
|
|
|
background-color: #fff;
|
2023-07-12 17:46:47 +08:00
|
|
|
|
|
|
|
|
|
.li {
|
2023-12-22 17:48:52 +08:00
|
|
|
|
width: 32%;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
display: flex;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
text {
|
|
|
|
|
color: #23262E;
|
|
|
|
|
}
|
2023-07-12 17:46:47 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|