wxw
2025-10-13 cfdbd0eadeb5dbe4ff8872bb67f43ae8f323a799
优化入库单导入功能
3个文件已修改
20 ■■■■■ 已修改文件
HTML/views/ASNSetting/ArrivalNotice.html 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Wms/Controllers/BllAsnController.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ArrivalNotice.html
@@ -140,7 +140,7 @@
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn layui-btn-sm layuiadmin-btn-list" lay-submit
                        <button id="searchBtn" class="layui-btn layui-btn-sm layuiadmin-btn-list" lay-submit
                            lay-filter="LAY-app-contlist-search">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>搜索
                        </button>
@@ -689,17 +689,16 @@
                            var param = {
                                "ListArrivalNotice": noticeList,
                            }
                            console.log('param:'+param)
                            //console.log('param:'+param)
                            layer.load();//打开loading
                            sendData(IP + "/BllAsn/ImportArrivalNotice", param, 'post', function (res) {
                                console.log(res);
                                layer.closeAll(); //关闭loading
                                if (res.code == 0) { //成功
                                    layer.msg(res.msg, {
                                        icon: 1,
                                        time: 2000 //2秒关闭(如果不配置,默认是3秒)
                                    }, function () {
                                        refreshTable();
                                        $('#searchBtn').click();
                                        doing = true
                                    });
                                } else { //不成功
@@ -707,12 +706,12 @@
                                        layer.msg("导入数据格式有误!", {
                                            icon: 2,
                                            time: 3000 //2秒关闭(如果不配置,默认是3秒)
                                        }, function () { refreshTable(); doing = true });
                                        }, function () { $('#searchBtn').click(); doing = true });
                                    } else {
                                        layer.msg(res.msg, {
                                            icon: 2,
                                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                                        }, function () { refreshTable(); doing = true });
                                            time: 3000 //2秒关闭(如果不配置,默认是3秒)
                                        }, function () { $('#searchBtn').click(); doing = true });
                                    }
                                }
                            });
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -536,8 +536,9 @@
                            }
                        }
                    }
                    catch
                    catch(Exception ex)
                    {
                        throw new Exception($"物料编码:{model.AsnDetail[0].SkuNo},物料名称:{model.AsnDetail[0].SkuName},导入失败:"+ex.Message);
                        // ignored
                    }
                }
Wms/Wms/Controllers/BllAsnController.cs
@@ -172,6 +172,10 @@
        {
            try
            {
                if (models.ListArrivalNotice.Count > 50)
                {
                    throw new Exception("单次导入最多50条数据");
                }
                var claimsIdentity = this.User.Identity as ClaimsIdentity;
                if (claimsIdentity == null)
                {