From ffee9cf95ba62dc86680ddfe4bbfc7fcb51ef1bf Mon Sep 17 00:00:00 2001 From: 涂煌豪 <tuhuanghao@prec-tech.com> Date: 星期四, 07 四月 2022 16:04:01 +0800 Subject: [PATCH] 先款后修20220407 --- force-app/main/default/pages/SelectAssetEstimateVM.page | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/force-app/main/default/pages/SelectAssetEstimateVM.page b/force-app/main/default/pages/SelectAssetEstimateVM.page index 8b338c9..66016f5 100644 --- a/force-app/main/default/pages/SelectAssetEstimateVM.page +++ b/force-app/main/default/pages/SelectAssetEstimateVM.page @@ -57,7 +57,17 @@ return false; } } - return true; + // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220407 start + var FirstParagraphEnd = j$(escapeVfId('allPage:allForm:allBlock:contract:FirstParagraphEnd')).val(); + if(FirstParagraphEnd == 'on'){ + if (confirm('鏈绛剧害缁忛攢鍟嗘槸鍏堟瀵硅薄锛岃纭鏄惁鎻愪氦鎶ヤ环锛�')) { + return true; + }else{ + return false; + } + } + // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220407 end + return true; } //add by gwy 2021-01-27 end 鎻愪氦鏃剁殑鎻愮ず妗� @@ -331,7 +341,7 @@ } function refreshAsset(cnt) { - //alert('1111111111'); + // alert(cnt); // 鎻愪氦鍚庡氨椤甸潰涓嶈绠椾簡 var isDisabled = {!PageDisabled}; // 鍚堝悓鎬荤悊 @@ -429,7 +439,7 @@ } //鏈�鍚庣粨鏉熸棩+1骞� lastendDate.setMonth(lastendDate.getMonth() + 12); - if (Date.parse(contractStartDate) > Date.parse(lastendDate)) { + if (Date.parse(contractStartDate) > Date.parse(lastendDate) ) { oyearCount ++; } // 鍙栬仈鍔ㄤ环鏍� @@ -515,7 +525,7 @@ } else { strMoney = month * strMoney + month2 * strMoney; } - var b = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':Contract_No')).value(); + var b = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':Contract_No')).value(); var LastMContractRecord = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':LastMContractRecord')).value(); if(b != ''){ conCCount ++; @@ -622,11 +632,15 @@ result = '棣栫鍚堝悓'; }else if(firstCCount > 0 && firstCCount == allcount){ result = '棣栫鍚堝悓'; - }else if(oyearCount > 0 && oyearCount == conCCount){ + // 20220328 ljh update LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 start + // }else if(oyearCount > 0 && oyearCount == conCCount){ + }else if(oyearCount > 0 && oyearCount == conCCount && allcount == oyearCount ){ + // 20220328 ljh update LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 start result = '闈炵画绛惧悎鍚岋紙绌虹櫧鏈熶竴骞翠互涓婏級'; }else{ result = '缁鍚堝悓'; } + console.log(result); document.getElementById("allPage:allForm:allBlock:contractInfo:Contract_TypeTXT").innerHTML = result; document.getElementById("allPage:allForm:allBlock:contractInfo:Contract_TypeTXTHidden").value = result; // 鍙栨秷閰稿寲姘� -- Gitblit v1.9.1