From 6850ab8d433ac88794cf211db9b1ee1011b82198 Mon Sep 17 00:00:00 2001 From: Juj <1005539536@qq.com> Date: Mon, 12 Jun 2023 11:37:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A3=E6=96=99=E5=A2=9E=E5=8A=A0=E8=BF=87?= =?UTF-8?q?=E8=B4=A6=E5=8D=A1=E6=8E=A7=20=20=20=E5=B7=A5=E5=8D=95=E9=A2=86?= =?UTF-8?q?=E6=96=99=E5=A2=9E=E5=8A=A0=E6=9C=AA=E9=85=8D=E6=96=99=E5=8D=A1?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/PickMaterial/ICSMOPickMerge.cshtml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml b/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml index b1286fc..e33f229 100644 --- a/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml +++ b/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml @@ -10,7 +10,7 @@ var flag = '1'; var mark = '拣料'; var Arguments = ''; - $.ajaxSettings.async = false;//设置全局同步 + // $.ajaxSettings.async = false;//设置全局同步 //var PickID = ''; $(function () { @@ -61,6 +61,9 @@ //cols.push(collast); var collast = { label: '占料状态', name: 'IsOccupy', width: 80, align: 'left' }; cols.push(collast); + var collast = { label: '单据状态', hidden: true, }; + cols.push(collast); + var cols1 = new Array(); var collast1 = { label: "主键", name: "ID", hidden: true, key: true }; cols1.push(collast1); @@ -90,6 +93,7 @@ cols1.push(collast1); var collast1 = { label: '占料数量', name: 'SendQTY', hidden: true }; cols1.push(collast1); + if (Type != 7) { var collast = { label: '销售凭证', name: 'ProjectCode', width: 100, align: 'left' }; cols.push(collast); @@ -593,6 +597,7 @@ function btnMaterial() { debugger; //var ISFlag = false; + var Type = $("#selShow").val(); $("#PickID").val(''); var sign = ''; var objCode = ''; @@ -614,6 +619,18 @@ $.modalAlertNew("WMS00091"); return; } + if (Type != "2") { + if (rowData.Status == "已过帐") { + $.modalAlert("单据已过账,无法拣料!", "warning"); + return; + } + } + if (Type == "2") { + if (rowData.Status != "未配料") { + $.modalAlert("该单据未配料,无法拣料!", "warning"); + return; + } + } PickIDs += "'" + rowId + "',"; if (rowData.Code!=undefined) { objCode += "'" + rowData.Code + "',";