From 4f9e093cf96b0d4d6caf7b246e84fcdc6e3a8a77 Mon Sep 17 00:00:00 2001 From: lilu Date: Tue, 29 Nov 2022 11:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=9D=E5=AD=98=E5=92=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/main/BookingLedger.js | 52 +++++++++++-------- src/views/main/BookingLedger/detail/index.vue | 6 +-- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js index 9e1b682..c137c65 100644 --- a/src/api/modular/main/BookingLedger.js +++ b/src/api/modular/main/BookingLedger.js @@ -255,28 +255,6 @@ export function GetCtn(parameter) { }) } -/** - * 更新订舱 - */ -export function BookingOrderUpdate(parameter) { - return axios({ - url: '/BookingOrder/Update', - method: 'post', - data: parameter - }) -} - -/** - * 新增订舱 - */ -export function BookingOrderAdd(parameter) { - return axios({ - url: '/BookingOrder/Add', - method: 'post', - data: parameter - }) -} - /** * 增加订舱模板 */ @@ -533,3 +511,33 @@ export function BookingOrderDownload(parameter) { responseType: 'arraybuffer' }) } + +/** + * 更新订舱 + */ + export function BookingOrderUpdate(parameter) { + return axios({ + url: '/BookingOrder/Update', + method: 'post', + data: parameter + }) +} + +/** + * 新增订舱 + */ +export function BookingOrderAdd(parameter) { + return axios({ + url: '/BookingOrder/Add', + method: 'post', + data: parameter + }) +} + +export function BookingOrderAddOrUpdate(parameter) { + return axios({ + url: '/BookingOrder/AddOrUpdate', + method: 'post', + data: parameter + }) +} diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 034ae2e..0d0824f 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -100,7 +100,7 @@ import basicItem from './components/basicItem' import ediMore from './components/ediMore' import sedOrder from './components/sedOrder' -import { BookingOrderGet, BookingOrderUpdate, BookingOrderAdd } from '@/api/modular/main/BookingLedger' +import { BookingOrderGet, BookingOrderUpdate, BookingOrderAdd, BookingOrderAddOrUpdate } from '@/api/modular/main/BookingLedger' import { mapGetters } from 'vuex' export default { name: 'BookingDetail', @@ -414,7 +414,7 @@ export default { const _data = JSON.parse(JSON.stringify(this.bookingDetails)) delete _data.hbList console.log(JSON.stringify(_data)) - BookingOrderUpdate(_data) + BookingOrderAddOrUpdate(_data) .then(res => { if (res.success) { this.isCopy = false @@ -439,7 +439,7 @@ export default { } const _data = JSON.parse(JSON.stringify(this.bookingDetails)) delete _data.hbList - BookingOrderAdd(_data) + BookingOrderAddOrUpdate(_data) .then(res => { if (res.success) { this.isAdd = false