Commit 7885e008 authored by 贺世双's avatar 贺世双

修改

parent ac6110ef
......@@ -40,7 +40,7 @@
<button class="flex_cen flex_center" @click="onBookingConfirm()">订舱确认</button>
<button class="flex_cen flex_center" @click="onLadingUpload()">提单上传</button>
<button class="flex_cen flex_center" style="margin-top: 24rpx;" @click="onChangeShippingDate()">修改船期</button>
<button class="flex_cen flex_center" @click="onAbnormalEvent()">异常上报</button>
<button class="flex_cen flex_center" style="margin-top: 24rpx;" @click="onAbnormalEvent()">异常上报</button>
</view>
</view>
......@@ -122,13 +122,14 @@
}
.shipment-state {
font-size: 24rpx;
font-size: 30rpx;
color: #F7A64A;
line-height: 33rpx;
padding: 6rpx 24rpx;
border-radius: 8rpx;
background: rgba(247, 166, 74, .1);
text-shadow: 1rpx 3rpx 12rpx rgba(0, 0, 0, 0.04);
font-weight: 600;
}
.shipmenting {
......
......@@ -96,13 +96,14 @@
}
.shipment-state {
font-size: 24rpx;
font-size: 30rpx;
color: #F7A64A;
line-height: 33rpx;
padding: 6rpx 24rpx;
border-radius: 8rpx;
background: rgba(247, 166, 74, .1);
text-shadow: 1rpx 3rpx 12rpx rgba(0, 0, 0, 0.04);
font-weight: 600;
}
.shipmenting {
......
......@@ -112,13 +112,14 @@
.shipment-state {
font-size: 24rpx;
font-size: 30rpx;
color: #F7A64A;
line-height: 33rpx;
padding: 6rpx 24rpx;
border-radius: 8rpx;
background: rgba(247, 166, 74, .1);
text-shadow: 1rpx 3rpx 12rpx rgba(0, 0, 0, 0.04);
font-weight: 600;
}
.shipmenting {
......
......@@ -304,7 +304,15 @@
const rows = getApp().globalData.bookingConfirm;
this.formData.rows= rows;
this.formData.bl_event_code="booking_confirmed";
this.formData.event_date= this.formatDate(this.formData.event_date)
this.formData.etd= this.formatDate(this.formData.etd)
this.formData.estimated_pack_time= this.formatDate(this.formData.estimated_pack_time)
this.formData.eta= this.formatDate(this.formData.eta)
this.formData.epo= this.formatDate(this.formData.epo)
this.formData.epc= this.formatDate(this.formData.epc)
this.formData.f_etd= this.formatDate(this.formData.f_etd)
this.formData.f_eta= this.formatDate(this.formData.f_eta)
var baseData = {
"aux": {
"rows":rows,
......@@ -350,6 +358,22 @@
return `${year}-${ month}-${date}`
},
//时间戳转换
formatDate(timestamp) {
if (!timestamp) return
const nowDate = new Date(timestamp);
var year = nowDate.getFullYear();
var month = nowDate.getMonth() < 10 ? '0' + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
var date = nowDate.getDate()< 10 ? '0' + nowDate.getDate() : nowDate.getDate();
const hour = nowDate.getHours()< 10 ? '0' + nowDate.getHours() : nowDate.getHours() ;
const minute = nowDate.getMinutes()< 10 ? '0'+ nowDate.getMinutes() : nowDate.getMinutes() ;
var seconds = nowDate.getSeconds() < 10 ? '0' + nowDate.getSeconds() : nowDate.getSeconds();
if (this.dateType === 'date') {
return `${year}-${ month}-${date}`
} else {
return `${year}-${ month}-${date} 00:00:00`
}
},
//设置formData
setFormData(value) {
const key = this.visibleKey
......
......@@ -305,6 +305,16 @@
onSubmitForm() {
const rows = getApp().globalData.changeShippingDate;
this.formData.rows= rows;
this.formData.early_pickup_date= this.formatDate(this.formData.early_pickup_date)
this.formData.etd= this.formatDate(this.formData.etd)
this.formData.estimated_pack_time= this.formatDate(this.formData.estimated_pack_time)
this.formData.eta= this.formatDate(this.formData.eta)
this.formData.epo= this.formatDate(this.formData.epo)
this.formData.epc= this.formatDate(this.formData.epc)
this.formData.actual_sail_time= this.formatDate(this.formData.actual_sail_time)
this.formData.f_etd= this.formatDate(this.formData.f_etd)
this.formData.f_eta= this.formatDate(this.formData.f_eta)
this.formData.f_atd= this.formatDate(this.formData.f_atd)
var baseData = {
"aux": {
"rows":rows,
......@@ -350,6 +360,22 @@
return `${year}-${ month}-${date}`
},
//时间戳转换
formatDate(timestamp) {
if (!timestamp) return
const nowDate = new Date(timestamp);
var year = nowDate.getFullYear();
var month = nowDate.getMonth() < 10 ? '0' + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
var date = nowDate.getDate()< 10 ? '0' + nowDate.getDate() : nowDate.getDate();
const hour = nowDate.getHours()< 10 ? '0' + nowDate.getHours() : nowDate.getHours() ;
const minute = nowDate.getMinutes()< 10 ? '0'+ nowDate.getMinutes() : nowDate.getMinutes() ;
var seconds = nowDate.getSeconds() < 10 ? '0' + nowDate.getSeconds() : nowDate.getSeconds();
if (this.dateType === 'date') {
return `${year}-${ month}-${date}`
} else {
return `${year}-${ month}-${date} 00:00:00`
}
},
//设置formData
setFormData(value) {
const key = this.visibleKey
......
......@@ -388,13 +388,14 @@
}
.shipment-state {
font-size: 24rpx;
font-size: 30rpx;
color: #F7A64A;
line-height: 33rpx;
padding: 6rpx 40rpx;
border-radius: 8rpx;
background: rgba(247, 166, 74, .1);
text-shadow: 1rpx 3rpx 12rpx rgba(0, 0, 0, 0.04);
font-weight: 600;
}
.shipmenting {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment