| | |
| | | import { LightningElement,api,track } from 'lwc'; |
| | | import { LightningElement, api, track } from 'lwc'; |
| | | |
| | | export default class LexReturnGoodCusInput extends LightningElement { |
| | | @api boxPrice; |
| | | @api inputValue; |
| | | @api recordId; |
| | | |
| | | get showInputOrText(){ |
| | | if(this.boxPrice == '盒'){ |
| | | get showInputOrText() { |
| | | if (this.boxPrice == '盒') { |
| | | return false; |
| | | }else{ |
| | | } else { |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | console.log('inputValue:'+this.inputValue+this.boxPrice); |
| | | connectedCallback() { |
| | | console.log('inputValue:' + this.inputValue + this.boxPrice); |
| | | } |
| | | |
| | | changeInputValue(event){ |
| | | changeInputValue(event) { |
| | | this.inputValue = event.detail.value; |
| | | this.dispatchEvent(new CustomEvent('changereturncount', { |
| | | composed: true, |
| | | bubbles: true, |
| | | cancelable: true, |
| | | detail: { |
| | | data: { value: this.inputValue, boxPrice: this.boxPrice, recordId:this.recordId} |
| | | } |
| | | })); |
| | | this.dispatchEvent( |
| | | new CustomEvent('changereturncount', { |
| | | composed: true, |
| | | bubbles: true, |
| | | cancelable: true, |
| | | detail: { |
| | | data: { |
| | | value: this.inputValue, |
| | | boxPrice: this.boxPrice, |
| | | recordId: this.recordId |
| | | } |
| | | } |
| | | }) |
| | | ); |
| | | } |
| | | } |