| | |
| | | var TotalColsArr = [[ |
| | | { field: '', title: '序号', type: 'numbers', width: 50, align: 'center', fixed: 'left', "disabled": true }, |
| | | { field: 'SONo', title: '出库单号', align: 'center', fixed: 'left', width: 165, "disabled": true }, |
| | | { field: 'Type', title: '单据类型', align: 'center', templet: '#templetType' }, |
| | | //{ field: 'Type', title: '单据类型', align: 'center', templet: '#templetType' }, |
| | | { field: 'Status', title: '执行状态', align: 'center', templet: '#templetStatus' }, |
| | | // { field: 'LogisticsName', title: '承运商', align: 'center' }, |
| | | // { field: 'CustomerName', title: '客户名称', align: 'center' }, |
| | | { field: 'LotNo', title: '批次号', align: 'center' }, |
| | | { field: 'LotNoText', title: '批次描述', align: 'center' }, |
| | | //{ field: 'LotNo', title: '批次号', align: 'center' }, |
| | | //{ field: 'LotNoText', title: '批次描述', align: 'center' }, |
| | | //{ field: 'IsDespatch', title: '是否发运', align: 'center', templet: '#templetIsDespatch' }, |
| | | //{ field: 'SupplierLot', title: '供货批次', align: 'center' }, |
| | | { field: 'Origin', title: '来源', align: 'center' }, |
| | |
| | | { field: 'UpdateTime', title: '修改时间', align: 'center', templet: '#templetUpdateTime' }, |
| | | { field: 'CheckUserName', title: '复核人', align: 'center', width: 110 }, |
| | | { field: 'CheckTime', title: '复核时间', align: 'center', templet: '#templetCheckTime' }, |
| | | { field: 'caozuo', title: '操作', fixed: 'right', align: 'center', width: 200, toolbar: '#table-content-list', "disabled": false } |
| | | //{ field: 'caozuo', title: '操作', fixed: 'right', align: 'center', width: 200, toolbar: '#table-content-list', "disabled": false } |
| | | ]]; |
| | | var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码 |
| | | //#endregion |
| | |
| | | //{ field: 'SupplierLot', title: '供货批次', align: 'center', width: 120 }, |
| | | //{ field: 'Price', title: '单价', align: 'center', width: 80 }, |
| | | //{ field: 'Money', title: '总金额', align: 'center', width: 90 }, |
| | | { field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'left', toolbar: '#table-content-list2', "disabled": true } |
| | | //{ field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'left', toolbar: '#table-content-list2', "disabled": true } |
| | | ]]; |
| | | var DetailColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码 |
| | | //#endregion |
| | |
| | | } |
| | | return html; |
| | | } |
| | | }} |
| | | }} |
| | | {{ GetBtn11(d) }} |
| | | </script> |
| | | <script type="text/html" id="InspectStatus1"> |
| | | {{# if(d.InspectStatus == '0') { }} |
| | | <p>待检验</p> |
| | | {{# } else if(d.InspectStatus == '1'){ }} |
| | | <p>检验合格</p> |
| | | {{# } else if(d.InspectStatus == '2'){ }} |
| | | <p>不合格</p> |
| | | {{# } else if(d.InspectStatus == '4') { }} |
| | | <p>放置期</p> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | |
| | | <button class="layui-btn layuiadmin-btn-list layui-btn-sm addClass" lay-event="add"> |
| | |
| | | {field: 'Qty', title: '数量', align: 'center'}, |
| | | {field: 'LockQty', title: '锁定数量', align: 'center',}, |
| | | {field: 'FrozenQty', title: '冻结数量', align: 'center'}, |
| | | {field: 'InspectStatus', title: '质检状态', align: 'center', templet: '#InspectStatus1'}, |
| | | //{field: 'InspectMark', title: '抽检标记', align: 'center', templet: '#InspectMarkStatus'}, |
| | | //{field: 'BitPalletMark', title: '零托标记', align: 'center', templet: '#BitPalletMarkStatus'}, |
| | | ]]; |
| | |
| | | IsBale = "0", |
| | | IsBelt = "0", |
| | | |
| | | PalletStatus = "1", |
| | | PalletStatus = "2", |
| | | |
| | | IsDel = "0", |
| | | CreateUser = 0, |
| | |
| | | sd1.LocatNo = locatInfo.LocatNo;//储位地址 |
| | | sd1.CompleteTime = comTime; |
| | | sd1.InspectStatus = "0";//待检验 |
| | | sd1.PalletStatus = "1";//预混 |
| | | sd1.PalletStatus = "2";//半成品 |
| | | |
| | | //修改库存明细 |
| | | Db.Updateable(sd1).ExecuteCommand(); |
| | |
| | | resultModel.Message = "起始储位信息不存在!"; |
| | | return resultModel; |
| | | } |
| | | //目标储位信息 |
| | | var endLocatInfo = Db.Queryable<SysStorageLocat>().First(w => w.LocatNo == taskInfo.EndLocat && w.IsDel == "0"); |
| | | if (endLocatInfo == null) |
| | | { |
| | | resultModel.Message = "目标储位信息不存在!"; |
| | | return resultModel; |
| | | } |
| | | //库存明细 |
| | | var sd2 = Db.Queryable<DataStockDetail>().First(w => w.PalletNo == taskInfo.PalletNo); |
| | | if (sd2 == null) |
| | |
| | | sd2.InspectQty = 0; |
| | | sd2.ASNNo = ""; |
| | | sd2.ASNDetailNo = null; |
| | | sd2.WareHouseNo = endLocatInfo.WareHouseNo;//所属仓库 |
| | | sd2.RoadwayNo = endLocatInfo.RoadwayNo;//所属巷道 |
| | | sd2.AreaNo = endLocatInfo.AreaNo;//所属区域 |
| | | sd2.LocatNo = endLocatInfo.LocatNo;//储位地址 |
| | | sd2.WareHouseNo = "";//所属仓库 |
| | | sd2.RoadwayNo = "";//所属巷道 |
| | | sd2.AreaNo = "";//所属区域 |
| | | sd2.LocatNo = "";//储位地址 |
| | | sd2.CompleteTime = comTime; |
| | | //修改库存明细 |
| | | Db.Updateable(sd2).ExecuteCommand(); |
| | |
| | | startLocatInfo.Status = "0";//空储位 |
| | | //修改起始储位状态 |
| | | Db.Updateable(startLocatInfo).ExecuteCommand(); |
| | | |
| | | endLocatInfo.Status = "1";//有物品 |
| | | //修改目标储位状态 |
| | | Db.Updateable(endLocatInfo).ExecuteCommand(); |
| | | |
| | | break; |
| | | #endregion |
| | |
| | | else if (endLocatInfo2.AreaNo == "A04")//脏桶区 |
| | | { |
| | | sd3.PalletStatus = "3"; |
| | | sd3.LotNo = "";//批次 |
| | | sd3.SkuNo = ""; |
| | | sd3.SkuName = ""; |
| | | sd3.InspectStatus = "0";//待检验 |
| | | } |
| | | } |
| | | if (taskInfo.Type == "1")//出库任务 |
| | |
| | | throw new Exception("未获取到用户信息"); |
| | | }*/ |
| | | |
| | | SoResInfo result = _exNoticeSvc.ErpAddExportNotice(model); |
| | | SoResInfo result = _noticeSvc.CreateSoWork(model); |
| | | return Ok(result); |
| | | |
| | | } |