From 4a04171237d26c8e16c9931589d025fd3b0ee5c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E4=BF=8A=E6=9D=B0?= <9463626+zhou-junjiezjj@user.noreply.gitee.com> Date: Mon, 14 Oct 2024 17:31:46 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=B7=A5=E5=8D=95=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PrimaryDeviceConveyorDeviceDriver.java | 7 - .../template/TemplateController.java | 8 + .../service/template/TemplateService.java | 6 + .../system/service/template/dto/Template.java | 4 + .../template/impl/TemplateServiceImpl.java | 10 ++ .../system/service/tickets/dto/Tickets.java | 28 ++- .../tickets/impl/TicketsServiceImpl.java | 41 ++--- acs/nladmin-ui/src/api/acs/order/template.js | 28 +-- acs/nladmin-ui/src/views/acs/order/app.vue | 8 +- acs/nladmin-ui/src/views/acs/order/index.vue | 159 +++++++++++++++--- .../src/views/acs/order/template.vue | 1 + 11 files changed, 227 insertions(+), 73 deletions(-) diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java index 05168e5..2607ec7 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java @@ -222,13 +222,6 @@ public class PrimaryDeviceConveyorDeviceDriver extends AbstractOpcDeviceDriver i putAction(list,map2, "to_qty", tickets.getPlanned_quantity()); Map map3 = new HashMap(); putAction(list,map3, "to_material_code", tickets.getProduction_materials()); - if(StrUtil.isNotEmpty(tickets.getLabeling_qty()) && "1".equals(tickets.getLabeling_qty())){ - Map map4 = new HashMap(); - putAction(list,map4, "to_labeling", tickets.getLabeling_qty()); - }else if(StrUtil.isNotEmpty(tickets.getLabeling_qty()) && "2".equals(tickets.getLabeling_qty())){ - Map map5 = new HashMap(); - putAction(list,map5, "to_labeling1", tickets.getLabeling_qty()); - } Map map6 = new HashMap(); putAction(list,map6, "to_ice", tickets.getIs_ice()); Map map7 = new HashMap(); diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java index 996f485..005f3ae 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java @@ -53,4 +53,12 @@ public class TemplateController { public ResponseEntity queryAll(@RequestParam Map param, PageQuery page) { return new ResponseEntity<>(TableDataInfo.build(templateService.query(param, page)),HttpStatus.OK); } + + @DeleteMapping + @Log("删除模板") + public ResponseEntity delete(@RequestBody String[] ids) { + templateService.deleteBatchByIds(ids); + return new ResponseEntity<>(HttpStatus.OK); + } + } diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java index d50f931..8713fc8 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java @@ -17,4 +17,10 @@ public interface TemplateService extends IService