自动化立体仓库 - WMS系统
#
luxiaotao1123
2021-08-24 7ebe16b9abbee8e884db27d2ec360f17455b14f2
src/main/webapp/static/js/pakStore/stockOut.js
@@ -1,5 +1,16 @@
var locDetlData = [];
function getCol() {
    var cols = [
        // {field: 'count', align: 'center',title: '出库数量', edit:'text', width: 130,  style:'color: blue;font-weight: bold'}
        {field: 'anfme', align: 'center',title: '数量'}
        ,{field: 'locNo$', align: 'center',title: '库位号'}
    ];
    arrRemove(detlCols,  'field', 'anfme');
    cols.push.apply(cols, detlCols);
    // cols.push({fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80})
    return cols;
}
layui.use(['table','laydate', 'form'], function() {
    var table = layui.table;
@@ -14,22 +25,7 @@
        even: true,
        toolbar: '#toolbar',
        cellMinWidth: 50,
        cols: [[
            {field: 'count', align: 'center',title: '出库数量', edit:'text', width: 130,  style:'color: blue;font-weight: bold'}
            ,{field: 'anfme', align: 'center',title: '原数量'}
            ,{field: 'locNo$', align: 'center',title: '库位号'}
            ,{field: 'matnr', align: 'center',title: '物料'}
            // ,{field: 'lgnum', align: 'center',title: '仓库号', width:80}
            // ,{field: 'tbnum', align: 'center',title: '转储请求编号'}
            // ,{field: 'tbpos', align: 'center',title: '行项目'}
            // ,{field: 'zmatid', align: 'center',title: '物料标签ID', width:200}
            ,{field: 'maktx', align: 'center',title: '物料描述'}
            // ,{field: 'werks', align: 'center',title: '工厂'}
            ,{field: 'altme', align: 'center',title: '单位'}
            ,{field: 'zpallet', align: 'center',title: '托盘条码'}
            // ,{field: 'bname', align: 'center',title: '用户ID'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80}
        ]],
        cols: [getCol()],
        done: function(res, curr, count) {
            limit();
            getOutBound();
@@ -47,7 +43,7 @@
        switch (obj.event) {
            case 'outbound':
                if (data.length === 0){
                    layer.msg('请先添加库位物料');
                    layer.msg('请先添加库位产品');
                } else {
                    var staNo = $("#staNoSelect").val();
                    if (staNo === "" || staNo === null){
@@ -125,7 +121,7 @@
    // 获取出库口
    function getOutBound(){
        $.ajax({
            url: baseUrl+"/available/take/site",
            url: baseUrl+"/available/take/site/1",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            async: false,
@@ -146,12 +142,12 @@
    }
})
// 提取物料
// 提取产品
var locDetlLayerIdx;
function getLocDetl() {
    locDetlLayerIdx = layer.open({
        type: 2,
        title: '提取物料',
        title: '提取出货内容',
        maxmin: true,
        area: [top.detailWidth, top.detailHeight],
        shadeClose: true,