Browse Source

commit 修改统计页 功能逻辑

menchuang 1 year ago
parent
commit
5247e6ba6a
1 changed files with 11 additions and 9 deletions
  1. 11 9
      pages/statistics/statistics.vue

+ 11 - 9
pages/statistics/statistics.vue

@@ -90,7 +90,7 @@
 							</view>
 							<uni-icons type="clear" size="24" color="#999"
 								style="margin-left:20rpx ;margin-right: -20rpx;"
-								@click="this.specificationValue.name=''"></uni-icons>
+								@click="this.specificationValue=''"></uni-icons>
 						</view>
 					</view>
 				</view>
@@ -518,10 +518,10 @@
 					this.$modal.msg('请选择小区')
 					return;
 				}
-				if (this.isEmpty(this.specificationValue.id)) {
-					this.$modal.msg('请选择规格')
-					return;
-				}
+				// if (this.isEmpty(this.specificationValue.id)) {
+				// 	this.$modal.msg('请选择规格')
+				// 	return;
+				// }
 				let param = {
 					enginCycle: this.projectValue.dictValue, //工程周期
 					areaId: this.XQValue.id,
@@ -558,10 +558,12 @@
 			},
 			//材料清空val 
 			clearThatTwoInfo() {
-				this.materialValue.name = ''
-				if (this.specificationValue.name) {
-					this.specificationValue.name = ''
-				}
+				this.materialValue='';
+				this.specificationValue='';
+				// this.materialValue.name = ''
+				// if (this.specificationValue.name) {
+				// 	this.specificationValue.name = ''
+				// }
 			}
 		}
 	}