소스 검색

对账单

liujun 2 년 전
부모
커밋
4196cf1706
2개의 변경된 파일15개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      components/customPicker/checkBoxPicker.vue
  2. 5 0
      components/customPicker/redioPicker.vue

+ 10 - 2
components/customPicker/checkBoxPicker.vue

@@ -81,8 +81,16 @@ export default {
 					arr.push(con);
 				}
 			});
-			this.$emit('chooseCon', arr);
-			this.isShow = false;
+			if(arr.length == 0){
+				uni.showToast({
+					title:'参数值不能为空',
+					icon:'none'
+				})
+			}else{
+				this.$emit('chooseCon', arr);
+				this.isShow = false;
+			}
+			
 		},
 		getChooseItem(e) {
 			const row = this.list.find(item => item.code == e.name)

+ 5 - 0
components/customPicker/redioPicker.vue

@@ -64,6 +64,11 @@ export default {
 		submit(index) {
 			if (!this.chooseVal) {
 				this.chooseObj = null;
+				uni.showToast({
+					title:'参数值不能为空',
+					icon:'none'
+				})
+				return;
 			}
 			this.$emit('chooseItem', this.chooseObj);
 			this.isShow = false;