|
|
@@ -338,6 +338,13 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
selectDischargePort(e) {
|
|
|
+ if (e.detail.label == this.data.loadPort) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '不能同装货港',
|
|
|
+ icon: "error"
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.setData({
|
|
|
currentDischargePortId: e.detail.value,
|
|
|
currentDischargePort: e.detail.label
|
|
|
@@ -485,6 +492,13 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ loadEndTimeChange(e) {
|
|
|
+ if (!this.data.voyageDetails[0].setSailTime) this.data.voyageDetails[0].setSailTime = e.detail.value
|
|
|
+ this.setData({
|
|
|
+ voyageDetails: this.data.voyageDetails
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
onLoad(options) {
|
|
|
let {
|
|
|
id
|