| | |
| | | // null // |
| | | // ); |
| | | |
| | | public String getWrkNo$(){ |
| | | WrkMastService service = SpringUtils.getBean(WrkMastService.class); |
| | | WrkMast wrkMast = service.selectById(this.wrkNo); |
| | | if (!Cools.isEmpty(wrkMast)){ |
| | | return String.valueOf(wrkMast.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | // public String getWrkNo$(){ |
| | | // WrkMastService service = SpringUtils.getBean(WrkMastService.class); |
| | | // WrkMast wrkMast = service.selectById(this.wrkNo); |
| | | // if (!Cools.isEmpty(wrkMast)){ |
| | | // return String.valueOf(wrkMast.getId()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | |
| | | public String getYmd$(){ |
| | | if (Cools.isEmpty(this.ymd)){ |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @TableField("wrk_no") |
| | | @TableId(value = "wrk_no", type = IdType.AUTO) |
| | | @TableId(value = "wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty("任务类型: agv, crn") |
| | |
| | | } |
| | | WrkMastLog mastLog = new WrkMastLog(); |
| | | BeanUtils.copyProperties(mast, mastLog); |
| | | mastLog.setLogId(mast.getId()); |
| | | |
| | | // mastLog.setLogId(mast.getId()); |
| | | // |
| | | if (!wrkMastLogService.insert(mastLog)) { |
| | | throw new CoolException("任务日志保存失败!!"); |
| | | } |
| | |
| | | detl.setMaktx(mat.getMaktx()); |
| | | detl.setQty(data.getQty()); |
| | | detl.setUnit(data.getUnit()); |
| | | detl.setModel(data.getModel()); |
| | | detl.setBrand(data.getBrand()); |
| | | detl.setSpecs(data.getSpecs()); |
| | | detl.setBatch(Objects.isNull(data.getBatch()) ? "1" : data.getBatch()); |
| | |
| | | // ,{field: 'uuid', align: 'center',title: '编号'} |
| | | , {field: 'maktx', align: 'center', title: '商品名称(品名)', width: 200} |
| | | , {field: 'specs', align: 'center', title: '规格'} |
| | | , { |
| | | field: 'safeQty', align: 'center', title: '归零阀值', templet: function (d) { |
| | | var raw = d.safeQty; |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | | var num = Number(raw); |
| | | if (!isFinite(num)) return ''; |
| | | return num.toFixed(2); |
| | | } |
| | | } |
| | | , {field: 'model', align: 'center', title: '代码', hide: true} |
| | | , {field: 'model', align: 'center', title: '型号', hide: false} |
| | | , {field: 'color', align: 'center', title: '颜色', hide: true} |
| | | , {field: 'brand', align: 'center', title: '品牌', hide: true} |
| | | , {field: 'brand', align: 'center', title: '品牌', hide: false} |
| | | , {field: 'upQty', align: 'center', title: '组托上限', hide: true} |
| | | , {field: 'unit', align: 'center', title: '单位', hide: false} |
| | | , {field: 'price', align: 'center', title: '单价', hide: true} |
| | |
| | | , { |
| | | field: 'volume', align: 'center', title: '每公斤长度', templet: function (d) { |
| | | var raw = d.volume; |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | | var num = Number(raw); |
| | | if (!isFinite(num)) return ''; |
| | | return num.toFixed(2); |
| | | } |
| | | } |
| | | , { |
| | | field: 'safeQty', align: 'center', title: '归零阀值', templet: function (d) { |
| | | var raw = d.safeQty; |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | | var num = Number(raw); |
| | |
| | | return num.toFixed(2); |
| | | } |
| | | } |
| | | , {field: 'model', align: 'center', title: '代码', hide: true} |
| | | , {field: 'color', align: 'center', title: '颜色', hide: true} |
| | | , {field: 'brand', align: 'center', title: '品牌', hide: false} |
| | | , {field: 'model', align: 'center', title: '型号', hide: false} |
| | | , {field: 'unit', align: 'center', title: '单位', hide: false} |
| | | , {field: 'price', align: 'center', title: '单价', hide: true} |
| | | , {field: 'sku', align: 'center', title: 'sku', hide: true} |
| | |
| | | ,{field: 'matnr', align: 'center',title: '商品编号', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '批号', width: 300, sort:true} |
| | | ,{field: 'batch', align: 'center',title: '批号', sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | | ,{field: 'zpallet', align: 'center',title: 'SN'} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | | ,{field: 'model', align: 'center',title: '代码', hide: true} |
| | | ,{field: 'model', align: 'center',title: '型号'} |
| | | ,{field: 'color', align: 'center',title: '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'brand', align: 'center',title: '品牌'} |
| | | ,{field: 'unit', align: 'center',title: '单位'} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | |
| | | {field: 'brand', title: '品牌' }, |
| | | { field: 'batch', title: '批号' }, |
| | | { field: 'specs', title: '规格' }, |
| | | {field: 'model', title: '型号' }, |
| | | { field: 'unit', title: '单位' }, |
| | | { field: 'anfme', title: '待完结数量' }, |
| | | { field: 'qty', title: '待上报数量', style: 'font-weight: bold' }, |
| | |
| | | { field: 'batch', title: '批号', edit: true }, |
| | | { field: 'specs', title: '规格' }, |
| | | {field: 'brand', title: '品牌' }, |
| | | {field: 'model', title: '型号' }, |
| | | { field: 'unit', title: '单位' }, |
| | | { field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110 }, |
| | | { field: 'workQty', title: '作业数量', minWidth: 100, width: 100 }, |
| | |
| | | {field: 'barcode', title: 'SN', width: 140 }, |
| | | {field: 'brand', title: '品牌' }, |
| | | { field: 'batch', title: '批号' }, |
| | | {field: 'model', title: '型号' }, |
| | | { field: 'specs', title: '规格' }, |
| | | { field: 'unit', title: '单位' }, |
| | | { field: 'anfme', title: '数量' }, |
| | |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 200}, |
| | | {field: 'batch', title: '批号', edit: true}, |
| | | {field: 'model', title: '型号' }, |
| | | {field: 'barcode', title: 'SN', edit: true}, |
| | | {field: 'specs', title: '规格'}, |
| | | {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | |
| | | {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'batch', title: '批号'}, |
| | | {field: 'brand', title: '品牌'}, |
| | | {field: 'model', title: '型号'}, |
| | | {field: 'specs', title: '规格'}, |
| | | {field: 'standby1', title: '机台'}, |
| | | {field: 'unit', title: '单位'}, |
| | | {field: 'anfme', title: '数量'}, |
| | | {field: 'workQty', title: '作业数量'}, |
| | | {field: 'qty', title: '完成数量', style: 'font-weight: bold'}, |
| | | // { |
| | | // field: 'createTime$', title: '创建时间', sort: true, templet: function (d) { |
| | | // return util.toDateString(d.createTime); |
| | | // }, width: 180 |
| | | // }, |
| | | // {field: 'inQty', title: '已入库量'}, |
| | | // {field: 'color', title: '颜色'}, |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | // ,{field: 'qty', align: 'center',title: '作业数量', style: 'font-weight: bold'} |
| | | , {field: 'enableQty', align: 'center', title: '待出数量', style: 'font-weight: bold'} |
| | | // ,{field: 'name', align: 'center',title: '名称'} |
| | | // ,{field: 'model', align: 'center',title: '型号'} |
| | | ,{field: 'model', align: 'center',title: '型号'} |
| | | , {field: 'unit', align: 'center', title: '单位'} |
| | | , {field: 'barcode', align: 'center', title: '商品条码', hide: true} |
| | | // ,{field: 'supplier', align: 'center',title: '供应商'} |
| | |
| | | <div class="layui-fluid"> |
| | | <!-- 左 --> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-md3"> |
| | | <div class="layui-col-md2"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 10px;"> |
| | | <!-- 树工具栏 --> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 右 --> |
| | | <div class="layui-col-md9"> |
| | | <div class="layui-col-md10"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 10px;"> |
| | | <!-- 表格工具栏2 --> |