#
mrzhssss
2022-04-26 d17c089f1d7ff3be848b05161917346e7f664a1d
src/main/webapp/static/js/quality/quality.js
@@ -24,6 +24,7 @@
            {type: 'checkbox'}
            //,{field: 'id', align: 'center',title: 'ID'}
            ,{field: 'billNo', align: 'center',title: '检验编号'}
            ,{field: 'uuid', align: 'center',title: '入库单号'}
            ,{field: 'auditStatus$', align: 'center',title: '审核状态'}
            ,{field: 'memo', align: 'center',title: '备注', hide:true}
            ,{align: 'center', title: '明细', toolbar: '#tbLook'}
@@ -78,6 +79,7 @@
        switch(obj.event) {
            case 'addData':
                showEditModel();
                initOrderNo1();
                break;
            case 'deleteData':
               if (checkStatus.length === 0) {
@@ -152,7 +154,7 @@
                layer.open({
                    type: 1,
                    title: false,
                    area: '1000px',
                    area: '1200px',
                    offset: [offset.top + 'px', (offset.left - 530 + $a.outerWidth()) + 'px'],
                    shade: .01,
                    shadeClose: true,
@@ -172,15 +174,15 @@
                            cols: [[
                                // {type: 'numbers'},
                                // {field: 'billNo', title: '检验编号', align: 'center'},
                                {field: 'seqNo', title: '单据行号', align: 'center'},
                                {field: 'orderNo', title: '入库单号', align: 'center'},
                                {field: 'anfme', title: '待入库数量', align: 'center'},
                                {field: 'matnr', title: '产品ID', align: 'center'},
                                {field: 'maktx', title: '产品名称', align: 'center'},
                                {field: 'seqNo', title: '行号', align: 'center', width:60},
                                {field: 'orderNo', title: '入库单号', align: 'center', width:175},
                                {field: 'anfme', title: '待入数量', align: 'center', width:90},
                                {field: 'matnr', title: '产品编码', align: 'center', width:175},
                                {field: 'maktx', title: '产品名称', align: 'center', width:175},
                                // {field: 'maktx', title: '产品名称', align: 'center'},
                                {field: 'prodDate$', title: '生产日期', align: 'center'},
                                {field: 'quaStatus$', title: '检验状态', align: 'center'},
                                {field: 'rejectQty', title: '不合格数量', align: 'center'},
                                {field: 'quaStatus$', title: '检验状态', align: 'center', width:90},
                                {field: 'rejectQty', title: '不合格数量', align: 'center', width:100},
                                {field: 'rejectReason', title: '不合格原因', align: 'center'},
                            ]],
@@ -233,12 +235,13 @@
                                layer.close(dIndex);
                                layer.msg(res.msg, {icon: 1});
                                tableReload();
                                location.reload();
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            }else {
                                layer.msg(res.msg, {icon: 2});
                            }
                            location.reload();
                            // location.reload();
                        }
                    })
                    return false;
@@ -341,23 +344,23 @@
    return billNO;
}
// function initOrderNo1() {
//     $.ajax({
//         url: baseUrl+"/work/orderNo/init1",
//         headers: {'token': localStorage.getItem('token')},
//         async: false,
//         method: 'GET',
//         success: function (res) {
//             if (res.code === 200){
//                 $('#billNo').val(res.data)
//             } else if (res.code === 403){
//                 top.location.href = baseUrl+"/";
//             } else {
//                 notice.error({
//                     title: '消息通知',
//                     message: res.msg
//                 });
//             }
//         }
//     });
// }
function initOrderNo1() {
    $.ajax({
        url: baseUrl+"/quality/orderNo/init1",
        headers: {'token': localStorage.getItem('token')},
        async: false,
        method: 'GET',
        success: function (res) {
            if (res.code === 200){
                $('#billNo').val(res.data)
            } else if (res.code === 403){
                top.location.href = baseUrl+"/";
            } else {
                notice.error({
                    title: '消息通知',
                    message: res.msg
                });
            }
        }
    });
}