pad-app/pages/shipWork/documentList.vue

211 lines
4.4 KiB
Vue
Raw Normal View History

2023-07-11 15:28:40 +08:00
<template>
<view class="documentList">
<view class="container">
2023-08-18 17:28:11 +08:00
<view class="workBox">
<view class="title">
<image src="../../static/images/shipWork/zydz.png" mode=""></image>
<text>作业单证</text>
</view>
<view class="ul">
<view class="li" v-for="(item,index) in infoList" :key="index" @click="toGo(item.url)">
<image :src="item.imgUrl" mode=""></image>
<p>{{item.name}}</p>
<view class="uploadStatus" v-if="!item.status">
<text>未上传</text>
</view>
</view>
2023-07-18 17:37:15 +08:00
</view>
</view>
2023-08-18 17:28:11 +08:00
<view class="workBox">
<view class="title">
<image src="../../static/images/shipWork/qtzy.png" mode=""></image>
<text>其他作业</text>
</view>
<view class="ul">
<view class="li" v-for="(item,index) in otherListh" :key="index" @click="toGo(item.url)">
<image :src="item.imgUrl" mode=""></image>
<p>{{item.name}}</p>
</view>
2023-07-18 17:37:15 +08:00
</view>
</view>
2023-07-11 15:28:40 +08:00
</view>
</view>
</template>
<script>
2023-08-03 15:36:23 +08:00
import sqlite from "../../common/sqlite.js"
2023-07-11 15:28:40 +08:00
export default {
data() {
return {
infoList: [{
2023-07-17 17:10:05 +08:00
name: "杂项作业单",
2023-08-18 17:28:11 +08:00
url: "mixWork",
imgUrl: "../../static/images/shipWork/zxzyd.png",
status: false,
2023-07-17 17:10:05 +08:00
},
{
name: "系解缆",
2023-08-18 17:28:11 +08:00
url: "untieCord",
imgUrl: "../../static/images/shipWork/zxzyd.png",
status: false,
2023-07-17 17:10:05 +08:00
},
{
name: "供给",
2023-08-18 17:28:11 +08:00
url: "supply",
imgUrl: "../../static/images/shipWork/gj.png",
status: true,
2023-07-17 17:10:05 +08:00
},
{
name: "指导员作业布置",
2023-08-18 17:28:11 +08:00
url: "workAssign",
imgUrl: "../../static/images/shipWork/zybz.png",
status: true,
2023-07-17 17:10:05 +08:00
},
{
name: "船舶装卸通知单",
2023-08-18 17:28:11 +08:00
url: "notice",
imgUrl: "../../static/images/shipWork/tzd.png",
status: true,
2023-07-17 17:10:05 +08:00
},
{
name: "质量意见征询",
2023-08-18 17:28:11 +08:00
url: "opinion",
imgUrl: "../../static/images/shipWork/zlyj.png",
status: true,
2023-07-17 17:10:05 +08:00
},
{
name: "异常情况",
2023-08-18 17:28:11 +08:00
url: "abnormal",
imgUrl: "../../static/images/shipWork/yczk.png",
status: true,
2023-07-17 17:10:05 +08:00
},
{
name: "MAFI清单",
2023-08-18 17:28:11 +08:00
url: "mafi",
imgUrl: "../../static/images/shipWork/mafiqd.png",
status: true,
2023-07-17 17:10:05 +08:00
}
],
2023-07-11 15:28:40 +08:00
otherListh: [{
name: "安全巡检",
2023-08-18 17:28:11 +08:00
url: "patrol",
imgUrl: "../../static/images/shipWork/aqxj.png"
2023-07-11 15:28:40 +08:00
},
{
name: "船舶资料",
2023-08-18 17:28:11 +08:00
url: "shipInfo",
imgUrl: "../../static/images/shipWork/cbzl.png"
2023-07-11 15:28:40 +08:00
},
{
name: "船舶计划",
2023-08-18 17:28:11 +08:00
url: "shipPlan",
imgUrl: "../../static/images/shipWork/cbjh.png"
2023-07-11 15:28:40 +08:00
},
{
name: "作业查询",
2023-08-18 17:28:11 +08:00
url: "brandDetails",
imgUrl: "../../static/images/shipWork/zycx.png"
2023-07-11 15:28:40 +08:00
}
],
}
},
2023-07-18 17:37:15 +08:00
mounted() {
// this.executeSql1('shipOption')
2023-07-17 17:10:05 +08:00
},
2023-07-11 15:28:40 +08:00
methods: {
2023-08-03 15:36:23 +08:00
// 查
// executeSql1(tableName) {
// let sql = `select * from ${tableName}`
// sqlite.executeSqlCeshi(sql).then((value) => {
// // 在resolve时执行的回调函数
// console.log(value)
// }).catch((error) => {
// // 在reject时执行的回调函数
// console.error(error);
// });
// },
2023-07-11 15:28:40 +08:00
toGo(url) {
uni.navigateTo({
2023-07-18 17:37:15 +08:00
url: `/pages/shipWork/${url}`
2023-07-11 15:28:40 +08:00
})
2023-07-18 17:37:15 +08:00
},
2023-08-01 09:32:45 +08:00
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/index'
})
return true;
},
2023-07-11 15:28:40 +08:00
}
}
</script>
<style lang="less" scoped>
.documentList {
.container {
padding: 30px 20px;
2023-08-18 17:28:11 +08:00
.workBox {
background-color: #fff;
margin-bottom: 20px;
padding: 25px 16px;
}
2023-07-11 15:28:40 +08:00
.title {
2023-08-18 17:28:11 +08:00
display: flex;
image {
width: 18px;
height: 18px;
margin-top: 3px;
}
text {
margin-left: 10px;
font-size: 16px;
font-weight: bold;
}
2023-07-11 15:28:40 +08:00
}
2023-07-18 17:37:15 +08:00
.ul {
2023-07-11 15:28:40 +08:00
display: flex;
flex-wrap: wrap;
2023-07-18 17:37:15 +08:00
.li {
2023-07-11 15:28:40 +08:00
margin: 10px 20px;
2023-08-18 17:28:11 +08:00
width: 195px;
height: 70px;
line-height: 70px;
box-shadow: 1px 1px 6px 0 rgba(52, 52, 52, 0.20);
border-radius: 8px;
display: flex;
position: relative;
overflow: hidden;
2023-07-11 15:28:40 +08:00
2023-08-18 17:28:11 +08:00
image {
width: 38px;
height: 38px;
margin: 16px;
2023-07-11 15:28:40 +08:00
}
2023-07-12 17:46:47 +08:00
p {
2023-08-18 17:28:11 +08:00
color: #23262E;
2023-07-11 15:28:40 +08:00
font-size: 16px;
2023-08-18 17:28:11 +08:00
font-weight: bold;
}
.uploadStatus {
padding: 0 8px;
height: 20px;
line-height: 20px;
background: #FFF7EE;
border-radius: 4px;
color: #FC8300;
position: absolute;
right: 0;
top: 0;
2023-07-11 15:28:40 +08:00
}
}
}
}
}
</style>