Pda/View/SoSetting/SampleOut.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Pda/View/SoSetting/SampleOut.html
@@ -1315,7 +1315,7 @@ $('#kuneilabel2').show(); $('#kuqianlabel2').hide(); updateBillList2(); // console.log($('#bar2').val()) console.log($('#bar2').val()) if ($('#bar2').val() == "") { console.log(1) clear21(); @@ -1333,7 +1333,7 @@ $('#kuqianlabel2').show(); $('#kuneilabel2').hide(); updateAsnBillList2(); GetBoxInfo(); GetDataInfo(); sampleType = "1"; } Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -377,7 +377,7 @@ { //获取任务信息 var logtask = Db.Queryable<LogTask>().First(a => a.PalletNo == upBindPalletNo && a.IsDel == "0" && a.Status == "1"); if (logtask == null) if (logtask != null) { strMsg = "该托盘任务已完成 或未成功创建任务 请核实!"; return strMsg; @@ -398,10 +398,13 @@ return strMsg; } //删除绑定托盘表信息 string delstr = "delete from BllPalletBind Where PalletNo = @palletno"; string delstr = "update BllPalletBind set IsDel = 1,UpdateUser = @UpdateUser,UpdateTime = @UpdateTime Where PalletNo = @palletno and Id =@Id "; int i = Db.Ado.ExecuteCommand(delstr, new { palletno = upBindPalletNo UpdateUser = createUser, UpdateTime = DateTime.Now, palletno = upBindPalletNo, Id = bindVms[0].Id }); //修改托盘状态 Db.BeginTran(); @@ -428,12 +431,12 @@ box.IsDel = "1"; Db.Updateable(box).ExecuteCommand(); //修改任务状态 logtask.IsDel = "1"; logtask.Status = "4"; //3 已取消 logtask.UpdateUser = createUser; //取消人 logtask.UpdateTime = DateTime.Now; //取消时间 Db.Updateable(logtask).ExecuteCommand(); ////修改任务状态 //logtask.IsDel = "1"; //logtask.Status = "4"; //3 已取消 //logtask.UpdateUser = createUser; //取消人 //logtask.UpdateTime = DateTime.Now; //取消时间 //Db.Updateable(logtask).ExecuteCommand(); //更改库存数量 //string str = $"update DataStock set Qty = Qty - {(int)bindVms[0].Qty} Where SkuNo = '100099'"; // 更改托盘使用状态 @@ -2032,10 +2035,10 @@ Demo = model.Demo, }; if (model.TableType == 0 && isDeposit == 0 && isTextTable == 0) { throw new Exception($"绑定失败,{model.PalletNo}托盘绑定数量大于该物品托盘包装数量!"); } //if (model.TableType == 0 && isDeposit == 0 && isTextTable == 0) 不太理解这段代码的含义 //{ // throw new Exception($"绑定失败,{model.PalletNo}托盘绑定数量大于该物品托盘包装数量!"); //} // 插入托盘绑定表 bindId = Db.Insertable(bind).ExecuteReturnIdentity(); } Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs
@@ -313,6 +313,10 @@ { throw new Exception($"{palletNo}托盘上存在箱码信息,无法在数量拣货进行操作!"); } BllExportAllot allot = null; if (!string.IsNullOrWhiteSpace(soDetailId)) { //出库单明细 var noticeDetail = Db.Queryable<BllExportNoticeDetail>().First(a => a.Id == int.Parse(soDetailId) && a.IsDel == "0"); if (noticeDetail == null) @@ -326,11 +330,13 @@ throw new Exception($"未查询到对应出库单总单信息,请核实!"); } //分配信息 var allot = Db.Queryable<BllExportAllot>().First(a => a.IsDel == "0" && a.SONo == notice.SONo && a.SODetailNo == noticeDetail.Id && a.PalletNo == palletNo && (a.Status == "2" || a.Status == "3")); allot = Db.Queryable<BllExportAllot>().First(a => a.IsDel == "0" && a.SONo == notice.SONo && a.SODetailNo == noticeDetail.Id && a.PalletNo == palletNo && (a.Status == "2" || a.Status == "3")); if (allot == null) { throw new Exception($"未查询到对应分配信息,请核实!"); } } //库存明细 var detail = Db.Queryable<DataStockDetail>().First(a => a.IsDel == "0" && a.PalletNo == palletNo); if (detail == null) @@ -346,8 +352,8 @@ { SkuNo = detail.SkuNo, BoxNo = detail.SkuNo, Qty = (int)allot.Qty, PickedQty = (int)allot.CompleteQty, Qty = allot == null ? (int)(detail.Qty-detail.LockQty) : (int)allot.Qty, PickedQty = allot == null ? 0 : (int)allot.CompleteQty, }; pdaInfo.Add(info);