自动化立体仓库 - WMS系统
mrzhssss
2022-05-27 c6ab1a516d8398de65512fcd380d89e46ec8e430
src/main/webapp/static/js/order/out.js
@@ -135,7 +135,7 @@
                        ,title: false
                        ,closeBtn: false
                        ,offset: '100px'
                        ,area: '1200px'
                        ,area: ['1200px', '700px']
                        ,shade: 0.5
                        ,shadeClose: true
                        ,btn: ['立即出库', '稍后处理']
@@ -146,7 +146,7 @@
                            table.render({
                                elem: '#stoPreTab',
                                data: res.data,
                                height: 450,
                                height: 520,
                                page: false,
                                limit: Number.MAX_VALUE,
                                cellMinWidth: 100,
@@ -166,6 +166,7 @@
                                    tableCache = tableData = table.cache.stoPreTab;
                                }
                            });
                            // 修改出库站
                            form.on('select(tbBasicTbStaNos)', function (obj) {
                                let index  = obj.othis.parents('tr').attr("data-index");
                                let data = tableCache[index];
@@ -178,6 +179,23 @@
                                obj.othis.children().find("input").css("color", "blue");
                                return false;
                            });
                            // 批量修改出库站
                            form.on('submit(batchModifySta)', function () {
                                let stoPreTabData = layui.table.checkStatus('stoPreTab').data;
                                console.log(stoPreTabData)
                                if (stoPreTabData.length < 1) {
                                    layer.msg("请至少选择一条以上合并数据", {icon: 7});
                                    return false;
                                }
                                modifySta(stoPreTabData.map(function (d) {
                                    return d.id;
                                }));
                            });
                            // 批量修改出库站 - 站点选择
                            function modifySta(data) {
                            }
                        }
                        ,yes: function(index, layero){
                            //按钮【立即出库】的回调