Browse Source

[delete]

删除旧版无用的出库对象列表warehousing_out_list和系统中对应的前端所有代码和后端所有代码 和对应的系统菜单数据
dev
liuxiaoxu 1 month ago
parent
commit
5eab1cf3f5
  1. 126
      ruoyi-admin/src/main/java/com/ruoyi/stock/controller/WarehousingOutListController.java
  2. 320
      ruoyi-admin/src/main/java/com/ruoyi/stock/domain/WarehousingOutList.java
  3. 62
      ruoyi-admin/src/main/java/com/ruoyi/stock/mapper/WarehousingOutListMapper.java
  4. 62
      ruoyi-admin/src/main/java/com/ruoyi/stock/service/IWarehousingOutListService.java
  5. 95
      ruoyi-admin/src/main/java/com/ruoyi/stock/service/impl/WarehousingOutListServiceImpl.java
  6. 154
      ruoyi-admin/src/main/resources/mapper/stock/WarehousingOutListMapper.xml
  7. 151
      ruoyi-admin/src/main/resources/templates/stock/warehousingOutList/add.html
  8. 152
      ruoyi-admin/src/main/resources/templates/stock/warehousingOutList/edit.html
  9. 244
      ruoyi-admin/src/main/resources/templates/stock/warehousingOutList/warehousingOutList.html

126
ruoyi-admin/src/main/java/com/ruoyi/stock/controller/WarehousingOutListController.java

