gjy 3 years ago
parent
commit
c39e61798b
1 changed files with 31 additions and 1 deletions
  1. 31 1
      src/views/houseSelfCollect/inspectInfo.vue

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

@@ -272,6 +272,8 @@
               console.log(this.types)
               console.log(this.types)
               if(this.types==3){
               if(this.types==3){
                 this.inspect.flag=0
                 this.inspect.flag=0
+              }else if(this.types==4){
+                this.inspect.flag=1
               }
               }
                getinspectEdit(this.inspect)
                getinspectEdit(this.inspect)
                 .toPromise()
                 .toPromise()
@@ -608,7 +610,35 @@
             .catch(() => {
             .catch(() => {
               return false
               return false
             })
             })
+        }else if (this.types == 4) {
+          this.inspect.flag=1
+          this.inspect.reInspector=sessionStorage.getItem('ws-pf_roleName') + sessionStorage.getItem('ws-pf_staffName')
+          this.$confirm('确定保存质检信息?', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning',
+            })
+            .then(() => {
+              // return
+              getinspectEdit(this.inspect)
+                .toPromise()
+                .then((response) => {
+                  this.$message.success('修改成功')
+                  getinspectLook({
+                      id: this.inspect.id
+                    })
+                    .toPromise()
+                    .then((response) => {
+                      this.inspect = response
+                    })
+                  this.isShowPrint = true
+                })
+            })
+            .catch(() => {
+              return false
+            })
         }
         }
+
       },
       },
       cancel() {
       cancel() {
         this.types = ''
         this.types = ''
@@ -774,7 +804,7 @@
               })
               })
             }
             }
           })
           })
-        if (this.types == 2 || this.types == 3) {
+        if (this.types !=1) {
           //查看
           //查看
           getinspectLook({
           getinspectLook({
               id: ids
               id: ids