.
18516761980
2022-03-19 9ff5e64187837a3bbd78370c1cfaadf2329f97f0
src/main/webapp/static/js/receiveDetl/receiveDetl.js
@@ -25,7 +25,7 @@
            {type: 'checkbox'}
            ,{field: 'id', align: 'center',title: 'ID', hide:true}
            ,{field: 'hostId', align: 'center',title: '', hide:true}
            ,{field: 'orderId$', align: 'center',title: '订单内码', width: 100}
            ,{field: 'orderId$', align: 'center',title: '订单', width: 185}
            ,{field: 'anfme', align: 'center',title: '应入库量', width: 100}
            ,{field: 'inQty', align: 'center',title: '已入库量', width: 100}
            ,{field: 'matnr', align: 'center',title: '商品编码'}
@@ -192,6 +192,9 @@
                // showEditModel(data);
                startIn(data);
                break;
            case "renew":
                renew(data);
                break;
        }
    });
    function startIn(data) {
@@ -325,6 +328,35 @@
        });
    }
    function renew(data) {
        console.log(data)
        layer.confirm('确定要撤回全部上架数据吗?', {
            skin: 'layui-layer-admin',
            shade: .1
        }, function (i) {
            layer.close(i);
            var loadIndex = layer.load(2);
            $.ajax({
                url: baseUrl+"/receiveDetl/renew/auth",
                headers: {'token': localStorage.getItem('token')},
                data: JSON.stringify(data),
                contentType:'application/json;charset=UTF-8',
                method: 'POST',
                success: function (res) {
                    layer.close(loadIndex);
                    if (res.code === 200){
                        layer.msg(res.msg, {icon: 1});
                        tableReload();
                    } else if (res.code === 403){
                        top.location.href = baseUrl+"/";
                    } else {
                        layer.msg(res.msg, {icon: 2});
                    }
                }
            })
        });
    }
    // 搜索
    form.on('submit(search)', function (data) {
        pageCurr = 1;