yuyou_x
2024-02-04 ce528a91a0f42101c32b83cb3914eec69d5f8ad6
Merge branch 'yyk'
3个文件已修改
1 文件已重命名
75 ■■■■■ 已修改文件
HTML/views/ASNSetting/ArrivalNoticeDetail.html 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Pda/View/AsnSetting/productEnterQuantity .html 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Model/ModelDto/SysDto/CustomerDto.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ArrivalNoticeDetail.html
@@ -62,7 +62,7 @@
                </select>
            </div>
            <label class="layui-form-label">客户名称</label>
            <label class="layui-form-label" style="width: 70px;"><p id="CustomerNamep">客户名称</p></label>
            <div class="layui-input-inline">
                <select name="CustomerName" id="CustomerName" lay-verify="" lay-search>
                    <option value=""></option>
@@ -143,6 +143,10 @@
            });
            var arr = [];
            var TypeValue=$("#Type").val();
            var type0 = [3]; //客户
            var type1 = [1,5]; //供应商
            var type2 = [0,2,4,6]; //货主
            // 加载下拉信息
            getCustomerList();
@@ -463,6 +467,7 @@
                var value = data.value;
                if(value!=TypeValue){
                    console.log(value);
                    getCustomerList();
                    arr = [];
                    // 渲染Table
                    refreshTable(null);
@@ -584,13 +589,65 @@
            // 绑定下拉信息
            function getCustomerList() {
                /*
                0:客户
                    退货入库
                    3
                1:供应商
                    采购入库、其它入库
                    1、5
                2:货主
                    成品入库、中间品入库、车间余料入库、代储入库
                    0、2、4、6
                */
                sendData(IP + "/Basis/GetCustomerSelect", {}, 'get', function (res) {
                    if (res.code == 0) { //成功
                        $("#CustomerName").empty();
                        $("#CustomerName").append('<option value =""></option>');
                        for (var i = 0; i < res.data.length; i++) {
                            $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
                                res.data[i].CustomerName + '</option>');
                            //判断单据类型
                            if (type0[0] == $("#Type").val())
                            {
                                /*
                                    0:客户
                                    退货入库
                                    3
                                */
                                if (res.data[i].Type == 0)
                                {
                                    $("#CustomerNamep").html("客户选择");
                                    $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
                                    res.data[i].CustomerName + '</option>');
                                }
                            }
                            else if (type1[0] == $("#Type").val() || type1[1] == $("#Type").val())
                            {
                                /*
                                    1:供应商
                                    采购入库、其它入库
                                    1、5
                                */
                                if (res.data[i].Type == 1)
                                {
                                    $("#CustomerNamep").html("供应商选择");
                                    $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
                                    res.data[i].CustomerName + '</option>');
                                }
                            }
                            else if (type2[0] == $("#Type").val() || type2[1] == $("#Type").val() || type2[2] == $("#Type").val() || type2[3] == $("#Type").val())
                            {
                                /*
                                    2:货主
                                    成品入库、中间品入库、车间余料入库、代储入库
                                    0、2、4、6
                                */
                                if (res.data[i].Type == 2)
                                {
                                    $("#CustomerNamep").html("货主选择");
                                    $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
                                    res.data[i].CustomerName + '</option>');
                                }
                            }
                        }
                        form.render('select');
                    } else { //不成功
Pda/View/AsnSetting/productEnterQuantity .html
Wms/Model/ModelDto/SysDto/CustomerDto.cs
@@ -18,7 +18,7 @@
        public string CustomerName { get; set; }
        /// <summary>
        /// 类型 0 销售客户/货主  1 供货商
        /// 类型 0 销售客户 1 供货商 2:货主
        /// </summary>           
        public int? Type { get; set; }
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -1800,6 +1800,10 @@
                        IsBelt = "0",
                        CreateUser = userId
                    };
                    if (model.SkuQty > pNum)
                    {
                        throw new Exception($"绑定失败,{model.PalletNo}托盘绑定数量大于该物品托盘包装数量!");
                    }
                    // 插入托盘绑定表
                    bindId = Db.Insertable(bind).ExecuteReturnIdentity();
                }
@@ -1893,6 +1897,10 @@
                {
                    bind.BitPalletMark = "0";
                }
                if (bind.Qty > pNum)
                {
                    throw new Exception($"绑定失败,{bind.PalletNo}托盘绑定数量大于该物品托盘包装数量!");
                }
                Db.Updateable(bind).Where(m => m.Id == bindId).ExecuteCommand();
                // 更改入库单明细已组数量
@@ -1922,7 +1930,7 @@
                //添加托盘记录表数据
                sqlStr += $"insert into LogPalletTrack values('{model.PalletNo}','{model.AsnNo}','组盘','0',getDate(),{userId},NULL,NULL);";
                Db.Ado.ExecuteCommand(sqlStr);
                new OperationASNServer().AddLogOperationAsn("PDA模块", "托盘绑定1", model.AsnNo, "添加", $"添加了托盘码为:{model.PalletNo}、{msgStr}的组盘信息", userId);
                new OperationASNServer().AddLogOperationAsn("PDA模块", "托盘绑定", model.AsnNo, "添加", $"添加了托盘码为:{model.PalletNo}、{msgStr}的组盘信息", userId);
                Db.CommitTran();
            }