From 1e8aedffe66a4b6694caac3982f36203ebf32ce9 Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 16 Apr 2024 10:37:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=B8=85=E7=BA=BF=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=201.1.=E4=BF=AE=E6=94=B9=E4=B8=BB=E7=AE=A1=E6=9C=AA?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=EF=BC=8C=E6=97=A5=E6=9C=9F=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=201.2.=E4=BF=AE=E6=94=B9=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E4=B8=BA0=EF=BC=8C=E4=B8=8D=E5=8F=AF=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Views/PCS/PCS037.cshtml | 26 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/AMESCoreStudio.Web/Views/PCS/PCS037.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS037.cshtml index 9d7651e1..03dcbabe 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS037.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS037.cshtml @@ -137,7 +137,14 @@ field: 'directorCheckDate', title: '主管確認日期', width: 160, - templet: '
{{ layui.util.toDateString(d.directorCheckDate, "yyyy/MM/dd HH:mm") }}
' + templet: function(d) { + if (d.directorCheckFlag != 'Y') { + return '' + } + else { + return layui.util.toDateString(d.directorCheckDate, "yyyy/MM/dd HH:mm") + } + } }, { field: 'center', @@ -145,8 +152,14 @@ title: '操作', templet: function (d) { //return '明細 確認 删除' - if (d.headmanCheckFlag == 'Y' && d.directorCheckFlag != 'Y') { - return '明細 確認 ' + if (d.headmanCheckFlag == 'Y' && d.directorCheckFlag != 'Y') + { + if (d.detailQty == 0) { + return '明細 ' + } + else { + return '明細 確認 ' + } } else if (d.headmanCheckFlag == 'Y'&& d.directorCheckFlag == 'Y') { @@ -154,7 +167,12 @@ } else { - return '明細 確認 删除' + if (d.detailQty == 0) { + return '明細 删除' + } + else { + return '明細 確認 删除' + } //return ""; } }