Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dev
zhangsiqi 5 months ago
parent
commit
b078caa000
  1. 246
      ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpInboundOrder.java
  2. 99
      ruoyi-admin/src/main/resources/mapper/erp/ErpInboundOrderMapper.xml
  3. 115
      ruoyi-admin/src/main/resources/templates/erp/inboundOrder/inboundOrder.html

246
ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpInboundOrder.java

@ -5,13 +5,14 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
/** /**
* 入库单对象 erp_inbound_order * 入库单对象 erp_inbound_order
* *
* @author ruoyi * @author ruoyi
* @date 2024-04-24 * @date 2024-06-19
*/ */
public class ErpInboundOrder extends BaseEntity public class ErpInboundOrder extends BaseEntity
{ {
@ -23,10 +24,18 @@ public class ErpInboundOrder extends BaseEntity
/** 删除标志(0代表存在 1代表删除) */ /** 删除标志(0代表存在 1代表删除) */
private String delFlag; private String delFlag;
/** 品质单号 */
@Excel(name = "品质单号")
private String qualityOrderCode;
/** 生产订单号 */ /** 生产订单号 */
@Excel(name = "生产订单号") @Excel(name = "生产订单号")
private String makeNo; private String makeNo;
/** 品质状态(0待品质、1部分品质、全部品质) */
@Excel(name = "品质状态(0待品质、1部分品质、全部品质)")
private String qualityStatus;
/** 关联销售订单号 */ /** 关联销售订单号 */
@Excel(name = "关联销售订单号") @Excel(name = "关联销售订单号")
private String saleNo; private String saleNo;
@ -47,80 +56,239 @@ public class ErpInboundOrder extends BaseEntity
@Excel(name = "入库数") @Excel(name = "入库数")
private Long inboundNum; private Long inboundNum;
/** 工程员 */
@Excel(name = "工程员")
private String engineerName;
/** 生产订单类型 */
@Excel(name = "生产订单类型")
private String orderType;
/** 客户Id */
@Excel(name = "客户Id")
private String customerId;
/** 客户名称 */
@Excel(name = "客户名称")
private String customerName;
/** 客户订单号 */
@Excel(name = "客户订单号")
private String salesOrderNumber;
/** 物料合计 */
@Excel(name = "物料合计")
private Long materialTotal;
/** 数量合计 */
@Excel(name = "数量合计")
private Long numTotal;
/** 品质合格数量 */
@Excel(name = "品质合格数量")
private Long qualityQualifiedNum;
/** 品质不合格数量 */
@Excel(name = "品质不合格数量")
private Long qualityUnqualifiedNum;
/** 入库数量 */
@Excel(name = "入库数量")
private Long storageNum;
/** 委内加工费总价 */
@Excel(name = "委内加工费总价")
private BigDecimal processingFeeTotal;
private List<ErpInboundOrderDetail> inboundDetails; private List<ErpInboundOrderDetail> inboundDetails;
public void setId(Long id) public void setId(Long id)
{ {
this.id = id; this.id = id;
} }
public Long getId() public Long getId()
{ {
return id; return id;
} }
public void setDelFlag(String delFlag) public void setDelFlag(String delFlag)
{ {
this.delFlag = delFlag; this.delFlag = delFlag;
} }
public String getDelFlag() public String getDelFlag()
{ {
return delFlag; return delFlag;
} }
public void setMakeNo(String makeNo) public void setQualityOrderCode(String qualityOrderCode)
{
this.qualityOrderCode = qualityOrderCode;
}
public String getQualityOrderCode()
{
return qualityOrderCode;
}
public void setMakeNo(String makeNo)
{ {
this.makeNo = makeNo; this.makeNo = makeNo;
} }
public String getMakeNo() public String getMakeNo()
{ {
return makeNo; return makeNo;
} }
public void setSaleNo(String saleNo) public void setQualityStatus(String qualityStatus)
{
this.qualityStatus = qualityStatus;
}
public String getQualityStatus()
{
return qualityStatus;
}
public void setSaleNo(String saleNo)
{ {
this.saleNo = saleNo; this.saleNo = saleNo;
} }
public String getSaleNo() public String getSaleNo()
{ {
return saleNo; return saleNo;
} }
public void setInboundOrderNo(String inboundOrderNo) public void setInboundOrderNo(String inboundOrderNo)
{ {
this.inboundOrderNo = inboundOrderNo; this.inboundOrderNo = inboundOrderNo;
} }
public String getInboundOrderNo() public String getInboundOrderNo()
{ {
return inboundOrderNo; return inboundOrderNo;
} }
public void setInboundStatus(String inboundStatus) public void setInboundStatus(String inboundStatus)
{ {
this.inboundStatus = inboundStatus; this.inboundStatus = inboundStatus;
} }
public String getInboundStatus() public String getInboundStatus()
{ {
return inboundStatus; return inboundStatus;
} }
public void setInboundType(String inboundType) public void setInboundType(String inboundType)
{ {
this.inboundType = inboundType; this.inboundType = inboundType;
} }
public String getInboundType() public String getInboundType()
{ {
return inboundType; return inboundType;
} }
public void setInboundNum(Long inboundNum) public void setInboundNum(Long inboundNum)
{ {
this.inboundNum = inboundNum; this.inboundNum = inboundNum;
} }
public Long getInboundNum() public Long getInboundNum()
{ {
return inboundNum; return inboundNum;
} }
public void setEngineerName(String engineerName)
{
this.engineerName = engineerName;
}
public String getEngineerName()
{
return engineerName;
}
public void setOrderType(String orderType)
{
this.orderType = orderType;
}
public String getOrderType()
{
return orderType;
}
public void setCustomerId(String customerId)
{
this.customerId = customerId;
}
public String getCustomerId()
{
return customerId;
}
public void setCustomerName(String customerName)
{
this.customerName = customerName;
}
public String getCustomerName()
{
return customerName;
}
public void setSalesOrderNumber(String salesOrderNumber)
{
this.salesOrderNumber = salesOrderNumber;
}
public String getSalesOrderNumber()
{
return salesOrderNumber;
}
public void setMaterialTotal(Long materialTotal)
{
this.materialTotal = materialTotal;
}
public Long getMaterialTotal()
{
return materialTotal;
}
public void setNumTotal(Long numTotal)
{
this.numTotal = numTotal;
}
public Long getNumTotal()
{
return numTotal;
}
public void setQualityQualifiedNum(Long qualityQualifiedNum)
{
this.qualityQualifiedNum = qualityQualifiedNum;
}
public Long getQualityQualifiedNum()
{
return qualityQualifiedNum;
}
public void setQualityUnqualifiedNum(Long qualityUnqualifiedNum)
{
this.qualityUnqualifiedNum = qualityUnqualifiedNum;
}
public Long getQualityUnqualifiedNum()
{
return qualityUnqualifiedNum;
}
public void setStorageNum(Long storageNum)
{
this.storageNum = storageNum;
}
public Long getStorageNum()
{
return storageNum;
}
public BigDecimal getProcessingFeeTotal() {
return processingFeeTotal;
}
public void setProcessingFeeTotal(BigDecimal processingFeeTotal) {
this.processingFeeTotal = processingFeeTotal;
}
public List<ErpInboundOrderDetail> getInboundDetails() { public List<ErpInboundOrderDetail> getInboundDetails() {
return inboundDetails; return inboundDetails;
@ -133,19 +301,33 @@ public class ErpInboundOrder extends BaseEntity
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("delFlag", getDelFlag()) .append("delFlag", getDelFlag())
.append("createBy", getCreateBy()) .append("createBy", getCreateBy())
.append("createTime", getCreateTime()) .append("createTime", getCreateTime())
.append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
.append("remark", getRemark()) .append("remark", getRemark())
.append("makeNo", getMakeNo()) .append("qualityOrderCode", getQualityOrderCode())
.append("saleNo", getSaleNo()) .append("makeNo", getMakeNo())
.append("inboundOrderNo", getInboundOrderNo()) .append("qualityStatus", getQualityStatus())
.append("inboundStatus", getInboundStatus()) .append("saleNo", getSaleNo())
.append("inboundType", getInboundType()) .append("inboundOrderNo", getInboundOrderNo())
.append("inboundNum", getInboundNum()) .append("inboundStatus", getInboundStatus())
.toString(); .append("inboundType", getInboundType())
.append("inboundNum", getInboundNum())
.append("engineerName", getEngineerName())
.append("orderType", getOrderType())
.append("customerId", getCustomerId())
.append("customerName", getCustomerName())
.append("salesOrderNumber", getSalesOrderNumber())
.append("materialTotal", getMaterialTotal())
.append("numTotal", getNumTotal())
.append("qualityQualifiedNum", getQualityQualifiedNum())
.append("qualityUnqualifiedNum", getQualityUnqualifiedNum())
.append("storageNum", getStorageNum())
.append("processingFeeTotal", getProcessingFeeTotal())
.append("inboundDetails",getInboundDetails())
.toString();
} }
} }

