From cd09975b852652be516ba238928e26b60ee6ef40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E7=8C=ABguowen?= <9290821+guowen-the-cat@user.noreply.gitee.com> Date: Mon, 18 Aug 2025 08:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8F=91=E7=8E=B0=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BasTraycodeFormatServiceImpl.java | 4 + .../bas/cargoSpace/BasCargoSpaceMapper.xml | 3 +- ruoyi-ui/src/lang/zh.js | 2 + ruoyi-ui/src/views/bas/basCustomer/index.vue | 56 +++---- ruoyi-ui/src/views/bas/basSupplier/index.vue | 52 +++--- ruoyi-ui/src/views/bas/cargoSpace/index.vue | 157 +++++++++++++----- .../src/views/bas/traycodeFormat/index.vue | 52 ++++-- ruoyi-ui/src/views/bas/warehouse/index.vue | 38 ++++- 8 files changed, 244 insertions(+), 120 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycodeformat/service/impl/BasTraycodeFormatServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycodeformat/service/impl/BasTraycodeFormatServiceImpl.java index 70ab885..fa8b00b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycodeformat/service/impl/BasTraycodeFormatServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycodeformat/service/impl/BasTraycodeFormatServiceImpl.java @@ -64,6 +64,10 @@ public class BasTraycodeFormatServiceImpl implements IBasTraycodeFormatService public int insertBasTraycodeFormat(BasTraycodeFormat basTraycodeFormat) { basTraycodeFormat.setCreateTime(DateUtils.getNowDate()); + // 设置流水号默认值为0 + if (basTraycodeFormat.getSerialRule() == null || basTraycodeFormat.getSerialRule().trim().isEmpty()) { + basTraycodeFormat.setSerialRule("0"); + } return basTraycodeFormatMapper.insertBasTraycodeFormat(basTraycodeFormat); } diff --git a/ruoyi-admin/src/main/resources/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml b/ruoyi-admin/src/main/resources/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml index dff6a91..1d4db7c 100644 --- a/ruoyi-admin/src/main/resources/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml @@ -57,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"