New file |
| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.WrkMastSplitTwin; |
| | | import com.zy.asrs.service.WrkMastSplitTwinService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | public class WrkMastSplitTwinController extends BaseController { |
| | | |
| | | @Autowired |
| | | private WrkMastSplitTwinService wrkMastSplitTwinService; |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(wrkMastSplitTwinService.selectById(String.valueOf(id))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | EntityWrapper<WrkMastSplitTwin> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(WrkMastSplitTwin.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(wrkMastSplitTwinService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/add/auth") |
| | | @ManagerAuth |
| | | public R add(WrkMastSplitTwin wrkMastSplitTwin) { |
| | | wrkMastSplitTwinService.insert(wrkMastSplitTwin); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/update/auth") |
| | | @ManagerAuth |
| | | public R update(WrkMastSplitTwin wrkMastSplitTwin){ |
| | | if (Cools.isEmpty(wrkMastSplitTwin) || null==wrkMastSplitTwin.getId()){ |
| | | return R.error(); |
| | | } |
| | | wrkMastSplitTwinService.updateById(wrkMastSplitTwin); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | wrkMastSplitTwinService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | EntityWrapper<WrkMastSplitTwin> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("wrkMastSplitTwin")); |
| | | convert(map, wrapper); |
| | | List<WrkMastSplitTwin> list = wrkMastSplitTwinService.selectList(wrapper); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinQuery/auth") |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | EntityWrapper<WrkMastSplitTwin> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("id", condition); |
| | | Page<WrkMastSplitTwin> page = wrkMastSplitTwinService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WrkMastSplitTwin wrkMastSplitTwin : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", wrkMastSplitTwin.getId()); |
| | | map.put("value", wrkMastSplitTwin.getId()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwin/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WrkMastSplitTwin> wrapper = new EntityWrapper<WrkMastSplitTwin>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != wrkMastSplitTwinService.selectOne(wrapper)){ |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WrkMastSplitTwin.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.WrkMastSplitTwinLog; |
| | | import com.zy.asrs.service.WrkMastSplitTwinLogService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | public class WrkMastSplitTwinLogController extends BaseController { |
| | | |
| | | @Autowired |
| | | private WrkMastSplitTwinLogService wrkMastSplitTwinLogService; |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(wrkMastSplitTwinLogService.selectById(String.valueOf(id))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | EntityWrapper<WrkMastSplitTwinLog> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(WrkMastSplitTwinLog.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(wrkMastSplitTwinLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/add/auth") |
| | | @ManagerAuth |
| | | public R add(WrkMastSplitTwinLog wrkMastSplitTwinLog) { |
| | | wrkMastSplitTwinLogService.insert(wrkMastSplitTwinLog); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(WrkMastSplitTwinLog wrkMastSplitTwinLog){ |
| | | if (Cools.isEmpty(wrkMastSplitTwinLog) || null==wrkMastSplitTwinLog.getId()){ |
| | | return R.error(); |
| | | } |
| | | wrkMastSplitTwinLogService.updateById(wrkMastSplitTwinLog); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | wrkMastSplitTwinLogService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | EntityWrapper<WrkMastSplitTwinLog> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("wrkMastSplitTwinLog")); |
| | | convert(map, wrapper); |
| | | List<WrkMastSplitTwinLog> list = wrkMastSplitTwinLogService.selectList(wrapper); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLogQuery/auth") |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | EntityWrapper<WrkMastSplitTwinLog> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("id", condition); |
| | | Page<WrkMastSplitTwinLog> page = wrkMastSplitTwinLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WrkMastSplitTwinLog wrkMastSplitTwinLog : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", wrkMastSplitTwinLog.getId()); |
| | | map.put("value", wrkMastSplitTwinLog.getId()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastSplitTwinLog/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WrkMastSplitTwinLog> wrapper = new EntityWrapper<WrkMastSplitTwinLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != wrkMastSplitTwinLogService.selectOne(wrapper)){ |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WrkMastSplitTwinLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @TableName("asr_wrk_mast_split_twin") |
| | | public class WrkMastSplitTwin implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @TableField("wrk_no") |
| | | private Long wrkNo; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 工位 |
| | | */ |
| | | @ApiModelProperty(value= "工位") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 工作状态 0: 初始 1: 等待取货完成 2: 取货完成待作业 3: 等待放货完成 4: 完成 |
| | | */ |
| | | @ApiModelProperty(value= "工作状态 0: 初始 1: 等待取货完成 2: 取货完成待作业 3: 等待放货完成 4: 完成 ") |
| | | @TableField("wrk_sts") |
| | | private Integer wrkSts; |
| | | |
| | | /** |
| | | * 行号 |
| | | */ |
| | | @ApiModelProperty(value= "行号") |
| | | @TableField("line_number") |
| | | private Integer lineNumber; |
| | | |
| | | /** |
| | | * 工作类型 0: 未知 1: 取 2: 放 3: 取放 4: 完成 |
| | | */ |
| | | @ApiModelProperty(value= "工作类型 0: 未知 1: 取 2: 放 3: 取放 4: 完成 ") |
| | | @TableField("wrk_type") |
| | | private Integer wrkType; |
| | | |
| | | /** |
| | | * 标记时间 |
| | | */ |
| | | @ApiModelProperty(value= "标记时间") |
| | | @TableField("bign_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date bignTime; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * 起点 |
| | | */ |
| | | @ApiModelProperty(value= "起点") |
| | | @TableField("wrk_start") |
| | | private String wrkStart; |
| | | |
| | | /** |
| | | * 终点 |
| | | */ |
| | | @ApiModelProperty(value= "终点") |
| | | @TableField("wrk_end") |
| | | private String wrkEnd; |
| | | |
| | | /** |
| | | * 起点排 |
| | | */ |
| | | @ApiModelProperty(value= "起点排") |
| | | @TableField("start_row") |
| | | private Integer startRow; |
| | | |
| | | /** |
| | | * 起点列 |
| | | */ |
| | | @ApiModelProperty(value= "起点列") |
| | | @TableField("start_bay") |
| | | private Integer startBay; |
| | | |
| | | /** |
| | | * 起点层 |
| | | */ |
| | | @ApiModelProperty(value= "起点层") |
| | | @TableField("start_lev") |
| | | private Integer startLev; |
| | | |
| | | /** |
| | | * 终点排 |
| | | */ |
| | | @ApiModelProperty(value= "终点排") |
| | | @TableField("end_row") |
| | | private Integer endRow; |
| | | |
| | | /** |
| | | * 终点列 |
| | | */ |
| | | @ApiModelProperty(value= "终点列") |
| | | @TableField("end_bay") |
| | | private Integer endBay; |
| | | |
| | | /** |
| | | * 终点层 |
| | | */ |
| | | @ApiModelProperty(value= "终点层") |
| | | @TableField("end_lev") |
| | | private Integer endLev; |
| | | |
| | | /** |
| | | * 任务类型 0: 未知 1: 入库 2: 出库 |
| | | */ |
| | | @ApiModelProperty(value= "任务类型 0: 未知 1: 入库 2: 出库 ") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | public WrkMastSplitTwin() {} |
| | | |
| | | public WrkMastSplitTwin(Long wrkNo,Date createTime,Date updateTime,Integer type,Integer wrkSts,Integer lineNumber,Integer wrkType,Date bignTime,Integer crnNo,String wrkStart,String wrkEnd,Integer startRow,Integer startBay,Integer startLev,Integer endRow,Integer endBay,Integer endLev,Integer ioType) { |
| | | this.wrkNo = wrkNo; |
| | | this.createTime = createTime; |
| | | this.updateTime = updateTime; |
| | | this.type = type; |
| | | this.wrkSts = wrkSts; |
| | | this.lineNumber = lineNumber; |
| | | this.wrkType = wrkType; |
| | | this.bignTime = bignTime; |
| | | this.crnNo = crnNo; |
| | | this.wrkStart = wrkStart; |
| | | this.wrkEnd = wrkEnd; |
| | | this.startRow = startRow; |
| | | this.startBay = startBay; |
| | | this.startLev = startLev; |
| | | this.endRow = endRow; |
| | | this.endBay = endBay; |
| | | this.endLev = endLev; |
| | | this.ioType = ioType; |
| | | } |
| | | |
| | | // WrkMastSplitTwin wrkMastSplitTwin = new WrkMastSplitTwin( |
| | | // null, // 工作号[非空] |
| | | // null, // 添加时间 |
| | | // null, // 修改时间 |
| | | // null, // 工位[非空] |
| | | // null, // 工作状态[非空] |
| | | // null, // 行号[非空] |
| | | // null, // 工作类型[非空] |
| | | // null, // 标记时间 |
| | | // null, // 堆垛机号[非空] |
| | | // null, // 起点[非空] |
| | | // null, // 终点[非空] |
| | | // null, // 起点排[非空] |
| | | // null, // 起点列[非空] |
| | | // null, // 起点层[非空] |
| | | // null, // 终点排[非空] |
| | | // null, // 终点列[非空] |
| | | // null, // 终点层[非空] |
| | | // null // 任务类型[非空] |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | if (null == this.wrkSts){ return null; } |
| | | switch (this.wrkSts){ |
| | | case 0: |
| | | return "初始"; |
| | | case 1: |
| | | return "等待取货完成"; |
| | | case 2: |
| | | return "取货完成待作业"; |
| | | case 3: |
| | | return "等待放货完成"; |
| | | case 4: |
| | | return "完成"; |
| | | default: |
| | | return String.valueOf(this.wrkSts); |
| | | } |
| | | } |
| | | |
| | | public String getWrkType$(){ |
| | | if (null == this.wrkType){ return null; } |
| | | switch (this.wrkType){ |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | | return "取"; |
| | | case 2: |
| | | return "放"; |
| | | case 3: |
| | | return "取放"; |
| | | case 4: |
| | | return "完成"; |
| | | default: |
| | | return String.valueOf(this.wrkType); |
| | | } |
| | | } |
| | | |
| | | public String getBignTime$(){ |
| | | if (Cools.isEmpty(this.bignTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.bignTime); |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | if (null == this.ioType){ return null; } |
| | | switch (this.ioType){ |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | | return "入库"; |
| | | case 2: |
| | | return "出库"; |
| | | default: |
| | | return String.valueOf(this.ioType); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @TableName("asr_wrk_mast_split_twin_log") |
| | | public class WrkMastSplitTwinLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @TableField("wrk_no") |
| | | private Long wrkNo; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 工位 |
| | | */ |
| | | @ApiModelProperty(value= "工位") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 工作状态 0: 初始 1: 等待取货完成 2: 取货完成待作业 3: 等待放货完成 4: 完成 |
| | | */ |
| | | @ApiModelProperty(value= "工作状态 0: 初始 1: 等待取货完成 2: 取货完成待作业 3: 等待放货完成 4: 完成 ") |
| | | @TableField("wrk_sts") |
| | | private Integer wrkSts; |
| | | |
| | | /** |
| | | * 行号 |
| | | */ |
| | | @ApiModelProperty(value= "行号") |
| | | @TableField("line_number") |
| | | private Integer lineNumber; |
| | | |
| | | /** |
| | | * 工作类型 0: 未知 1: 取 2: 放 3: 取放 4: 完成 |
| | | */ |
| | | @ApiModelProperty(value= "工作类型 0: 未知 1: 取 2: 放 3: 取放 4: 完成 ") |
| | | @TableField("wrk_type") |
| | | private Integer wrkType; |
| | | |
| | | /** |
| | | * 标记时间 |
| | | */ |
| | | @ApiModelProperty(value= "标记时间") |
| | | @TableField("bign_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date bignTime; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * 起点 |
| | | */ |
| | | @ApiModelProperty(value= "起点") |
| | | @TableField("wrk_start") |
| | | private String wrkStart; |
| | | |
| | | /** |
| | | * 终点 |
| | | */ |
| | | @ApiModelProperty(value= "终点") |
| | | @TableField("wrk_end") |
| | | private String wrkEnd; |
| | | |
| | | /** |
| | | * 起点排 |
| | | */ |
| | | @ApiModelProperty(value= "起点排") |
| | | @TableField("start_row") |
| | | private Integer startRow; |
| | | |
| | | /** |
| | | * 起点列 |
| | | */ |
| | | @ApiModelProperty(value= "起点列") |
| | | @TableField("start_bay") |
| | | private Integer startBay; |
| | | |
| | | /** |
| | | * 起点层 |
| | | */ |
| | | @ApiModelProperty(value= "起点层") |
| | | @TableField("start_lev") |
| | | private Integer startLev; |
| | | |
| | | /** |
| | | * 终点排 |
| | | */ |
| | | @ApiModelProperty(value= "终点排") |
| | | @TableField("end_row") |
| | | private Integer endRow; |
| | | |
| | | /** |
| | | * 终点列 |
| | | */ |
| | | @ApiModelProperty(value= "终点列") |
| | | @TableField("end_bay") |
| | | private Integer endBay; |
| | | |
| | | /** |
| | | * 终点层 |
| | | */ |
| | | @ApiModelProperty(value= "终点层") |
| | | @TableField("end_lev") |
| | | private Integer endLev; |
| | | |
| | | /** |
| | | * 任务类型 0: 未知 1: 入库 2: 出库 |
| | | */ |
| | | @ApiModelProperty(value= "任务类型 0: 未知 1: 入库 2: 出库 ") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | public WrkMastSplitTwinLog() {} |
| | | |
| | | public WrkMastSplitTwinLog(Long wrkNo,Date createTime,Date updateTime,Integer type,Integer wrkSts,Integer lineNumber,Integer wrkType,Date bignTime,Integer crnNo,String wrkStart,String wrkEnd,Integer startRow,Integer startBay,Integer startLev,Integer endRow,Integer endBay,Integer endLev,Integer ioType) { |
| | | this.wrkNo = wrkNo; |
| | | this.createTime = createTime; |
| | | this.updateTime = updateTime; |
| | | this.type = type; |
| | | this.wrkSts = wrkSts; |
| | | this.lineNumber = lineNumber; |
| | | this.wrkType = wrkType; |
| | | this.bignTime = bignTime; |
| | | this.crnNo = crnNo; |
| | | this.wrkStart = wrkStart; |
| | | this.wrkEnd = wrkEnd; |
| | | this.startRow = startRow; |
| | | this.startBay = startBay; |
| | | this.startLev = startLev; |
| | | this.endRow = endRow; |
| | | this.endBay = endBay; |
| | | this.endLev = endLev; |
| | | this.ioType = ioType; |
| | | } |
| | | |
| | | // WrkMastSplitTwinLog wrkMastSplitTwinLog = new WrkMastSplitTwinLog( |
| | | // null, // 工作号[非空] |
| | | // null, // 添加时间 |
| | | // null, // 修改时间 |
| | | // null, // 工位[非空] |
| | | // null, // 工作状态[非空] |
| | | // null, // 行号[非空] |
| | | // null, // 工作类型[非空] |
| | | // null, // 标记时间 |
| | | // null, // 堆垛机号[非空] |
| | | // null, // 起点[非空] |
| | | // null, // 终点[非空] |
| | | // null, // 起点排[非空] |
| | | // null, // 起点列[非空] |
| | | // null, // 起点层[非空] |
| | | // null, // 终点排[非空] |
| | | // null, // 终点列[非空] |
| | | // null, // 终点层[非空] |
| | | // null // 任务类型[非空] |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | if (null == this.wrkSts){ return null; } |
| | | switch (this.wrkSts){ |
| | | case 0: |
| | | return "初始"; |
| | | case 1: |
| | | return "等待取货完成"; |
| | | case 2: |
| | | return "取货完成待作业"; |
| | | case 3: |
| | | return "等待放货完成"; |
| | | case 4: |
| | | return "完成"; |
| | | default: |
| | | return String.valueOf(this.wrkSts); |
| | | } |
| | | } |
| | | |
| | | public String getWrkType$(){ |
| | | if (null == this.wrkType){ return null; } |
| | | switch (this.wrkType){ |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | | return "取"; |
| | | case 2: |
| | | return "放"; |
| | | case 3: |
| | | return "取放"; |
| | | case 4: |
| | | return "完成"; |
| | | default: |
| | | return String.valueOf(this.wrkType); |
| | | } |
| | | } |
| | | |
| | | public String getBignTime$(){ |
| | | if (Cools.isEmpty(this.bignTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.bignTime); |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | if (null == this.ioType){ return null; } |
| | | switch (this.ioType){ |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | | return "入库"; |
| | | case 2: |
| | | return "出库"; |
| | | default: |
| | | return String.valueOf(this.ioType); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.WrkMastSplitTwinLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface WrkMastSplitTwinLogMapper extends BaseMapper<WrkMastSplitTwinLog> { |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.WrkMastSplitTwin; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface WrkMastSplitTwinMapper extends BaseMapper<WrkMastSplitTwin> { |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.WrkMastSplitTwinLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | public interface WrkMastSplitTwinLogService extends IService<WrkMastSplitTwinLog> { |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.WrkMastSplitTwin; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | public interface WrkMastSplitTwinService extends IService<WrkMastSplitTwin> { |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.WrkMastSplitTwinLogMapper; |
| | | import com.zy.asrs.entity.WrkMastSplitTwinLog; |
| | | import com.zy.asrs.service.WrkMastSplitTwinLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("wrkMastSplitTwinLogService") |
| | | public class WrkMastSplitTwinLogServiceImpl extends ServiceImpl<WrkMastSplitTwinLogMapper, WrkMastSplitTwinLog> implements WrkMastSplitTwinLogService { |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.WrkMastSplitTwinMapper; |
| | | import com.zy.asrs.entity.WrkMastSplitTwin; |
| | | import com.zy.asrs.service.WrkMastSplitTwinService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("wrkMastSplitTwinService") |
| | | public class WrkMastSplitTwinServiceImpl extends ServiceImpl<WrkMastSplitTwinMapper, WrkMastSplitTwin> implements WrkMastSplitTwinService { |
| | | |
| | | } |
| | |
| | | generator.url="192.168.4.15:1433;databasename=ahyxasrs"; |
| | | generator.username="sa"; |
| | | generator.password="sa@123"; |
| | | generator.table="asr_bas_jar"; |
| | | generator.table="asr_wrk_mast_split_twin_log"; |
| | | generator.packagePath="com.zy.asrs"; |
| | | generator.build(); |
| | | } |
New file |
| | |
| | | -- save wrkMastSplitTwin record |
| | | -- mysql |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwin/wrkMastSplitTwin.html', 'wrkMastSplitTwin管理', null , '2', null , '1'); |
| | | |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwin#view', '查询', '', '3', '0', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwin#btn-add', '新增', '', '3', '1', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwin#btn-edit', '编辑', '', '3', '2', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwin#btn-delete', '删除', '', '3', '3', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwin#btn-export', '导出', '', '3', '4', '1'); |
| | | |
| | | -- sqlserver |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwin/wrkMastSplitTwin.html', N'wrkMastSplitTwin管理', null, '2', null, '1'); |
| | | |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwin#view', N'查询', '', '3', '0', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwin#btn-add', N'新增', '', '3', '1', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwin#btn-edit', N'编辑', '', '3', '2', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwin#btn-delete', N'删除', '', '3', '3', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwin#btn-export', N'导出', '', '3', '4', '1'); |
New file |
| | |
| | | -- save wrkMastSplitTwinLog record |
| | | -- mysql |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwinLog/wrkMastSplitTwinLog.html', 'wrkMastSplitTwinLog管理', null , '2', null , '1'); |
| | | |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwinLog#view', '查询', '', '3', '0', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwinLog#btn-add', '新增', '', '3', '1', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwinLog#btn-edit', '编辑', '', '3', '2', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwinLog#btn-delete', '删除', '', '3', '3', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'wrkMastSplitTwinLog#btn-export', '导出', '', '3', '4', '1'); |
| | | |
| | | -- sqlserver |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwinLog/wrkMastSplitTwinLog.html', N'wrkMastSplitTwinLog管理', null, '2', null, '1'); |
| | | |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwinLog#view', N'查询', '', '3', '0', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwinLog#btn-add', N'新增', '', '3', '1', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwinLog#btn-edit', N'编辑', '', '3', '2', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwinLog#btn-delete', N'删除', '', '3', '3', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'wrkMastSplitTwinLog#btn-export', N'导出', '', '3', '4', '1'); |
New file |
| | |
| | | <?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.zy.asrs.mapper.WrkMastSplitTwinLogMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkMastSplitTwinLog"> |
| | | <id column="id" property="id" /> |
| | | <result column="wrk_no" property="wrkNo" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="type" property="type" /> |
| | | <result column="wrk_sts" property="wrkSts" /> |
| | | <result column="line_number" property="lineNumber" /> |
| | | <result column="wrk_type" property="wrkType" /> |
| | | <result column="bign_time" property="bignTime" /> |
| | | <result column="crn_no" property="crnNo" /> |
| | | <result column="wrk_start" property="wrkStart" /> |
| | | <result column="wrk_end" property="wrkEnd" /> |
| | | <result column="start_row" property="startRow" /> |
| | | <result column="start_bay" property="startBay" /> |
| | | <result column="start_lev" property="startLev" /> |
| | | <result column="end_row" property="endRow" /> |
| | | <result column="end_bay" property="endBay" /> |
| | | <result column="end_lev" property="endLev" /> |
| | | <result column="io_type" property="ioType" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.zy.asrs.mapper.WrkMastSplitTwinMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkMastSplitTwin"> |
| | | <id column="id" property="id" /> |
| | | <result column="wrk_no" property="wrkNo" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="type" property="type" /> |
| | | <result column="wrk_sts" property="wrkSts" /> |
| | | <result column="line_number" property="lineNumber" /> |
| | | <result column="wrk_type" property="wrkType" /> |
| | | <result column="bign_time" property="bignTime" /> |
| | | <result column="crn_no" property="crnNo" /> |
| | | <result column="wrk_start" property="wrkStart" /> |
| | | <result column="wrk_end" property="wrkEnd" /> |
| | | <result column="start_row" property="startRow" /> |
| | | <result column="start_bay" property="startBay" /> |
| | | <result column="start_lev" property="startLev" /> |
| | | <result column="end_row" property="endRow" /> |
| | | <result column="end_bay" property="endBay" /> |
| | | <result column="end_lev" property="endLev" /> |
| | | <result column="io_type" property="ioType" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
New file |
| | |
| | | var pageCurr; |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).use(['table','laydate', 'form', 'admin'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | // 数据渲染 |
| | | tableIns = table.render({ |
| | | elem: '#wrkMastSplitTwin', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/wrkMastSplitTwin/list/auth', |
| | | page: true, |
| | | limit: 15, |
| | | limits: [15, 30, 50, 100, 200, 500], |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: 'ID'} |
| | | ,{field: 'wrkNo', align: 'center',title: '工作号'} |
| | | ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'type', align: 'center',title: '工位'} |
| | | ,{field: 'wrkSts$', align: 'center',title: '工作状态'} |
| | | ,{field: 'lineNumber', align: 'center',title: '行号'} |
| | | ,{field: 'wrkType$', align: 'center',title: '工作类型'} |
| | | ,{field: 'bignTime$', align: 'center',title: '标记时间'} |
| | | ,{field: 'crnNo', align: 'center',title: '堆垛机号'} |
| | | ,{field: 'wrkStart', align: 'center',title: '起点'} |
| | | ,{field: 'wrkEnd', align: 'center',title: '终点'} |
| | | ,{field: 'startRow', align: 'center',title: '起点排'} |
| | | ,{field: 'startBay', align: 'center',title: '起点列'} |
| | | ,{field: 'startLev', align: 'center',title: '起点层'} |
| | | ,{field: 'endRow', align: 'center',title: '终点排'} |
| | | ,{field: 'endBay', align: 'center',title: '终点列'} |
| | | ,{field: 'endLev', align: 'center',title: '终点层'} |
| | | ,{field: 'ioType$', align: 'center',title: '任务类型'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | | 'count': res.data.total, |
| | | 'data': res.data.records |
| | | } |
| | | }, |
| | | response: { |
| | | statusCode: 200 |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | | } |
| | | }); |
| | | |
| | | // 监听排序事件 |
| | | table.on('sort(wrkMastSplitTwin)', function (obj) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | searchData['orderByField'] = obj.field; |
| | | searchData['orderByType'] = obj.type; |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: 1} |
| | | }); |
| | | }); |
| | | |
| | | // 监听头工具栏事件 |
| | | table.on('toolbar(wrkMastSplitTwin)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id).data; |
| | | switch(obj.event) { |
| | | case 'addData': |
| | | showEditModel(); |
| | | break; |
| | | case 'deleteData': |
| | | if (checkStatus.length === 0) { |
| | | layer.msg('请选择要删除的数据', {icon: 2}); |
| | | return; |
| | | } |
| | | del(checkStatus.map(function (d) { |
| | | return d.id; |
| | | })); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |
| | | var fields=[]; |
| | | obj.config.cols[0].map(function (col) { |
| | | if (col.type === 'normal' && col.hide === false && col.toolbar == null) { |
| | | titles.push(col.title); |
| | | fields.push(col.field); |
| | | } |
| | | }); |
| | | var exportData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | exportData[this.name] = this.value; |
| | | }); |
| | | var param = { |
| | | 'wrkMastSplitTwin': exportData, |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: baseUrl+"/wrkMastSplitTwin/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.closeAll(); |
| | | if (res.code === 200) { |
| | | table.exportFile(titles,res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | // 监听行工具事件 |
| | | table.on('tool(wrkMastSplitTwin)', function(obj){ |
| | | var data = obj.data; |
| | | switch (obj.event) { |
| | | case 'edit': |
| | | showEditModel(data); |
| | | break; |
| | | case "del": |
| | | del([data.id]); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '修改' : '添加') + '订单状态', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | layDateRender(mData); |
| | | form.val('detail', mData); |
| | | form.on('submit(editSubmit)', function (data) { |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/wrkMastSplitTwin/"+(mData?'update':'add')+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | return false; |
| | | }); |
| | | $(layero).children('.layui-layer-content').css('overflow', 'visible'); |
| | | layui.form.render('select'); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /* 删除 */ |
| | | function del(ids) { |
| | | layer.confirm('确定要删除选中数据吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | | layer.close(i); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/wrkMastSplitTwin/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {ids: ids}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | // 搜索 |
| | | form.on('submit(search)', function (data) { |
| | | pageCurr = 1; |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 重置 |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 时间选择器 |
| | | function layDateRender(data) { |
| | | setTimeout(function () { |
| | | layDate.render({ |
| | | elem: '.layui-laydate-range' |
| | | ,type: 'datetime' |
| | | ,range: true |
| | | }); |
| | | layDate.render({ |
| | | elem: '#createTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['createTime\\$']:null |
| | | }); |
| | | layDate.render({ |
| | | elem: '#updateTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['updateTime\\$']:null |
| | | }); |
| | | layDate.render({ |
| | | elem: '#bignTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['bignTime\\$']:null |
| | | }); |
| | | |
| | | }, 300); |
| | | } |
| | | layDateRender(); |
| | | |
| | | }); |
| | | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |
| | | }); |
| | | |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: pageCurr} |
| | | }); |
| | | } |
New file |
| | |
| | | var pageCurr; |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).use(['table','laydate', 'form', 'admin'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | // 数据渲染 |
| | | tableIns = table.render({ |
| | | elem: '#wrkMastSplitTwinLog', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/wrkMastSplitTwinLog/list/auth', |
| | | page: true, |
| | | limit: 15, |
| | | limits: [15, 30, 50, 100, 200, 500], |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: 'ID'} |
| | | ,{field: 'wrkNo', align: 'center',title: '工作号'} |
| | | ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'type', align: 'center',title: '工位'} |
| | | ,{field: 'wrkSts$', align: 'center',title: '工作状态'} |
| | | ,{field: 'lineNumber', align: 'center',title: '行号'} |
| | | ,{field: 'wrkType$', align: 'center',title: '工作类型'} |
| | | ,{field: 'bignTime$', align: 'center',title: '标记时间'} |
| | | ,{field: 'crnNo', align: 'center',title: '堆垛机号'} |
| | | ,{field: 'wrkStart', align: 'center',title: '起点'} |
| | | ,{field: 'wrkEnd', align: 'center',title: '终点'} |
| | | ,{field: 'startRow', align: 'center',title: '起点排'} |
| | | ,{field: 'startBay', align: 'center',title: '起点列'} |
| | | ,{field: 'startLev', align: 'center',title: '起点层'} |
| | | ,{field: 'endRow', align: 'center',title: '终点排'} |
| | | ,{field: 'endBay', align: 'center',title: '终点列'} |
| | | ,{field: 'endLev', align: 'center',title: '终点层'} |
| | | ,{field: 'ioType$', align: 'center',title: '任务类型'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | | 'count': res.data.total, |
| | | 'data': res.data.records |
| | | } |
| | | }, |
| | | response: { |
| | | statusCode: 200 |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | | } |
| | | }); |
| | | |
| | | // 监听排序事件 |
| | | table.on('sort(wrkMastSplitTwinLog)', function (obj) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | searchData['orderByField'] = obj.field; |
| | | searchData['orderByType'] = obj.type; |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: 1} |
| | | }); |
| | | }); |
| | | |
| | | // 监听头工具栏事件 |
| | | table.on('toolbar(wrkMastSplitTwinLog)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id).data; |
| | | switch(obj.event) { |
| | | case 'addData': |
| | | showEditModel(); |
| | | break; |
| | | case 'deleteData': |
| | | if (checkStatus.length === 0) { |
| | | layer.msg('请选择要删除的数据', {icon: 2}); |
| | | return; |
| | | } |
| | | del(checkStatus.map(function (d) { |
| | | return d.id; |
| | | })); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |
| | | var fields=[]; |
| | | obj.config.cols[0].map(function (col) { |
| | | if (col.type === 'normal' && col.hide === false && col.toolbar == null) { |
| | | titles.push(col.title); |
| | | fields.push(col.field); |
| | | } |
| | | }); |
| | | var exportData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | exportData[this.name] = this.value; |
| | | }); |
| | | var param = { |
| | | 'wrkMastSplitTwinLog': exportData, |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: baseUrl+"/wrkMastSplitTwinLog/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.closeAll(); |
| | | if (res.code === 200) { |
| | | table.exportFile(titles,res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | // 监听行工具事件 |
| | | table.on('tool(wrkMastSplitTwinLog)', function(obj){ |
| | | var data = obj.data; |
| | | switch (obj.event) { |
| | | case 'edit': |
| | | showEditModel(data); |
| | | break; |
| | | case "del": |
| | | del([data.id]); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '修改' : '添加') + '订单状态', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | layDateRender(mData); |
| | | form.val('detail', mData); |
| | | form.on('submit(editSubmit)', function (data) { |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/wrkMastSplitTwinLog/"+(mData?'update':'add')+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | return false; |
| | | }); |
| | | $(layero).children('.layui-layer-content').css('overflow', 'visible'); |
| | | layui.form.render('select'); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /* 删除 */ |
| | | function del(ids) { |
| | | layer.confirm('确定要删除选中数据吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | | layer.close(i); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/wrkMastSplitTwinLog/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {ids: ids}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | // 搜索 |
| | | form.on('submit(search)', function (data) { |
| | | pageCurr = 1; |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 重置 |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 时间选择器 |
| | | function layDateRender(data) { |
| | | setTimeout(function () { |
| | | layDate.render({ |
| | | elem: '.layui-laydate-range' |
| | | ,type: 'datetime' |
| | | ,range: true |
| | | }); |
| | | layDate.render({ |
| | | elem: '#createTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['createTime\\$']:null |
| | | }); |
| | | layDate.render({ |
| | | elem: '#updateTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['updateTime\\$']:null |
| | | }); |
| | | layDate.render({ |
| | | elem: '#bignTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['bignTime\\$']:null |
| | | }); |
| | | |
| | | }, 300); |
| | | } |
| | | layDateRender(); |
| | | |
| | | }); |
| | | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |
| | | }); |
| | | |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: pageCurr} |
| | | }); |
| | | } |
| | |
| | | max-height="350" style="width: 100%"> |
| | | <el-table-column property="jarNo" label="硫化罐"> |
| | | </el-table-column> |
| | | <el-table-column property="workNo" label="工作号"> |
| | | </el-table-column> |
| | | <!-- <el-table-column property="workNo" label="工作号">--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column property="jarStatus" label="状态"> |
| | | </el-table-column> |
| | | <el-table-column property="jarMode" label="模式"> |
| | |
| | | <div style="width: 55%;margin-right: 10px;"> |
| | | <el-card class="box-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>设备调试</span> |
| | | <span>硫化库位</span> |
| | | </div> |
| | | <div> |
| | | <el-form :model="formParam" label-position="top" :inline="true" class="demo-form-inline" v-if="rgvMode !== 2 && rgvMode !== 1 "> |
| | | <!-- <el-form-item label="源站/源库位">--> |
| | | <!-- <el-input v-model="formParam.sourceStaNo" placeholder="源站/源库位"></el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="起始站"> |
| | | <el-input v-model="formParam.sourceRow" placeholder="起始站"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="目标站"> |
| | | <el-input v-model="formParam.sourceBay" placeholder="目标站"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="启动"> |
| | | <el-button @click="initiate" type="warning">执行任务</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <div v-if="rgvMode === 2 "> |
| | | <el-form :model="formParamD" label-position="top" :inline="true" class="demo-form-inline"> |
| | | <el-form-item label="起始站"> |
| | | <el-input v-model="formParamD.sourceRow" placeholder="起始站"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="目标站"> |
| | | <el-input v-model="formParamD.sourceBay" placeholder="目标站"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="启动"> |
| | | <el-button @click="initiateD(1)" type="warning">取货</el-button> |
| | | <el-button @click="initiateD(2)" type="warning">放货</el-button> |
| | | <el-button @click="initiateD(3)" type="warning">XY移动</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div v-if="demo === 'N' "> |
| | | <el-button v-if="rgvMode === 0 " type="danger">未知</el-button> |
| | | <el-button v-if="rgvMode === -1 " type="danger">未知</el-button> |
| | | <el-button v-if="rgvMode === 3 " type="primary">联机</el-button> |
| | | <el-button v-if="rgvMode === 2 " type="primary">单机</el-button> |
| | | <el-button v-if="rgvMode === 1 " type="warning">手动</el-button> |
| | | </div> |
| | | <div v-if="rgvMode !== 0 "> |
| | | <div style="margin: 10px auto 10px auto"> |
| | | <el-button v-if="demo === 'N' " @click="demos('true')" type="info">演示</el-button> |
| | | <el-button v-if="demo === 'Y' " @click="demos('false')" type="info">取消演示</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button v-if="rgvMode !== 3 " @click="rgvStatus(15)" type="primary">联机</el-button> |
| | | <el-button v-if="rgvMode !== 2 " @click="rgvStatus(14)" type="primary">单机</el-button> |
| | | <el-button v-if="rgvMode !== 1 " @click="rgvStatus(12)" type="warning">手动</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button @click="rgvStatus(8)" type="primary">启动</el-button> |
| | | <el-button @click="rgvStatus(9)" type="primary">停止</el-button> |
| | | <el-button @click="rgvStatus(11)" type="primary">复位按钮</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button @click="rgvStatus(7)" type="warning">报警消音</el-button> |
| | | <el-button v-if="rgvMode === 1 " @click="rgvStatus(13)" type="warning">手动定位</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button :style="" @click="rgvStatus(5)" type="danger">强制启动</el-button> |
| | | <el-button @click="rgvStatus(10)" type="danger">急停</el-button> |
| | | <el-button @click="rgvStatus(16)" type="danger">货叉定位回中</el-button> |
| | | </div> |
| | | <div style="margin-top: 5px" v-if="demo === 'Y'"> |
| | | <el-button @click="staTova(2,1)" type="warning">输送-置换1</el-button> |
| | | <el-button @click="staTova(2,3)" type="warning">输送-置换2</el-button> |
| | | <el-button @click="staTova(2,5)" type="warning">输送-置换3</el-button> |
| | | <el-button @click="staTova(2,7)" type="warning">输送-置换4</el-button> |
| | | </div> |
| | | <div style="margin-top: 5px" v-if="demo === 'Y'"> |
| | | <el-button @click="staTova(2,4)" type="warning">输送-灌装1</el-button> |
| | | <el-button @click="staTova(2,6)" type="warning">输送-灌装2</el-button> |
| | | <el-button @click="staTova(2,8)" type="warning">输送-灌装3</el-button> |
| | | </div> |
| | | <div style="margin-top: 5px" v-if="demo === 'Y'"> |
| | | <el-button @click="staTova(1,10)" type="warning">置换1-放货</el-button> |
| | | <el-button @click="staTova(2,10)" type="warning">置换2-放货</el-button> |
| | | <el-button @click="staTova(3,10)" type="warning">置换3-放货</el-button> |
| | | <el-button @click="staTova(4,10)" type="warning">置换4-放货</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | <div style="width: 45%;"> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title></title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | </head> |
| | | <body> |
| | | |
| | | <div class="layui-fluid"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form toolbar" id="search-box"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 300px"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline">  |
| | | <button class="layui-btn icon-btn" lay-filter="search" lay-submit> |
| | | <i class="layui-icon"></i>搜索 |
| | | </button> |
| | | <button class="layui-btn icon-btn" lay-filter="reset" lay-submit> |
| | | <i class="layui-icon"></i>重置 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="wrkMastSplitTwin" lay-filter="wrkMastSplitTwin"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right">导出</button> |
| | | </div> |
| | | </script> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | </script> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/wrkMastSplitTwin/wrkMastSplitTwin.js" charset="utf-8"></script> |
| | | </body> |
| | | <!-- 表单弹窗 --> |
| | | <script type="text/html" id="editDialog"> |
| | | <form id="detail" lay-filter="detail" class="layui-form admin-form model-form"> |
| | | <input name="id" type="hidden"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工作号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="wrkNo" placeholder="请输入工作号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">添加时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="createTime" id="createTime$" placeholder="请输入添加时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">修改时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="updateTime" id="updateTime$" placeholder="请输入修改时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="type" placeholder="请输入工位" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工作状态: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="wrkSts" lay-vertype="tips" lay-verify="required"> |
| | | <option value="">请选择工作状态</option> |
| | | <option value="0">初始</option> |
| | | <option value="1">等待取货完成</option> |
| | | <option value="2">取货完成待作业</option> |
| | | <option value="3">等待放货完成</option> |
| | | <option value="4">完成</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">行号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="lineNumber" placeholder="请输入行号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工作类型: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="wrkType" lay-vertype="tips" lay-verify="required"> |
| | | <option value="">请选择工作类型</option> |
| | | <option value="0">未知</option> |
| | | <option value="1">取</option> |
| | | <option value="2">放</option> |
| | | <option value="3">取放</option> |
| | | <option value="4">完成</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">标记时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="bignTime" id="bignTime$" placeholder="请输入标记时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">堆垛机号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="crnNo" placeholder="请输入堆垛机号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="wrkStart" placeholder="请输入起点" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="wrkEnd" placeholder="请输入终点" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点排: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="startRow" placeholder="请输入起点排" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点列: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="startBay" placeholder="请输入起点列" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点层: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="startLev" placeholder="请输入起点层" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点排: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="endRow" placeholder="请输入终点排" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点列: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="endBay" placeholder="请输入终点列" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点层: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="endLev" placeholder="请输入终点层" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">任务类型: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="ioType" lay-vertype="tips" lay-verify="required"> |
| | | <option value="">请选择任务类型</option> |
| | | <option value="0">未知</option> |
| | | <option value="1">入库</option> |
| | | <option value="2">出库</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <hr class="layui-bg-gray"> |
| | | <div class="layui-form-item text-right"> |
| | | <button class="layui-btn" lay-filter="editSubmit" lay-submit="">保存</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> |
| | | </div> |
| | | </form> |
| | | </script> |
| | | </html> |
| | | |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title></title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | </head> |
| | | <body> |
| | | |
| | | <div class="layui-fluid"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form toolbar" id="search-box"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 300px"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline">  |
| | | <button class="layui-btn icon-btn" lay-filter="search" lay-submit> |
| | | <i class="layui-icon"></i>搜索 |
| | | </button> |
| | | <button class="layui-btn icon-btn" lay-filter="reset" lay-submit> |
| | | <i class="layui-icon"></i>重置 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="wrkMastSplitTwinLog" lay-filter="wrkMastSplitTwinLog"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right">导出</button> |
| | | </div> |
| | | </script> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | </script> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/wrkMastSplitTwinLog/wrkMastSplitTwinLog.js" charset="utf-8"></script> |
| | | </body> |
| | | <!-- 表单弹窗 --> |
| | | <script type="text/html" id="editDialog"> |
| | | <form id="detail" lay-filter="detail" class="layui-form admin-form model-form"> |
| | | <input name="id" type="hidden"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工作号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="wrkNo" placeholder="请输入工作号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">添加时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="createTime" id="createTime$" placeholder="请输入添加时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">修改时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="updateTime" id="updateTime$" placeholder="请输入修改时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="type" placeholder="请输入工位" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工作状态: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="wrkSts" lay-vertype="tips" lay-verify="required"> |
| | | <option value="">请选择工作状态</option> |
| | | <option value="0">初始</option> |
| | | <option value="1">等待取货完成</option> |
| | | <option value="2">取货完成待作业</option> |
| | | <option value="3">等待放货完成</option> |
| | | <option value="4">完成</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">行号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="lineNumber" placeholder="请输入行号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">工作类型: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="wrkType" lay-vertype="tips" lay-verify="required"> |
| | | <option value="">请选择工作类型</option> |
| | | <option value="0">未知</option> |
| | | <option value="1">取</option> |
| | | <option value="2">放</option> |
| | | <option value="3">取放</option> |
| | | <option value="4">完成</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">标记时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="bignTime" id="bignTime$" placeholder="请输入标记时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">堆垛机号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="crnNo" placeholder="请输入堆垛机号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="wrkStart" placeholder="请输入起点" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="wrkEnd" placeholder="请输入终点" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点排: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="startRow" placeholder="请输入起点排" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点列: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="startBay" placeholder="请输入起点列" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起点层: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="startLev" placeholder="请输入起点层" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点排: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="endRow" placeholder="请输入终点排" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点列: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="endBay" placeholder="请输入终点列" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终点层: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="endLev" placeholder="请输入终点层" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">任务类型: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="ioType" lay-vertype="tips" lay-verify="required"> |
| | | <option value="">请选择任务类型</option> |
| | | <option value="0">未知</option> |
| | | <option value="1">入库</option> |
| | | <option value="2">出库</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <hr class="layui-bg-gray"> |
| | | <div class="layui-form-item text-right"> |
| | | <button class="layui-btn" lay-filter="editSubmit" lay-submit="">保存</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> |
| | | </div> |
| | | </form> |
| | | </script> |
| | | </html> |
| | | |