binxie
2023-06-26 b5c5eb130ca0848124f9d136af4be142ad5aac07
force-app/main/default/lwc/customOutputGood/customOutputGood.js
@@ -15,20 +15,13 @@
    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;
@@ -37,19 +30,13 @@
    }
    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}
                    }
                }
            })
        );
        }));
    }
}