From 79b6c0fc9625f173ad43845d244cc93e870cf610 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 2 Mar 2023 16:13:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=AD=A3=E5=B7=A5=E5=96=AE?= =?UTF-8?q?=E7=B6=AD=E8=AD=B7=E7=9B=B8=E9=97=9CBug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Views/PCS/PCS003.cshtml | 9 ++++++++- AMESCoreStudio.Web/Views/PCS/PCS034.cshtml | 11 ++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml index d16834ca..e0bc5a79 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml @@ -27,7 +27,6 @@ - @@ -1375,7 +1374,15 @@ $(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc); } }); + $(this).change(function () { + var txt = $(this).val(); + if (txt.length == 0) { + $(this).closest('div.layui-inline').find('input[id*=' + this.id + '_Desc]').val(''); + } + }); }) + + // PowerMode layui.autocomplete({ element: '#wipSystem_PowerMode', diff --git a/AMESCoreStudio.Web/Views/PCS/PCS034.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS034.cshtml index a4715123..52579fde 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS034.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS034.cshtml @@ -27,7 +27,6 @@ - FINE_PACKAGE
+ @(Model.wipSystem.FinePackage == "Y" ? "checked" : "") + } type="checkbox" title="是否為精裝" name="wipSystem.FinePackage" />
@@ -1312,6 +1311,12 @@ $(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc); } }); + $(this).change(function () { + var txt = $(this).val(); + if (txt.length == 0) { + $(this).closest('div.layui-inline').find('input[id*=' + this.id + '_Desc]').val(''); + } + }); }) // PowerMode layui.autocomplete({