Browse Source

删除旧版无用的bom半成品对象 sys_bom_bcp和系统中对应的前端所有代码和后端所有代码 和对应的系统菜单数据

dev
liuxiaoxu 1 month ago
parent
commit
79237c6b15
  1. 154
      ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysBomBcpController.java
  2. 256
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysBomBcp.java
  3. 61
      ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysBomBcpMapper.java
  4. 61
      ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysBomBcpService.java
  5. 95
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysBomBcpServiceImpl.java
  6. 126
      ruoyi-admin/src/main/resources/mapper/system/SysBomBcpMapper.xml
  7. 99
      ruoyi-admin/src/main/resources/templates/system/bomBcp/add.html
  8. 181
      ruoyi-admin/src/main/resources/templates/system/bomBcp/bomBcp.html
  9. 100
      ruoyi-admin/src/main/resources/templates/system/bomBcp/edit.html

154
ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysBomBcpController.java

@ -1,154 +0,0 @@
package com.ruoyi.system.controller;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.SysBomBcp;
import com.ruoyi.system.service.ISysBomBcpService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Objects;
import static com.ruoyi.common.core.domain.AjaxResult.Type.SUCCESS;
/**
* bom半成品Controller
*
* @author ruoyi
* @date 2023-04-08
*/
@Controller
@RequestMapping("/system/bomBcp")
public class SysBomBcpController extends BaseController
{
private String prefix = "system/bomBcp";
@Autowired
private ISysBomBcpService sysBomBcpService;
@RequiresPermissions("system:bomBcp:view")
@GetMapping()
public String bomBcp()
{
return prefix + "/bomBcp";
}
/**
* 查询bom半成品列表
*/
@RequiresPermissions("system:bomBcp:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(SysBomBcp sysBomBcp)
{
startPage();
List<SysBomBcp> list = sysBomBcpService.selectSysBomBcpList(sysBomBcp);
return getDataTable(list);
}
/**
* 导出bom半成品列表
*/
@RequiresPermissions("system:bomBcp:export")
@Log(title = "bom半成品", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SysBomBcp sysBomBcp)
{
List<SysBomBcp> list = sysBomBcpService.selectSysBomBcpList(sysBomBcp);
ExcelUtil<SysBomBcp> util = new ExcelUtil<SysBomBcp>(SysBomBcp.class);
return util.exportExcel(list, "bom半成品数据");
}
/**
* 新增bom半成品
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
// public AjaxResult addSave(SysBomBcp sysBomBcp)
// {
// System.out.println(sysBomBcp);
// return toAjax(sysBomBcpService.insertSysBomBcp(sysBomBcp));
// }
/**
* 新增保存bom半成品
*/
@RequiresPermissions("system:bomBcp:add")
@Log(title = "bom半成品", businessType = BusinessType.INSERT)
@PostMapping("/addEditSave")
@ResponseBody
public AjaxResult addEditSave(@RequestParam(value = "data") String data)
{
// 反序列化
List<SysBomBcp> sysBomBcpList = JSONObject.parseArray(data, SysBomBcp.class);
System.out.println(sysBomBcpList);
for (int i=0;i<sysBomBcpList.size();i++) {
String id = String.valueOf(sysBomBcpService.selectSysBomBcpById(sysBomBcpList.get(i).getBomBcpId()));
if (Objects.equals(id, "null")) {
sysBomBcpService.insertSysBomBcp(sysBomBcpList.get(i));
} else {
sysBomBcpService.updateSysBomBcp(sysBomBcpList.get(i));
}
}
return new AjaxResult(SUCCESS, "test done");
}
/**
* 修改bom半成品
*/
@GetMapping("/edit/{bomBcpId}")
public String edit(@PathVariable("bomBcpId") Long bomBcpId, ModelMap mmap)
{
SysBomBcp sysBomBcp = sysBomBcpService.selectSysBomBcpById(bomBcpId);
mmap.put("sysBomBcp", sysBomBcp);
return prefix + "/edit";
}
/**
* 修改保存bom半成品
*/
@RequiresPermissions("system:bomBcp:edit")
@Log(title = "bom半成品", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SysBomBcp sysBomBcp)
{
return toAjax(sysBomBcpService.updateSysBomBcp(sysBomBcp));
}
/**
* 删除bom半成品
*/
@RequiresPermissions("system:bomBcp:remove")
@Log(title = "bom半成品", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(sysBomBcpService.deleteSysBomBcpByIds(ids));
}
@PostMapping("/removeBcp")
@ResponseBody
public AjaxResult removeBcp(@RequestParam(value = "ids") String ids) {
// System.out.println(ids);
ids=ids.replace("[","").replace("]","");
return toAjax(sysBomBcpService.deleteSysBomBcpByIds(ids));
}
}

256
ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysBomBcp.java

@ -1,256 +0,0 @@
package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* bom半成品对象 sys_bom_bcp
*
* @author ruoyi
* @date 2023-04-08
*/
public class SysBomBcp extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** bom半成品id */
private Long bomBcpId;
/** 成品代码 */
@Excel(name = "成品代码")
private String finishProductCode;
/** 版本号 */
@Excel(name = "版本号")
private String versionNumber;
/** 半成品代码 */
@Excel(name = "半成品代码")
private String bcpCode;
/** 半成品名称 */
@Excel(name = "半成品名称")
private String bcpName;
/** 半成品版本号 */
@Excel(name = "半成品名称")
private String bcpVersionNumber;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 单位 */
@Excel(name = "单位")
private String inventoryUnit;
/** 用量 */
@Excel(name = "用量")
private String bcpMaterialConsumption;
/** 损耗% */
@Excel(name = "损耗%")
private String bcpMaterialLoss;
/** 厂商料号 */
@Excel(name = "厂商料号")
private String customerNumber;
/** 成品数量 */
@Excel(name = "成品数量")
private String finishedProductQuantity;
/** 备注说明 */
@Excel(name = "备注说明")
private String remarks;
/** 加工类别 */
@Excel(name = "加工类别")
private String processingCategory;
/** 备用一 */
private String standbyOne;
/** 备用二 */
private String standbyTwo;
public SysBomBcp() {
}
public SysBomBcp(String finishProductCode) {
this.finishProductCode = finishProductCode;
}
public SysBomBcp(Long bomBcpId, String finishProductCode) {
this.bomBcpId = bomBcpId;
this.finishProductCode = finishProductCode;
}
public void setBomBcpId(Long bomBcpId)
{
this.bomBcpId = bomBcpId;
}
public Long getBomBcpId()
{
return bomBcpId;
}
public void setFinishProductCode(String finishProductCode)
{
this.finishProductCode = finishProductCode;
}
public String getFinishProductCode()
{
return finishProductCode;
}
public void setVersionNumber(String versionNumber)
{
this.versionNumber = versionNumber;
}
public String getVersionNumber()
{
return versionNumber;
}
public void setBcpCode(String bcpCode)
{
this.bcpCode = bcpCode;
}
public String getBcpCode()
{
return bcpCode;
}
public void setBcpName(String bcpName)
{
this.bcpName = bcpName;
}
public String getBcpName()
{
return bcpName;
}
public String getBcpVersionNumber() {
return bcpVersionNumber;
}
public void setBcpVersionNumber(String bcpVersionNumber) {
this.bcpVersionNumber = bcpVersionNumber;
}
public void setSpecificationModel(String specificationModel)
{
this.specificationModel = specificationModel;
}
public String getSpecificationModel()
{
return specificationModel;
}
public void setInventoryUnit(String inventoryUnit)
{
this.inventoryUnit = inventoryUnit;
}
public String getInventoryUnit()
{
return inventoryUnit;
}
public void setBcpMaterialConsumption(String bcpMaterialConsumption)
{
this.bcpMaterialConsumption = bcpMaterialConsumption;
}
public String getBcpMaterialConsumption()
{
return bcpMaterialConsumption;
}
public void setBcpMaterialLoss(String bcpMaterialLoss)
{
this.bcpMaterialLoss = bcpMaterialLoss;
}
public String getBcpMaterialLoss()
{
return bcpMaterialLoss;
}
public String getCustomerNumber() {
return customerNumber;
}
public void setCustomerNumber(String customerNumber) {
this.customerNumber = customerNumber;
}
public void setFinishedProductQuantity(String finishedProductQuantity)
{
this.finishedProductQuantity = finishedProductQuantity;
}
public String getFinishedProductQuantity()
{
return finishedProductQuantity;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
public void setProcessingCategory(String processingCategory)
{
this.processingCategory = processingCategory;
}
public String getProcessingCategory()
{
return processingCategory;
}
public void setStandbyOne(String standbyOne)
{
this.standbyOne = standbyOne;
}
public String getStandbyOne()
{
return standbyOne;
}
public void setStandbyTwo(String standbyTwo)
{
this.standbyTwo = standbyTwo;
}
public String getStandbyTwo()
{
return standbyTwo;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("bomBcpId", getBomBcpId())
.append("finishProductCode", getFinishProductCode())
.append("versionNumber", getVersionNumber())
.append("bcpCode", getBcpCode())
.append("bcpName", getBcpName())
.append("bcpVersionNumber", getBcpVersionNumber())
.append("specificationModel", getSpecificationModel())
.append("inventoryUnit", getInventoryUnit())
.append("bcpMaterialConsumption", getBcpMaterialConsumption())
.append("bcpMaterialLoss", getBcpMaterialLoss())
.append("customerNumber", getCustomerNumber())
.append("finishedProductQuantity", getFinishedProductQuantity())
.append("remarks", getRemarks())
.append("processingCategory", getProcessingCategory())
.append("standbyOne", getStandbyOne())
.append("standbyTwo", getStandbyTwo())
.toString();
}
}

61
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysBomBcpMapper.java

@ -1,61 +0,0 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysBomBcp;
/**
* bom半成品Mapper接口
*
* @author ruoyi
* @date 2023-04-08
*/
public interface SysBomBcpMapper
{
/**
* 查询bom半成品
*
* @param bomBcpId bom半成品ID
* @return bom半成品
*/
public SysBomBcp selectSysBomBcpById(Long bomBcpId);
/**
* 查询bom半成品列表
*
* @param sysBomBcp bom半成品
* @return bom半成品集合
*/
public List<SysBomBcp> selectSysBomBcpList(SysBomBcp sysBomBcp);
/**
* 新增bom半成品
*
* @param sysBomBcp bom半成品
* @return 结果
*/
public int insertSysBomBcp(SysBomBcp sysBomBcp);
/**
* 修改bom半成品
*
* @param sysBomBcp bom半成品
* @return 结果
*/
public int updateSysBomBcp(SysBomBcp sysBomBcp);
/**
* 删除bom半成品
*
* @param bomBcpId bom半成品ID
* @return 结果
*/
public int deleteSysBomBcpById(Long bomBcpId);
/**
* 批量删除bom半成品
*
* @param bomBcpIds 需要删除的数据ID
* @return 结果
*/
public int deleteSysBomBcpByIds(String[] bomBcpIds);
}

61
ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysBomBcpService.java

@ -1,61 +0,0 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.SysBomBcp;
/**
* bom半成品Service接口
*
* @author ruoyi
* @date 2023-04-08
*/
public interface ISysBomBcpService
{
/**
* 查询bom半成品
*
* @param bomBcpId bom半成品ID
* @return bom半成品
*/
public SysBomBcp selectSysBomBcpById(Long bomBcpId);
/**
* 查询bom半成品列表
*
* @param sysBomBcp bom半成品
* @return bom半成品集合
*/
public List<SysBomBcp> selectSysBomBcpList(SysBomBcp sysBomBcp);
/**
* 新增bom半成品
*
* @param sysBomBcp bom半成品
* @return 结果
*/
public int insertSysBomBcp(SysBomBcp sysBomBcp);
/**
* 修改bom半成品
*
* @param sysBomBcp bom半成品
* @return 结果
*/
public int updateSysBomBcp(SysBomBcp sysBomBcp);
/**
* 批量删除bom半成品
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteSysBomBcpByIds(String ids);
/**
* 删除bom半成品信息
*
* @param bomBcpId bom半成品ID
* @return 结果
*/
public int deleteSysBomBcpById(Long bomBcpId);
}

95
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysBomBcpServiceImpl.java

@ -1,95 +0,0 @@
package com.ruoyi.system.service.impl;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.SysBomBcp;
import com.ruoyi.system.mapper.SysBomBcpMapper;
import com.ruoyi.system.service.ISysBomBcpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* bom半成品Service业务层处理
*
* @author ruoyi
* @date 2023-04-08
*/
@Service
public class SysBomBcpServiceImpl implements ISysBomBcpService
{
@Autowired
private SysBomBcpMapper sysBomBcpMapper;
/**
* 查询bom半成品
*
* @param bomBcpId bom半成品ID
* @return bom半成品
*/
@Override
public SysBomBcp selectSysBomBcpById(Long bomBcpId)
{
return sysBomBcpMapper.selectSysBomBcpById(bomBcpId);
}
/**
* 查询bom半成品列表
*
* @param sysBomBcp bom半成品
* @return bom半成品
*/
@Override
public List<SysBomBcp> selectSysBomBcpList(SysBomBcp sysBomBcp)
{
return sysBomBcpMapper.selectSysBomBcpList(sysBomBcp);
}
/**
* 新增bom半成品
*
* @param sysBomBcp bom半成品
* @return 结果
*/
@Override
public int insertSysBomBcp(SysBomBcp sysBomBcp)
{
return sysBomBcpMapper.insertSysBomBcp(sysBomBcp);
}
/**
* 修改bom半成品
*
* @param sysBomBcp bom半成品
* @return 结果
*/
@Override
public int updateSysBomBcp(SysBomBcp sysBomBcp)
{
return sysBomBcpMapper.updateSysBomBcp(sysBomBcp);
}
/**
* 删除bom半成品对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteSysBomBcpByIds(String ids)
{
return sysBomBcpMapper.deleteSysBomBcpByIds(Convert.toStrArray(ids));
}
/**
* 删除bom半成品信息
*
* @param bomBcpId bom半成品ID
* @return 结果
*/
@Override
public int deleteSysBomBcpById(Long bomBcpId)
{
return sysBomBcpMapper.deleteSysBomBcpById(bomBcpId);
}
}

126
ruoyi-admin/src/main/resources/mapper/system/SysBomBcpMapper.xml

@ -1,126 +0,0 @@
<?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.ruoyi.system.mapper.SysBomBcpMapper">
<resultMap type="SysBomBcp" id="SysBomBcpResult">
<result property="bomBcpId" column="bom_bcp_id" />
<result property="finishProductCode" column="finish_product_code" />
<result property="versionNumber" column="version_number" />
<result property="bcpCode" column="bcp_code" />
<result property="bcpName" column="bcp_name" />
<result property="bcpVersionNumber" column="bcp_version_number" />
<result property="specificationModel" column="specification_model" />
<result property="inventoryUnit" column="inventory_unit" />
<result property="bcpMaterialConsumption" column="bcp_material_consumption" />
<result property="bcpMaterialLoss" column="bcp_material_loss" />
<result property="customerNumber" column="customer_number" />
<result property="finishedProductQuantity" column="finished_product_quantity" />
<result property="remarks" column="remarks" />
<result property="processingCategory" column="processing_category" />
<result property="standbyOne" column="standby_one" />
<result property="standbyTwo" column="standby_two" />
</resultMap>
<sql id="selectSysBomBcpVo">
select bom_bcp_id, finish_product_code, version_number, bcp_code, bcp_name, bcp_version_number,
specification_model, inventory_unit, bcp_material_consumption, bcp_material_loss, customer_number,
finished_product_quantity, remarks, processing_category, standby_one, standby_two from sys_bom_bcp
</sql>
<select id="selectSysBomBcpList" parameterType="SysBomBcp" resultMap="SysBomBcpResult">
<include refid="selectSysBomBcpVo"/>
<where>
<if test="finishProductCode != null and finishProductCode != ''"> and finish_product_code like concat('%', #{finishProductCode}, '%')</if>
<if test="versionNumber != null and versionNumber != ''"> and version_number like concat('%', #{versionNumber}, '%')</if>
<if test="bcpCode != null and bcpCode != ''"> and bcp_code like concat('%', #{bcpCode}, '%')</if>
<if test="bcpName != null and bcpName != ''"> and bcp_name like concat('%', #{bcpName}, '%')</if>
<if test="bcpVersionNumber != null and bcpVersionNumber != ''"> and bcp_version_number like concat('%', #{bcpVersionNumber}, '%')</if>
<if test="specificationModel != null and specificationModel != ''"> and specification_model = #{specificationModel}</if>
<if test="inventoryUnit != null and inventoryUnit != ''"> and inventory_unit = #{inventoryUnit}</if>
<if test="bcpMaterialConsumption != null and bcpMaterialConsumption != ''"> and bcp_material_consumption = #{bcpMaterialConsumption}</if>
<if test="bcpMaterialLoss != null and bcpMaterialLoss != ''"> and bcp_material_loss = #{bcpMaterialLoss}</if>
<if test="customerNumber != null and customerNumber != ''"> and customer_number = #{customerNumber}</if>
<if test="finishedProductQuantity != null and finishedProductQuantity != ''"> and finished_product_quantity = #{finishedProductQuantity}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
<if test="processingCategory != null and processingCategory != ''"> and processing_category = #{processingCategory}</if>
</where>
</select>
<select id="selectSysBomBcpById" parameterType="Long" resultMap="SysBomBcpResult">
<include refid="selectSysBomBcpVo"/>
where bom_bcp_id = #{bomBcpId}
</select>
<insert id="insertSysBomBcp" parameterType="SysBomBcp" useGeneratedKeys="true" keyProperty="bomBcpId">
insert into sys_bom_bcp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="finishProductCode != null">finish_product_code,</if>
<if test="versionNumber != null">version_number,</if>
<if test="bcpCode != null">bcp_code,</if>
<if test="bcpName != null">bcp_name,</if>
<if test="bcpVersionNumber != null">bcp_version_number,</if>
<if test="specificationModel != null">specification_model,</if>
<if test="inventoryUnit != null">inventory_unit,</if>
<if test="bcpMaterialConsumption != null">bcp_material_consumption,</if>
<if test="bcpMaterialLoss != null">bcp_material_loss,</if>
<if test="customerNumber != null">customer_number,</if>
<if test="finishedProductQuantity != null">finished_product_quantity,</if>
<if test="remarks != null">remarks,</if>
<if test="processingCategory != null">processing_category,</if>
<if test="standbyOne != null">standby_one,</if>
<if test="standbyTwo != null">standby_two,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="finishProductCode != null">#{finishProductCode},</if>
<if test="versionNumber != null">#{versionNumber},</if>
<if test="bcpCode != null">#{bcpCode},</if>
<if test="bcpName != null">#{bcpName},</if>
<if test="bcpVersionNumber != null">#{bcpVersionNumber},</if>
<if test="specificationModel != null">#{specificationModel},</if>
<if test="inventoryUnit != null">#{inventoryUnit},</if>
<if test="bcpMaterialConsumption != null">#{bcpMaterialConsumption},</if>
<if test="bcpMaterialLoss != null">#{bcpMaterialLoss},</if>
<if test="customerNumber != null">#{customerNumber},</if>
<if test="finishedProductQuantity != null">#{finishedProductQuantity},</if>
<if test="remarks != null">#{remarks},</if>
<if test="processingCategory != null">#{processingCategory},</if>
<if test="standbyOne != null">#{standbyOne},</if>
<if test="standbyTwo != null">#{standbyTwo},</if>
</trim>
</insert>
<update id="updateSysBomBcp" parameterType="SysBomBcp">
update sys_bom_bcp
<trim prefix="SET" suffixOverrides=",">
<if test="finishProductCode != null">finish_product_code = #{finishProductCode},</if>
<if test="versionNumber != null">version_number = #{versionNumber},</if>
<if test="bcpCode != null">bcp_code = #{bcpCode},</if>
<if test="bcpName != null">bcp_name = #{bcpName},</if>
<if test="bcpVersionNumber != null">bcp_version_number = #{bcpVersionNumber},</if>
<if test="specificationModel != null">specification_model = #{specificationModel},</if>
<if test="inventoryUnit != null">inventory_unit = #{inventoryUnit},</if>
<if test="bcpMaterialConsumption != null">bcp_material_consumption = #{bcpMaterialConsumption},</if>
<if test="bcpMaterialLoss != null">bcp_material_loss = #{bcpMaterialLoss},</if>
<if test="customerNumber != null">customer_number = #{customerNumber},</if>
<if test="finishedProductQuantity != null">finished_product_quantity = #{finishedProductQuantity},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="processingCategory != null">processing_category = #{processingCategory},</if>
<if test="standbyOne != null">standby_one = #{standbyOne},</if>
<if test="standbyTwo != null">standby_two = #{standbyTwo},</if>
</trim>
where bom_bcp_id = #{bomBcpId}
</update>
<delete id="deleteSysBomBcpById" parameterType="Long">
delete from sys_bom_bcp where bom_bcp_id = #{bomBcpId}
</delete>
<delete id="deleteSysBomBcpByIds" parameterType="String">
delete from sys_bom_bcp where bom_bcp_id in
<foreach item="bomBcpId" collection="array" open="(" separator="," close=")">
#{bomBcpId}
</foreach>
</delete>
</mapper>

99
ruoyi-admin/src/main/resources/templates/system/bomBcp/add.html

@ -1,99 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增bom半成品')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-bomBcp-add">
<div class="form-group">
<label class="col-sm-3 control-label">成品代码:</label>
<div class="col-sm-8">
<input name="finishProductCode" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">版本号:</label>
<div class="col-sm-8">
<input name="versionNumber" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">半成品代码:</label>
<div class="col-sm-8">
<input name="bcpCode" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">半成品名称:</label>
<div class="col-sm-8">
<input name="bcpName" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">规格型号:</label>
<div class="col-sm-8">
<input name="specificationModel" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位:</label>
<div class="col-sm-8">
<select name="inventoryUnit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">用量:</label>
<div class="col-sm-8">
<input name="bcpMaterialConsumption" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">损耗%:</label>
<div class="col-sm-8">
<input name="bcpMaterialLoss" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">厂商料号:</label>
<div class="col-sm-8">
<input name="supplierNumber" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">成品数量:</label>
<div class="col-sm-8">
<input name="finishedProductQuantity" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注说明:</label>
<div class="col-sm-8">
<input name="remarks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">加工类别:</label>
<div class="col-sm-8">
<input name="processingCategory" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/bomBcp"
$("#form-bomBcp-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-bomBcp-add').serialize());
}
}
</script>
</body>
</html>

181
ruoyi-admin/src/main/resources/templates/system/bomBcp/bomBcp.html

@ -1,181 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('bom半成品列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>成品代码:</label>
<input type="text" name="finishProductCode"/>
</li>
<li>
<label>版本号:</label>
<input type="text" name="versionNumber"/>
</li>
<li>
<label>半成品代码:</label>
<input type="text" name="bcpCode"/>
</li>
<li>
<label>半成品名称:</label>
<input type="text" name="bcpName"/>
</li>
<li>
<label>规格型号:</label>
<input type="text" name="specificationModel"/>
</li>
<li>
<label>单位:</label>
<select name="inventoryUnit" th:with="type=${@dict.getType('sys_unit_class')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>用量:</label>
<input type="text" name="bcpMaterialConsumption"/>
</li>
<li>
<label>损耗%:</label>
<input type="text" name="bcpMaterialLoss"/>
</li>
<li>
<label>厂商料号:</label>
<input type="text" name="supplierNumber"/>
</li>
<li>
<label>成品数量:</label>
<input type="text" name="finishedProductQuantity"/>
</li>
<li>
<label>备注说明:</label>
<input type="text" name="remarks"/>
</li>
<li>
<label>加工类别:</label>
<input type="text" name="processingCategory"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:bomBcp:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:bomBcp:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:bomBcp:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:bomBcp:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:bomBcp:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:bomBcp:remove')}]];
var inventoryUnitDatas = [[${@dict.getType('sys_unit_class')}]];
var prefix = ctx + "system/bomBcp";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "bom半成品",
columns: [{
checkbox: true
},
{
field: 'bomBcpId',
title: 'bom半成品id',
visible: false
},
{
field: 'finishProductCode',
title: '成品代码'
},
{
field: 'versionNumber',
title: '版本号'
},
{
field: 'bcpCode',
title: '半成品代码'
},
{
field: 'bcpName',
title: '半成品名称'
},
{
field: 'specificationModel',
title: '规格型号'
},
{
field: 'inventoryUnit',
title: '单位',
formatter: function(value, row, index) {
return $.table.selectDictLabel(inventoryUnitDatas, value);
}
},
{
field: 'bcpMaterialConsumption',
title: '用量'
},
{
field: 'bcpMaterialLoss',
title: '损耗%'
},
{
field: 'supplierNumber',
title: '厂商料号'
},
{
field: 'finishedProductQuantity',
title: '成品数量'
},
{
field: 'remarks',
title: '备注说明'
},
{
field: 'processingCategory',
title: '加工类别'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.bomBcpId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.bomBcpId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

100
ruoyi-admin/src/main/resources/templates/system/bomBcp/edit.html

@ -1,100 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改bom半成品')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-bomBcp-edit" th:object="${sysBomBcp}">
<input name="bomBcpId" th:field="*{bomBcpId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">成品代码:</label>
<div class="col-sm-8">
<input name="finishProductCode" th:field="*{finishProductCode}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">版本号:</label>
<div class="col-sm-8">
<input name="versionNumber" th:field="*{versionNumber}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">半成品代码:</label>
<div class="col-sm-8">
<input name="bcpCode" th:field="*{bcpCode}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">半成品名称:</label>
<div class="col-sm-8">
<input name="bcpName" th:field="*{bcpName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">规格型号:</label>
<div class="col-sm-8">
<input name="specificationModel" th:field="*{specificationModel}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位:</label>
<div class="col-sm-8">
<select name="inventoryUnit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{inventoryUnit}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">用量:</label>
<div class="col-sm-8">
<input name="bcpMaterialConsumption" th:field="*{bcpMaterialConsumption}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">损耗%:</label>
<div class="col-sm-8">
<input name="bcpMaterialLoss" th:field="*{bcpMaterialLoss}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">厂商料号:</label>
<div class="col-sm-8">
<input name="supplierNumber" th:field="*{supplierNumber}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">成品数量:</label>
<div class="col-sm-8">
<input name="finishedProductQuantity" th:field="*{finishedProductQuantity}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注说明:</label>
<div class="col-sm-8">
<input name="remarks" th:field="*{remarks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">加工类别:</label>
<div class="col-sm-8">
<input name="processingCategory" th:field="*{processingCategory}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/bomBcp";
$("#form-bomBcp-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-bomBcp-edit').serialize());
}
}
</script>
</body>
</html>
Loading…
Cancel
Save