From fd9df05c48c09b4d7f39a3b401882bda226dedea Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 31 十月 2023 20:38:18 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/lwc/tEnquiry/tEnquiry.js | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/force-app/main/default/lwc/tEnquiry/tEnquiry.js b/force-app/main/default/lwc/tEnquiry/tEnquiry.js
index 7aa4631..b0fd93d 100644
--- a/force-app/main/default/lwc/tEnquiry/tEnquiry.js
+++ b/force-app/main/default/lwc/tEnquiry/tEnquiry.js
@@ -67,7 +67,7 @@
}
}
-
+ inputValue = "";
//==================鑾峰彇鎷涙姇鏍囬」鐩甶d================
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')
+ }
//鍏宠仈鍖婚櫌
--
Gitblit v1.9.1