Commit 4c67e3b8 authored by jiaorz's avatar jiaorz

123

parent d1ab477a
...@@ -213,16 +213,37 @@ export default { ...@@ -213,16 +213,37 @@ export default {
}) })
}) })
} else { //当金额大于0先添加记录,再退款 } else { //当金额大于0先添加记录,再退款
that.okHandler();
setTimeout( let arr = []
refund(orderNo).then(() => { this.fileList2.map(function(item) {
that.$notify({ arr.push(item.url)
title: '成功', })
message: '退款成功', let params = {
type: 'success', picture: arr.join(','),
price: this.price,
detailId: this.row.detailId,
id: this.id
}
saveOrderViolation(params).then(response => {
if (response.status === 200) {
refund(orderNo).then(() => {
that.$notify({
title: '成功',
message: '退款成功',
type: 'success',
duration: 2000
})
})
} else {
this.$notify({
title: '创建失败',
message: '操作失败!',
type: 'error',
duration: 2000 duration: 2000
}) })
}), 2000) }
})
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment