2023-07-12 17:46:47 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="mafi">
|
|
|
|
|
<view class="container">
|
2023-07-20 17:16:08 +08:00
|
|
|
|
<view class="ul">
|
|
|
|
|
<view class="li" v-for="(item,index) in infoList" :key="index" @click="add('look',item,index)">
|
|
|
|
|
<view class="title">马菲板号:{{item.mafiBarcode}}</view>
|
|
|
|
|
<p>上传状态:未上传</p>
|
|
|
|
|
<p>尺码:{{item.size}}</p>
|
|
|
|
|
<p>类型:{{item.lxTextValue}}</p>
|
|
|
|
|
<p>装卸方式:{{item.loaderType}}</p>
|
|
|
|
|
<p>航次:{{item.vvyName}}</p>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-12 17:46:47 +08:00
|
|
|
|
<view class="addBtn" @click="add('add')">+ 新增</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2023-07-20 17:16:08 +08:00
|
|
|
|
shipInfo: {},
|
|
|
|
|
infoList: []
|
2023-07-12 17:46:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-20 17:16:08 +08:00
|
|
|
|
mounted() {
|
|
|
|
|
this.shipInfo = uni.getStorageSync('shipInfo')
|
|
|
|
|
this.infoList = uni.getStorageSync('addMafiArr')
|
|
|
|
|
},
|
2023-07-12 17:46:47 +08:00
|
|
|
|
methods: {
|
2023-07-20 17:16:08 +08:00
|
|
|
|
add(state, item, index) {
|
|
|
|
|
if (state != 'add') {
|
|
|
|
|
uni.setStorageSync('mafiRow', item);
|
|
|
|
|
uni.setStorageSync('mafiRowIndex', index);
|
|
|
|
|
}
|
2023-07-12 17:46:47 +08:00
|
|
|
|
const obj = {
|
|
|
|
|
state: state,
|
|
|
|
|
}
|
|
|
|
|
const params = encodeURIComponent(JSON.stringify(obj));
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/shipWork/mafiAdd?params=${params}`
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.mafi {
|
|
|
|
|
.container {
|
|
|
|
|
padding: 30px 20px;
|
|
|
|
|
|
2023-07-20 17:16:08 +08:00
|
|
|
|
.ul {
|
2023-07-12 17:46:47 +08:00
|
|
|
|
padding: 20px 0;
|
|
|
|
|
|
2023-07-20 17:16:08 +08:00
|
|
|
|
.li {
|
2023-07-12 17:46:47 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shift {
|
|
|
|
|
p {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.state {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.addBtn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
right: 50px;
|
|
|
|
|
bottom: 50px;
|
|
|
|
|
width: 100px;
|
|
|
|
|
height: 100px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: #2979ff;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 100px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|