2023-07-12 13:48:01 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="shiftDetails">
|
|
|
|
|
<view class="container">
|
|
|
|
|
<custom-tabs type="c1" :value="value" @change="changeIndex">
|
|
|
|
|
<custom-tab-pane label="工班信息" name="c1_1">
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view></view>
|
|
|
|
|
<view class="ul">
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>船名:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{shipInfo.voyageScheduleDataList[0].spmName}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>航次:</p>
|
2023-08-03 15:36:23 +08:00
|
|
|
|
<text>{{dataInfo.vvyName}}</text>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>进出口:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{shipInfo.voyageScheduleDataList[0].importExportFlagName}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>贸易类型:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{shipInfo.voyageScheduleDataList[0].tradeTypeName}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>装卸类型:</p>
|
2023-08-01 09:32:45 +08:00
|
|
|
|
<text> {{dataInfo.loadTypeName}}</text>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-24 16:56:46 +08:00
|
|
|
|
<view class="ul bUl borTop" v-for="(item,index) in dataInfo.shiftList" :key="index + 'a'">
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>工班:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text> {{item.gbTextValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>作业时间:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text> {{item.startTime}} - {{item.endTime}}</text>
|
|
|
|
|
</view>
|
2023-07-24 16:56:46 +08:00
|
|
|
|
<view class="ul bUl" v-for="(item2,index2) in item.ulList2" :key="index2 + 'b'">
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>车型:</p>
|
|
|
|
|
<text>{{item2.cxTextValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
|
|
|
|
<p>数量:</p>
|
|
|
|
|
<text>{{item2.numValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li wLi">
|
|
|
|
|
<p>备注:</p>
|
|
|
|
|
<text>{{item2.notes}}</text>
|
|
|
|
|
</view>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
</custom-tab-pane>
|
|
|
|
|
<custom-tab-pane label="翻仓信息" name="c1_2">
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view class="fcInfo" v-for="(item,index) in dataInfo.fcList" :key="index + 'fc'">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<view class="fcBox">
|
|
|
|
|
<p>翻舱类型:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item.fcTextValue}}</text>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
</view>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view class="ul" v-for="(item2,index2) in item.fcUlList2" :key="index2 + 'info'">
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>航次:</p>
|
2023-08-03 15:36:23 +08:00
|
|
|
|
<text>{{dataInfo.vvyName}}</text>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>翻舱起点:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item2.qdValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>翻舱终点:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item2.zdValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>作业时间:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item2.startTime}} - {{item2.endTime}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>数量:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item2.numValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>体积:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item2.tjValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>重量:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{item2.zlValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
</view>
|
|
|
|
|
</custom-tab-pane>
|
|
|
|
|
<custom-tab-pane label="其他信息" name="c1_3">
|
|
|
|
|
<view class="otherInfo">
|
|
|
|
|
<p class="title">辅助作业</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view class="ul">
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>技术工人:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.jsWorker}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>普通工人:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.ptworker}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>作业时间:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.startTime}} - {{dataInfo.otherList.endTime}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>重量:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.zlValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>体积:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.tjValue}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="li wLi">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>描述:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.describe}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p class="title">待工作业</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view class="ul">
|
|
|
|
|
<view class="li wLi">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>描述:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.dgWork}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p class="title">作业备注</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<view class="ul">
|
|
|
|
|
<view class="li wLi">
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<p>描述:</p>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<text>{{dataInfo.otherList.notes}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
</view>
|
|
|
|
|
</custom-tab-pane>
|
|
|
|
|
</custom-tabs>
|
2023-07-24 16:56:46 +08:00
|
|
|
|
<uni-popup ref="popup" type="dialog">
|
|
|
|
|
<uni-popup-dialog type="error" confirmText="确定" title="通知" content="是否删除此条数据"
|
|
|
|
|
@confirm="delConfirm"></uni-popup-dialog>
|
|
|
|
|
</uni-popup>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
<view class="btnList">
|
|
|
|
|
<van-button type="default" @click="cancel">取消</van-button>
|
2023-07-20 17:16:08 +08:00
|
|
|
|
<van-button type="danger" @click="del">删除</van-button>
|
2023-07-19 18:12:19 +08:00
|
|
|
|
<van-button type="info" @click="edit('edit')">编辑</van-button>
|
2023-07-12 13:48:01 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2023-07-17 17:10:05 +08:00
|
|
|
|
value: 0,
|
2023-07-19 18:12:19 +08:00
|
|
|
|
shipInfo: {
|
|
|
|
|
voyageScheduleDataList: [{
|
|
|
|
|
spmName: "",
|
|
|
|
|
importExportFlagName: "",
|
|
|
|
|
tradeTypeName: ""
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
dataInfo: {
|
|
|
|
|
otherList: {}
|
|
|
|
|
},
|
|
|
|
|
shiftRowIndex: 0,
|
2023-07-12 13:48:01 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-19 18:12:19 +08:00
|
|
|
|
mounted() {
|
|
|
|
|
this.shipInfo = uni.getStorageSync('shipInfo')
|
|
|
|
|
this.dataInfo = uni.getStorageSync('shiftRow')
|
|
|
|
|
this.shiftRowIndex = uni.getStorageSync('shiftRowIndex')
|
|
|
|
|
},
|
2023-07-12 13:48:01 +08:00
|
|
|
|
methods: {
|
|
|
|
|
changeIndex(e) {
|
|
|
|
|
// console.log('选中:', e)
|
|
|
|
|
},
|
|
|
|
|
// 取消
|
|
|
|
|
cancel() {
|
2023-07-26 14:34:20 +08:00
|
|
|
|
uni.setStorageSync('tabsType', 1);
|
2023-07-12 13:48:01 +08:00
|
|
|
|
uni.navigateTo({
|
2023-07-26 14:34:20 +08:00
|
|
|
|
url: '/pages/shipWork/mixWork'
|
2023-07-19 18:12:19 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2023-07-24 16:56:46 +08:00
|
|
|
|
// 弹框删除
|
|
|
|
|
delConfirm() {
|
2023-07-19 18:12:19 +08:00
|
|
|
|
let addShiftArr = uni.getStorageSync('addShiftArr')
|
|
|
|
|
addShiftArr.splice(this.shiftRowIndex, 1)
|
|
|
|
|
uni.setStorageSync('addShiftArr', addShiftArr);
|
2023-07-26 14:34:20 +08:00
|
|
|
|
uni.setStorageSync('tabsType', 1);
|
2023-07-19 18:12:19 +08:00
|
|
|
|
uni.navigateTo({
|
2023-07-26 14:34:20 +08:00
|
|
|
|
url: '/pages/shipWork/mixWork'
|
2023-07-19 18:12:19 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2023-07-24 16:56:46 +08:00
|
|
|
|
// 删除
|
|
|
|
|
del() {
|
|
|
|
|
this.$refs.popup.open()
|
|
|
|
|
},
|
2023-07-19 18:12:19 +08:00
|
|
|
|
// 编辑
|
|
|
|
|
edit(state) {
|
|
|
|
|
this.obj = {
|
|
|
|
|
state: state
|
|
|
|
|
};
|
|
|
|
|
const params = encodeURIComponent(JSON.stringify(this.obj));
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/shipWork/shiftAdd?params=${params}`
|
2023-07-12 13:48:01 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2023-08-01 09:32:45 +08:00
|
|
|
|
onBackPress(event) {
|
|
|
|
|
uni.setStorageSync('tabsType', 1);
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/shipWork/mixWork'
|
|
|
|
|
})
|
|
|
|
|
return true;
|
|
|
|
|
},
|
2023-07-12 13:48:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.shiftDetails {
|
|
|
|
|
.container {
|
|
|
|
|
padding: 30px 20px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
|
|
.fcInfo {
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
|
|
|
|
|
|
.fcBox {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
line-height: 35px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.otherInfo {
|
|
|
|
|
.title {
|
|
|
|
|
margin: 20px 0;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
border-left: 5px solid #2979ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-19 18:12:19 +08:00
|
|
|
|
.ul {
|
2023-07-12 13:48:01 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
2023-07-19 18:12:19 +08:00
|
|
|
|
.li {
|
2023-07-12 13:48:01 +08:00
|
|
|
|
width: 45%;
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
line-height: 35px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
min-width: 85px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wLi {
|
|
|
|
|
width: calc(100% - 150px);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-19 18:12:19 +08:00
|
|
|
|
.bUl {
|
2023-07-24 16:56:46 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.borTop {
|
2023-07-19 18:12:19 +08:00
|
|
|
|
border-top: 1px solid #999;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-24 16:56:46 +08:00
|
|
|
|
.borBtm {
|
|
|
|
|
border-bottom: 1px solid #999;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-12 13:48:01 +08:00
|
|
|
|
.btnList {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
|
|
/deep/ .van-button {
|
|
|
|
|
margin: 30px 20px;
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|