From bc1b2596e2621e00af4a388ee17f24a2c41cc4a0 Mon Sep 17 00:00:00 2001
From: twysparks <twysparks@163.com>
Date: 星期五, 19 五月 2023 09:34:07 +0800
Subject: [PATCH] tt

---
 /dev/null                                                                         |   11 -----------
 force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js |    5 +----
 2 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.html b/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.html
deleted file mode 100644
index 87f391a..0000000
--- a/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<template>
-    <div class="exampleHolder" if:true={IsLoading}>
-        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
-        <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button>
-    </div>
-</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js b/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js
deleted file mode 100644
index 45665b5..0000000
--- a/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js
+++ /dev/null
@@ -1,96 +0,0 @@
-import {
-    LightningElement,
-    wire,
-    api
-} from 'lwc';
-import {
-    CurrentPageReference
-} from "lightning/navigation";
-import {
-    CloseActionScreenEvent
-} from 'lightning/actions';
-import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init';
-import selectMaintenanceContractEstimate from '@salesforce/apex/otherButtonMaintenanceContractCtl.selectMaintenanceContractEstimate';
-import {
-    ShowToastEvent
-} from 'lightning/platformShowToastEvent';
-
-export default class LexCustomAnewMaintenance extends LightningElement {
-    @api recordId;
-    str;
-    IsLoading = true;
-    Id;
-    StatusC;
-    RecordTypeId;
-    URFContractC;
-
-    @wire(CurrentPageReference)
-    getStateParameters(currentPageReference) {
-        if (currentPageReference) {
-            const urlValue = currentPageReference.state.recordId;
-            if (urlValue) {
-                let str = `${urlValue}`;
-                this.recordId = str;
-            }
-        }
-    }
-
-    connectedCallback() {
-        console.log(this.recordId);
-        init({
-            recordId: this.recordId
-        }).then(result => {
-            console.log(result);
-            if (result != null) {
-                this.IsLoading = false;
-                this.Id = result.Id;
-                this.RecordTypeId = result.RecordTypeId;
-                this.StatusC = result.StatusC;
-                this.URFContractC = result.URFContractC;
-
-                this.CustomAnew();
-                this.dispatchEvent(new CloseActionScreenEvent());
-            }
-        }).catch(error => {
-            console.log(error);
-        })
-    }
-
-    //涓
-    CustomAnew() {
-        if (this.StatusC != "寮曞悎涓�") {
-            this.ShowToastEvent("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鍐嶆姤浠�", "error")
-            // alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鍐嶆姤浠�");
-        } else {
-            init().then(result => {
-                if (result.length == 1) {
-                    if (this.RecordTypeId == "01210000000gTYq") {
-                        //URF闄愭鍚堝悓2鏈� LY 20220902 start
-                        if (this.URFContractC == true) {
-                            window.open("/apex/SelectAssetEstimateURF?copyid=" + ids[0], "_top");
-                        } else {
-                            window.open("/apex/SelectAssetEstimateVM?copyid=" + ids[0], "_top");
-                        }
-                        //URF闄愭鍚堝悓2鏈� LY 20220902 end
-                    } else {
-                        window.open("/apex/SelectAssetEstimate?copyid=" + ids[0], "_top");
-                    }
-
-                } else {
-                    this.ShowToastEvent('璇烽�夋嫨涓�涓姤浠�', "error")
-                    // alert('璇烽�夋嫨涓�涓姤浠�');
-                }
-            })
-        }
-    }
-
-    // 寮圭獥
-    ShowToastEvent(msg, type) {
-        const event = new ShowToastEvent({
-            title: '',
-            message: msg,
-            variant: type
-        });
-        this.dispatchEvent(event);
-    }
-}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js-meta.xml b/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js-meta.xml
deleted file mode 100644
index 3392981..0000000
--- a/force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js-meta.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>54.0</apiVersion>
-	<isExposed>true</isExposed>
-	<targets>
-		<target>lightning__RecordPage</target>
-		<target>lightning__AppPage</target>
-		<target>lightning__HomePage</target>
-		<target>lightning__RecordAction</target>
-	</targets>
-</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html b/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
deleted file mode 100644
index d044dbb..0000000
--- a/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<template>
-    <div class="exampleHolder" if:true={IsLoading}>
-        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
-    </div>
-</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.js b/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.js
deleted file mode 100644
index 9adcd42..0000000
--- a/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.js
+++ /dev/null
@@ -1,81 +0,0 @@
-import {
-    LightningElement,
-    wire,
-    api
-} from 'lwc';
-import {
-    CurrentPageReference
-} from "lightning/navigation";
-import {
-    CloseActionScreenEvent
-} from 'lightning/actions';
-import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init';
-
-export default class LexCustomNewMCMaintenance extends LightningElement {
-    @api recordId;
-    str;
-    IsLoading = true;
-    Id;
-    StatusC;
-    IsRecognitionModelC;
-    RecordTypeId;
-    URFContractC;
-
-    @wire(CurrentPageReference)
-    getStateParameters(currentPageReference) {
-        if (currentPageReference) {
-            const urlValue = currentPageReference.state.recordId;
-            if (urlValue) {
-                let str = `${urlValue}`;
-                this.recordId = str;
-            }
-        }
-    }
-
-    connectedCallback() {
-        console.log(this.recordId);
-        init({
-            recordId: this.recordId
-        }).then(result => {
-            console.log(result);
-            if (result != null) {
-                this.IsLoading = false;
-                this.Id = result.Id;
-                this.StatusC = result.StatusC;
-                this.IsRecognitionModelC = result.IsRecognitionModelC;
-                this.RecordTypeId = result.RecordTypeId;
-                this.URFContractC = result.URFContractC;
-
-                this.CustomNewMC();
-                this.dispatchEvent(new CloseActionScreenEvent());
-            }
-        }).catch(error => {
-            console.log(error);
-        })
-    }
-
-    // 鏂板缓鏂版湇鍔″悎鍚屾姤浠�	
-    CustomNewMC() {
-        if ( this.StatusC != "寮曞悎涓�") {
-            alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环");
-        } else {
-            //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 start
-            if (this.IsRecognitionModelC == 1) {
-                if (!confirm("璇ョ粡閿�鍟嗕负鍏堟瀵硅薄锛屾槸鍚︾户缁柊寤烘姤浠凤紵")) {
-                    return;
-                }
-            }
-            //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 end
-            if (this.RecordTypeId == "01210000000gTYq") {
-                if (this.URFContractC == "0") {
-                    window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top");
-                } else {
-                    window.open("/apex/SelectAssetEstimateURF?mcid=" + this.Id, "_top");
-                }
-            } else {
-                window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top");
-            }
-
-        }
-    }
-}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.js-meta.xml b/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.js-meta.xml
deleted file mode 100644
index 3392981..0000000
--- a/force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.js-meta.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>54.0</apiVersion>
-	<isExposed>true</isExposed>
-	<targets>
-		<target>lightning__RecordPage</target>
-		<target>lightning__AppPage</target>
-		<target>lightning__HomePage</target>
-		<target>lightning__RecordAction</target>
-	</targets>
-</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
index 89df914..7fe37a2 100644
--- a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
+++ b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
@@ -44,9 +44,8 @@
                 this.StatusC = result.StatusC;
                 this.IsRecognitionModelC = result.IsRecognitionModelC;
                 this.RecordTypeId = result.RecordTypeId;
