Browse Source

[delete]

删除旧版无用的盘点物料表warehousing_check_detail和系统中对应的前端所有代码和后端所有代码
dev
liuxiaoxu 1 month ago
parent
commit
c33fa89def
  1. 173
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckDetailController.java
  2. 177
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckDetail.java
  3. 61
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckDetailMapper.java
  4. 61
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckDetailService.java
  5. 94
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckDetailServiceImpl.java
  6. 97
      ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckDetailMapper.xml
  7. 85
      ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/add.html
  8. 86
      ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/edit.html
  9. 138
      ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/warehousingCheckDetail.html

173
ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckDetailController.java

@ -1,173 +0,0 @@
package com.ruoyi.storehouse.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.storehouse.domain.WarehousingCheckDetail;
import com.ruoyi.storehouse.service.IWarehousingCheckDetailService;
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.Arrays;
import java.util.List;
import java.util.Objects;
import static com.ruoyi.common.core.domain.AjaxResult.Type.SUCCESS;
/**
* 盘点物料Controller
*
* @author ruoyi
* @date 2023-05-24
*/
@Controller
@RequestMapping("/storehouse/warehousingCheckDetail")
public class WarehousingCheckDetailController extends BaseController
{
private String prefix = "storehouse/warehousingCheckDetail";
@Autowired
private IWarehousingCheckDetailService warehousingCheckDetailService;
@RequiresPermissions("storehouse:warehousingCheckDetail:view")
@GetMapping()
public String warehousingCheckDetail()
{
return prefix + "/warehousingCheckDetail";
}
/**
* 查询盘点物料列表
*/
@RequiresPermissions("storehouse:warehousingCheckDetail:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(WarehousingCheckDetail warehousingCheckDetail)
{
startPage();
List<WarehousingCheckDetail> list = warehousingCheckDetailService.selectWarehousingCheckDetailList(warehousingCheckDetail);
return getDataTable(list);
}
/**
* 导出盘点物料列表
*/
@RequiresPermissions("storehouse:warehousingCheckDetail:export")
@Log(title = "盘点物料", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(WarehousingCheckDetail warehousingCheckDetail)
{
List<WarehousingCheckDetail> list = warehousingCheckDetailService.selectWarehousingCheckDetailList(warehousingCheckDetail);
ExcelUtil<WarehousingCheckDetail> util = new ExcelUtil<WarehousingCheckDetail>(WarehousingCheckDetail.class);
return util.exportExcel(list, "盘点物料数据");
}
/**
* 新增盘点物料
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存盘点物料
*/
@RequiresPermissions("storehouse:warehousingCheckDetail:add")
@Log(title = "盘点物料", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(WarehousingCheckDetail warehousingCheckDetail)
{
return toAjax(warehousingCheckDetailService.insertWarehousingCheckDetail(warehousingCheckDetail));
}
/**
* 修改盘点物料
*/
@GetMapping("/edit/{warehousingCheckDetailId}")
public String edit(@PathVariable("warehousingCheckDetailId") Long warehousingCheckDetailId, ModelMap mmap)
{
WarehousingCheckDetail warehousingCheckDetail = warehousingCheckDetailService.selectWarehousingCheckDetailById(warehousingCheckDetailId);
mmap.put("warehousingCheckDetail", warehousingCheckDetail);
return prefix + "/edit";
}
/**
* 修改保存盘点物料
*/
@RequiresPermissions("storehouse:warehousingCheckDetail:edit")
@Log(title = "盘点物料", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(WarehousingCheckDetail warehousingCheckDetail)
{
return toAjax(warehousingCheckDetailService.updateWarehousingCheckDetail(warehousingCheckDetail));
}
/**
* 删除盘点物料
*/
@RequiresPermissions("storehouse:warehousingCheckDetail:remove")
@Log(title = "盘点物料", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(warehousingCheckDetailService.deleteWarehousingCheckDetailByIds(ids));
}
/**
* 新增保存领料物料
*/
@RequiresPermissions("storehouse:warehousingCheckDetail:add")
@Log(title = "盘点物料", businessType = BusinessType.INSERT)
@PostMapping("/addEditSave")
@ResponseBody
public AjaxResult addEditSave(@RequestParam(value = "data") String data)
{
// 反序列化
List<WarehousingCheckDetail> warehousingCheckDetailList = JSONObject.parseArray(data, WarehousingCheckDetail.class);
for (int i=0;i<warehousingCheckDetailList.size();i++) {
String id = String.valueOf(warehousingCheckDetailService.selectWarehousingCheckDetailById(warehousingCheckDetailList.get(i).getWarehousingCheckDetailId()));
if (Objects.equals(id, "null")) {
warehousingCheckDetailService.insertWarehousingCheckDetail(warehousingCheckDetailList.get(i));
} else {
warehousingCheckDetailService.updateWarehousingCheckDetail(warehousingCheckDetailList.get(i));
}
}
return new AjaxResult(SUCCESS, "test done");
}
/**
* 删除
* @param ids
* @return
*/
@PostMapping("/removeMaterial")
@ResponseBody
public AjaxResult removeMaterial(@RequestParam(value = "ids") String ids) {
ids=ids.replace("[","").replace("]","");
List<String> idList = Arrays.asList(ids.split(","));
for (int i=0;i<idList.size();i++) {
if (!("null".equals(idList.get(i)))) {
warehousingCheckDetailService.deleteWarehousingCheckDetailById(Long.valueOf(idList.get(i)));
}
}
return new AjaxResult(SUCCESS, "test done");
}
}

177
ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckDetail.java

@ -1,177 +0,0 @@
package com.ruoyi.storehouse.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;
/**
* 盘点物料对象 warehousing_check_detail
*
* @author ruoyi
* @date 2023-05-24
*/
public class WarehousingCheckDetail extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 盘点物料id */
private Long warehousingCheckDetailId;
/** 盘点单号 */
@Excel(name = "盘点单号")
private String warehousingCheckNumber;
/** 物料代码 */
@Excel(name = "物料代码")
private String materialCode;
/** 物料名称 */
@Excel(name = "物料名称")
private String materialName;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 单位 */
@Excel(name = "单位")
private String inventoryUnit;
/** 盘点数量 */
@Excel(name = "盘点数量")
private String checkQuantity;
/** 当时库存账上数量 */
@Excel(name = "当时库存账上数量")
private String stockQuantity;
/** 说明 */
@Excel(name = "说明")
private String description;
/** 存放地址 */
@Excel(name = "存放地址")
private String storageLocation;
/** 批号 */
@Excel(name = "批号")
private String batchNumber;
public void setWarehousingCheckDetailId(Long warehousingCheckDetailId)
{
this.warehousingCheckDetailId = warehousingCheckDetailId;
}
public Long getWarehousingCheckDetailId()
{
return warehousingCheckDetailId;
}
public void setWarehousingCheckNumber(String warehousingCheckNumber)
{
this.warehousingCheckNumber = warehousingCheckNumber;
}
public String getWarehousingCheckNumber()
{
return warehousingCheckNumber;
}
public void setMaterialCode(String materialCode)
{
this.materialCode = materialCode;
}
public String getMaterialCode()
{
return materialCode;
}
public void setMaterialName(String materialName)
{
this.materialName = materialName;
}
public String getMaterialName()
{
return materialName;
}
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 setCheckQuantity(String checkQuantity)
{
this.checkQuantity = checkQuantity;
}
public String getCheckQuantity()
{
return checkQuantity;
}
public void setStockQuantity(String stockQuantity)
{
this.stockQuantity = stockQuantity;
}
public String getStockQuantity()
{
return stockQuantity;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
public void setStorageLocation(String storageLocation)
{
this.storageLocation = storageLocation;
}
public String getStorageLocation()
{
return storageLocation;
}
public void setBatchNumber(String batchNumber)
{
this.batchNumber = batchNumber;
}
public String getBatchNumber()
{
return batchNumber;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("warehousingCheckDetailId", getWarehousingCheckDetailId())
.append("warehousingCheckNumber", getWarehousingCheckNumber())
.append("materialCode", getMaterialCode())
.append("materialName", getMaterialName())
.append("specificationModel", getSpecificationModel())
.append("inventoryUnit", getInventoryUnit())
.append("checkQuantity", getCheckQuantity())
.append("stockQuantity", getStockQuantity())
.append("description", getDescription())
.append("storageLocation", getStorageLocation())
.append("batchNumber", getBatchNumber())
.toString();
}
}

61
ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckDetailMapper.java

@ -1,61 +0,0 @@
package com.ruoyi.storehouse.mapper;
import java.util.List;
import com.ruoyi.storehouse.domain.WarehousingCheckDetail;
/**
* 盘点物料Mapper接口
*
* @author ruoyi
* @date 2023-05-24
*/
public interface WarehousingCheckDetailMapper
{
/**
* 查询盘点物料
*
* @param warehousingCheckDetailId 盘点物料ID
* @return 盘点物料
*/
public WarehousingCheckDetail selectWarehousingCheckDetailById(Long warehousingCheckDetailId);
/**
* 查询盘点物料列表
*
* @param warehousingCheckDetail 盘点物料
* @return 盘点物料集合
*/
public List<WarehousingCheckDetail> selectWarehousingCheckDetailList(WarehousingCheckDetail warehousingCheckDetail);
/**
* 新增盘点物料
*
* @param warehousingCheckDetail 盘点物料
* @return 结果
*/
public int insertWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail);
/**
* 修改盘点物料
*
* @param warehousingCheckDetail 盘点物料
* @return 结果
*/
public int updateWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail);
/**
* 删除盘点物料
*
* @param warehousingCheckDetailId 盘点物料ID
* @return 结果
*/
public int deleteWarehousingCheckDetailById(Long warehousingCheckDetailId);
/**
* 批量删除盘点物料
*
* @param warehousingCheckDetailIds 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingCheckDetailByIds(String[] warehousingCheckDetailIds);
}

61
ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckDetailService.java

@ -1,61 +0,0 @@
package com.ruoyi.storehouse.service;
import java.util.List;
import com.ruoyi.storehouse.domain.WarehousingCheckDetail;
/**
* 盘点物料Service接口
*
* @author ruoyi
* @date 2023-05-24
*/
public interface IWarehousingCheckDetailService
{
/**
* 查询盘点物料
*
* @param warehousingCheckDetailId 盘点物料ID
* @return 盘点物料
*/
public WarehousingCheckDetail selectWarehousingCheckDetailById(Long warehousingCheckDetailId);
/**
* 查询盘点物料列表
*
* @param warehousingCheckDetail 盘点物料
* @return 盘点物料集合
*/
public List<WarehousingCheckDetail> selectWarehousingCheckDetailList(WarehousingCheckDetail warehousingCheckDetail);
/**
* 新增盘点物料
*
* @param warehousingCheckDetail 盘点物料
* @return 结果
*/
public int insertWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail);
/**
* 修改盘点物料
*
* @param warehousingCheckDetail 盘点物料
* @return 结果
*/
public int updateWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail);
/**
* 批量删除盘点物料
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingCheckDetailByIds(String ids);
/**
* 删除盘点物料信息
*
* @param warehousingCheckDetailId 盘点物料ID
* @return 结果
*/
public int deleteWarehousingCheckDetailById(Long warehousingCheckDetailId);
}

94
ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckDetailServiceImpl.java

@ -1,94 +0,0 @@
package com.ruoyi.storehouse.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.storehouse.mapper.WarehousingCheckDetailMapper;
import com.ruoyi.storehouse.domain.WarehousingCheckDetail;
import com.ruoyi.storehouse.service.IWarehousingCheckDetailService;
import com.ruoyi.common.core.text.Convert;
/**
* 盘点物料Service业务层处理
*
* @author ruoyi
* @date 2023-05-24
*/
@Service
public class WarehousingCheckDetailServiceImpl implements IWarehousingCheckDetailService
{
@Autowired
private WarehousingCheckDetailMapper warehousingCheckDetailMapper;
/**
* 查询盘点物料
*
* @param warehousingCheckDetailId 盘点物料ID
* @return 盘点物料
*/
@Override
public WarehousingCheckDetail selectWarehousingCheckDetailById(Long warehousingCheckDetailId)
{
return warehousingCheckDetailMapper.selectWarehousingCheckDetailById(warehousingCheckDetailId);
}
/**
* 查询盘点物料列表
*
* @param warehousingCheckDetail 盘点物料
* @return 盘点物料
*/
@Override
public List<WarehousingCheckDetail> selectWarehousingCheckDetailList(WarehousingCheckDetail warehousingCheckDetail)
{
return warehousingCheckDetailMapper.selectWarehousingCheckDetailList(warehousingCheckDetail);
}
/**
* 新增盘点物料
*
* @param warehousingCheckDetail 盘点物料
* @return 结果
*/
@Override
public int insertWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail)
{
return warehousingCheckDetailMapper.insertWarehousingCheckDetail(warehousingCheckDetail);
}
/**
* 修改盘点物料
*
* @param warehousingCheckDetail 盘点物料
* @return 结果
*/
@Override
public int updateWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail)
{
return warehousingCheckDetailMapper.updateWarehousingCheckDetail(warehousingCheckDetail);
}
/**
* 删除盘点物料对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteWarehousingCheckDetailByIds(String ids)
{
return warehousingCheckDetailMapper.deleteWarehousingCheckDetailByIds(Convert.toStrArray(ids));
}
/**
* 删除盘点物料信息
*
* @param warehousingCheckDetailId 盘点物料ID
* @return 结果
*/
@Override
public int deleteWarehousingCheckDetailById(Long warehousingCheckDetailId)
{
return warehousingCheckDetailMapper.deleteWarehousingCheckDetailById(warehousingCheckDetailId);
}
}

