|
@@ -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){
|