-                this.RecordTypeId1 = result.RecordTypeId1;
                 this.URFContractC = result.URFContractC;
-
+                this.RecordTypeId1 = result.RecordTypeId1;
                 this.CustomNewMC();
                 this.dispatchEvent(new CloseActionScreenEvent());
             }
@@ -59,12 +58,10 @@
     CustomNewMC() {
         if ( this.StatusC != "寮曞悎涓�") {
             alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环");
-            window.history.go(-1);
         } else {
             //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 start
             if (this.IsRecognitionModelC == 1) {
                 if (!confirm("璇ョ粡閿�鍟嗕负鍏堟瀵硅薄锛屾槸鍚︾户缁柊寤烘姤浠凤紵")) {
-                    window.history.go(-1);
                     return;
                 }
             }
diff --git a/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.html b/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.html
deleted file mode 100644
index 87f391a..0000000
--- a/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<template>
-    <div class="exampleHolder" if:true={IsLoading}>
-        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
-        <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button>
-    </div>
-</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js b/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js
deleted file mode 100644
index 5fd4900..0000000
--- a/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import {
-    LightningElement,
-    wire,
-    api
-} from 'lwc';
-import {
-    CurrentPageReference
-} from "lightning/navigation";
-import {
-    CloseActionScreenEvent
-} from 'lightning/actions';
-import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init';
-import {
-    ShowToastEvent
-} from 'lightning/platformShowToastEvent';
-
-export default class LexCustomNewMaintenance extends LightningElement {
-    @api recordId;
-    str;
-    IsLoading = true;
-    Id;
-    StatusC;
-    RecordTypeId;
-
-    @wire(CurrentPageReference)
-    getStateParameters(currentPageReference) {
-        if (currentPageReference) {
-            const urlValue = currentPageReference.state.recordId;
-            if (urlValue) {
-                let str = `${urlValue}`;
-                this.recordId = str;
-            }
-        }
-    }
-
-    connectedCallback() {
-        console.log(this.recordId);
-        init({
-            recordId: this.recordId
-        }).then(result => {
-            console.log(result);
-            if (result != null) {
-                this.IsLoading = false;
-                this.Id = result.Id;
-                this.StatusC = result.StatusC;
-                this.RecordTypeId = result.RecordTypeId;
-
-                this.CustomNew();
-                this.dispatchEvent(new CloseActionScreenEvent());
-            }
-        }).catch(error => {
-            console.log(error);
-        })
-    }
-
-    // 鏂板缓缁翠慨鍚堝悓鎶ヤ环
-    CustomNew() {
-        if (this.StatusC != "寮曞悎涓�") {
-            this.ShowToastEvent("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环", "error");
-            // alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环");
-        } else {
-            if (this.RecordTypeId == "01210000000gTYq") {
-                window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top");
-            } else {
-                window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top");
-            }
-        }
-    }
-
-    // 寮圭獥
-    ShowToastEvent(msg, type) {
-        const event = new ShowToastEvent({
-            title: '',
-            message: msg,
-            variant: type
-        });
-        this.dispatchEvent(event);
-    }
-}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js-meta.xml b/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js-meta.xml
deleted file mode 100644
index 3392981..0000000
--- a/force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js-meta.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>54.0</apiVersion>
-	<isExposed>true</isExposed>
-	<targets>
-		<target>lightning__RecordPage</target>
-		<target>lightning__AppPage</target>
-		<target>lightning__HomePage</target>
-		<target>lightning__RecordAction</target>
-	</targets>
-</LightningComponentBundle>
\ No newline at end of file

--
Gitblit v1.9.1