| | |
| | | |
| | | import SearchAccountById from '@salesforce/apex/InspectCheckController.SearchAccountById'; |
| | | |
| | | |
| | | |
| | | import lwcCSS from '@salesforce/resourceUrl/lwcCSS'; |
| | | import {loadStyle} from 'lightning/platformResourceLoader' |
| | | import GetInspectById from '@salesforce/apex/InspectCheckController.GetInspectById'; |
| | | export default class test02 extends LightningElement { |
| | | |
| | |
| | | TongzhiIcon = 'standard:account' //提示框的图标 |
| | | IsLeftStyle = "" //提示框的样式 |
| | | BgColorStyle = "" |
| | | toastTime = null; |
| | | IsLeftStyle = "width: 100%;top: 14%;display: flex;justify-content: center;" |
| | | Alert(content,error = false,left = false){ |
| | | this.Tongzhishow = false |
| | | clearTimeout(this.toastTime) |
| | | this.SaveShowText = content; |
| | | this.Tongzhishow = true; |
| | | |
| | | if (error) { |
| | | this.TongzhiIcon = "standard:first_non_empty"; |
| | | this.BgColorStyle = "background-color:#f88568"; |
| | | this.TongzhiIcon = "utility:error"; |
| | | this.BgColorStyle = "background-color:#ba0517 !important;padding:0.65rem 0.75rem 0.65rem 1.25rem;"; |
| | | }else{ |
| | | this.TongzhiIcon = "standard:account"; |
| | | this.BgColorStyle = "background-color:#69e669"; |
| | | this.TongzhiIcon = "utility:success"; |
| | | this.BgColorStyle = "background-color:rgb(46, 132, 74)!important;padding:0.65rem 0.75rem 0.65rem 1.25rem;"; |
| | | // this.toastTime = setTimeout(() => { |
| | | // this.Tongzhishow = false |
| | | // },3000) |
| | | } |
| | | if (left) { |
| | | this.IsLeftStyle = "left: 0.25rem;" |
| | | }else{ |
| | | this.IsLeftStyle = "" |
| | | } |
| | | // if (left) { |
| | | // // this.IsLeftStyle = "left: 0.25rem;" |
| | | // }else{ |
| | | // this.IsLeftStyle = "color:#fff" |
| | | // } |
| | | } |
| | | CloseAlert() |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | inputValue = ""; |
| | | //==================获取招投标项目id================ |
| | | ParamIdStr = ''; // url 参数Id |
| | | getQueryVariable(variable) |
| | |
| | | return(false); |
| | | } |
| | | connectedCallback(){ |
| | | |
| | | Promise.all([ |
| | | loadStyle(this, lwcCSS) |
| | | ]); |
| | | var paramId = this.getQueryVariable('id'); |
| | | if (paramId == null || paramId == '') { |
| | | return ; |
| | |
| | | |
| | | |
| | | this.departmentId = Datas[0].department__c; |
| | | // this.yyId = Datas[0].Hospital__c; |
| | | this.yyId = Datas[0].Hospital__c; |
| | | |
| | | // 20210914 战略科室修改 |
| | | this.depart_sels = Datas[0].department_selection__c; |
| | |
| | | if (isloading == 2) { |
| | | this.OnLoading(false); |
| | | if (flag) { |
| | | this.Alert("保存成功",false,true); |
| | | this.Alert("保存成功",false); |
| | | } |
| | | } |
| | | }) |
| | |
| | | if (isloading == 2) { |
| | | this.OnLoading(false); |
| | | if (flag) { |
| | | this.Alert("保存成功",false,true); |
| | | this.Alert("保存成功",false); |
| | | } |
| | | } |
| | | |
| | |
| | | //table 列表的数据 |
| | | @track optionsdata=[ |
| | | { |
| | | label:"状态1", |
| | | props:"StageName__c", |
| | | Type:"text", |
| | | }, |
| | | { |
| | | label:"询价名称", |
| | | props:"Name", |
| | | url:"Id", |
| | |
| | | label:"询价编码", |
| | | props:"Opportunity_No__c", |
| | | Type:"text", |
| | | }, |
| | | { |
| | | label:"客户名", |
| | | props:"Account_Name_F__c", |
| | | url:"Id", |
| | | Type:"url", |
| | | }, |
| | | { |
| | | label:"询价阶段", |
| | |
| | | Type:"text", |
| | | }, |
| | | { |
| | | label:"状态1", |
| | | props:"StageName__c", |
| | | Type:"text", |
| | | label:"客户名", |
| | | props:"Account_Name_F__c", |
| | | url:"Id", |
| | | Type:"url", |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | ] |
| | | |
| | |
| | | |
| | | SearchFn(event){ |
| | | debugger; |
| | | console.log(this.inputValue,'搜索内容') |
| | | if (this.yyId != undefined && this.yyId != '') { |
| | | this.YYSelectedId = this.yyId; |
| | | } |
| | | |
| | | if ((this.XJBMValue == '' || this.XJBMValue == ' ') && (this.YYSelectedId == '' || this.YYSelectedId == ' ')) { |
| | | this.OnLoading(true); |
| | | GetNormalProductDataSearch({noStr:undefined,IdStr:this.ParamIdStr,hospital:this.YYSelectedId,hospitalArr:this.hisotryData,departments:this.depart_sels}).then(response=>{ |
| | | var datas = JSON.parse(response); |
| | | this.notselectdata = datas; |
| | | this.template.querySelector('[data-parent-id="table1"]').refreshdata(this.selectdata,this.notselectdata); |
| | | this.OnLoading(false); |
| | | }) |
| | | return ; |
| | | } |
| | | // if ((this.XJBMValue == '' || this.XJBMValue == ' ') |
| | | // // && (this.YYSelectedId == '' || this.YYSelectedId == ' ') |
| | | // ) { |
| | | // this.OnLoading(true); |
| | | // GetNormalProductDataSearch({noStr:undefined,inputText:this.inputValue,IdStr:this.ParamIdStr,hospital:this.YYSelectedId,hospitalArr:this.hisotryData,departments:this.depart_sels}).then(response=>{ |
| | | // var datas = JSON.parse(response); |
| | | // this.notselectdata = datas; |
| | | // this.template.querySelector('[data-parent-id="table1"]').refreshdata(this.selectdata,this.notselectdata); |
| | | // this.OnLoading(false); |
| | | // }) |
| | | // return ; |
| | | // } |
| | | this.OnLoading(true); |
| | | |
| | | GetNormalProductDataSearch({noStr:this.XJBMValue,IdStr:this.ParamIdStr,hospital:this.YYSelectedId,hospitalArr:this.hisotryData,departments:this.depart_sels}).then(response=>{ |
| | | GetNormalProductDataSearch({noStr:this.XJBMValue,IdStr:this.ParamIdStr,inputText:this.inputValue,hospital:this.YYSelectedId,hospitalArr:this.hisotryData,departments:this.depart_sels}).then(response=>{ |
| | | |
| | | var datas = JSON.parse(response); |
| | | this.notselectdata = datas; |
| | |
| | | isloading ++; |
| | | if (isloading == 2) { |
| | | this.OnLoading(false); |
| | | this.Alert("保存成功",false,true); |
| | | this.Alert("保存成功",false); |
| | | } |
| | | }) |
| | | |
| | | GetNormalProductDataSearch({noStr:this.XJBMValue,IdStr:this.ParamIdStr,hospital:this.YYSelectedId,hospitalArr:this.hisotryData,departments:this.depart_sels}).then(response=>{ |
| | | GetNormalProductDataSearch({noStr:this.XJBMValue,IdStr:this.ParamIdStr,inputText:this.inputValue,hospital:this.YYSelectedId,hospitalArr:this.hisotryData,departments:this.depart_sels}).then(response=>{ |
| | | |
| | | var datas = JSON.parse(response); |
| | | this.notselectdata = datas; |
| | |
| | | isloading ++; |
| | | if (isloading == 2) { |
| | | this.OnLoading(false); |
| | | this.Alert("保存成功",false,true); |
| | | this.Alert("保存成功",false); |
| | | } |
| | | }) |
| | | } |
| | |
| | | this.UpdateDatas(this.notselected); |
| | | window.location.hash = "Refresh"+"=="+this.ParamIdStr; |
| | | this.OnLoading(false); |
| | | this.Alert('保存成功',false); |
| | | }else{ |
| | | this.OnLoading(false); |
| | | this.Alert(response,true,false); |
| | | this.Alert(response,true); |
| | | } |
| | | |
| | | }); |
| | |
| | | this.YYSelectedId = event.detail.value; |
| | | |
| | | } |
| | | |
| | | onsearchchange2(e){ |
| | | this.inputValue = e.target.value |
| | | console.log(e,e.target.value,'xAAA') |
| | | } |
| | | //关联医院 |
| | | |
| | | |