<template>
	<view class="app">
		<head-info :navIndex="5"></head-info>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loginObj: {},
			}
		},
		mounted() {
			this.loginObj = uni.getStorageSync('loginObj')
			this.getInfo()
		},
		methods: {
			getInfo() {
				// 一级页面   /shp/iEDeliverySlipController/page GET
				// 二级页面 	/shp/iEDeliverySlipController/planPage?vvyId=2455a195e549db737fa4431f91995e46&importExportFlag=E  航次 进出口标识 GET
				// 二级页面质损	/shp/iEDeliverySlipController/iEDeliverySlipPlanDamage splId 进出口标识 POST
				// 提交签名 /vesselVoyages/vvyId 根据ID更新 可修改总指令装船要求 	PUT
				let obj = {
					splId: "b3a2141b0ec99635f7bd69d1bd3b4a8a",
					importExportFlag: "E"
				}
				uni.request({
					url: `${this.$local}/shp/iEDeliverySlipController/iEDeliverySlipPlanDamage`,
					data: obj,
					header: {
						'Content-Type': 'application/json', //自定义请求头信息
						'Authorization': `Bearer ${this.loginObj.access_token}`
					},
					method: 'POST', //请求方式，必须为大写
					success: (res) => {
						console.log(res)
					}
				})
			}
		}
	}
</script>

<style>
</style>