HTML/views/ASNSetting/ArrivalNotice.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HTML/views/ASNSetting/ArrivalNoticeDetail.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Pda/View/AsnSetting/productEnterQuantity .html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Wms/Model/ModelDto/SysDto/CustomerDto.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HTML/views/ASNSetting/ArrivalNotice.html
@@ -177,7 +177,7 @@ html += `<a class="layui-btn layui-btn-normal layui-btn-xs editClass" lay-event="edit"> <i class="layui-icon layui-icon-edit"></i>编辑</a> <a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del"> <i class="layui-icon layui-icon-delete"></i>删除</a> <i class="layui-icon layui-icon-delete"></i>删除</a>`; break; case "1" : html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>订单关闭</a> 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
File was renamed from Pda/View/AsnSetting/productEnter1.html @@ -164,7 +164,7 @@ <tr> <td> <div id="" class="layui-form-item layout-boxinfo"> <label class="layui-form-label" lang>物料规格:</label> <label class="layui-form-label" lang>规格/型号:</label> <div class="layui-input-block"> <input id="Standard" type="text" disabled placeholder="" autocomplete="off" class="layui-input"> 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
@@ -1793,6 +1793,10 @@ IsBelt = "0", CreateUser = userId }; if (model.SkuQty > pNum) { throw new Exception($"绑定失败,{model.PalletNo}托盘绑定数量大于该物品托盘包装数量!"); } // 插入托盘绑定表 bindId = Db.Insertable(bind).ExecuteReturnIdentity(); } @@ -1886,6 +1890,10 @@ { bind.BitPalletMark = "0"; } if (bind.Qty > pNum) { throw new Exception($"绑定失败,{bind.PalletNo}托盘绑定数量大于该物品托盘包装数量!"); } Db.Updateable(bind).Where(m => m.Id == bindId).ExecuteCommand(); // 更改入库单明细已组数量 @@ -1915,7 +1923,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(); }