Commit 100a66f0 by chenwq

fix: 修复售后订单状态和商品选择表单默认值问题

修复售后订单状态判断逻辑错误,确保正确显示退款状态
为商品选择组件添加默认的业务类型和商品位置值
1 parent 807064c3
......@@ -26,6 +26,8 @@ export default {
getListApi: this.$apis.platformGoods.getListApi,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
goodsFormObj: {
goodsPosition: 2,
businessType: 1,
goodsSkuName: '',
goodsSource: ''
},
......@@ -159,6 +161,8 @@ export default {
},
handleReset() {
this.goodsFormObj = {
goodsPosition: 2,
businessType: 1,
goodsSkuName: '',
goodsSource: ''
}
......
......@@ -231,7 +231,7 @@ export default {
this.showEmailInfo = returnType == 1001
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003: '退货换货'}[returnType] || '--'
res.returnReasonType = reasonObj[returnReasonType]
refundStatus = returnOrderStatus != 1003 ? refundStatusObj[returnOrderStatus] : outRefundTypeObj[outRefundType]
refundStatus = outRefundType != null ? (returnOrderStatus != 1003 ? refundStatusObj[returnOrderStatus] : outRefundTypeObj[outRefundType]) : refundStatusObj[returnOrderStatus]
res.goodsInfoTableDate = [{
brandName,
goodsSkuName,
......
......@@ -462,7 +462,7 @@ export default {
...obj,
// 售后审核类型:1-申请售后审核,2-退回商品已收货审核
type: this.dialogConfig.btnOpt == 'check' ? 1 : 2,
returnOrderStatus: this.dialogConfig.btnOpt == 'receipt' ? '1002' : optType == 'refuse' ? '1005' : this.batchForm.returnOrderStatus
returnOrderStatus: this.dialogConfig.btnOpt == 'receipt' ? '1002' : optType == 'refuse' ? '1005' : '1001'
}
if (this.dialogConfig.btnOpt == 'check') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!