buli
2023-07-07 85f6fb6227a84936e192936ba480b4e03834df03
force-app/main/default/lwc/lexCustomDiffReasonComp/lexCustomDiffReasonComp.js
@@ -1,31 +1,28 @@
import { LightningElement, api, track } from 'lwc';
import { LightningElement,api, track } from 'lwc';
export default class LexCustomDiffReasonComp extends LightningElement {
    @api prodId;
    @api boxPiece;
    @track DiffReason = '';
    connectedCallback() {
        console.log('ProdId' + this.prodId);
    connectedCallback(){
        console.log('ProdId'+this.prodId);
    }
    diffReasonBlur(event) {
        console.log('LexCustomDiffReasonComp');
    diffReasonBlur(event){
        console.log('LexCustomDiffReasonComp')
        this.DiffReason = event.target.value;
        this.dispatchEvent(
            new CustomEvent('diffreasons', {
                composed: true,
                bubbles: true,
                cancelable: true,
                detail: {
                    data: {
                        DiffReason: this.DiffReason,
                        ProdId: this.prodId,
                        boxPiece: this.boxPiece
                    }
                }
            })
        );
        this.dispatchEvent(new CustomEvent('diffreasons', {
            composed: true,
            bubbles: true,
            cancelable: true,
            detail: {
                data: { DiffReason: this.DiffReason, ProdId: this.prodId ,boxPiece:this.boxPiece}
            }
        }));
    }
}