| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.DocTypeService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.service.OrderSettleService; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public String getPayTime$(){ |
| | | if (Cools.isEmpty(this.payTime)){ |
| | | return ""; |
| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasProcessProceduresService; |
| | | import com.zy.asrs.service.BasQualityTestingService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.service.OrderService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | |
| | | } |
| | | } |
| | | |
| | | public String getTag$() { |
| | | MatService service = SpringUtils.getBean(MatService.class); |
| | | Mat order = service.selectOne(new EntityWrapper<Mat>().eq("matnr", this.matnr)); |
| | | if (Cools.isEmpty(order)){ |
| | | return null; |
| | | } |
| | | return order.getTagId$(); |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasProcessProceduresService; |
| | | import com.zy.asrs.service.BasQualityTestingService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.service.OrderService; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | |
| | | } |
| | | } |
| | | |
| | | public String getTag$() { |
| | | MatService service = SpringUtils.getBean(MatService.class); |
| | | Mat order = service.selectOne(new EntityWrapper<Mat>().eq("matnr", this.matnr)); |
| | | if (Cools.isEmpty(order)){ |
| | | return null; |
| | | } |
| | | return order.getTagId$(); |
| | | } |
| | | |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | |
| | | |
| | | // 初始化保存 |
| | | form.on('submit(initDo)', function (data) { |
| | | console.log(data.field) |
| | | $.ajax({ |
| | | url: baseUrl + "/locCache/init/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | |
| | | page: true, |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers'}, |
| | | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, |
| | | {field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160}, |
| | | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, |
| | | {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, |
| | | {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 160, width: 160}, |
| | | {field: 'memo', align: 'center',title: '备注', hide: true}, |
| | | {align: 'center', title: '操作', toolbar: '#operate', width: 180} |
| | | // {type: 'numbers'}, |
| | | // {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, |
| | | // {field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160}, |
| | | // {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, |
| | | // {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, |
| | | // {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 160, width: 160}, |
| | | // {field: 'memo', align: 'center',title: '备注', hide: true}, |
| | | // {align: 'center', title: '操作', toolbar: '#operate', width: 180} |
| | | { type: 'numbers' }, |
| | | { field: 'orderNo', title: '单据编号', templet: '#orderNoTpl' , minWidth: 180}, |
| | | { field: 'defNumber', align: 'center', title: '流水号', minWidth: 160, width: 160 }, |
| | | { field: 'number', align: 'center', title: '派工单号', minWidth: 160, width: 160 }, |
| | | { field: 'cstmrName', align: 'center', title: '公司ID', minWidth: 160, width: 160 }, |
| | | { field: 'itemName', align: 'center', title: '箱号', minWidth: 160, width: 160 }, |
| | | { field: 'docType$', align: 'center', title: '类型', minWidth: 130}, |
| | | { field: 'orderTime', align: 'center', title: '派工时间', minWidth: 160, width: 160 }, |
| | | { field: 'createTime$', title: '创建时间', minWidth: 160, width: 160 }, |
| | | { field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 100, width: 100 }, |
| | | { align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160 }, |
| | | { align: 'center', title: '操作', toolbar: '#operate', width: 180 } |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | height: '450px;', |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | // { type: 'numbers' }, |
| | | // { field: 'matnr', title: '商品编码', width: 160 }, |
| | | // { field: 'maktx', title: '商品名称', width: 160 }, |
| | | // { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | // { field: 'batch', title: '批号' }, |
| | | // { field: 'anfme', title: '待完结数量' }, |
| | | // { field: 'workQty', title: '待上报数量' }, |
| | | // { field: 'qty', title: '已完结数量', style: 'font-weight: bold' }, |
| | | // { field: 'specs', title: '规格' } |
| | | { type: 'numbers' }, |
| | | { field: 'matnr', title: '商品编码', width: 160 }, |
| | | { field: 'maktx', title: '商品名称', width: 160 }, |
| | | { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | { field: 'batch', title: '批号' }, |
| | | { field: 'anfme', title: '待完结数量' }, |
| | | { field: 'workQty', title: '待上报数量' }, |
| | | { field: 'qty', title: '已完结数量', style: 'font-weight: bold' }, |
| | | { field: 'specs', title: '规格' } |
| | | {field: 'matnr', align: 'center',title: '商品编号(品号)', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称(品名)', sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量', hide: false} |
| | | ,{field: 'specs', align: 'center',title: '规格', hide: false} |
| | | ,{field: 'tag$', align: 'center',title: '零件类型', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: 'BS Code', hide: false} |
| | | ,{ field: 'anfme', title: '数量', align: 'center',hide: false} |
| | | ,{ field: 'workQty', title: '作业数量', align: 'center',hide: false } |
| | | ,{ field: 'qty', title: '完成数量' , align: 'center',hide: false} |
| | | ,{field: 'length', align: 'center',title: '重量', hide: false } |
| | | ,{field: 'volume', align: 'center',title: '尺寸', hide: false} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | { type: 'numbers' }, |
| | | { field: 'matnr', title: '商品编码', width: 160 }, |
| | | { field: 'maktx', title: '商品名称', width: 160 }, |
| | | { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | { field: 'threeCode', title: 'BS Code', width: 160 }, |
| | | { field: 'tag$', title: '物料种类' }, |
| | | // { field: 'batch', title: '批号' }, |
| | | { field: 'anfme', title: '数量' }, |
| | | { field: 'workQty', title: '作业数量' }, |
| | | { field: 'qty', title: '完成数量', style: 'font-weight: bold' }, |
| | | { field: 'specs', title: '规格' } |
| | | {field: 'matnr', align: 'center',title: '商品编号(品号)', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称(品名)', sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量', hide: false} |
| | | ,{field: 'specs', align: 'center',title: '规格', hide: false} |
| | | ,{field: 'tag$', align: 'center',title: '零件类型', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: 'BS Code', hide: false} |
| | | ,{ field: 'anfme', title: '数量', align: 'center',hide: false} |
| | | ,{ field: 'workQty', title: '作业数量', align: 'center',hide: false } |
| | | ,{ field: 'qty', title: '完成数量' , align: 'center',hide: false} |
| | | ,{field: 'length', align: 'center',title: '重量', hide: false } |
| | | ,{field: 'volume', align: 'center',title: '尺寸', hide: false} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | page: true, |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers'}, |
| | | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, |
| | | {field: 'itemName$', align: 'center', title: '出库区域', minWidth: 160, width: 160}, |
| | | {field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160}, |
| | | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, |
| | | {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, |
| | | {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 160, width: 160}, |
| | | {field: 'memo', align: 'center',title: '备注', hide: true}, |
| | | {align: 'center', title: '操作', toolbar: '#operate'} |
| | | { type: 'numbers' }, |
| | | { field: 'orderNo', title: '单据编号', templet: '#orderNoTpl' , minWidth: 180}, |
| | | { field: 'defNumber', align: 'center', title: '流水号', minWidth: 160, width: 160 }, |
| | | { field: 'number', align: 'center', title: '派工单号', minWidth: 160, width: 160 }, |
| | | { field: 'cstmrName', align: 'center', title: '公司ID', minWidth: 160, width: 160 }, |
| | | { field: 'itemName', align: 'center', title: '箱号', minWidth: 160, width: 160 }, |
| | | { field: 'docType$', align: 'center', title: '类型', minWidth: 130}, |
| | | { field: 'orderTime', align: 'center', title: '派工时间', minWidth: 160, width: 160 }, |
| | | { field: 'createTime$', title: '创建时间', minWidth: 160, width: 160 }, |
| | | { field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 100, width: 100 }, |
| | | { align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160 }, |
| | | { align: 'center', title: '操作', toolbar: '#operate', width: 180 } |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | page: true, |
| | | height: '450px;', |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | { type: 'numbers' }, |
| | | { field: 'matnr', title: '商品编码', width: 160 }, |
| | | { field: 'maktx', title: '商品名称', width: 160 }, |
| | | { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | { field: 'batch', title: '批号' }, |
| | | { field: 'anfme', title: '数量' }, |
| | | { field: 'workQty', title: '作业数量' }, |
| | | { field: 'qty', title: '完成数量', style: 'font-weight: bold' }, |
| | | { field: 'specs', title: '规格' } |
| | | ]], |
| | | cols: [ |
| | | // [ |
| | | // { type: 'numbers' }, |
| | | // { field: 'matnr', title: '商品编码', width: 160 }, |
| | | // { field: 'maktx', title: '商品名称', width: 160 }, |
| | | // { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | // { field: 'threeCode', title: 'BS Code', width: 160 }, |
| | | // { field: 'tag$', title: '物料种类' }, |
| | | // { field: 'anfme', title: '数量' }, |
| | | // { field: 'workQty', title: '作业数量' }, |
| | | // { field: 'qty', title: '完成数量', style: 'font-weight: bold' }, |
| | | // { field: 'specs', title: '规格' } |
| | | // ] |
| | | getCol() |
| | | |
| | | ], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function getCol() { |
| | | var cols = []; |
| | | cols.push.apply(cols, cacheCols); |
| | | return cols; |
| | | } |
| | | |
| | | // 显示表单弹窗 |
| | | function showEditModel(expTpe) { |
| | |
| | | page: true, |
| | | height: '350px;', |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers', title: '#'}, |
| | | {field: 'matnr', title: '零件代码', width: 160}, |
| | | {field: 'maktx', title: '零件名称', width: 200}, |
| | | // {field: 'batch', title: '批号', edit: true}, |
| | | {field: 'standby1', title: '供应商代码', edit: true}, |
| | | {field: 'specs', title: '规格'}, |
| | | {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | {field: 'workQty', title: '作业数量', minWidth: 100, width: 100}, |
| | | // {field: 'unit', title: '单位', width: 80}, |
| | | {field: 'memo', title: '备注' , edit: true}, |
| | | {align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'} |
| | | ]], |
| | | cols: [ |
| | | getCol() |
| | | // [ |
| | | // {type: 'numbers', title: '#'}, |
| | | // {field: 'matnr', title: '零件代码', width: 160}, |
| | | // {field: 'maktx', title: '零件名称', width: 200}, |
| | | // // {field: 'batch', title: '批号', edit: true}, |
| | | // {field: 'standby1', title: '供应商代码', edit: true}, |
| | | // {field: 'specs', title: '规格'}, |
| | | // {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | // {field: 'workQty', title: '作业数量', minWidth: 100, width: 100}, |
| | | // // {field: 'unit', title: '单位', width: 80}, |
| | | // {field: 'memo', title: '备注' , edit: true}, |
| | | // {align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'} |
| | | // ] |
| | | ], |
| | | done: function (res) { |
| | | $(layero).find('.layui-table-view').css('margin', '0'); |
| | | }, |