From ad54c86462c0d8e2ed25943f48ac47ad90353f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Thu, 20 Apr 2023 18:28:28 +0800 Subject: [PATCH] 4/20 --- src/api/modular/main/SendCar.js | 50 +++++ .../detail/modules/operationArea.vue | 18 +- src/views/main/SendCar/addForm.vue | 208 +++++++++++++----- .../main/Taskmanage/TaskmanageList/index.vue | 3 +- 4 files changed, 207 insertions(+), 72 deletions(-) diff --git a/src/api/modular/main/SendCar.js b/src/api/modular/main/SendCar.js index 391d2c3..244ea20 100644 --- a/src/api/modular/main/SendCar.js +++ b/src/api/modular/main/SendCar.js @@ -129,6 +129,56 @@ export function BookingTruckPullInBookingOrderConta(parameter) { params: parameter }) } +/** + * 通过任务主键获取派车详情 + */ +export function TaskManageTruckGetInfoByTaskId(parameter) { + return axios({ + url: '/TaskManageTruck/GetInfoByTaskId', + method: 'get', + params: parameter + }) +} +/** + * 保存派车 + */ +export function TaskManageTruckSave(parameter) { + return axios({ + url: '/TaskManageTruck/Save', + method: 'post', + data: parameter + }) +} +/** + * 打印派车 + */ +export function TaskManageTruckPrint(parameter) { + return axios({ + url: '/TaskManageTruck/Print', + method: 'get', + params: parameter + }) +} +/** + * 取消派车 + */ +export function TaskManageTruckCancelDispatch(parameter) { + return axios({ + url: '/TaskManageTruck/CancelDispatch', + method: 'get', + params: parameter + }) +} +/** + * 批量派车 + */ +export function TaskManageTruckSendDispatchBatch(parameter) { + return axios({ + url: '/TaskManageTruck/SendDispatchBatch', + method: 'post', + data: parameter + }) +} /** * 添加订舱模板 * diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue index 2fcd4ec..fc6d41e 100644 --- a/src/views/main/BookingLedger/detail/modules/operationArea.vue +++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue @@ -873,17 +873,13 @@ export default { FnGoSendCar() { BookingTruckGetTruckListByBooking({ bookingId: this.id }).then(res => { console.log(res) - if (res.data.length) { - this.$router.push({ - name: 'SendCarAdd', - query: { - type: 'Edit', - BookingId: this.id - } - }) - } else { - this.$message.error('暂无派车数据') - } + this.$router.push({ + name: 'SendCarAdd', + query: { + type: 'Edit', + BookingId: this.id + } + }) }) }, // ========== OCR ========== diff --git a/src/views/main/SendCar/addForm.vue b/src/views/main/SendCar/addForm.vue index dff0f93..5765f24 100644 --- a/src/views/main/SendCar/addForm.vue +++ b/src/views/main/SendCar/addForm.vue @@ -55,10 +55,18 @@ -