feat(wms): 规程主表 wms_process_spec 全栈 CRUD(任务2)

新增规程档案后端(Entity/BO/VO/Mapper/Service/Controller),接口前缀 /wms/processSpec,
含分页查询、导出、详情、增删改;保存时校验规程编号唯一;逻辑删除与全局配置一致(0 未删 / 2 已删)。

新增 Flyway 脚本 V10 建表及唯一索引;前端增加 api/wms/processSpec.js 与 views/wms/processSpec/index.vue,
支持按编号/名称/类型/产线/产品类型/启用状态筛选,产线下拉关联现有产线接口。

说明:需在目标库执行迁移并在菜单中配置组件路径 wms/processSpec/index。
This commit is contained in:
王文昊
2026-04-20 18:20:29 +08:00
parent ee199388d5
commit 62b594026b
11 changed files with 869 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.klp.mapper.WmsProcessSpecMapper">
<resultMap type="com.klp.domain.WmsProcessSpec" id="WmsProcessSpecResult">
<result property="specId" column="spec_id"/>
<result property="specCode" column="spec_code"/>
<result property="specName" column="spec_name"/>
<result property="specType" column="spec_type"/>
<result property="lineId" column="line_id"/>
<result property="productType" column="product_type"/>
<result property="isEnabled" column="is_enabled"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="delFlag" column="del_flag"/>
<result property="remark" column="remark"/>
</resultMap>
</mapper>