|
|
@ -280,8 +280,7 @@ export default { |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
methods: { |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|
handleReturn() { |
|
|
|
this.formobj = { |
|
|
|
sid: '', |
|
|
|
code: '', // 单号 |
|
|
@ -309,7 +308,9 @@ export default { |
|
|
|
this.totalQuantity = '' |
|
|
|
this.amountInTotal = '' |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.$emit('doback') |
|
|
|
this.$store.dispatch('tagsView/delView', this.$route) |
|
|
|
this.$router.go(-1) |
|
|
|
// this.$emit('doback') |
|
|
|
}, |
|
|
|
showAdd() { |
|
|
|
this.$nextTick(() => { |
|
|
@ -322,9 +323,7 @@ export default { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.viewTitle = '【审核编号】' |
|
|
|
req |
|
|
|
.fetchBySid(row.sid) |
|
|
|
.then(resp => { |
|
|
|
req.fetchBySid(row.sid).then(resp => { |
|
|
|
if (resp.success) { |
|
|
|
this.formobj = resp.data |
|
|
|
if (this.formobj.pros.length > 0) { |
|
|
@ -365,7 +364,6 @@ export default { |
|
|
|
} |
|
|
|
this.amountInTotal = aa |
|
|
|
} |
|
|
|
|
|
|
|
console.log(',,1111',this.formobj.code) |
|
|
|
if (this.formobj.code) { |
|
|
|
this.candownload = false |
|
|
@ -388,13 +386,11 @@ export default { |
|
|
|
this.$refs['form_obj'].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
|
req |
|
|
|
.saveOrUpdate(this.formobj) |
|
|
|
.then(resp => { |
|
|
|
req.saveOrUpdate(this.formobj).then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
|
this.handleReturn('true') |
|
|
|
this.handleReturn() |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
} |
|
|
|