button-lexTransferApplySelectDetail
选择调拨明细
| New file |
| | |
| | | .holder{ |
| | | position: relative; |
| | | display: inline-block; |
| | | width: 80px; |
| | | height: 80px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .container .uiContainerManager{ |
| | | display : none !important; |
| | | } |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #feb75d; |
| | | display: flex; |
| | | } |
| | |
| | | <div class="holder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <div if:true={IsShow} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | |
| | | export default class lexTransferApplySelectDetail extends LightningElement { |
| | | @api recordId; |
| | | msg; |
| | | |
| | | IsLoading = true; |
| | | IsShow = false; |
| | | connectedCallback(){ |
| | | transferApplySelectDetail({ |
| | | recordId: this.recordId |
| | | }).then(res=>{ |
| | | this.IsLoading = false; |
| | | if(res.TA_Status__c == '删除' || res.TA_Status__c == '取消' || res.TA_Status__c == '完了'){ |
| | | this.IsShow = true; |
| | | this.msg = '调拨申请已经'+ res.TA_Status__c +',不能选择调拨明细' |
| | | }else{ |
| | | window.open("/apex/TransferApplySelectDetail?id="+this.recordId, "_top"); |