|
@@ -345,7 +345,7 @@ Page({
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- let res = await postApi("/voyage/backstage/addNewPort", {
|
|
|
|
|
|
|
+ let res = await postApi("/voyage/addNewPort", {
|
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
|
voyageId: this.data.id,
|
|
voyageId: this.data.id,
|
|
|
portId: this.data.currentDischargePortId
|
|
portId: this.data.currentDischargePortId
|
|
@@ -391,7 +391,7 @@ Page({
|
|
|
if (this.data.loadEndTime && this.data.loadEndTime.length == 10) this.data.loadEndTime = this.data.loadEndTime + " 00:00:00"
|
|
if (this.data.loadEndTime && this.data.loadEndTime.length == 10) this.data.loadEndTime = this.data.loadEndTime + " 00:00:00"
|
|
|
|
|
|
|
|
|
|
|
|
|
- let res = await postApi("/voyage/backstage/update", {
|
|
|
|
|
|
|
+ let res = await postApi("/voyage/update", {
|
|
|
...this.data,
|
|
...this.data,
|
|
|
loginAccountId: wx.getStorageSync('loginAccountId')
|
|
loginAccountId: wx.getStorageSync('loginAccountId')
|
|
|
})
|
|
})
|
|
@@ -418,7 +418,7 @@ Page({
|
|
|
title: "确认完成航次?",
|
|
title: "确认完成航次?",
|
|
|
success: async e => {
|
|
success: async e => {
|
|
|
if (e.confirm) {
|
|
if (e.confirm) {
|
|
|
- let res = await postApi("/voyage/backstage/finish", {
|
|
|
|
|
|
|
+ let res = await postApi("/voyage/finish", {
|
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
|
voyageId: this.data.id
|
|
voyageId: this.data.id
|
|
|
})
|
|
})
|
|
@@ -437,7 +437,7 @@ Page({
|
|
|
title: "确认取消航次?",
|
|
title: "确认取消航次?",
|
|
|
success: async e => {
|
|
success: async e => {
|
|
|
if (e.confirm) {
|
|
if (e.confirm) {
|
|
|
- let res = await postApi("/voyage/backstage/cancel", {
|
|
|
|
|
|
|
+ let res = await postApi("/voyage/cancel", {
|
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
|
id: this.data.id
|
|
id: this.data.id
|
|
|
})
|
|
})
|