99
ruoyi-admin/src/main/resources/mapper/erp/ErpInboundOrderMapper.xml

@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.erp.mapper.ErpInboundOrderMapper"> <mapper namespace="com.ruoyi.erp.mapper.ErpInboundOrderMapper">
<resultMap type="ErpInboundOrder" id="ErpInboundOrderResult"> <resultMap type="ErpInboundOrder" id="ErpInboundOrderResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="delFlag" column="del_flag" /> <result property="delFlag" column="del_flag" />
@ -12,35 +12,77 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="qualityOrderCode" column="quality_order_code" />
<result property="makeNo" column="make_no" /> <result property="makeNo" column="make_no" />
<result property="qualityStatus" column="quality_status" />
<result property="saleNo" column="sale_no" /> <result property="saleNo" column="sale_no" />
<result property="inboundOrderNo" column="inbound_order_no" /> <result property="inboundOrderNo" column="inbound_order_no" />
<result property="inboundStatus" column="inbound_status" /> <result property="inboundStatus" column="inbound_status" />
<result property="inboundType" column="inbound_type" /> <result property="inboundType" column="inbound_type" />
<result property="inboundNum" column="inbound_num" /> <result property="inboundNum" column="inbound_num" />
<result property="engineerName" column="engineer_name" />
<result property="orderType" column="order_type" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="salesOrderNumber" column="sales_order_number" />
<result property="materialTotal" column="material_total" />
<result property="numTotal" column="num_total" />
<result property="qualityQualifiedNum" column="quality_qualified_num" />
<result property="qualityUnqualifiedNum" column="quality_unqualified_num" />
<result property="storageNum" column="storage_num" />
<result property="processingFeeTotal" column="processing_fee_total" />
</resultMap> </resultMap>
<sql id="selectErpInboundOrderVo"> <sql id="selectErpInboundOrderVo">
select a.id, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.make_no, a.sale_no, a.inbound_order_no, a.inbound_status, a.inbound_type, a.inbound_num from erp_inbound_order a select
a.id,
a.del_flag,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.remark,
a.quality_order_code,
a.make_no,
a.quality_status,
a.sale_no,
a.inbound_order_no,
a.inbound_status,
a.inbound_type,
a.inbound_num,
a.engineer_name,
a.order_type,
a.customer_id,
a.customer_name,
a.sales_order_number,
a.material_total,
a.num_total,
a.quality_qualified_num,
a.quality_unqualified_num,
a.storage_num,
a.processing_fee_total
from erp_inbound_order a
</sql> </sql>
<select id="selectErpInboundOrderList" parameterType="ErpInboundOrder" resultMap="ErpInboundOrderResult"> <select id="selectErpInboundOrderList" parameterType="ErpInboundOrder" resultMap="ErpInboundOrderResult">
<include refid="selectErpInboundOrderVo"/> <include refid="selectErpInboundOrderVo"/>
<where> <where>
<if test="makeNo != null and makeNo != ''"> and a.make_no = #{makeNo}</if> <if test="makeNo != null and makeNo != ''"> and a.make_no = #{makeNo}</if>
<if test="saleNo != null and saleNo != ''"> and a.sale_no = #{saleNo}</if> <if test="saleNo != null and saleNo != ''"> and a.sale_no = #{saleNo}</if>
<if test="inboundOrderNo != null and inboundOrderNo != ''"> and a.inbound_order_no = #{inboundOrderNo}</if> <if test="inboundOrderNo != null and inboundOrderNo != ''"> and a.inbound_order_no = #{inboundOrderNo}</if>
<if test="inboundStatus != null and inboundStatus != ''"> and a.inbound_status = #{inboundStatus}</if> <if test="inboundStatus != null and inboundStatus != ''"> and a.inbound_status = #{inboundStatus}</if>
<if test="inboundType != null and inboundType != ''"> and a.inbound_type = #{inboundType}</if> <if test="inboundType != null and inboundType != ''"> and a.inbound_type = #{inboundType}</if>
<if test="inboundNum != null "> and a.inbound_num = #{inboundNum}</if> <if test="inboundNum != null "> and a.inbound_num = #{inboundNum}</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and a.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
</where> </where>
</select> </select>
<select id="selectErpInboundOrderById" parameterType="Long" resultMap="ErpInboundOrderResult"> <select id="selectErpInboundOrderById" parameterType="Long" resultMap="ErpInboundOrderResult">
<include refid="selectErpInboundOrderVo"/> <include refid="selectErpInboundOrderVo"/>
where a.id = #{id} where a.id = #{id}
</select> </select>
<insert id="insertErpInboundOrder" parameterType="ErpInboundOrder" useGeneratedKeys="true" keyProperty="id"> <insert id="insertErpInboundOrder" parameterType="ErpInboundOrder" useGeneratedKeys="true" keyProperty="id">
insert into erp_inbound_order insert into erp_inbound_order
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
@ -51,12 +93,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="makeNo != null">make_no,</if> <if test="makeNo != null">make_no,</if>
<if test="qualityOrderCode != null">quality_order_code,</if>
<if test="qualityStatus != null">quality_status,</if>
<if test="saleNo != null">sale_no,</if> <if test="saleNo != null">sale_no,</if>
<if test="inboundOrderNo != null">inbound_order_no,</if> <if test="inboundOrderNo != null">inbound_order_no,</if>
<if test="inboundStatus != null">inbound_status,</if> <if test="inboundStatus != null">inbound_status,</if>
<if test="inboundType != null">inbound_type,</if> <if test="inboundType != null">inbound_type,</if>
<if test="inboundNum != null">inbound_num,</if> <if test="inboundNum != null">inbound_num,</if>
</trim> <if test="engineerName != null">engineer_name,</if>
<if test="orderType != null">order_type,</if>
<if test="customerId != null">customer_id,</if>
<if test="customerName != null">customer_name,</if>
<if test="salesOrderNumber != null">sales_order_number,</if>
<if test="materialTotal != null">material_total,</if>
<if test="numTotal != null">num_total,</if>
<if test="qualityQualifiedNum != null">quality_qualified_num,</if>
<if test="qualityUnqualifiedNum != null">quality_unqualified_num,</if>
<if test="storageNum != null">storage_num,</if>
<if test="processingFeeTotal != null">processing_fee_total,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="delFlag != null">#{delFlag},</if> <if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>
@ -65,12 +120,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="makeNo != null">#{makeNo},</if> <if test="makeNo != null">#{makeNo},</if>
<if test="qualityOrderCode != null">#{qualityOrderCode},</if>
<if test="qualityStatus != null">#{qualityStatus},</if>
<if test="saleNo != null">#{saleNo},</if> <if test="saleNo != null">#{saleNo},</if>
<if test="inboundOrderNo != null">#{inboundOrderNo},</if> <if test="inboundOrderNo != null">#{inboundOrderNo},</if>
<if test="inboundStatus != null">#{inboundStatus},</if> <if test="inboundStatus != null">#{inboundStatus},</if>
<if test="inboundType != null">#{inboundType},</if> <if test="inboundType != null">#{inboundType},</if>
<if test="inboundNum != null">#{inboundNum},</if> <if test="inboundNum != null">#{inboundNum},</if>
</trim> <if test="engineerName != null">#{engineerName},</if>
<if test="orderType != null">#{orderType},</if>
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="salesOrderNumber != null">#{salesOrderNumber},</if>
<if test="materialTotal != null">#{materialTotal},</if>
<if test="numTotal != null">#{numTotal},</if>
<if test="qualityQualifiedNum != null">#{qualityQualifiedNum},</if>
<if test="qualityUnqualifiedNum != null">#{qualityUnqualifiedNum},</if>
<if test="storageNum != null">#{storageNum},</if>
<if test="processingFeeTotal != null">#{processingFeeTotal},</if>
</trim>
</insert> </insert>
<update id="updateErpInboundOrder" parameterType="ErpInboundOrder"> <update id="updateErpInboundOrder" parameterType="ErpInboundOrder">
@ -83,11 +151,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="makeNo != null">make_no = #{makeNo},</if> <if test="makeNo != null">make_no = #{makeNo},</if>
<if test="qualityOrderCode != null">quality_order_code = #{qualityOrderCode},</if>
<if test="qualityStatus != null">quality_status = #{qualityStatus},</if>
<if test="saleNo != null">sale_no = #{saleNo},</if> <if test="saleNo != null">sale_no = #{saleNo},</if>
<if test="inboundOrderNo != null">inbound_order_no = #{inboundOrderNo},</if> <if test="inboundOrderNo != null">inbound_order_no = #{inboundOrderNo},</if>
<if test="inboundStatus != null">inbound_status = #{inboundStatus},</if> <if test="inboundStatus != null">inbound_status = #{inboundStatus},</if>
<if test="inboundType != null">inbound_type = #{inboundType},</if> <if test="inboundType != null">inbound_type = #{inboundType},</if>
<if test="inboundNum != null">inbound_num = #{inboundNum},</if> <if test="inboundNum != null">inbound_num = #{inboundNum},</if>
<if test="engineerName != null">engineer_name = #{engineerName},</if>
<if test="orderType != null">order_type = #{orderType},</if>
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="salesOrderNumber != null">sales_order_number = #{salesOrderNumber},</if>
<if test="materialTotal != null">material_total = #{materialTotal},</if>
<if test="numTotal != null">num_total = #{numTotal},</if>
<if test="qualityQualifiedNum != null">quality_qualified_num = #{qualityQualifiedNum},</if>
<if test="qualityUnqualifiedNum != null">quality_unqualified_num = #{qualityUnqualifiedNum},</if>
<if test="storageNum != null">storage_num = #{storageNum},</if>
<if test="processingFeeTotal != null">processing_fee_total = #{processingFeeTotal},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
@ -97,7 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteErpInboundOrderByIds" parameterType="String"> <delete id="deleteErpInboundOrderByIds" parameterType="String">
delete from erp_inbound_order where id in delete from erp_inbound_order where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
@ -111,4 +192,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update erp_inbound_order set del_flag = '0' where id = #{id} update erp_inbound_order set del_flag = '0' where id = #{id}
</update> </update>
</mapper> </mapper>

