unknown
2023-07-06 7d283e2425891b5543ef27169faddaa3084ebf1b
分配画面(办事处)

分配画面(办事处) 一览 更新
2个文件已修改
19 ■■■■ 已修改文件
force-app/main/default/lwc/lexRentalFixtureSetAssignAgency/lexRentalFixtureSetAssignAgency.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexRentalFixtureSetAssignAgency/lexRentalFixtureSetAssignAgency.js 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexRentalFixtureSetAssignAgency/lexRentalFixtureSetAssignAgency.html
@@ -2,7 +2,7 @@
  <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"
force-app/main/default/lwc/lexRentalFixtureSetAssignAgency/lexRentalFixtureSetAssignAgency.js
@@ -5,22 +5,28 @@
export default class lexRentalFixtureSetAssignAgency extends LightningElement {
    @api recordId
    msg;
    IsLoading = true;
    isShow = false;
    connectedCallback(){
        init({
            recordId: this.recordId
        }).then(result=>{
            this.IsLoading = false;
            let res = result.ra;
            console.log(res);
            if(res.Campaign__c != '' || res.Campaign__c != undefined){
                if(res.CampaignStatus == '取消'){
                    this.isShow = true;
                    this.msg = '学会取消,不可分配';
                    return;
                }
            }
            if(res.Repair__c != ''){
                if(res.Repair_Final_Inspection_Date_F__c != null && res.Repair_Final_Inspection_Date_F__c !='' || (res.RC_return_to_office__c!=null && res.RC_return_to_office__c != '')){
            if(res.Repair__c != '' || res.Repair__c != undefined){
                if(res.Repair_Final_Inspection_Date_F__c != null && res.Repair_Final_Inspection_Date_F__c !=''
                        || (res.RC_return_to_office__c!=null && res.RC_return_to_office__c != '')){
                    this.isShow = true;
                    this.msg = '修理有最终检测日或修理品返送日,不可分配';
                    return;
                }
@@ -33,9 +39,13 @@
                    window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId); 
                    this.closeAction();
                }else if((res.demo_purpose2__c == '学会展会' || res.demo_purpose2__c == '课题研究' || res.demo_purpose2__c == '培训中心')&& res.Status__c == '草案中'){
                    this.isShow = true;
                    this.msg = "不能分配,请确认申请的状态";
                    return
                }else if((res.demo_purpose2__c =='试用(无询价)' || res.demo_purpose2__c == '试用(有询价)' || res.demo_purpose2__c =='动物实验' || res.demo_purpose2__c == '一般维修代用' || res.demo_purpose2__c== '保修合同用户维修代用' || res.demo_purpose2__c == '已购待货') && res.Status__c != '已批准' && res.Status__c != '已出库指示'){
                }else if((res.demo_purpose2__c =='试用(无询价)' || res.demo_purpose2__c == '试用(有询价)' || res.demo_purpose2__c =='动物实验' ||
                    res.demo_purpose2__c == '一般维修代用' || res.demo_purpose2__c== '保修合同用户维修代用' || res.demo_purpose2__c == '已购待货')
                && res.Status__c != '已批准' && res.Status__c != '已出库指示'){
                    this.isShow = true;
                    this.msg = "不能分配,请确认申请的状态";
                    return;
                }else if(resultMsg == 'Fin'){
@@ -43,6 +53,7 @@
                    this.closeAction();
                    return;
                }else{
                    this.isShow = true;
                    this.msg = resultMsg;
                    return;
                }