|
@ -280,8 +280,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() {}, |
|
|
created() {}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleReturn(isreload) { |
|
|
handleReturn() { |
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|
|
|
this.formobj = { |
|
|
this.formobj = { |
|
|
sid: '', |
|
|
sid: '', |
|
|
code: '', // 单号 |
|
|
code: '', // 单号 |
|
@ -309,7 +308,9 @@ export default { |
|
|
this.totalQuantity = '' |
|
|
this.totalQuantity = '' |
|
|
this.amountInTotal = '' |
|
|
this.amountInTotal = '' |
|
|
this.$refs['form_obj'].resetFields() |
|
|
this.$refs['form_obj'].resetFields() |
|
|
this.$emit('doback') |
|
|
this.$store.dispatch('tagsView/delView', this.$route) |
|
|
|
|
|
this.$router.go(-1) |
|
|
|
|
|
// this.$emit('doback') |
|
|
}, |
|
|
}, |
|
|
showAdd() { |
|
|
showAdd() { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
@ -365,7 +366,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.amountInTotal = aa |
|
|
this.amountInTotal = aa |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log(',,1111',this.formobj.code) |
|
|
console.log(',,1111',this.formobj.code) |
|
|
if (this.formobj.code) { |
|
|
if (this.formobj.code) { |
|
|
this.candownload = false |
|
|
this.candownload = false |
|
@ -394,7 +395,7 @@ export default { |
|
|
this.submitdisabled = false |
|
|
this.submitdisabled = false |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
this.handleReturn('true') |
|
|
this.handleReturn() |
|
|
} else { |
|
|
} else { |
|
|
// 根据resp.code进行异常情况处理 |
|
|
// 根据resp.code进行异常情况处理 |
|
|
} |
|
|
} |
|
|