Browse Source

对账单

liujun 2 years ago
parent
commit
4196cf1706

+ 10 - 2
components/customPicker/checkBoxPicker.vue

@@ -81,8 +81,16 @@ export default {
 					arr.push(con);
 					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) {
 		getChooseItem(e) {
 			const row = this.list.find(item => item.code == e.name)
 			const row = this.list.find(item => item.code == e.name)

+ 5 - 0
components/customPicker/redioPicker.vue

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