19626
2023-07-12 fbd4bea7bd57b4d4a33cb9ed0ebc15d9bf6551c0
force-app/main/default/lwc/lexOPDReport/lexOPDReport.js
@@ -53,6 +53,7 @@
            recordId: this.recordId
        }).then(result=>{
            console.log(result);
            console.log("start");
            this.assetReturnDay2 = result.assetReturnDay2;
            this.demoPurpose2 = result.demoPurpose2;
            this.followUPOpp = result.followUPOpp;
@@ -74,21 +75,6 @@
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        }
        //var d = new Date("{!Rental_Apply__c.Asset_return_day2__c}");
        //var d15 = new Date("{!Rental_Apply__c.Asset_return_day2__c}");
        //d15.setDate(d.getDate()+7);
        //if(status == "已回寄" && ( new Date()< d || new Date() > d15)){
        // alert("备品借出状态:" + status + ",但不在回寄日之后7天之内,不能创建报告书!");
        // return;
        //}
        //2021/7/15 fxk Start
        // var str;
        // var url;
        // str='&RecordType=01210000000RLTi';
        // url = '/a0B/e?retURL=%2Fa0B%2Fo'+str;
        //2021/7/15 fxk End
        //SWAG-BVW8CW 20201217 让user自己选择recordtype
@@ -96,6 +82,7 @@
        var demo_purpose2 = this.demoPurpose2;
        // var strs ;
        if(demo_purpose2=='试用(有询价)'){
            console.log('y');
            const defaultValues = encodeDefaultFieldValues({
                Loaner_request_no1__c: this.recordId, // 关联主记录 ID
                Hospital_Reference__c: this.hospital,
@@ -119,11 +106,9 @@
                }
            });
            this.dispatchEvent(new CloseActionScreenEvent());
            // strs='&CF00N10000002DT68=' + this.followUPOpp +
            // '&CF00N10000002DT68_lkid=' + this.followUPOppId +
            // '&00N10000002DHk5=跟进询价'
            return;
        }
        console.log('n');
        //Before Update by LiJun 20220321 end
        //After Update by LiJun 20220321 start
        const defaultValues = encodeDefaultFieldValues({
@@ -146,16 +131,6 @@
            }
        });
        this.dispatchEvent(new CloseActionScreenEvent());
        // url = url + '&CF00N10000004maf3=' + this.name +
        // '&CF00N10000004maf3_lkid=' + this.recordId +
        // '&CF00N10000002DPUD=' + this.hospital +
        // '&CF00N10000002DPUD_lkid=' + this.hospitalId +
        // '&CF00N10000002Dh0f=' + this.strategicDept +
        // '&CF00N10000002Dh0f_lkid='+ this.strategicDeptId +
        // '&CF00N10000008ps6d=' + this.opdPlan +
        // '&CF00N10000008ps6d_lkid=' + this.opdPlanId +
        // '&CF00N10000002CWW4=' + this.account +
        // '&CF00N10000002CWW4_lkid=' + this.accountId;
        //After Update by LiJun 20220321 end
    }
}