自动化立体仓库 - WMS系统
wang..123
2022-02-15 7182f72ba4781c620eebdf501ca46b3f69f5585d
src/main/webapp/static/js/pakStore/pakStore.js
@@ -6,9 +6,9 @@
        {fixed: 'left', field: 'count', title: '数量(必填)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'supplier', title: '批号', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'source', title: '来源', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'vendor', title: '供应商', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'allqty', title: '总数量', align: 'center'},
        {field: 'allweight', title: '总重量', align: 'center'}
        {field: 'vendor', title: '供应商', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
        // {field: 'allqty', title: '总数量', align: 'center'},
        // {field: 'allweight', title: '总重量', align: 'center'}
    ];
    cols.push.apply(cols, matCols);
    cols.push(
@@ -57,6 +57,22 @@
                    }
                }
                break
            case 'source':
                for (var i=0;i<matCodeData.length;i++){
                    if (matCodeData[i]["matNo"] === obj.data.matNo
                        && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){
                        matCodeData[i]["source"] = obj.data.source;
                    }
                }
                break;
            case 'vendor':
                for (var i=0;i<matCodeData.length;i++){
                    if (matCodeData[i]["matNo"] === obj.data.matNo
                        && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){
                        matCodeData[i]["vendor"] = obj.data.vendor;
                    }
                }
                break;
        }
    });