#
mrzhssss
2022-03-15 2be979cbab3f9799858970eda35e89ecec28a492
src/main/webapp/static/js/receiveDetl/receiveDetl.js
@@ -25,12 +25,12 @@
            {type: 'checkbox'}
            ,{field: 'id', align: 'center',title: 'ID', hide:true}
            ,{field: 'hostId', align: 'center',title: '', hide:true}
            ,{field: 'orderNo', align: 'center',title: '单据编号'}
            ,{field: 'orderId$', align: 'center',title: '订单内码', width: 100}
            ,{field: 'anfme', align: 'center',title: '待上架数量', width: 100}
            ,{field: 'inQty', align: 'center',title: '已上架数量', width: 100}
            ,{field: 'anfme', align: 'center',title: '应入库量', width: 100}
            ,{field: 'inQty', align: 'center',title: '已入库量', width: 100}
            ,{field: 'matnr', align: 'center',title: '商品编码'}
            ,{field: 'maktx', align: 'center',title: '商品名称'}
            ,{field: 'state$', align: 'center',title: '订单状态'}
            ,{field: 'name', align: 'center',title: '名称', hide:true}
            ,{field: 'specs', align: 'center',title: '规格', hide:true}
            ,{field: 'model', align: 'center',title: '型号', hide:true}
@@ -55,6 +55,7 @@
            pageSize: 'limit'
        },
        parseData: function (res) {
            console.log(res)
            return {
                'code': res.code,
                'msg': res.msg,
@@ -194,6 +195,7 @@
        }
    });
    function startIn(data) {
        admin.open({
            type:1
            ,area: '600px'
@@ -207,14 +209,27 @@
                form.val('inDetail',data);
                form.on('submit(inLoc)',function (data) {
                    var loc =  insXmSel.getValue('valueStr');
                    alert(loc);
                    console.log(data);
                    // alert(loc);
                    console.log(data.field);
                    $.ajax({
                        url: baseUrl+"/receiveDetl/addIn"
                        ,headers: {'token':localStorage.getItem('token')}
                        ,data: data
                        // ,data: data.field
                        ,data: JSON.stringify(data.field)
                        ,contentType:'application/json;charset=UTF-8'
                        ,method: 'POST'
                        ,success: function (res) {
                            console.log(res)
                            layer.closeAll();
                            if(res.code === 200){
                                layer.msg(res.msg);
                            }
                            if (res.code === 500){
                                layer.msg(res.msg);
                            }
                        }
                    })
                    return false;
                });