19626
2023-10-31 fd9df05c48c09b4d7f39a3b401882bda226dedea
force-app/main/default/lwc/tEnquiry/tEnquiry.js
@@ -67,7 +67,7 @@
        }
        
    }
    inputValue = "";
    //==================获取招投标项目id================
    ParamIdStr = ''; // url 参数Id
    getQueryVariable(variable)
@@ -132,7 +132,7 @@
            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;
@@ -271,23 +271,26 @@
    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;
@@ -318,7 +321,7 @@
            }
        })
        
        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;
@@ -493,7 +496,10 @@
        this.YYSelectedId = event.detail.value;
     
     }
    onsearchchange2(e){
        this.inputValue = e.target.value
        console.log(e,e.target.value,'xAAA')
    }
    //关联医院