| | |
| | | import SubmitData from '@salesforce/apex/MaintenanceContractNotOpenController.SubmitData'; |
| | | |
| | | import SearchLostReportData from '@salesforce/apex/MaintenanceContractNotOpenController.SearchLostReportData'; |
| | | import SearchMaintenance_ContractData from '@salesforce/apex/MaintenanceContractNotOpenController.SearchMaintenance_ContractData'; |
| | | |
| | | import SaveUpdateData from '@salesforce/apex/MaintenanceContractNotOpenController.SaveUpdateData'; |
| | | |
| | |
| | | InitPorpsData() |
| | | { |
| | | GetJTYY().then(response=>{var data = JSON.parse(response);this.JTYYList = data;}) |
| | | |
| | | console.log(this.JTYYList); |
| | | GetQX().then(response=>{var data = JSON.parse(response);this.QXList = data;}) |
| | | |
| | | } |
| | | |
| | | ///金额格式化 |
| | |
| | | }) |
| | | } |
| | | |
| | | getThree(){ |
| | | GetQX1().then(response=>{ |
| | | var data = JSON.parse(response); |
| | | this.QXList = data[0].To_Where__c; |
| | | }) |
| | | } |
| | | getShiDan() |
| | | { |
| | | this.TempData =={ |
| | |
| | | To_Where__c : '', |
| | | Status__c:"", |
| | | Other_Reasons__c:"", |
| | | |
| | | Other__c:"", |
| | | Third_Party_Company__c:"", |
| | | Third_Party_Contract_Price__c:"", |
| | | Maintenance_Contract__c:"" |
| | | Maintenance_Contract__c:"", |
| | | MC_Code__c:"" |
| | | }; |
| | | var TempData = []; |
| | | this.notselectdata2.forEach(element => { |
| | |
| | | |
| | | SearchLostReportData({Ids:TempData}).then(response=>{ |
| | | this.ShiDanList = JSON.parse(response); |
| | | |
| | | }) |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | //-- |
| | | |
| | | |
| | | |
| | | |
| | | @track optionsdata2=[ |
| | |
| | | JTYYList = []; |
| | | //去向 |
| | | QXList = []; |
| | | //报价 |
| | | BAOJIAList = []; |
| | | BJNameList = []; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | ManagementCodeSearch = '';//搜索 |
| | | NameSearch = ''; // 合同名 |
| | | Maintenance_ContractName =''; |
| | | HospitalSearch = '';//医院 |
| | | OCSMglsSearch = '';//OCSM管理省 Service_man_province_HP__c |
| | | ZddSearch = '';//主担当 |
| | |
| | | Other__c:"", |
| | | Third_Party_Company__c:"", |
| | | Third_Party_Contract_Price__c:"", |
| | | Maintenance_Contract__c:"" |
| | | Maintenance_Contract__c:"", |
| | | MC_Code__c:"" |
| | | } |
| | | Other_Reasons__cShow = false; |
| | | Third_Party_Company__cShow = false; |
| | | GoWhere = true; |
| | | Third_Party_Contract_Price__cShow = false; |
| | | Other__cShow = false; |
| | | Price_Code = false; |
| | | Price_Code2 = false; |
| | | |
| | | |
| | | ModelShow = false; |
| | |
| | | }else{ |
| | | this.Other_Reasons__cShow= false; |
| | | } |
| | | |
| | | if (values == '重复报价') { |
| | | this.Price_Code = true; |
| | | this.GoWhere= false; |
| | | }else{ |
| | | this.Price_Code = false; |
| | | this.GoWhere= true; |
| | | } |
| | | if (values == '转第三方或维修托管') { |
| | | this.TempData.QXList = '医院选择第三方'; |
| | | this.TempData.To_Where__c = '医院选择第三方'; |
| | | this.Third_Party_Company__cShow= true; |
| | | this.Third_Party_Contract_Price__cShow= true; |
| | | this.template.querySelector('[data-parent-id="model3"]').disabled = true; |
| | | this.template.querySelector('[data-parent-id="model3"]').refreshdata([],this.QXList ); |
| | | |
| | | }else{ |
| | | this.Third_Party_Company__cShow= false; |
| | | this.Third_Party_Contract_Price__cShow= false; |
| | | this.template.querySelector('[data-parent-id="model3"]').disabled = false; |
| | | } |
| | | this.TempData.Specific_Reasons__c = values; |
| | | } |
| | | |
| | |
| | | |
| | | this.TempData.Other_Reasons__c = values; |
| | | } |
| | | Maintenance_Contract__c1Fn(event) |
| | | { |
| | | var values = event.target.value; |
| | | |
| | | this.Maintenance_ContractName = values; |
| | | } |
| | | |
| | | // onsearchchange1(event){ |
| | | // var values = event.detail.value; |
| | | |
| | | // this.Maintenance_ContractName = values; |
| | | // this.TempData.MC_Code__c = this.Maintenance_ContractName ; |
| | | |
| | | // this.Maintenance_Contract__cFn(); |
| | | |
| | | // } |
| | | // tempArr = []; |
| | | |
| | | option = [{lableOne:"Name",lableTwo:"RecordType_Name__c"}] |
| | | searchdata=[]; |
| | | onsearchchange(event){ |
| | | var searchContentStr = event.detail.searchContent; |
| | | SearchMaintenance_ContractData({name:searchContentStr}).then(response=>{ |
| | | var datas = JSON.parse(response); |
| | | this.searchdata = datas; |
| | | console.log(this.searchdata+'!'); |
| | | this.template.querySelector('[data-parent-id="lookup1"]').refreshdata(this.searchdata); |
| | | }) |
| | | if (searchContentStr == undefined || searchContentStr == '') { |
| | | this.YYSelectedId = ''; |
| | | } |
| | | } |
| | | YYSelectedId = ''; |
| | | selectedFn(event) |
| | | { |
| | | console.warn(event.detail.selectdata.Id); |
| | | this.YYSelectedId = event.detail.selectdata.Id; |
| | | this.Maintenance_ContractName = this.YYSelectedId ; |
| | | this.TempData.MC_Code__c = this.Maintenance_ContractName ; |
| | | } |
| | | |
| | | // Maintenance_Contract__cFn(event) |
| | | // { |
| | | // SearchMaintenance_ContractData({name:this.Maintenance_ContractName}).then(response=>{ |
| | | // debugger; |
| | | // this.BAOJIAList = JSON.parse(response); |
| | | // this.BAOJIAList.forEach(item=>{ |
| | | // this.tempArr.push(item.name); |
| | | // }) |
| | | // }) |
| | | // } |
| | | // MC_Code__cFn(event) |
| | | // { |
| | | // var values = event.target.value; |
| | | // console.log(values); |
| | | // this.TempData.MC_Code__c = values; |
| | | // } |
| | | To_Where__cFn(event) |
| | | { |
| | | var values = event.target.value; |
| | |
| | | { |
| | | this.Other__cShow = false; |
| | | } |
| | | |
| | | |
| | | this.TempData.To_Where__c = values; |
| | | } |
| | |
| | | To_Where__c : '', |
| | | Status__c:"", |
| | | Other_Reasons__c:"", |
| | | |
| | | Other__c:"", |
| | | Third_Party_Company__c:"", |
| | | Third_Party_Contract_Price__c:"", |
| | | Maintenance_Contract__c:"" |
| | | Maintenance_Contract__c:"", |
| | | MC_Code__c:"" |
| | | }; |
| | | this.Other__cShow = false; |
| | | |
| | | this.Third_Party_Company__cShow= false; |
| | | this.Third_Party_Contract_Price__cShow= false; |
| | | this.Other_Reasons__cShow = false; |
| | | |
| | | this.Price_Code = false; |
| | | this.ModelIsDistory = false; |
| | | } |
| | | // ENd |