Junjie
2024-05-23 aa7e48e0c3bb800bae361aca11f5164c950855c8
zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js
@@ -41,7 +41,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 +166,43 @@
                }
                locDetlToLayer(data.locNo);
                break;
            // 查看图片
            case 'showPic':
                let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;">';
                $.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;
        }
    });