diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index 2a6228b7..dcb546e8 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -1425,8 +1425,9 @@ namespace AMESCoreStudio.Web.Controllers } #region PCS005 工單資料查詢 - public IActionResult PCS005() + public async Task PCS005() { + await GetFactoryUnit(); return View(); } @@ -1435,11 +1436,13 @@ namespace AMESCoreStudio.Web.Controllers /// /// 生產單位 /// 工單號碼 + /// 料號 /// - public async Task PCS005QueryAsync(string unitno, string wipno, int page = 1, int limit = 10) + public async Task PCS005QueryAsync(string unitno, string wipNo, string itemNo, int page = 0, int limit = 10) { IResultModel result = await _pcsApi.GetWipInfoSelectParameter(unitno: unitno - , wipno: wipno + , wipno: wipNo + , itemno: itemNo , page: page , limit: limit); @@ -1510,7 +1513,7 @@ namespace AMESCoreStudio.Web.Controllers if (result_dy.Count > 0) { - return Json(new Table() { code = 0, msg = "", data = result_dy, count = result_dy.Count }); + return Json(new Table() { code = 0, msg = "", data = result_dy, count = result.DataTotal }); } return Json(new Table() { count = 0, data = null }); } diff --git a/AMESCoreStudio.Web/Views/PCS/PCS005.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS005.cshtml index c04050c2..77695c82 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS005.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS005.cshtml @@ -12,6 +12,45 @@
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+
+
+
diff --git a/AMESCoreStudio.Web/Views/PCS/PCS030.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS030.cshtml index f0644c6d..f5efcce1 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS030.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS030.cshtml @@ -50,7 +50,7 @@
-