自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-07-18 c267a7ec40f10b5918476d887bc399a9d6c08936
#
6个文件已修改
553 ■■■■ 已修改文件
pom.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 261 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 221 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlMapper.xml 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/common.js 45 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/wrkDetl/wrkDetl.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -91,6 +91,12 @@
            <artifactId>easyexcel</artifactId>
            <version>2.0.5</version>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.16.22</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -2,16 +2,15 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
@Data
@TableName("asr_wrk_detl")
public class WrkDetl implements Serializable {
@@ -38,40 +37,47 @@
    private String matnr;
    /**
     * 物料描述
     */
    @ApiModelProperty(value= "物料描述")
    private String maktx;
    /**
     * 仓库号
     */
    @ApiModelProperty(value= "规格")
    private String lgnum;
    /**
     * 转储请求编号
     * 仓库号
     */
    @ApiModelProperty(value= "转储请求编号")
    private Integer tbnum;
    @ApiModelProperty(value= "商品类别")
    private String type;
    /**
     * 行项目
     * 仓库号
     */
    @ApiModelProperty(value= "行项目")
    private Integer tbpos;
    @ApiModelProperty(value= "助记码")
    private String mnemonic;
    /**
     * 物料标签ID
     * 仓库号
     */
    @ApiModelProperty(value= "颜色")
    private String zmatid;
    @ApiModelProperty(value= "供应商")
    private String supplier;
    /**
     * 物料描述
     * 仓库号
     */
    @ApiModelProperty(value= "物料描述")
    private String maktx;
    @ApiModelProperty(value= "仓库")
    private String warehouse;
    /**
     * 工厂
     * 仓库号
     */
    @ApiModelProperty(value= "工厂")
    private String werks;
    @ApiModelProperty(value= "品牌")
    private String brand;
    /**
     * 数量
@@ -131,193 +137,11 @@
    @TableField("appe_time")
    private Date appeTime;
    @ApiModelProperty(value= "")
    private Double nista;
    public WrkDetl() {}
    public WrkDetl(Integer wrkNo,Date ioTime,String matnr,String lgnum,Integer tbnum,Integer tbpos,String zmatid,String maktx,String werks,Double anfme,String altme,String zpallet,String bname,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Double nista) {
        this.wrkNo = wrkNo;
        this.ioTime = ioTime;
        this.matnr = matnr;
        this.lgnum = lgnum;
        this.tbnum = tbnum;
        this.tbpos = tbpos;
        this.zmatid = zmatid;
        this.maktx = maktx;
        this.werks = werks;
        this.anfme = anfme;
        this.altme = altme;
        this.zpallet = zpallet;
        this.bname = bname;
        this.memo = memo;
        this.modiUser = modiUser;
        this.modiTime = modiTime;
        this.appeUser = appeUser;
        this.appeTime = appeTime;
        this.nista = nista;
    }
//    WrkDetl wrkDetl = new WrkDetl(
//            null,    // 工作号[非空]
//            null,    // 工作时间
//            null,    // 物料[非空]
//            null,    // 仓库号[非空]
//            null,    // 转储请求编号[非空]
//            null,    // 行项目[非空]
//            null,    // 物料标签ID[非空]
//            null,    // 物料描述
//            null,    // 工厂
//            null,    // 数量
//            null,    // 单位
//            null,    // 托盘条码
//            null,    // 用户ID
//            null,    // 备注
//            null,    // 修改人员
//            null,    // 修改时间
//            null,    // 创建者
//            null,    // 添加时间
//            null    //
//    );
    public Integer getWrkNo() {
        return wrkNo;
    }
    public void setWrkNo(Integer wrkNo) {
        this.wrkNo = wrkNo;
    }
    public Date getIoTime() {
        return ioTime;
    }
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
    public void setIoTime(Date ioTime) {
        this.ioTime = ioTime;
    }
    public String getMatnr() {
        return matnr;
    }
    public void setMatnr(String matnr) {
        this.matnr = matnr;
    }
    public String getLgnum() {
        return lgnum;
    }
    public void setLgnum(String lgnum) {
        this.lgnum = lgnum;
    }
    public Integer getTbnum() {
        return tbnum;
    }
    public void setTbnum(Integer tbnum) {
        this.tbnum = tbnum;
    }
    public Integer getTbpos() {
        return tbpos;
    }
    public void setTbpos(Integer tbpos) {
        this.tbpos = tbpos;
    }
    public String getZmatid() {
        return zmatid;
    }
    public void setZmatid(String zmatid) {
        this.zmatid = zmatid;
    }
    public String getMaktx() {
        return maktx;
    }
    public void setMaktx(String maktx) {
        this.maktx = maktx;
    }
    public String getWerks() {
        return werks;
    }
    public void setWerks(String werks) {
        this.werks = werks;
    }
    public Double getAnfme() {
        return anfme;
    }
    public void setAnfme(Double anfme) {
        this.anfme = anfme;
    }
    public String getAltme() {
        return altme;
    }
    public void setAltme(String altme) {
        this.altme = altme;
    }
    public String getZpallet() {
        return zpallet;
    }
    public void setZpallet(String zpallet) {
        this.zpallet = zpallet;
    }
    public String getBname() {
        return bname;
    }
    public void setBname(String bname) {
        this.bname = bname;
    }
    public String getMemo() {
        return memo;
    }
    public void setMemo(String memo) {
        this.memo = memo;
    }
    public Long getModiUser() {
        return modiUser;
    }
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public void setModiUser(Long modiUser) {
        this.modiUser = modiUser;
    }
    public Date getModiTime() {
        return modiTime;
    }
    public String getModiTime$(){
@@ -327,48 +151,11 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
    public void setModiTime(Date modiTime) {
        this.modiTime = modiTime;
    }
    public Long getAppeUser() {
        return appeUser;
    }
    public String getAppeUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.appeUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public void setAppeUser(Long appeUser) {
        this.appeUser = appeUser;
    }
    public Date getAppeTime() {
        return appeTime;
    }
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public void setAppeTime(Date appeTime) {
        this.appeTime = appeTime;
    }
    public Double getNista() {
        return nista;
    }
    public void setNista(Double nista) {
        this.nista = nista;
    }
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -3,15 +3,14 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
@Data
@TableName("asr_wrk_detl_log")
public class WrkDetlLog implements Serializable {
@@ -134,190 +133,11 @@
    @ApiModelProperty(value= "")
    private Double nista;
    public WrkDetlLog() {}
    public WrkDetlLog(Integer wrkNo,Date ioTime,String matnr,String lgnum,Integer tbnum,Integer tbpos,String zmatid,String maktx,String werks,Double anfme,String altme,String zpallet,String bname,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Double nista) {
        this.wrkNo = wrkNo;
        this.ioTime = ioTime;
        this.matnr = matnr;
        this.lgnum = lgnum;
        this.tbnum = tbnum;
        this.tbpos = tbpos;
        this.zmatid = zmatid;
        this.maktx = maktx;
        this.werks = werks;
        this.anfme = anfme;
        this.altme = altme;
        this.zpallet = zpallet;
        this.bname = bname;
        this.memo = memo;
        this.modiUser = modiUser;
        this.modiTime = modiTime;
        this.appeUser = appeUser;
        this.appeTime = appeTime;
        this.nista = nista;
    }
//    WrkDetlLog wrkDetlLog = new WrkDetlLog(
//            null,    // 工作号[非空]
//            null,    // 工作时间
//            null,    // 物料编号[非空]
//            null,    // 仓库号[非空]
//            null,    // 转储请求编号[非空]
//            null,    // 行项目[非空]
//            null,    // 物料标签ID
//            null,    // 物料描述
//            null,    // 工厂
//            null,    // 数量
//            null,    // 单位
//            null,    // 托盘条码
//            null,    // 用户ID
//            null,    // 备注
//            null,    // 修改人员
//            null,    // 修改时间
//            null,    // 创建者
//            null,    // 添加时间
//            null    //
//    );
    public Integer getWrkNo() {
        return wrkNo;
    }
    public void setWrkNo(Integer wrkNo) {
        this.wrkNo = wrkNo;
    }
    public Date getIoTime() {
        return ioTime;
    }
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
    public void setIoTime(Date ioTime) {
        this.ioTime = ioTime;
    }
    public String getMatnr() {
        return matnr;
    }
    public void setMatnr(String matnr) {
        this.matnr = matnr;
    }
    public String getLgnum() {
        return lgnum;
    }
    public void setLgnum(String lgnum) {
        this.lgnum = lgnum;
    }
    public Integer getTbnum() {
        return tbnum;
    }
    public void setTbnum(Integer tbnum) {
        this.tbnum = tbnum;
    }
    public Integer getTbpos() {
        return tbpos;
    }
    public void setTbpos(Integer tbpos) {
        this.tbpos = tbpos;
    }
    public String getZmatid() {
        return zmatid;
    }
    public void setZmatid(String zmatid) {
        this.zmatid = zmatid;
    }
    public String getMaktx() {
        return maktx;
    }
    public void setMaktx(String maktx) {
        this.maktx = maktx;
    }
    public String getWerks() {
        return werks;
    }
    public void setWerks(String werks) {
        this.werks = werks;
    }
    public Double getAnfme() {
        return anfme;
    }
    public void setAnfme(Double anfme) {
        this.anfme = anfme;
    }
    public String getAltme() {
        return altme;
    }
    public void setAltme(String altme) {
        this.altme = altme;
    }
    public String getZpallet() {
        return zpallet;
    }
    public void setZpallet(String zpallet) {
        this.zpallet = zpallet;
    }
    public String getBname() {
        return bname;
    }
    public void setBname(String bname) {
        this.bname = bname;
    }
    public String getMemo() {
        return memo;
    }
    public void setMemo(String memo) {
        this.memo = memo;
    }
    public Long getModiUser() {
        return modiUser;
    }
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public void setModiUser(Long modiUser) {
        this.modiUser = modiUser;
    }
    public Date getModiTime() {
        return modiTime;
    }
    public String getModiTime$(){
@@ -327,48 +147,11 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
    public void setModiTime(Date modiTime) {
        this.modiTime = modiTime;
    }
    public Long getAppeUser() {
        return appeUser;
    }
    public String getAppeUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.appeUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public void setAppeUser(Long appeUser) {
        this.appeUser = appeUser;
    }
    public Date getAppeTime() {
        return appeTime;
    }
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public void setAppeTime(Date appeTime) {
        this.appeTime = appeTime;
    }
    public Double getNista() {
        return nista;
    }
    public void setNista(Double nista) {
        this.nista = nista;
    }
src/main/resources/mapper/WrkDetlMapper.xml
@@ -7,12 +7,13 @@
        <result column="wrk_no" property="wrkNo" />
        <result column="io_time" property="ioTime" />
        <result column="matnr" property="matnr" />
        <result column="lgnum" property="lgnum" />
        <result column="tbnum" property="tbnum" />
        <result column="tbpos" property="tbpos" />
        <result column="zmatid" property="zmatid" />
        <result column="maktx" property="maktx" />
        <result column="werks" property="werks" />
        <result column="lgnum" property="lgnum" />
        <result column="type" property="type" />
        <result column="mnemonic" property="mnemonic" />
        <result column="supplier" property="supplier" />
        <result column="warehouse" property="warehouse" />
        <result column="brand" property="brand" />
        <result column="anfme" property="anfme" />
        <result column="altme" property="altme" />
        <result column="zpallet" property="zpallet" />
@@ -22,8 +23,6 @@
        <result column="modi_time" property="modiTime" />
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="nista" property="nista" />
    </resultMap>
</mapper>
src/main/webapp/static/js/common.js
@@ -171,15 +171,48 @@
}
var matCols = [
    {field: 'matNo', align: 'center',title: '物料编码'}
    ,{field: 'barcode', align: 'center',title: '条码'}
    ,{field: 'matName', align: 'center',title: '物料名称'}
    ,{field: 'str1', align: 'center',title: '物料单位'}
    {field: 'matNo', align: 'center',title: '商品编码'}
    ,{field: 'barcode', align: 'center',title: '条形码'}
    ,{field: 'matName', align: 'center',title: '商品名称'}
    ,{field: 'str1', align: 'center',title: '基本单位'}
    ,{field: 'str2', align: 'center',title: '商品类别'}
    ,{field: 'str3', align: 'center',title: '规格型号'}
    ,{field: 'str4', align: 'center',title: '状态', hide: true}
    ,{field: 'str5', align: 'center',title: '助记码'}
    ,{field: 'str6', align: 'center',title: '默认供应商'}
    ,{field: 'str7', align: 'center',title: '默认仓库'}
    // ,{field: 'str8', align: 'center',title: '品牌'}
    // ,{field: 'str9', align: 'center',title: '采购员'}
    // ,{field: 'str10', align: 'center',title: '产地'}
    // ,{field: 'str11', align: 'center',title: '序列号管理'}
    // ,{field: 'str12', align: 'center',title: '批次管理'}
    // ,{field: 'str13', align: 'center',title: '保质期单位'}
    // ,{field: 'str14', align: 'center',title: '保质期管理'}
    // ,{field: 'str15', align: 'center',title: '保质期'}
    // ,{field: 'str16', align: 'center',title: '可销售'}
    ,{field: 'str17', align: 'center',title: '可采购', hide: true}
    ,{field: 'str18', align: 'center',title: '可为子件', hide: true}
    // ,{field: 'str19', align: 'center',title: '可为组件'}
    // ,{field: 'str20', align: 'center',title: '辅助属性管理'}
    ,{field: 'str21', align: 'center',title: '成本计算方法', hide: true}
    ,{field: 'str22', align: 'center',title: '采购单位', hide: true}
    ,{field: 'str23', align: 'center',title: '销售单位', hide: true}
    // ,{field: 'num1', align: 'center',title: '预警天数'}
    // ,{field: 'num2', align: 'center',title: '最低库存数量'}
    // ,{field: 'num3', align: 'center',title: '最高库存数量'}
    // ,{field: 'num4', align: 'center',title: '安全库存'}
    // ,{field: 'num5', align: 'center',title: '税率'}
]
var detlCols = [
    {field: 'matnr', align: 'center',title: '物料'}
    ,{field: 'maktx', align: 'center',title: '物料描述'}
    {field: 'matnr', align: 'center',title: '商品编码'}
    ,{field: 'maktx', align: 'center',title: '商品名称'}
    ,{field: 'lgnum', align: 'center',title: '规格'}
    ,{field: 'type', align: 'center',title: '商品类别'}
    // ,{field: 'mnemonic', align: 'center',title: '助记码'}
    // ,{field: 'supplier', align: 'center',title: '供应商'}
    // ,{field: 'warehouse', align: 'center',title: '仓库'}
    // ,{field: 'brand', align: 'center',title: '品牌'}
    ,{field: 'anfme', align: 'center',title: '数量'}
    ,{field: 'altme', align: 'center',title: '单位'}
    ,{field: 'zpallet', align: 'center',title: '托盘条码'}
src/main/webapp/static/js/wrkDetl/wrkDetl.js
@@ -467,13 +467,6 @@
    }
}
function clearFormVal(el) {
    $(':input', el)
        .val('')
        .removeAttr('checked')
        .removeAttr('selected');
}
function detailScreen(index) {
    var detail = layer.getChildFrame('#data-detail', index);
    var height = detail.height()+60;