| | |
| | | //只获取当前list选中的一览Id |
| | | @api rentalApplySetIds; |
| | | IsLoading=true; |
| | | IsDisplay=true; |
| | | //提示信息 |
| | | msg; |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | console.log(JSON.stringify(this.rentalApplySetIds)); |
| | | // if(this.rentalApplySetIds.length<1){ |
| | | if (this.recordId && JSON.stringify(this.rentalApplySetIds)) { |
| | | this.IsLoading=false; |
| | | if (this.recordId && this.rentalApplySetIds) { |
| | | this.IsDisplay = false; |
| | | LightningConfirm.open({ |
| | | message: '你确定要重新分配吗?', |
| | | variant: 'headerless', |
| | |
| | | rentalApplyEquipmentSetReassign({ |
| | | raesID: this.rentalApplySetIds[0] |
| | | }).then(result=>{ |
| | | this.IsDisplay = true; |
| | | if(result == '1'){ |
| | | this.msg = "已重新分配"; |
| | | this.closeAction(); |
| | |
| | | return; |
| | | } |
| | | }) |
| | | }else{ |
| | | this.closeAction(); |
| | | return; |
| | | } |
| | | }) |
| | | }else{ |