yuansh hace 2 años
padre
commit
722bd1d898
Se han modificado 1 ficheros con 19 adiciones y 19 borrados
  1. 19 19
      src/views/oa/modules/IncidentTicketModal.vue

+ 19 - 19
src/views/oa/modules/IncidentTicketModal.vue

@@ -582,25 +582,25 @@
             }
             return true
           })
-          // this.$refs.form.validate(valid => {
-          //   if (valid) { 
-          //     if(addData=='yes'){
-          //       var obj = this.formState
-          //       obj.createTime = ''
-          //       obj.incidentTicketChildrenList =  this.incidentTicketChildrenTable.dataSource
-          //       obj.invoicingDate = moment(this.formState.invoicingDate).add (1,'days')
-          //           putAction('/oa/incidentTicket/edit', obj).then((res) => {
-          //              if(res.success){
-          //                 this.$message.success('编辑成功')
-          //                 this.handleCancel()
-          //                 this.$emit('close')
-          //              }else{
-          //                  this.$message.warning(res.message)
-          //                }
-          //            })
-          //     } 
-          //   }
-          // })
+          this.$refs.form.validate(valid => {
+            if (valid) { 
+              if(addData=='yes'){
+                var obj = this.formState
+                obj.createTime = ''
+                obj.incidentTicketChildrenList =  this.incidentTicketChildrenTable.dataSource
+                obj.invoicingDate = moment(this.formState.invoicingDate).add (1,'days')
+                    putAction('/oa/incidentTicket/edit', obj).then((res) => {
+                       if(res.success){
+                          this.$message.success('编辑成功')
+                          this.handleCancel()
+                          this.$emit('close')
+                       }else{
+                           this.$message.warning(res.message)
+                         }
+                     })
+              } 
+            }
+          })
       },
       // 改变账套号
       handleChange(record,index){