From 30427f32915bc5ecf2f62df1489d498a6cbedfc3 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Tue, 26 Dec 2023 10:28:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=B4=BE=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +-- .env.development | 8 ++--- .env.preview | 8 ++--- src/api/modular/main/BookingLedger.js | 11 ++++++- src/views/main/SendCar/addForm.vue | 47 ++++++++++++++++++++++----- 5 files changed, 58 insertions(+), 20 deletions(-) diff --git a/.env b/.env index af3850a..e769c09 100644 --- a/.env +++ b/.env @@ -4,10 +4,10 @@ VUE_APP_PREVIEW=true # VUE_APP_API_BASE_URL=http://127.0.0.1:5000 # VUE_APP_API_BASE_URL=http://60.209.125.238:25805 # 和川大简云正式 -VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api +# VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api # VUE_APP_API_BASE_URL=http://localhost:5010 # 和川大简云测试 -# VUE_APP_API_BASE_URL=http://60.209.125.238:35100 +VUE_APP_API_BASE_URL=http://60.209.125.238:35100 # 大简云 # VUE_APP_API_BASE_URL=http://47.104.222.4:5020 diff --git a/.env.development b/.env.development index a404dd8..e6224fa 100644 --- a/.env.development +++ b/.env.development @@ -7,11 +7,11 @@ VUE_APP_PREVIEW=true # process.env.VUE_APP_API_BASE_URL # 和川大简云正式 -VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api -VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345/api +# VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api +# VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345/api # 和川大简云测试 -# VUE_APP_API_BASE_URL=http://60.209.125.238:35100 -# VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:35100 +VUE_APP_API_BASE_URL=http://60.209.125.238:35100 +VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:35100 # # 大简云 # VUE_APP_API_BASE_URL=http://47.104.222.4:5020 # VUE_APP_SOCKET_BASE_URL=http://47.104.222.4:5020 diff --git a/.env.preview b/.env.preview index b2b613c..d081c56 100644 --- a/.env.preview +++ b/.env.preview @@ -3,13 +3,13 @@ VUE_APP_PREVIEW=true # VUE_APP_API_BASE_URL=http://60.209.125.238:25805 # VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:25805 # 和川大简云正式 -VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api -VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345/api +# VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api +# VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345/api # VUE_APP_API_BASE_URL=http://localhost:5010 # VUE_APP_SOCKET_BASE_URL=http://localhost:5010 # 和川大简云测试 -# VUE_APP_API_BASE_URL=http://60.209.125.238:35100 -# VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:35100 +VUE_APP_API_BASE_URL=http://60.209.125.238:35100 +VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:35100 # 大简云 # VUE_APP_API_BASE_URL=http://47.104.222.4:5020 # VUE_APP_SOCKET_BASE_URL=http://47.104.222.4:5020 \ No newline at end of file diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js index 27d1897..98a3d69 100644 --- a/src/api/modular/main/BookingLedger.js +++ b/src/api/modular/main/BookingLedger.js @@ -1247,4 +1247,13 @@ export function listYardBwCarrier(parameter) { method: 'get', params: parameter }) -} \ No newline at end of file +} + +export function SendTruckAfterDispatch(parameter) { + return axios({ + url: '/TaskManageTruck/SendTruckAfterDispatch', + method: 'post', + data: parameter + }) +} + diff --git a/src/views/main/SendCar/addForm.vue b/src/views/main/SendCar/addForm.vue index 6d64a77..4a738df 100644 --- a/src/views/main/SendCar/addForm.vue +++ b/src/views/main/SendCar/addForm.vue @@ -515,6 +515,7 @@ 删除选中 引入 引入场站数据 + 同步东胜 { + if (!errors) { + values.contaList = this.ContactsData + values = this.FnCompleteName(values) + values.pK_ID = this.WebData.pK_ID + values.bookingId = this.BookingId + SendTruckAfterDispatch({ ...values }) + .then((res) => { + if (res.data.succ) { + this.$message.success('同步成功') + } else { + this.$message.error(`同步失败,${res.data.msg}`) + } + this.confirmLoading = false + }) + .catch(() => { + this.confirmLoading = false + }) + } else { + this.confirmLoading = false + } + }) + }, // 打印 FnCilckTemplateType(templateId) { this.$message.success(`搜索文件中...`) @@ -1176,14 +1205,14 @@ export default { this.$message.success('提交成功') const type = this.type if (this.type == 'Add' && !this.BookingId) { - this.type = 'Edit' - this.id = res.data.ext - } else if (this.type == 'Add' && this.BookingId) { - this.type = 'Edit' - } - if (type == 'Add') { - this.init() - } + this.type = 'Edit' + this.id = res.data.ext + } else if (this.type == 'Add' && this.BookingId) { + this.type = 'Edit' + } + if (type == 'Add') { + this.init() + } } else { this.$message.error(`提交失败,${res.data.msg}`) }