Browse Source

搜索提示修改

jwyu 3 years ago
parent
commit
18c1fa2f6d

+ 7 - 0
pages-approve/seal/addSeal.vue

@@ -266,6 +266,13 @@
 			
 			//搜索客户
 			async onSearch(){
+				if(!this.searchCustomeVal){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				this.searchContractList=[]
 				this.searchCustomeList=[]
 				const res=await apiSearchCustome({Keyword:this.searchCustomeVal})

+ 7 - 0
pages-approve/seal/detail.vue

@@ -390,6 +390,13 @@
 			
 			//搜索客户
 			async onSearch(){
+				if(!this.searchCustomeVal){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				this.searchContractList=[]
 				this.searchCustomeList=[]
 				const res=await apiSearchCustome({Keyword:this.searchCustomeVal})

+ 7 - 0
pages-approve/seal/edit.vue

@@ -303,6 +303,13 @@
 			
 			//搜索客户
 			async onSearch(){
+				if(!this.searchCustomeVal){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				this.searchContractList=[]
 				this.searchCustomeList=[]
 				const res=await apiSearchCustome({Keyword:this.searchCustomeVal})

+ 7 - 0
pages-approve/search/index.vue

@@ -129,6 +129,13 @@
 			},
 
 			onSearch() {
+				if(!this.value){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				if (this.type === 'custome') {
 					this.handleCustome()
 				}