From d3a2ea7b43c00c91f69a803cb375b7402c1ad01b Mon Sep 17 00:00:00 2001 From: yanps Date: Mon, 25 Nov 2024 08:46:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=98=BB=E7=9B=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98,=20=E4=BC=98=E5=8C=96=E7=89=A9=E6=96=99=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...chBaseVehiclematerialgroupServiceImpl.java | 9 ++++++++- .../service/impl/SchBasePointServiceImpl.java | 4 +++- .../controller/SchBaseTaskController.java | 9 +++++++++ .../src/views/wms/sch/group/index.vue | 2 +- .../src/views/wms/sch/task/index.vue | 20 ++++++++++++++++++- .../src/views/wms/sch/task/schBaseTask.js | 10 +++++++++- 6 files changed, 49 insertions(+), 5 deletions(-) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/impl/SchBaseVehiclematerialgroupServiceImpl.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/impl/SchBaseVehiclematerialgroupServiceImpl.java index a7b2e9a..8e8f08d 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/impl/SchBaseVehiclematerialgroupServiceImpl.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/impl/SchBaseVehiclematerialgroupServiceImpl.java @@ -94,7 +94,7 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl schBaseVehiclematerialgroups = vehiclematerialgroupMapper.selectList(Wrappers.lambdaQuery(SchBaseVehiclematerialgroup.class) .eq(SchBaseVehiclematerialgroup::getVehicle_code, entity.getString("vehicle_code")) .ne(SchBaseVehiclematerialgroup::getGroup_id, entity.getString("group_id"))); + if(ObjectUtil.isNotEmpty(schBaseVehiclematerialgroups)){ + schBaseVehiclematerialgroups.forEach(item->{ + if(StrUtil.isEmpty(item.getRegion_code())){ + item.setRegion_code("未知"); + } + }); + } return schBaseVehiclematerialgroups; } diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/impl/SchBasePointServiceImpl.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/impl/SchBasePointServiceImpl.java index e90aefa..058f322 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/impl/SchBasePointServiceImpl.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/impl/SchBasePointServiceImpl.java @@ -173,7 +173,9 @@ public class SchBasePointServiceImpl extends ServiceImpl(HttpStatus.NO_CONTENT); } + + @PostMapping("/upload") + @Log("导出数据") + @ApiOperation("导出数据") + public ResponseEntity upload(@RequestBody JSONObject json) { + return new ResponseEntity<>(HttpStatus.NO_CONTENT); + } + } diff --git a/lms/nladmin-ui/src/views/wms/sch/group/index.vue b/lms/nladmin-ui/src/views/wms/sch/group/index.vue index 9b93afa..1a42537 100644 --- a/lms/nladmin-ui/src/views/wms/sch/group/index.vue +++ b/lms/nladmin-ui/src/views/wms/sch/group/index.vue @@ -343,7 +343,7 @@ - + diff --git a/lms/nladmin-ui/src/views/wms/sch/task/index.vue b/lms/nladmin-ui/src/views/wms/sch/task/index.vue index 80d73aa..2a365a3 100644 --- a/lms/nladmin-ui/src/views/wms/sch/task/index.vue +++ b/lms/nladmin-ui/src/views/wms/sch/task/index.vue @@ -72,7 +72,19 @@ - + + + 导出 + + @@ -329,6 +341,12 @@ export default { hand(value) { this.crud.toQuery() }, + uploadExcel() { + const selectData = this.crud.selections + crudSchBaseTask.upload(selectData).then(res => { + console.log('++++++++++++++++++++', res) + }) + }, handTaskStatus(value) { this.crud.query.more_task_status = null if (value) { diff --git a/lms/nladmin-ui/src/views/wms/sch/task/schBaseTask.js b/lms/nladmin-ui/src/views/wms/sch/task/schBaseTask.js index 4497dff..8d07571 100644 --- a/lms/nladmin-ui/src/views/wms/sch/task/schBaseTask.js +++ b/lms/nladmin-ui/src/views/wms/sch/task/schBaseTask.js @@ -39,4 +39,12 @@ export function operation(data) { }) } -export default { add, edit, del, getTaskStatusList, operation } +export function upload(data) { + return request({ + url: 'api/schBaseTask/upload', + method: 'post', + data + }) +} + +export default { add, edit, del, getTaskStatusList, operation, upload }