Commit 0605dc69 by 张立顺

fix bug

1 parent d1e7ec30
...@@ -606,6 +606,7 @@ export default { ...@@ -606,6 +606,7 @@ export default {
}, },
async handleConfirmSubmit(data) { async handleConfirmSubmit(data) {
try { try {
console.log(' data', data)
const transDate = Util.dateFormate(data.transDate, "YYYY-MM-DD") const transDate = Util.dateFormate(data.transDate, "YYYY-MM-DD")
const transTime = data.transTime const transTime = data.transTime
const params = { const params = {
......
...@@ -18,8 +18,9 @@ export function debounce(func, wait, immediate) { ...@@ -18,8 +18,9 @@ export function debounce(func, wait, immediate) {
} }
} }
return function(...args) { return function(...params) {
context = this context = this
args = params
timestamp = +new Date() timestamp = +new Date()
const callNow = immediate && !timeout const callNow = immediate && !timeout
// 如果延时不存在,重新设定延时 // 如果延时不存在,重新设定延时
......
...@@ -433,9 +433,9 @@ export default { ...@@ -433,9 +433,9 @@ export default {
}, },
{ {
label: "支付金额", label: "支付金额",
prop: "totalPrice", prop: "finalPrice",
formatter: cellValue => { formatter: cellValue => {
return "¥" + cellValue.totalPrice return "¥" + cellValue.finalPrice
} }
}, },
{ {
......
...@@ -675,9 +675,9 @@ export default { ...@@ -675,9 +675,9 @@ export default {
}, },
{ {
label: "支付金额", label: "支付金额",
prop: "totalPrice", prop: "finalPrice",
formatter: (cellValue) => { formatter: (cellValue) => {
return "¥" + cellValue.totalPrice return "¥" + cellValue.finalPrice
} }
}, },
{ {
...@@ -869,6 +869,7 @@ export default { ...@@ -869,6 +869,7 @@ export default {
this.orderInfoList.push({ this.orderInfoList.push({
orderCode: this.detail.orderCode, orderCode: this.detail.orderCode,
price: this.detail.totalPrice, price: this.detail.totalPrice,
finalPrice: this.detail.finalPrice,
total: this.detail.total.toFixed(2), total: this.detail.total.toFixed(2),
refundSubOrderCode: this.detail.refundSubOrderCode, refundSubOrderCode: this.detail.refundSubOrderCode,
refundApplyDetailList: this.detail.refundApplyDetailList refundApplyDetailList: this.detail.refundApplyDetailList
...@@ -892,6 +893,7 @@ export default { ...@@ -892,6 +893,7 @@ export default {
} }
this.orderInfoList.push({ this.orderInfoList.push({
orderCode: item.orderCode, orderCode: item.orderCode,
finalPrice: item.finalPrice,
price: item.price price: item.price
}) })
this.infoForm.bizOrderCodeList.push(item.orderCode) this.infoForm.bizOrderCodeList.push(item.orderCode)
...@@ -942,7 +944,7 @@ export default { ...@@ -942,7 +944,7 @@ export default {
9, 9,
2, 2,
"", "",
targerItem.totalPrice targerItem.finalPrice
) )
this.refundOldData[rowIdx][attr] = this.refundOldData[rowIdx][attr] =
this.detail.refundApplyDetailList[rowIdx][attr] this.detail.refundApplyDetailList[rowIdx][attr]
...@@ -1375,6 +1377,7 @@ export default { ...@@ -1375,6 +1377,7 @@ export default {
this.okParams.refundApplyDetailList.push({ this.okParams.refundApplyDetailList.push({
orderCode: item.orderCode, orderCode: item.orderCode,
subOrderCode: item.subOrderCode, subOrderCode: item.subOrderCode,
finalPrice: item.finalPrice,
totalPrice: item.totalPrice, totalPrice: item.totalPrice,
refundAmount: item.refundAmount refundAmount: item.refundAmount
}) })
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
}, },
{ {
label: "支付金额", label: "支付金额",
prop: "totalPrice", prop: "finalPrice",
unit: "¥" unit: "¥"
} }
], ],
...@@ -147,9 +147,9 @@ export default { ...@@ -147,9 +147,9 @@ export default {
let _total = 0 let _total = 0
let _refundSubOrderCode = [] let _refundSubOrderCode = []
selection.forEach((item, idx) => { selection.forEach((item, idx) => {
_total += item.totalPrice _total += item.finalPrice
_refundSubOrderCode.push(item.subOrderCode) _refundSubOrderCode.push(item.subOrderCode)
this.$set(selection[idx], 'refundAmount', item.totalPrice) this.$set(selection[idx], 'refundAmount', item.finalPrice)
}) })
this.total = parseFloat(_total.toFixed(2)) this.total = parseFloat(_total.toFixed(2))
this.refundSubOrderCode = _refundSubOrderCode.join("/") this.refundSubOrderCode = _refundSubOrderCode.join("/")
......
...@@ -653,7 +653,7 @@ export default { ...@@ -653,7 +653,7 @@ export default {
let info = res.refundApplyRecordInfo let info = res.refundApplyRecordInfo
let total = 0 let total = 0
info.refundApplyDetailList.forEach((item) => { info.refundApplyDetailList.forEach((item) => {
total += item.totalPrice total += item.finalPrice
}) })
this.refundScene = row.refundApplyOrderRefList[0].sceneType + '' this.refundScene = row.refundApplyOrderRefList[0].sceneType + ''
this.refundDetail.totalPrice = info.refundableTotalPrice this.refundDetail.totalPrice = info.refundableTotalPrice
......
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!