115
ruoyi-admin/src/main/resources/templates/erp/inboundOrder/inboundOrder.html

@ -11,34 +11,19 @@
<div class="select-list"> <div class="select-list">
<ul> <ul>
<li> <li>
<label>入库单号:</label> <label>生产订单号:</label>
<input type="text" name="inboundOrderNo"/>
</li>
<li>
<label>关联生产单号:</label>
<input type="text" name="makeNo"/> <input type="text" name="makeNo"/>
</li> </li>
<li> <li>
<label>客户ID:</label> <label>品质状态:</label>
<input type="text" name="customerCode"/> <select name="qualityStatus" th:with="type=${@dict.getType('warehouse_quality_status')}">
</li>
<li>
<label>客户公司名称:</label>
<input type="text" name="customerCompanyName"/>
</li>
<li>
<label>生产状态:</label>
<select name="inboundType" th:with="type=${@dict.getType('sys_erp_makeStatus')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <li>
<label>使用状态:</label> <label>入库单号:</label>
<select name="useStatus" th:with="type=${@dict.getType('useStatus')}"> <input type="text" name="inboundOrderNo"/>
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li> </li>
<li> <li>
<label>入库状态:</label> <label>入库状态:</label>
@ -48,19 +33,27 @@
</select> </select>
</li> </li>
<li> <li>
<label>品质状态</label> <label>入库类型</label>
<select name="qualityStatus" th:with="type=${@dict.getType('qualityStatus')}"> <select name="inboundType" th:with="type=${@dict.getType('erp_inbound_type')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <li>
<label>品质状态</label> <label>生产订单类型</label>
<select name="orderType" th:with="type=${@dict.getType('sys_order_type')}"> <select name="orderType" th:with="type=${@dict.getType('sys_order_type')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li>
<label>客户Id:</label>
<input type="text" name="customerId"/>
</li>
<li>
<label>客户名称:</label>
<input type="text" name="customerName"/>
</li>
<li class="select-time"> <li class="select-time">
<label>录入时间:</label> <label>录入时间:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/>
@ -103,6 +96,10 @@
var restoreFlag = [[${@permission.hasPermi('erp:inboundOrder:restore')}]]; var restoreFlag = [[${@permission.hasPermi('erp:inboundOrder:restore')}]];
var inboundStatusDatas = [[${@dict.getType('erp_inbound_status')}]]; var inboundStatusDatas = [[${@dict.getType('erp_inbound_status')}]];
var inboundTypeDatas = [[${@dict.getType('erp_inbound_type')}]]; var inboundTypeDatas = [[${@dict.getType('erp_inbound_type')}]];
var warehouseQualityStatusDatas = [[${@dict.getType('warehouse_quality_status')}]];
var orderTypeDatas = [[${@dict.getType('sys_order_type')}]];
var prefix = ctx + "erp/inboundOrder"; var prefix = ctx + "erp/inboundOrder";
$(function() { $(function() {
@ -119,8 +116,21 @@
columns: [ columns: [
{checkbox: true}, {checkbox: true},
{title: '主键ID',field: 'id',visible: false}, {title: '主键ID',field: 'id',visible: false},
{title: '品质单号',field: ''}, {
{title: '品质状态',field: '',}, title: '品质单号',
field: 'qualityOrderCode',
},
{
title: '生产订单号',
field: 'makeNo',
},
{
title: '仓库品质状态',
field: 'warehouseQualityStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(warehouseQualityStatusDatas, value);
}
},
{title: '入库状态',field: 'inboundStatus', {title: '入库状态',field: 'inboundStatus',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.selectDictLabel(inboundStatusDatas, value); return $.table.selectDictLabel(inboundStatusDatas, value);
@ -129,21 +139,56 @@
{title: '入库单号',field: 'inboundOrderNo',}, {title: '入库单号',field: 'inboundOrderNo',},
{title: '关联生产订单号',field: 'makeNo',}, {title: '关联生产订单号',field: 'makeNo',},
{title: '关联销售订单号',field: 'saleNo',visible: false,}, {title: '关联销售订单号',field: 'saleNo',visible: false,},
{title: '生产订单类型',field: '',}, {
title: '工程员',
field: 'engineerName',
},
{title: '生产订单类型',field: 'orderType',
formatter: function(value, row, index) {
return $.table.selectDictLabel(orderTypeDatas, value);
}
},
{title: '入库类型',field: 'inboundType', {title: '入库类型',field: 'inboundType',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.selectDictLabel(inboundTypeDatas, value); return $.table.selectDictLabel(inboundTypeDatas, value);
} }
}, },
{title: '客户ID',field: '',}, {
{title: '客户公司名称',field: '',}, title: '客户Id',
{title: '客户订单号',field: '',}, field: 'customerId',
{title: '物料合计',field: '',}, },
{title: '数量合计',field: '',}, {
{title: '委内加工费总价',field: '',}, title: '客户公司名称',
{title: '品质合格数',field: '',}, field: 'customerName',
{title: '品项不合格数',field: '',}, },
{title: '入库数',field: 'inboundNum',}, {
title: '客户订单号',
field: 'salesOrderNumber',
},
{
title: '物料合计',
field: 'materialTotal',
},
{
title: '数量合计',
field: 'numTotal',
},
{
title: '委内加工费总价',
field: 'processingFeeTotal',
},
{
title: '品质合格数量',
field: 'qualityQualifiedNum',
},
{
title: '品质不合格数量',
field: 'qualityUnqualifiedNum',
},
{
title: '入库数量',
field: 'storageNum',
},
{title: '录入人',field: 'inboundUser',}, {title: '录入人',field: 'inboundUser',},
{title: '录入时间',field: 'inboundTime',}, {title: '录入时间',field: 'inboundTime',},
{title: '更新人',field: '',}, {title: '更新人',field: '',},

Loading…
Cancel
Save