自动化立体仓库 - WMS系统
skyouc
昨天 0610019317ad541683fa59d268db7fd62b29ff7d
src/main/webapp/static/js/order/order.js
@@ -41,14 +41,26 @@
        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',
@@ -101,42 +113,46 @@
            var offset = $a.offset();
            var top = offset.top;
            var left = offset.left;
            layer.open({
            admin.open({
                type: 1,
                title: false,
                area: '820px',
                offset: [top + 'px', (left - 530 + $a.outerWidth()) + 'px'],
                shade: .01,
                shadeClose: true,
                fixed: false,
                content: '<table id="lookSSXMTable" lay-filter="lookSSXMTable"></table>',
                success: function (layero) {
                title: '单据明细',
                height: '450px',
                content: $('#orderItem').html(),
                area: '78%',
                success: function (layero, dIndex) {
                    table.render({
                        elem: '#lookSSXMTable',
                        headers: {token: localStorage.getItem('token')},
                        url: baseUrl+'/orderDetl/list/auth',
                        elem: '#itemTable',
                        headers: { token: localStorage.getItem('token') },
                        url: baseUrl + '/orderDetl/list/auth',
                        where: {
                            order_id: data.id
                        },
                        page: true,
                        height: '450px;',
                        cellMinWidth: 100,
                        cols: [[
                            {type: 'numbers'},
                            {field: 'matnr', title: '商品编码', width: 160},
                            {field: 'maktx', title: '商品名称', width: 160},
                            {field: 'batch', title: '批号'},
                            {field: 'anfme', title: '数量'},
                            {field: 'workQty', title: '作业数量'},
                            {field: 'qty', title: '完成数量', style: 'font-weight: bold'},
                            // {field: 'unit', title: '单位'},
                            // {
                            //     field: 'createTime$', title: '创建时间', sort: true, templet: function (d) {
                            //         return util.toDateString(d.createTime);
                            //     },  width: 180
                            // },
                            // {field: 'inQty', title: '已入库量'},
                            // {field: 'color', title: '颜色'},
                            {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: '规格' }
                            { type: 'numbers' },
                            {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',
@@ -236,6 +252,7 @@
                        {type: 'numbers', title: '#'},
                        {field: 'matnr', title: '商品编码', width: 160},
                        {field: 'maktx', title: '商品名称', width: 200},
                        {field: 'standby1', title: '供应商代码', edit: true},
                        {field: 'batch', title: '批号', edit: true},
                        {field: 'specs', title: '规格'},
                        {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110},
@@ -501,7 +518,7 @@
                                var traceCharts = echarts.init(document.getElementById('wrkTraceCharts'));
                                var traceOptions = {
                                    title: {
                                        text: '完成/总量', x: 'center', y: '38%',
                                        text: '作业/完结/上报', x: 'center', y: '38%',
                                        textStyle: {fontSize: 18, color: '#262626', fontWeight: 'normal'},
                                        subtextStyle: {fontSize: 36, color: '#10B4E8'},
                                        itemGap: 20
@@ -514,7 +531,7 @@
                                // 赋值
                                traceCharts.setOption({
                                    title: {
                                        subtext: res.data.wrkQty+"/"+res.data.totalQty
                                        subtext: res.data.totalQty+"/"+res.data.wrkQty+"/"+res.data.endQty
                                    },
                                    series: [
                                        {