binxie
2023-06-26 dd004276162a2bf9d042ff0aaa569dc30a95d827
force-app/main/default/lwc/customOutputGood/customOutputGood.js
@@ -15,13 +15,20 @@
    get showLink(){
        if(this.outputType == 'Title'){
            if(this.outputValue == '订单明细汇总' || this.outputValue == '待操作入库订单汇总'){
            if (
                this.outputValue == '订单明细汇总' ||
                this.outputValue == '待操作入库订单汇总'
            ) {
                return false;
            }else{
                return true
                return true;
            }
        }else{
            if(this.outputValue == 0 || this.outputValue == '0' || this.outputValue == ''){
            if (
                this.outputValue == 0 ||
                this.outputValue == '0' ||
                this.outputValue == ''
            ) {
                return false;
            }else{
                return true;
@@ -30,13 +37,19 @@
    }
    clickLink(event){
        this.dispatchEvent(new CustomEvent('clicklink', {
        this.dispatchEvent(
            new CustomEvent('clicklink', {
            composed: true,
            bubbles: true,
            cancelable: true,
            detail: {
                data: { value: this.outputValue, type: this.outputType, recordId:this.recordId}
                    data: {
                        value: this.outputValue,
                        type: this.outputType,
                        recordId: this.recordId
            }
        }));
                }
            })
        );
    }
}