Commit 100a66f0 by chenwq

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

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