whycq
2024-07-25 b55d6b0950d527451e8974dd3b7e65c0f5d2ce11
zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js
@@ -29,10 +29,12 @@
            ,{field: 'locNo', align: 'center',title: '库位号'}
            ,{field: 'locSts$', align: 'center',title: '库位状态', width: 180, style: 'color: #8E2323'}
            // ,{field: 'whsType$', align: 'center',title: '库位类型'}
            ,{field: 'barcode', align: 'center',title: '托盘码'}
            ,{field: 'crnNo', align: 'center',title: '堆垛机号'}
            ,{field: 'row1', align: 'center',title: '排'}
            ,{field: 'bay1', align: 'center',title: '列'}
            ,{field: 'lev1', align: 'center',title: '层'}
            ,{field: 'owner', align: 'center',title: '货主'}
            ,{field: 'fullPlt', align: 'center',title: '满板', templet:function(row){
                    var html = "<input value='fullPlt' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
                    if(row.fullPlt === 'Y'){html += " checked ";}
@@ -41,7 +43,7 @@
                },width:80}
            ,{field: 'modiUser$', align: 'center',title: '修改人员'}
            ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180}
            ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate'}
            ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 300}
        ]],
        request: {
            pageName: 'curr',
@@ -166,6 +168,43 @@
                }
                locDetlToLayer(data.locNo);
                break;
            // 查看图片
            case 'showPic':
                let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;flex-wrap: wrap;">';
                $.ajax({
                    url: baseUrl+"/locMast/picUrl",
                    headers: {'token': localStorage.getItem('token')},
                    data: {
                        locNo: data.locNo
                    },
                    method: 'GET',
                    traditional:true,
                    success: function (res) {
                        if (res.code === 200){
                            res.data.forEach((item) => {
                                let tmp = '<img width="600" src="' + item + '" />';
                                imgHtml += tmp;
                            })
                            imgHtml += "</div>";
                            layer.open({
                                type: 1,
                                title: '查看图片',
                                area: [top.detailWidth, top.detailHeight],
                                shadeClose: true,
                                content: imgHtml,
                                success: function(layero, index){
                                }
                            });
                        } else if (res.code === 403){
                            top.location.href = baseUrl+"/";
                        } else {
                            layer.msg(res.msg)
                        }
                    }
                });
                break;
        }
    });