#
Junjie
2024-06-16 83c548d3dba59aaed9b52b5d413c6912a87d2efc
zy-asrs-wms/src/main/webapp/static/js/order/order.js
@@ -39,8 +39,6 @@
        where.docName = decodeURI(docName);
    }
    console.log(where)
    // 渲染表格
    var insTb = table.render({
        elem: '#order',
@@ -165,8 +163,8 @@
                            {field: 'maktx', title: '商品名称', width: 160},
                            {field: 'batch', title: '序列码'},
                            {field: 'anfme', title: '数量'},
                            {field: 'qty', title: '作业数量', style: 'font-weight: bold'},
                            // {field: 'unit', title: '单位'},
                            {field: 'workQty', title: '作业数量', style: 'font-weight: bold'},
                            {field: 'qty', title: '完成数量'},
                            // {
                            //     field: 'createTime$', title: '创建时间', sort: true, templet: function (d) {
                            //         return util.toDateString(d.createTime);
@@ -174,7 +172,7 @@
                            // },
                            // {field: 'inQty', title: '已入库量'},
                            // {field: 'color', title: '颜色'},
                            {field: 'origin', title: '仓库号'}
                            {field: 'threeCode', title: '仓库号'}
                        ]],
                        request: {
                            pageName: 'curr',
@@ -237,6 +235,24 @@
            area: '1300px',
            success: function (layero, dIndex) {
                $(layero).children('.layui-layer-content').css('overflow', 'visible');
                $.ajax({
                    url: baseUrl + "/docTypeQuery/auth",
                    headers: {'token': localStorage.getItem('token')},
                    method: 'POST',
                    data: {
                        condition: decodeURI(docName)
                    },
                    success: function (res) {
                        if (res.code == 200) {
                            if (res.data.length > 0) {
                                $("#docType").val(res.data[0].id);
                                $(document.getElementById("docType$")).val(res.data[0].value)
                            }
                        }
                    }
                })
                var isExpAdd = !expTpe;
                // 回显数据
                form.val('editForm', expTpe);
@@ -549,7 +565,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
@@ -562,7 +578,7 @@
                                // 赋值
                                traceCharts.setOption({
                                    title: {
                                        subtext: res.data.wrkQty+"/"+res.data.totalQty
                                        subtext: res.data.totalQty+"/"+res.data.wrkQty+"/"+res.data.endQty
                                    },
                                    series: [
                                        {