97
ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckDetailMapper.xml

@ -1,97 +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.storehouse.mapper.WarehousingCheckDetailMapper">
<resultMap type="WarehousingCheckDetail" id="WarehousingCheckDetailResult">
<result property="warehousingCheckDetailId" column="warehousing_check_detail_id" />
<result property="warehousingCheckNumber" column="warehousing_check_number" />
<result property="materialCode" column="material_code" />
<result property="materialName" column="material_name" />
<result property="specificationModel" column="specification_model" />
<result property="inventoryUnit" column="inventory_unit" />
<result property="checkQuantity" column="check_quantity" />
<result property="stockQuantity" column="stock_quantity" />
<result property="description" column="description" />
<result property="storageLocation" column="storage_location" />
<result property="batchNumber" column="batch_number" />
</resultMap>
<sql id="selectWarehousingCheckDetailVo">
select warehousing_check_detail_id, warehousing_check_number, material_code, material_name, specification_model, inventory_unit, check_quantity, stock_quantity, description, storage_location, batch_number from warehousing_check_detail
</sql>
<select id="selectWarehousingCheckDetailList" parameterType="WarehousingCheckDetail" resultMap="WarehousingCheckDetailResult">
<include refid="selectWarehousingCheckDetailVo"/>
<where>
<if test="warehousingCheckNumber != null and warehousingCheckNumber != ''"> and warehousing_check_number like concat('%', #{warehousingCheckNumber}, '%')</if>
<if test="materialCode != null and materialCode != ''"> and material_code like concat('%', #{materialCode}, '%')</if>
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
<if test="storageLocation != null and storageLocation != ''"> and storage_location like concat('%', #{storageLocation}, '%')</if>
<if test="batchNumber != null and batchNumber != ''"> and batch_number like concat('%', #{batchNumber}, '%')</if>
</where>
</select>
<select id="selectWarehousingCheckDetailById" parameterType="Long" resultMap="WarehousingCheckDetailResult">
<include refid="selectWarehousingCheckDetailVo"/>
where warehousing_check_detail_id = #{warehousingCheckDetailId}
</select>
<insert id="insertWarehousingCheckDetail" parameterType="WarehousingCheckDetail" useGeneratedKeys="true" keyProperty="warehousingCheckDetailId">
insert into warehousing_check_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="warehousingCheckNumber != null">warehousing_check_number,</if>
<if test="materialCode != null">material_code,</if>
<if test="materialName != null">material_name,</if>
<if test="specificationModel != null">specification_model,</if>
<if test="inventoryUnit != null">inventory_unit,</if>
<if test="checkQuantity != null">check_quantity,</if>
<if test="stockQuantity != null">stock_quantity,</if>
<if test="description != null">description,</if>
<if test="storageLocation != null">storage_location,</if>
<if test="batchNumber != null">batch_number,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="warehousingCheckNumber != null">#{warehousingCheckNumber},</if>
<if test="materialCode != null">#{materialCode},</if>
<if test="materialName != null">#{materialName},</if>
<if test="specificationModel != null">#{specificationModel},</if>
<if test="inventoryUnit != null">#{inventoryUnit},</if>
<if test="checkQuantity != null">#{checkQuantity},</if>
<if test="stockQuantity != null">#{stockQuantity},</if>
<if test="description != null">#{description},</if>
<if test="storageLocation != null">#{storageLocation},</if>
<if test="batchNumber != null">#{batchNumber},</if>
</trim>
</insert>
<update id="updateWarehousingCheckDetail" parameterType="WarehousingCheckDetail">
update warehousing_check_detail
<trim prefix="SET" suffixOverrides=",">
<if test="warehousingCheckNumber != null">warehousing_check_number = #{warehousingCheckNumber},</if>
<if test="materialCode != null">material_code = #{materialCode},</if>
<if test="materialName != null">material_name = #{materialName},</if>
<if test="specificationModel != null">specification_model = #{specificationModel},</if>
<if test="inventoryUnit != null">inventory_unit = #{inventoryUnit},</if>
<if test="checkQuantity != null">check_quantity = #{checkQuantity},</if>
<if test="stockQuantity != null">stock_quantity = #{stockQuantity},</if>
<if test="description != null">description = #{description},</if>
<if test="storageLocation != null">storage_location = #{storageLocation},</if>
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
</trim>
where warehousing_check_detail_id = #{warehousingCheckDetailId}
</update>
<delete id="deleteWarehousingCheckDetailById" parameterType="Long">
delete from warehousing_check_detail where warehousing_check_detail_id = #{warehousingCheckDetailId}
</delete>
<delete id="deleteWarehousingCheckDetailByIds" parameterType="String">
delete from warehousing_check_detail where warehousing_check_detail_id in
<foreach item="warehousingCheckDetailId" collection="array" open="(" separator="," close=")">
#{warehousingCheckDetailId}
</foreach>
</delete>
</mapper>

85
ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/add.html

@ -1,85 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增盘点物料')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-warehousingCheckDetail-add">
<div class="form-group">
<label class="col-sm-3 control-label">盘点单号:</label>
<div class="col-sm-8">
<input name="warehousingCheckNumber" 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="materialCode" 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="materialName" 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">
<input name="inventoryUnit" 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="checkQuantity" 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="stockQuantity" 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="description" 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="storageLocation" 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="batchNumber" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "storehouse/warehousingCheckDetail"
$("#form-warehousingCheckDetail-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-warehousingCheckDetail-add').serialize());
}
}
</script>
</body>
</html>

86
ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/edit.html

@ -1,86 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改盘点物料')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-warehousingCheckDetail-edit" th:object="${warehousingCheckDetail}">
<input name="warehousingCheckDetailId" th:field="*{warehousingCheckDetailId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">盘点单号:</label>
<div class="col-sm-8">
<input name="warehousingCheckNumber" th:field="*{warehousingCheckNumber}" 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="materialCode" th:field="*{materialCode}" 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="materialName" th:field="*{materialName}" 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">
<input name="inventoryUnit" th:field="*{inventoryUnit}" 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="checkQuantity" th:field="*{checkQuantity}" 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="stockQuantity" th:field="*{stockQuantity}" 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="description" th:field="*{description}" 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="storageLocation" th:field="*{storageLocation}" 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="batchNumber" th:field="*{batchNumber}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "storehouse/warehousingCheckDetail";
$("#form-warehousingCheckDetail-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-warehousingCheckDetail-edit').serialize());
}
}
</script>
</body>
</html>

138
ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/warehousingCheckDetail.html

@ -1,138 +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('盘点物料列表')" />
</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="warehousingCheckNumber"/>
</li>
<li>
<label>物料代码:</label>
<input type="text" name="materialCode"/>
</li>
<li>
<label>物料名称:</label>
<input type="text" name="materialName"/>
</li>
<li>
<label>存放地址:</label>
<input type="text" name="storageLocation"/>
</li>
<li>
<label>批号:</label>
<input type="text" name="batchNumber"/>
</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="storehouse:warehousingCheckDetail:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="storehouse:warehousingCheckDetail:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="storehouse:warehousingCheckDetail:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="storehouse:warehousingCheckDetail: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('storehouse:warehousingCheckDetail:edit')}]];
var removeFlag = [[${@permission.hasPermi('storehouse:warehousingCheckDetail:remove')}]];
var prefix = ctx + "storehouse/warehousingCheckDetail";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "盘点物料",
columns: [{
checkbox: true
},
{
field: 'warehousingCheckDetailId',
title: '盘点物料id',
visible: false
},
{
field: 'warehousingCheckNumber',
title: '盘点单号'
},
{
field: 'materialCode',
title: '物料代码'
},
{
field: 'materialName',
title: '物料名称'
},
{
field: 'specificationModel',
title: '规格型号'
},
{
field: 'inventoryUnit',
title: '单位'
},
{
field: 'checkQuantity',
title: '盘点数量'
},
{
field: 'stockQuantity',
title: '当时库存账上数量'
},
{
field: 'description',
title: '说明'
},
{
field: 'storageLocation',
title: '存放地址'
},
{
field: 'batchNumber',
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.warehousingCheckDetailId + '\')"><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.warehousingCheckDetailId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
Loading…
Cancel
Save