@ -1,126 +0,0 @@
package com.ruoyi.stock.controller;
import java.util.List;
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.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.stock.domain.WarehousingOutList;
import com.ruoyi.stock.service.IWarehousingOutListService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 出库Controller
*
* @author ruoyi
* @date 2021-12-16
*/
@Controller
@RequestMapping("/stock/warehousingOutList")
public class WarehousingOutListController extends BaseController
{
private String prefix = "stock/warehousingOutList";
@Autowired
private IWarehousingOutListService warehousingOutListService;
@RequiresPermissions("stock:warehousingOutList:view")
@GetMapping()
public String warehousingOutList()
{
return prefix + "/warehousingOutList";
}
/**
* 查询出库列表
*/
@RequiresPermissions("stock:warehousingOutList:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(WarehousingOutList warehousingOutList)
{
startPage();
List<WarehousingOutList> list = warehousingOutListService.selectWarehousingOutListList(warehousingOutList);
return getDataTable(list);
}
/**
* 导出出库列表
*/
@RequiresPermissions("stock:warehousingOutList:export")
@Log(title = "出库", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(WarehousingOutList warehousingOutList)
{
List<WarehousingOutList> list = warehousingOutListService.selectWarehousingOutListList(warehousingOutList);
ExcelUtil<WarehousingOutList> util = new ExcelUtil<WarehousingOutList>(WarehousingOutList.class);
return util.exportExcel(list, "出库数据");
}
/**
* 新增出库
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存出库
*/
@RequiresPermissions("stock:warehousingOutList:add")
@Log(title = "出库", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(WarehousingOutList warehousingOutList)
{
return toAjax(warehousingOutListService.insertWarehousingOutList(warehousingOutList));
}
/**
* 修改出库
*/
@GetMapping("/edit/{warehousingOutNo}")
public String edit(@PathVariable("warehousingOutNo") String warehousingOutNo, ModelMap mmap)
{
WarehousingOutList warehousingOutList = warehousingOutListService.selectWarehousingOutListById(warehousingOutNo);
mmap.put("warehousingOutList", warehousingOutList);
return prefix + "/edit";
}
/**
* 修改保存出库
*/
@RequiresPermissions("stock:warehousingOutList:edit")
@Log(title = "出库", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(WarehousingOutList warehousingOutList)
{
return toAjax(warehousingOutListService.updateWarehousingOutList(warehousingOutList));
}
/**
* 删除出库
*/
@RequiresPermissions("stock:warehousingOutList:remove")
@Log(title = "出库", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(warehousingOutListService.deleteWarehousingOutListByIds(ids));
}
}

320
ruoyi-admin/src/main/java/com/ruoyi/stock/domain/WarehousingOutList.java

@ -1,320 +0,0 @@
package com.ruoyi.stock.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
/**
* 出库对象 warehousing_out_list
*
* @author ruoyi
* @date 2021-12-16
*/
public class WarehousingOutList extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 出库单号 */
@Excel(name = "出库单号")
private String warehousingOutNo;
/** 项次 */
@Excel(name = "项次")
private String itemNo;
/** 物料代码 */
@Excel(name = "物料代码")
private String itemCode;
/** 物料名称 */
@Excel(name = "物料名称")
private String itemName;
/** 物料规格 */
@Excel(name = "物料规格")
private String itemSpecification;
/** 机号 */
@Excel(name = "机号")
private String machineType;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 计划数量 */
@Excel(name = "计划数量")
private Long planQty;
/** 实际数量 */
@Excel(name = "实际数量")
private Long realQty;
/** 退回数量 */
@Excel(name = "退回数量")
private Long returnQty;
/** 币别 */
@Excel(name = "币别")
private String coinType;
/** 价格 */
@Excel(name = "价格")
private BigDecimal price;
/** 总价 */
@Excel(name = "总价")
private BigDecimal totalPrice;
@Excel(name = "备注")
private String remark;
/** 订单号 */
@Excel(name = "订单号")
private String buyOrderNo;
/** 入库单号 */
@Excel(name = "入库单号")
private String spare1;
/** */
@Excel(name = "")
private String spare2;
/** */
@Excel(name = "")
private String spare3;
/** */
@Excel(name = "")
private String spare4;
/** */
@Excel(name = "")
private String spare5;
/** */
@Excel(name = "")
private String spare6;
@Override
public String getRemark() {
return remark;
}
@Override
public void setRemark(String remark) {
this.remark = remark;
}
public void setWarehousingOutNo(String warehousingOutNo)
{
this.warehousingOutNo = warehousingOutNo;
}
public String getWarehousingOutNo()
{
return warehousingOutNo;
}
public void setItemNo(String itemNo)
{
this.itemNo = itemNo;
}
public String getItemNo()
{
return itemNo;
}
public void setItemCode(String itemCode)
{
this.itemCode = itemCode;
}
public String getItemCode()
{
return itemCode;
}
public void setItemName(String itemName)
{
this.itemName = itemName;
}
public String getItemName()
{
return itemName;
}
public void setItemSpecification(String itemSpecification)
{
this.itemSpecification = itemSpecification;
}
public String getItemSpecification()
{
return itemSpecification;
}
public void setMachineType(String machineType)
{
this.machineType = machineType;
}
public String getMachineType()
{
return machineType;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setPlanQty(Long planQty)
{
this.planQty = planQty;
}
public Long getPlanQty()
{
return planQty;
}
public void setRealQty(Long realQty)
{
this.realQty = realQty;
}
public Long getRealQty()
{
return realQty;
}
public void setReturnQty(Long returnQty)
{
this.returnQty = returnQty;
}
public Long getReturnQty()
{
return returnQty;
}
public void setCoinType(String coinType)
{
this.coinType = coinType;
}
public String getCoinType()
{
return coinType;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setTotalPrice(BigDecimal totalPrice)
{
this.totalPrice = totalPrice;
}
public BigDecimal getTotalPrice()
{
return totalPrice;
}
public void setBuyOrderNo(String buyOrderNo)
{
this.buyOrderNo = buyOrderNo;
}
public String getBuyOrderNo()
{
return buyOrderNo;
}
public void setSpare1(String spare1)
{
this.spare1 = spare1;
}
public String getSpare1()
{
return spare1;
}
public void setSpare2(String spare2)
{
this.spare2 = spare2;
}
public String getSpare2()
{
return spare2;
}
public void setSpare3(String spare3)
{
this.spare3 = spare3;
}
public String getSpare3()
{
return spare3;
}
public void setSpare4(String spare4)
{
this.spare4 = spare4;
}
public String getSpare4()
{
return spare4;
}
public void setSpare5(String spare5)
{
this.spare5 = spare5;
}
public String getSpare5()
{
return spare5;
}
public void setSpare6(String spare6)
{
this.spare6 = spare6;
}
public String getSpare6()
{
return spare6;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("warehousingOutNo", getWarehousingOutNo())
.append("itemNo", getItemNo())
.append("itemCode", getItemCode())
.append("itemName", getItemName())
.append("itemSpecification", getItemSpecification())
.append("machineType", getMachineType())
.append("unit", getUnit())
.append("planQty", getPlanQty())
.append("realQty", getRealQty())
.append("returnQty", getReturnQty())
.append("coinType", getCoinType())
.append("price", getPrice())
.append("totalPrice", getTotalPrice())
.append("remark", getRemark())
.append("buyOrderNo", getBuyOrderNo())
.append("spare1", getSpare1())
.append("spare2", getSpare2())
.append("spare3", getSpare3())
.append("spare4", getSpare4())
.append("spare5", getSpare5())
.append("spare6", getSpare6())
.toString();
}
}

62
ruoyi-admin/src/main/java/com/ruoyi/stock/mapper/WarehousingOutListMapper.java

@ -1,62 +0,0 @@
package com.ruoyi.stock.mapper;
import com.ruoyi.stock.domain.WarehousingOutList;
import java.util.List;
/**
* 出库Mapper接口
*
* @author ruoyi
* @date 2021-12-16
*/
public interface WarehousingOutListMapper
{
/**
* 查询出库
*
* @param warehousingOutNo 出库ID
* @return 出库
*/
public WarehousingOutList selectWarehousingOutListById(String warehousingOutNo);
/**
* 查询出库列表
*
* @param warehousingOutList 出库
* @return 出库集合
*/
public List<WarehousingOutList> selectWarehousingOutListList(WarehousingOutList warehousingOutList);
/**
* 新增出库
*
* @param warehousingOutList 出库
* @return 结果
*/
public int insertWarehousingOutList(WarehousingOutList warehousingOutList);
/**
* 修改出库
*
* @param warehousingOutList 出库
* @return 结果
*/
public int updateWarehousingOutList(WarehousingOutList warehousingOutList);
/**
* 删除出库
*
* @param warehousingOutNo 出库ID
* @return 结果
*/
public int deleteWarehousingOutListById(String warehousingOutNo);
/**
* 批量删除出库
*
* @param warehousingOutNos 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingOutListByIds(String[] warehousingOutNos);
}

62
ruoyi-admin/src/main/java/com/ruoyi/stock/service/IWarehousingOutListService.java

@ -1,62 +0,0 @@
package com.ruoyi.stock.service;
import com.ruoyi.stock.domain.WarehousingOutList;
import java.util.List;
/**
* 出库Service接口
*
* @author ruoyi
* @date 2021-12-16
*/
public interface IWarehousingOutListService
{
/**
* 查询出库
*
* @param warehousingOutNo 出库ID
* @return 出库
*/
public WarehousingOutList selectWarehousingOutListById(String warehousingOutNo);
/**
* 查询出库列表
*
* @param warehousingOutList 出库
* @return 出库集合
*/
public List<WarehousingOutList> selectWarehousingOutListList(WarehousingOutList warehousingOutList);
/**
* 新增出库
*
* @param warehousingOutList 出库
* @return 结果
*/
public int insertWarehousingOutList(WarehousingOutList warehousingOutList);
/**
* 修改出库
*
* @param warehousingOutList 出库
* @return 结果
*/
public int updateWarehousingOutList(WarehousingOutList warehousingOutList);
/**
* 批量删除出库
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingOutListByIds(String ids);
/**
* 删除出库信息
*
* @param warehousingOutNo 出库ID
* @return 结果
*/
public int deleteWarehousingOutListById(String warehousingOutNo);
}

95
ruoyi-admin/src/main/java/com/ruoyi/stock/service/impl/WarehousingOutListServiceImpl.java

@ -1,95 +0,0 @@
package com.ruoyi.stock.service.impl;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.stock.domain.WarehousingOutList;
import com.ruoyi.stock.mapper.WarehousingOutListMapper;
import com.ruoyi.stock.service.IWarehousingOutListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 出库Service业务层处理
*
* @author ruoyi
* @date 2021-12-16
*/
@Service
public class WarehousingOutListServiceImpl implements IWarehousingOutListService
{
@Autowired
private WarehousingOutListMapper warehousingOutListMapper;
/**
* 查询出库
*
* @param warehousingOutNo 出库ID
* @return 出库
*/
@Override
public WarehousingOutList selectWarehousingOutListById(String warehousingOutNo)
{
return warehousingOutListMapper.selectWarehousingOutListById(warehousingOutNo);
}
/**
* 查询出库列表
*
* @param warehousingOutList 出库
* @return 出库
*/
@Override
public List<WarehousingOutList> selectWarehousingOutListList(WarehousingOutList warehousingOutList)
{
return warehousingOutListMapper.selectWarehousingOutListList(warehousingOutList);
}
/**
* 新增出库
*
* @param warehousingOutList 出库
* @return 结果
*/
@Override
public int insertWarehousingOutList(WarehousingOutList warehousingOutList)
{
return warehousingOutListMapper.insertWarehousingOutList(warehousingOutList);
}
/**
* 修改出库
*
* @param warehousingOutList 出库
* @return 结果
*/
@Override
public int updateWarehousingOutList(WarehousingOutList warehousingOutList)
{
return warehousingOutListMapper.updateWarehousingOutList(warehousingOutList);
}
/**
* 删除出库对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteWarehousingOutListByIds(String ids)
{
return warehousingOutListMapper.deleteWarehousingOutListByIds(Convert.toStrArray(ids));
}
/**
* 删除出库信息
*
* @param warehousingOutNo 出库ID
* @return 结果
*/
@Override
public int deleteWarehousingOutListById(String warehousingOutNo)
{
return warehousingOutListMapper.deleteWarehousingOutListById(warehousingOutNo);
}
}

154
ruoyi-admin/src/main/resources/mapper/stock/WarehousingOutListMapper.xml

@ -1,154 +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.stock.mapper.WarehousingOutListMapper">
<resultMap type="WarehousingOutList" id="WarehousingOutListResult">
<result property="warehousingOutNo" column="warehousingOutNo" />
<result property="itemNo" column="itemNo" />
<result property="itemCode" column="itemCode" />
<result property="itemName" column="itemName" />
<result property="itemSpecification" column="itemSpecification" />
<result property="machineType" column="machineType" />
<result property="unit" column="unit" />
<result property="planQty" column="planQty" />
<result property="realQty" column="realQty" />
<result property="returnQty" column="returnQty" />
<result property="coinType" column="coinType" />
<result property="price" column="price" />
<result property="totalPrice" column="totalPrice" />
<result property="remark" column="remark" />
<result property="buyOrderNo" column="buyOrderNo" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="spare4" column="spare4" />
<result property="spare5" column="spare5" />
<result property="spare6" column="spare6" />
</resultMap>
<sql id="selectWarehousingOutListVo">
select warehousingOutNo, itemNo, itemCode, itemName, itemSpecification, machineType, unit, planQty, realQty, returnQty, coinType, price, totalPrice, remark, buyOrderNo, spare1, spare2, spare3, spare4, spare5, spare6 from warehousing_out_list
</sql>
<select id="selectWarehousingOutListList" parameterType="WarehousingOutList" resultMap="WarehousingOutListResult">
<include refid="selectWarehousingOutListVo"/>
<where>
<if test="warehousingOutNo != null and warehousingOutNo != ''"> and warehousingOutNo like concat('%', #{warehousingOutNo}, '%')</if>
<if test="itemNo != null and itemNo != ''"> and itemNo = #{itemNo}</if>
<if test="itemCode != null and itemCode != ''"> and itemCode like concat('%', #{itemCode}, '%')</if>
<if test="itemName != null and itemName != ''"> and itemName like concat('%', #{itemName}, '%')</if>
<if test="itemSpecification != null and itemSpecification != ''"> and itemSpecification like concat('%', #{itemSpecification}, '%')</if>
<if test="machineType != null and machineType != ''"> and machineType like concat('%', #{machineType}, '%')</if>
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
<if test="planQty != null "> and planQty = #{planQty}</if>
<if test="realQty != null "> and realQty = #{realQty}</if>
<if test="returnQty != null "> and returnQty = #{returnQty}</if>
<if test="coinType != null and coinType != ''"> and coinType = #{coinType}</if>
<if test="price != null "> and price = #{price}</if>
<if test="totalPrice != null "> and totalPrice = #{totalPrice}</if>
<if test="buyOrderNo != null and buyOrderNo != ''"> and buyOrderNo like concat('%', #{buyOrderNo}, '%')</if>
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
<if test="spare4 != null and spare4 != ''"> and spare4 = #{spare4}</if>
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
</where>
</select>
<select id="selectWarehousingOutListById" parameterType="String" resultMap="WarehousingOutListResult">
<include refid="selectWarehousingOutListVo"/>
where warehousingOutNo = #{warehousingOutNo}
</select>
<insert id="insertWarehousingOutList" parameterType="WarehousingOutList">
insert into warehousing_out_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="warehousingOutNo != null">warehousingOutNo,</if>
<if test="itemNo != null">itemNo,</if>
<if test="itemCode != null">itemCode,</if>
<if test="itemName != null">itemName,</if>
<if test="itemSpecification != null">itemSpecification,</if>
<if test="machineType != null">machineType,</if>
<if test="unit != null">unit,</if>
<if test="planQty != null">planQty,</if>
<if test="realQty != null">realQty,</if>
<if test="returnQty != null">returnQty,</if>
<if test="coinType != null">coinType,</if>
<if test="price != null">price,</if>
<if test="totalPrice != null">totalPrice,</if>
<if test="remark != null">remark,</if>
<if test="buyOrderNo != null">buyOrderNo,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="spare4 != null">spare4,</if>
<if test="spare5 != null">spare5,</if>
<if test="spare6 != null">spare6,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="warehousingOutNo != null">#{warehousingOutNo},</if>
<if test="itemNo != null">#{itemNo},</if>
<if test="itemCode != null">#{itemCode},</if>
<if test="itemName != null">#{itemName},</if>
<if test="itemSpecification != null">#{itemSpecification},</if>
<if test="machineType != null">#{machineType},</if>
<if test="unit != null">#{unit},</if>
<if test="planQty != null">#{planQty},</if>
<if test="realQty != null">#{realQty},</if>
<if test="returnQty != null">#{returnQty},</if>
<if test="coinType != null">#{coinType},</if>
<if test="price != null">#{price},</if>
<if test="totalPrice != null">#{totalPrice},</if>
<if test="remark != null">#{remark},</if>
<if test="buyOrderNo != null">#{buyOrderNo},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="spare4 != null">#{spare4},</if>
<if test="spare5 != null">#{spare5},</if>
<if test="spare6 != null">#{spare6},</if>
</trim>
</insert>
<update id="updateWarehousingOutList" parameterType="WarehousingOutList">
update warehousing_out_list
<trim prefix="SET" suffixOverrides=",">
<if test="itemNo != null">itemNo = #{itemNo},</if>
<if test="itemCode != null">itemCode = #{itemCode},</if>
<if test="itemName != null">itemName = #{itemName},</if>
<if test="itemSpecification != null">itemSpecification = #{itemSpecification},</if>
<if test="machineType != null">machineType = #{machineType},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="planQty != null">planQty = #{planQty},</if>
<if test="realQty != null">realQty = #{realQty},</if>
<if test="returnQty != null">returnQty = #{returnQty},</if>
<if test="coinType != null">coinType = #{coinType},</if>
<if test="price != null">price = #{price},</if>
<if test="totalPrice != null">totalPrice = #{totalPrice},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="buyOrderNo != null">buyOrderNo = #{buyOrderNo},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="spare4 != null">spare4 = #{spare4},</if>
<if test="spare5 != null">spare5 = #{spare5},</if>
<if test="spare6 != null">spare6 = #{spare6},</if>
</trim>
where warehousingOutNo = #{warehousingOutNo}
</update>
<delete id="deleteWarehousingOutListById" parameterType="String">
delete from warehousing_out_list where warehousingOutNo = #{warehousingOutNo}
</delete>
<delete id="deleteWarehousingOutListByIds" parameterType="String">
delete from warehousing_out_list where warehousingOutNo in
<foreach item="warehousingOutNo" collection="array" open="(" separator="," close=")">
#{warehousingOutNo}
</foreach>
</delete>
</mapper>

151
ruoyi-admin/src/main/resources/templates/stock/warehousingOutList/add.html

@ -1,151 +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-warehousingOutList-add">
<div class="form-group">
<label class="col-sm-3 control-label">项次:</label>
<div class="col-sm-8">
<input name="itemNo" 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="itemCode" 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="itemName" 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="itemSpecification" 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="machineType" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位:</label>
<div class="col-sm-8">
<input name="unit" 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="planQty" 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="realQty" 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="returnQty" 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="coinType" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">价格:</label>
<div class="col-sm-8">
<input name="price" 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="totalPrice" 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="remark" 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="buyOrderNo" 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="spare1" 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="spare2" 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="spare3" 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="spare4" 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="spare5" 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="spare6" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "stock/warehousingOutList"
$("#form-warehousingOutList-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-warehousingOutList-add').serialize());
}
}
</script>
</body>
</html>

152
ruoyi-admin/src/main/resources/templates/stock/warehousingOutList/edit.html

@ -1,152 +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-warehousingOutList-edit" th:object="${warehousingOutList}">
<input name="warehousingOutNo" th:field="*{warehousingOutNo}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">项次:</label>
<div class="col-sm-8">
<input name="itemNo" th:field="*{itemNo}" 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="itemCode" th:field="*{itemCode}" 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="itemName" th:field="*{itemName}" 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="itemSpecification" th:field="*{itemSpecification}" 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="machineType" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位:</label>
<div class="col-sm-8">
<input name="unit" th:field="*{unit}" 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="planQty" th:field="*{planQty}" 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="realQty" th:field="*{realQty}" 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="returnQty" th:field="*{returnQty}" 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="coinType" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">价格:</label>
<div class="col-sm-8">
<input name="price" th:field="*{price}" 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="totalPrice" th:field="*{totalPrice}" 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="remark" th:field="*{remark}" 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="buyOrderNo" th:field="*{buyOrderNo}" 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="spare1" th:field="*{spare1}" 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="spare2" th:field="*{spare2}" 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="spare3" th:field="*{spare3}" 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="spare4" th:field="*{spare4}" 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="spare5" th:field="*{spare5}" 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="spare6" th:field="*{spare6}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "stock/warehousingOutList";
$("#form-warehousingOutList-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-warehousingOutList-edit').serialize());
}
}
</script>
</body>
</html>

244
ruoyi-admin/src/main/resources/templates/stock/warehousingOutList/warehousingOutList.html

@ -1,244 +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="warehousingOutNo"/>
</li>
<li>
<label>项次:</label>
<input type="text" name="itemNo"/>
</li>
<li>
<label>物料代码:</label>
<input type="text" name="itemCode"/>
</li>
<li>
<label>物料名称:</label>
<input type="text" name="itemName"/>
</li>
<li>
<label>物料规格:</label>
<input type="text" name="itemSpecification"/>
</li>
<li>
<label>机号:</label>
<select name="machineType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>单位:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>计划数量:</label>
<input type="text" name="planQty"/>
</li>
<li>
<label>实际数量:</label>
<input type="text" name="realQty"/>
</li>
<li>
<label>退回数量:</label>
<input type="text" name="returnQty"/>
</li>
<li>
<label>币别:</label>
<select name="coinType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>价格:</label>
<input type="text" name="price"/>
</li>
<li>
<label>总价:</label>
<input type="text" name="totalPrice"/>
</li>
<li>
<label>订单号:</label>
<input type="text" name="buyOrderNo"/>
</li>
<li>
<label></label>
<input type="text" name="spare1"/>
</li>
<li>
<label></label>
<input type="text" name="spare2"/>
</li>
<li>
<label></label>
<input type="text" name="spare3"/>
</li>
<li>
<label></label>
<input type="text" name="spare4"/>
</li>
<li>
<label></label>
<input type="text" name="spare5"/>
</li>
<li>
<label></label>
<input type="text" name="spare6"/>
</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="stock:warehousingOutList:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="stock:warehousingOutList:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="stock:warehousingOutList:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="stock:warehousingOutList: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('stock:warehousingOutList:edit')}]];
var removeFlag = [[${@permission.hasPermi('stock:warehousingOutList:remove')}]];
var prefix = ctx + "stock/warehousingOutList";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "出库",
columns: [{
checkbox: true
},
{
field: 'warehousingOutNo',
title: '出库单号',
visible: false
},
{
field: 'itemNo',
title: '项次'
},
{
field: 'itemCode',
title: '物料代码'
},
{
field: 'itemName',
title: '物料名称'
},
{
field: 'itemSpecification',
title: '物料规格'
},
{
field: 'machineType',
title: '机号'
},
{
field: 'unit',
title: '单位'
},
{
field: 'planQty',
title: '计划数量'
},
{
field: 'realQty',
title: '实际数量'
},
{
field: 'returnQty',
title: '退回数量'
},
{
field: 'coinType',
title: '币别'
},
{
field: 'price',
title: '价格'
},
{
field: 'totalPrice',
title: '总价'
},
{
field: 'remark',
title: '备注'
},
{
field: 'buyOrderNo',
title: '订单号'
},
{
field: 'spare1',
title: ''
},
{
field: 'spare2',
title: ''
},
{
field: 'spare3',
title: ''
},
{
field: 'spare4',
title: ''
},
{
field: 'spare5',
title: ''
},
{
field: 'spare6',
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.warehousingOutNo + '\')"><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.warehousingOutNo + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
Loading…
Cancel
Save