소스 검색

修改新增质检未清空数据

mxx 3 년 전
부모
커밋
b74259c463
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      src/views/houseSelfCollect/inspectInfo.vue

+ 7 - 1
src/views/houseSelfCollect/inspectInfo.vue

@@ -179,11 +179,17 @@
         num:0,
       }
     },
-    activated() {
+    activated() {debugger
       this.types = this.$route.query.type
       if(!this.types){
           this.types = 1
            this.information = '添加'
+           this.inspect = {
+          tidalGrainPrice: 0,
+          buckleWeightRatio: 0,
+          natureOfGrainPurchase:"贸易粮",
+          type:"潮粮"
+        }
       }
       this.cangid = this.$route.query.cangid
       this.warehouseName = this.$route.query.warehouseName