From e38a0e2aa1542aa51a3eaaca977542ad39eac482 Mon Sep 17 00:00:00 2001 From: 涂煌豪 <tuhuanghao@prec-tech.com> Date: 星期日, 24 四月 2022 09:55:11 +0800 Subject: [PATCH] 把开发环境的多年保续签内容转移到测试环境 --- force-app/main/default/pages/SelectAssetEstimateVM.page | 43 ++++++++++++++++++++++++++++++++++++------- 1 files changed, 36 insertions(+), 7 deletions(-) diff --git a/force-app/main/default/pages/SelectAssetEstimateVM.page b/force-app/main/default/pages/SelectAssetEstimateVM.page index 8b338c9..b448d2d 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 20220408 start + var FirstParagraphEnd = j$(escapeVfId('allPage:allForm:allBlock:contract:FirstParagraphEnd'))[0].checked; + if(FirstParagraphEnd){ + if (confirm('鏈绛剧害缁忛攢鍟嗘槸鍏堟瀵硅薄锛岃纭鏄惁鎻愪氦鎶ヤ环锛�')) { + return true; + }else{ + return false; + } + } + // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220408 end + return true; } //add by gwy 2021-01-27 end 鎻愪氦鏃剁殑鎻愮ず妗� @@ -331,7 +341,7 @@ } function refreshAsset(cnt) { - //alert('1111111111'); + // alert(cnt); // 鎻愪氦鍚庡氨椤甸潰涓嶈绠椾簡 var isDisabled = {!PageDisabled}; // 鍚堝悓鎬荤悊 @@ -345,6 +355,10 @@ // 鏂板搧鍚堝悓 鍒ゆ柇 var newCon = true; var contractStartDate = new Date(j$(escapeVfId('allPage:allForm:contractstartdate')).value()); + + //澶氬勾淇濈画绛惧悎鍚屾暟閲� thh 20220316 start + var GuranteeCount = 0; + //澶氬勾淇濈画绛惧悎鍚屾暟閲� thh 20220316 end // 棰勫畾寮�濮嬫棩 @@ -422,6 +436,10 @@ var lastContRange = 0; if(LastMContractRecord == 'VM_Contract'){ newCount++; + //澶氬勾淇濈画绛惧悎鍚屾暟閲�,澶氬勾淇濈画绛惧埌鏈嶅姟鍚堝悓鏃惰涓洪绛捐澶� thh 20220316 start + GuranteeCount++; + newCon = false; + //澶氬勾淇濈画绛惧悎鍚屾暟閲�,澶氬勾淇濈画绛惧埌鏈嶅姟鍚堝悓鏃惰涓洪绛捐澶� thh 20220316 end lastendDate = new Date(j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':endDateGurantee_Text')).value()); lastContRange = 36; }else{ @@ -429,7 +447,7 @@ } //鏈�鍚庣粨鏉熸棩+1骞� lastendDate.setMonth(lastendDate.getMonth() + 12); - if (Date.parse(contractStartDate) > Date.parse(lastendDate)) { + if (Date.parse(contractStartDate) > Date.parse(lastendDate) ) { oyearCount ++; } // 鍙栬仈鍔ㄤ环鏍� @@ -515,7 +533,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 ++; @@ -526,6 +544,10 @@ var lastContRange = 0; if(LastMContractRecord == 'VM_Contract'){ newCount++; + //澶氬勾淇濈画绛惧悎鍚屾暟閲�,澶氬勾淇濈画绛惧埌鏈嶅姟鍚堝悓鏃惰涓洪绛捐澶� thh 20220316 start + GuranteeCount++; + newCon = false; + //澶氬勾淇濈画绛惧悎鍚屾暟閲�,澶氬勾淇濈画绛惧埌鏈嶅姟鍚堝悓鏃惰涓洪绛捐澶� thh 20220316 end lastendDate = new Date(j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':endDateGurantee_Text')).value()); lastContRange = 36; }else{ @@ -615,18 +637,25 @@ var result = ''; if (allcount == 0) { result = null; - }else - if (newCount > 0 && newCount == allcount && newCon == true) { + //濡傛灉鎵�鏈夎澶囩殑涓婃湡鍚堝悓閮芥槸澶氬勾淇濆悎鍚岋紝鍒欏悎鍚岀绫讳负甯傚満澶氬勾淇濈画绛惧悎鍚� thh 20220315 start + }else if(GuranteeCount > 0 && GuranteeCount == allcount){ + result = '甯傚満澶氬勾淇濈画绛惧悎鍚�'; + //濡傛灉鎵�鏈夎澶囩殑涓婃湡鍚堝悓閮芥槸澶氬勾淇濆悎鍚岋紝鍒欏悎鍚岀绫讳负甯傚満澶氬勾淇濈画绛惧悎鍚� thh 20220315 end + }else if (newCount > 0 && newCount == allcount && newCon == true) { result = '鏂板搧鍚堝悓'; }else if (((newCount > 0 && newCount == allcount) ||(newCount + firstCCount == allcount)) && newCon == false) { 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