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 | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) diff --git a/force-app/main/default/pages/SelectAssetEstimateVM.page b/force-app/main/default/pages/SelectAssetEstimateVM.page index 66016f5..b448d2d 100644 --- a/force-app/main/default/pages/SelectAssetEstimateVM.page +++ b/force-app/main/default/pages/SelectAssetEstimateVM.page @@ -57,16 +57,16 @@ return false; } } - // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220407 start - var FirstParagraphEnd = j$(escapeVfId('allPage:allForm:allBlock:contract:FirstParagraphEnd')).val(); - if(FirstParagraphEnd == 'on'){ + // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220408 start + var FirstParagraphEnd = j$(escapeVfId('allPage:allForm:allBlock:contract:FirstParagraphEnd'))[0].checked; + if(FirstParagraphEnd){ if (confirm('鏈绛剧害缁忛攢鍟嗘槸鍏堟瀵硅薄锛岃纭鏄惁鎻愪氦鎶ヤ环锛�')) { return true; }else{ return false; } } - // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220407 end + // 鍏堟鍚庝慨-鎻愪氦鎶ヤ环鏃跺鏋滄槸鍏堟瀵硅薄杩涜鎻愮ず thh 20220408 end return true; } //add by gwy 2021-01-27 end 鎻愪氦鏃剁殑鎻愮ず妗� @@ -356,6 +356,10 @@ var newCon = true; var contractStartDate = new Date(j$(escapeVfId('allPage:allForm:contractstartdate')).value()); + //澶氬勾淇濈画绛惧悎鍚屾暟閲� thh 20220316 start + var GuranteeCount = 0; + //澶氬勾淇濈画绛惧悎鍚屾暟閲� thh 20220316 end + // 棰勫畾寮�濮嬫棩 var startdate = new Date(j$(escapeVfId('allPage:allForm:allBlock:contract:startdate')).value()); @@ -432,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{ @@ -536,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{ @@ -625,8 +637,11 @@ 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 = '棣栫鍚堝悓'; -- Gitblit v1.9.1