| | |
| | | @RequestMapping(value = "/waitPakin/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakin waitPakin){ |
| | | if (Cools.isEmpty(waitPakin) || null==waitPakin.getId()){ |
| | | if (Cools.isEmpty(waitPakin)){ |
| | | return R.error(); |
| | | } |
| | | waitPakinService.updateById(waitPakin); |
| | |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WaitPakin waitPakin : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", waitPakin.getId()); |
| | | map.put("value", waitPakin.getId()); |
| | | map.put("id", waitPakin.getZpallet()); |
| | | map.put("value", waitPakin.getZpallet()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | else { |
| | | wrapper.orderBy("id", false); |
| | | wrapper.orderBy("modi_time", false); |
| | | } |
| | | return R.ok(waitPakinLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | |
| | | @RequestMapping(value = "/waitPakinLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakinLog waitPakinLog){ |
| | | if (Cools.isEmpty(waitPakinLog) || null==waitPakinLog.getId()){ |
| | | if (Cools.isEmpty(waitPakinLog)){ |
| | | return R.error(); |
| | | } |
| | | waitPakinLogService.updateById(waitPakinLog); |
| | |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WaitPakinLog waitPakinLog : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", waitPakinLog.getId()); |
| | | map.put("value", waitPakinLog.getId()); |
| | | map.put("id", waitPakinLog.getZpallet()); |
| | | map.put("value", waitPakinLog.getZpallet()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | 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("cust_wait_pakin") |
| | | public class WaitPakin implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 编号 |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 托盘码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 物料编码 |
| | | */ |
| | | @ApiModelProperty(value= "物料编码") |
| | | @ApiModelProperty(value= "物料") |
| | | private String matnr; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "物料描述") |
| | | private String maktx; |
| | | |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | private String lgnum; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "物料类别") |
| | | private String type; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | private String supplier; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "仓库") |
| | | private String warehouse; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 数量 |
| | |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | private String altme; |
| | | |
| | | /** |
| | | * 状态 |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 用户ID |
| | | */ |
| | | @ApiModelProperty(value= "用户ID") |
| | | private String bname; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | @TableField("loc_no") |
| | | private Date locNo; |
| | | |
| | | @ApiModelProperty(value= "状态") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value= "入出状态") |
| | | @TableField("io_status") |
| | | private String ioStatus; |
| | | |
| | | /** |
| | | * 备注 |
| | |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | public WaitPakin() {} |
| | | |
| | | public WaitPakin(String barcode,String matnr,String maktx,Double anfme,String unit,String status,String memo,Date modiTime,Long modiUser,Date appeTime,Long appeUser) { |
| | | this.barcode = barcode; |
| | | this.matnr = matnr; |
| | | this.maktx = maktx; |
| | | this.anfme = anfme; |
| | | this.unit = unit; |
| | | this.status = status; |
| | | this.memo = memo; |
| | | this.modiTime = modiTime; |
| | | this.modiUser = modiUser; |
| | | this.appeTime = appeTime; |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | // WaitPakin waitPakin = new WaitPakin( |
| | | // null, // 托盘码 |
| | | // null, // 物料编码 |
| | | // null, // 物料描述 |
| | | // null, // 数量 |
| | | // null, // 单位 |
| | | // null, // 状态 |
| | | // null, // 备注 |
| | | // null, // 修改时间 |
| | | // null, // 修改人员 |
| | | // null, // 添加时间 |
| | | // null // 创建者 |
| | | // ); |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getBarcode() { |
| | | return barcode; |
| | | } |
| | | |
| | | public void setBarcode(String barcode) { |
| | | this.barcode = barcode; |
| | | } |
| | | |
| | | public String getMatnr() { |
| | | return matnr; |
| | | } |
| | | |
| | | public void setMatnr(String matnr) { |
| | | this.matnr = matnr; |
| | | } |
| | | |
| | | public String getMaktx() { |
| | | return maktx; |
| | | } |
| | | |
| | | public void setMaktx(String maktx) { |
| | | this.maktx = maktx; |
| | | } |
| | | |
| | | public Double getAnfme() { |
| | | return anfme; |
| | | } |
| | | |
| | | public void setAnfme(Double anfme) { |
| | | this.anfme = anfme; |
| | | } |
| | | |
| | | public String getUnit() { |
| | | return unit; |
| | | } |
| | | |
| | | public void setUnit(String unit) { |
| | | this.unit = unit; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getMemo() { |
| | | return memo; |
| | | } |
| | | |
| | | public void setMemo(String memo) { |
| | | this.memo = memo; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | 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 getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | 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("cust_wait_pakin_log") |
| | | public class WaitPakinLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 入库通知号 |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "入库通知号") |
| | | @TableField("pakin_id") |
| | | private Long pakinId; |
| | | |
| | | /** |
| | | * 托盘码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 物料编码 |
| | | */ |
| | | @ApiModelProperty(value= "物料编码") |
| | | @ApiModelProperty(value= "物料") |
| | | private String matnr; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "物料描述") |
| | | private String maktx; |
| | | |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | private String lgnum; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "物料类别") |
| | | private String type; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | private String supplier; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "仓库") |
| | | private String warehouse; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 数量 |
| | |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | private String altme; |
| | | |
| | | /** |
| | | * 状态 |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 用户ID |
| | | */ |
| | | @ApiModelProperty(value= "用户ID") |
| | | private String bname; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | @TableField("loc_no") |
| | | private Date locNo; |
| | | |
| | | @ApiModelProperty(value= "状态") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value= "入出状态") |
| | | @TableField("io_status") |
| | | private String ioStatus; |
| | | |
| | | /** |
| | | * 备注 |
| | |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | public WaitPakinLog() {} |
| | | |
| | | public WaitPakinLog(Long pakinId,String barcode,String matnr,String maktx,Double anfme,String unit,String status,String memo,Date modiTime,Long modiUser,Date appeTime,Long appeUser) { |
| | | this.pakinId = pakinId; |
| | | this.barcode = barcode; |
| | | this.matnr = matnr; |
| | | this.maktx = maktx; |
| | | this.anfme = anfme; |
| | | this.unit = unit; |
| | | this.status = status; |
| | | this.memo = memo; |
| | | this.modiTime = modiTime; |
| | | this.modiUser = modiUser; |
| | | this.appeTime = appeTime; |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | // WaitPakinLog waitPakinLog = new WaitPakinLog( |
| | | // null, // 入库通知号 |
| | | // null, // 托盘码 |
| | | // null, // 物料编码 |
| | | // null, // 物料描述 |
| | | // null, // 数量 |
| | | // null, // 单位 |
| | | // null, // 状态 |
| | | // null, // 备注 |
| | | // null, // 修改时间 |
| | | // null, // 修改人员 |
| | | // null, // 添加时间 |
| | | // null // 创建者 |
| | | // ); |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getPakinId() { |
| | | return pakinId; |
| | | } |
| | | |
| | | public void setPakinId(Long pakinId) { |
| | | this.pakinId = pakinId; |
| | | } |
| | | |
| | | public String getBarcode() { |
| | | return barcode; |
| | | } |
| | | |
| | | public void setBarcode(String barcode) { |
| | | this.barcode = barcode; |
| | | } |
| | | |
| | | public String getMatnr() { |
| | | return matnr; |
| | | } |
| | | |
| | | public void setMatnr(String matnr) { |
| | | this.matnr = matnr; |
| | | } |
| | | |
| | | public String getMaktx() { |
| | | return maktx; |
| | | } |
| | | |
| | | public void setMaktx(String maktx) { |
| | | this.maktx = maktx; |
| | | } |
| | | |
| | | public Double getAnfme() { |
| | | return anfme; |
| | | } |
| | | |
| | | public void setAnfme(Double anfme) { |
| | | this.anfme = anfme; |
| | | } |
| | | |
| | | public String getUnit() { |
| | | return unit; |
| | | } |
| | | |
| | | public void setUnit(String unit) { |
| | | this.unit = unit; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getMemo() { |
| | | return memo; |
| | | } |
| | | |
| | | public void setMemo(String memo) { |
| | | this.memo = memo; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | 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 getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.zy.asrs.service.MatCodeService; |
| | | import com.zy.asrs.service.MobileService; |
| | | import com.zy.asrs.service.WaitPakinService; |
| | | import com.zy.asrs.utils.VersionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | throw new CoolException(BaseRes.PARAM); |
| | | } |
| | | int count = waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). |
| | | eq("barcode", param.getBarcode()).eq("status", "N")); |
| | | eq("zpallet", param.getBarcode()).eq("status", "N")); |
| | | if (count > 0) { |
| | | throw new CoolException("条码数据已存在"); |
| | | } |
| | |
| | | if (Cools.isEmpty(matCode)) { |
| | | throw new CoolException("物料数据错误"); |
| | | } |
| | | WaitPakin waitPakin = new WaitPakin( |
| | | param.getBarcode(), // 托盘码 |
| | | matCode.getMatNo(), // 物料编码 |
| | | matCode.getMatName(), // 物料描述 |
| | | combMat.getCount(), // 数量 |
| | | matCode.getStr1(), // 单位 |
| | | "N", // 状态 |
| | | null, // 备注 |
| | | new Date(), // 修改时间 |
| | | userId, // 修改人员 |
| | | new Date(), // 添加时间 |
| | | userId // 创建者 |
| | | ); |
| | | WaitPakin waitPakin = new WaitPakin(); |
| | | waitPakin.setZpallet(param.getBarcode()); // 托盘码 |
| | | waitPakin.setStatus("N"); // 状态 |
| | | waitPakin.setAnfme(combMat.getCount()); // 数量 |
| | | waitPakin.setIoStatus("N"); // 入出状态 |
| | | waitPakin.setAppeUser(userId); |
| | | waitPakin.setAppeTime(new Date()); |
| | | waitPakin.setModiUser(userId); |
| | | waitPakin.setModiTime(new Date()); |
| | | VersionUtils.setWaitPakIn(waitPakin, matCode); |
| | | |
| | | if (!waitPakinService.insert(waitPakin)) { |
| | | throw new CoolException("保存数据失败"); |
| | | } |
| | |
| | | |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.MatCode; |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import com.zy.asrs.entity.WrkDetl; |
| | | import com.zy.common.utils.excel.matcode.MatCodeExcel; |
| | | |
| | |
| | | locDetl.setZpallet(wrkDetl.getZpallet()); // 托盘条码 |
| | | } |
| | | |
| | | public static void setWaitPakIn(WaitPakin waitPakIn, MatCode matCode) { |
| | | waitPakIn.setMatnr(matCode.getMatNo()); // 物料编号 |
| | | waitPakIn.setMaktx(matCode.getMatName()); // 物料描述 |
| | | waitPakIn.setLgnum(matCode.getStr2()); // 规格 |
| | | waitPakIn.setColor(matCode.getStr3()); // 助记码 |
| | | waitPakIn.setAltme(matCode.getStr1()); // 单位 |
| | | waitPakIn.setBname(matCode.getStr4()); // 客户 |
| | | } |
| | | |
| | | // excel ---------------------------------------------------------------------- |
| | | |
| | | public static MatCodeExcel getExcel(MatCode matCode) { |
| | |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WaitPakinLog"> |
| | | <id column="id" property="id" /> |
| | | <result column="pakin_id" property="pakinId" /> |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="matnr" property="matnr" /> |
| | | <result column="maktx" property="maktx" /> |
| | | <result column="lgnum" property="lgnum" /> |
| | | <result column="type" property="type" /> |
| | | <result column="color" property="color" /> |
| | | <result column="supplier" property="supplier" /> |
| | | <result column="warehouse" property="warehouse" /> |
| | | <result column="brand" property="brand" /> |
| | | <result column="anfme" property="anfme" /> |
| | | <result column="unit" property="unit" /> |
| | | <result column="altme" property="altme" /> |
| | | <result column="zpallet" property="zpallet" /> |
| | | <result column="bname" property="bname" /> |
| | | <result column="loc_no" property="locNo" /> |
| | | <result column="status" property="status" /> |
| | | <result column="io_status" property="ioStatus" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="modi_time" property="modiTime" /> |
| | | <result column="modi_user" property="modiUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="appe_user" property="appeUser" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WaitPakin"> |
| | | <id column="id" property="id" /> |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="matnr" property="matnr" /> |
| | | <result column="maktx" property="maktx" /> |
| | | <result column="lgnum" property="lgnum" /> |
| | | <result column="type" property="type" /> |
| | | <result column="color" property="color" /> |
| | | <result column="supplier" property="supplier" /> |
| | | <result column="warehouse" property="warehouse" /> |
| | | <result column="brand" property="brand" /> |
| | | <result column="anfme" property="anfme" /> |
| | | <result column="unit" property="unit" /> |
| | | <result column="altme" property="altme" /> |
| | | <result column="zpallet" property="zpallet" /> |
| | | <result column="bname" property="bname" /> |
| | | <result column="loc_no" property="locNo" /> |
| | | <result column="status" property="status" /> |
| | | <result column="io_status" property="ioStatus" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="modi_time" property="modiTime" /> |
| | | <result column="modi_user" property="modiUser" /> |
| | |
| | | var pageCurr; |
| | | function getCol() { |
| | | var cols = [ |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'status', align: 'center',title: '状态', templet:function(row){ |
| | | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='待入库|已启动' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.status !== 'Y'){html += " checked ";} |
| | | html += ">"; |
| | | return html; |
| | | }} |
| | | ,{field: 'ioStatus', align: 'center',title: '入出状态', templet:function(row){ |
| | | var html = "<input value='ioStatus' type='checkbox' lay-skin='switch' lay-text='入库|出库' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.ioStatus !== 'Y'){html += " checked ";} |
| | | html += ">"; |
| | | return html; |
| | | }} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide:true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true}) |
| | | return cols; |
| | | } |
| | | |
| | | layui.use(['table','laydate', 'form'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | |
| | | even: true, |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | // {type: 'checkbox'} |
| | | // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | // ,{field: 'id', align: 'center',title: '编号', sort: true} |
| | | {field: 'barcode', align: 'center',title: '托盘码'} |
| | | ,{field: 'matnr', align: 'center',title: '物料编码'} |
| | | ,{field: 'maktx', align: 'center',title: '物料描述'} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'unit', align: 'center',title: '单位'} |
| | | ,{field: 'status', align: 'center',title: '状态', templet:function(row){ |
| | | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='待入库|已启动' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.status !== 'Y'){html += " checked ";} |
| | | html += ">"; |
| | | return html; |
| | | }} |
| | | ,{field: 'memo', align: 'center',title: '备注',hide: true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide: true} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide: true} |
| | | |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ]], |
| | | cols: [getCol()], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | |
| | | var pageCurr; |
| | | function getCol() { |
| | | var cols = [ |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'status', align: 'center',title: '状态', templet:function(row){ |
| | | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='待入库|已启动' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.status !== 'Y'){html += " checked ";} |
| | | html += ">"; |
| | | return html; |
| | | }} |
| | | ,{field: 'ioStatus', align: 'center',title: '入出状态', templet:function(row){ |
| | | var html = "<input value='ioStatus' type='checkbox' lay-skin='switch' lay-text='入库|出库' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.ioStatus !== 'Y'){html += " checked ";} |
| | | html += ">"; |
| | | return html; |
| | | }} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide:true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true}) |
| | | return cols; |
| | | } |
| | | layui.use(['table','laydate', 'form'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | |
| | | even: true, |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | // {type: 'checkbox'} |
| | | // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | // ,{field: 'id', align: 'center',title: '编号'} |
| | | {field: 'pakinId', align: 'center',title: '入库通知号'} |
| | | ,{field: 'barcode', align: 'center',title: '托盘码'} |
| | | ,{field: 'matnr', align: 'center',title: '物料编码'} |
| | | ,{field: 'maktx', align: 'center',title: '物料描述'} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'unit', align: 'center',title: '单位'} |
| | | ,{field: 'status', align: 'center',title: '状态'} |
| | | ,{field: 'memo', align: 'center',title: '备注',hide:true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间',hide:true} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员',hide:true} |
| | | // ,{field: 'appeTime$', align: 'center',title: '添加时间'} |
| | | // ,{field: 'appeUser$', align: 'center',title: '创建者',event: 'appeUser', style: 'cursor:pointer'} |
| | | |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ]], |
| | | cols: [getCol()], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |