lilei пре 4 година
родитељ
комит
73251d2e2b

+ 2 - 9
pages/spotCheckConfigure/addSpotCheck.vue

@@ -210,15 +210,8 @@ export default {
 		// 开始日期
 		confirmStartDate(val) {
 			let d = val.year + '-' + val.month + '-' + val.day;
-			let a = this.form.startDate;
-			if (a == '' || moment(d).isBefore(a)) {
-				this.form.startDate = d;
-			} else {
-				uni.showToast({
-					icon: 'none',
-					title: '开始日期应小于结束日期'
-				});
-			}
+			this.form.startDate = d
+			this.form.endDate = ''
 		},
 		openEndDate(){
 			this.showPickerEnd = this.form.cycleType=='WEEK'

+ 2 - 0
pages/spotCheckConfigure/spotCheckList.vue

@@ -38,6 +38,7 @@ export default {
 	},
 	onLoad() {
 		if(this.$hasPermissions("B_spotConfig_new_mobile")){
+			// #ifdef APP-PLUS
 			// 设置标题栏按钮
 			let currentWebview = this.$scope.$getAppWebview();
 			currentWebview.setTitleNViewButtonStyle(0, {
@@ -47,6 +48,7 @@ export default {
 				width: '80px',
 				fontSrc: '/static/iconfont/iconfont.ttf'
 			});
+			// #endif
 		}
 		
 		// 首次加载列表