|
|
@@ -12,6 +12,7 @@
|
|
|
<el-option label="已完成" value="completed" />
|
|
|
<el-option label="已取消" value="cancelled" />
|
|
|
<el-option label="退款中" value="refunding" />
|
|
|
+ <el-option label="退款到帐中" value="refund_pending" />
|
|
|
<el-option label="已退款" value="refunded" />
|
|
|
<el-option label="已关闭" value="closed" />
|
|
|
</el-select>
|
|
|
@@ -62,6 +63,7 @@
|
|
|
<el-dropdown-item v-if="row.status === 'paid'" command="ship" icon="el-icon-s-cooperation">发货</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="row.status === 'paid' || row.status === 'refunding'" command="close" icon="el-icon-circle-close">关闭</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="row.status === 'refunding'" command="refund" icon="el-icon-warning-outline">退款审核</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="row.status === 'refund_pending'" command="view-pending-refund" icon="el-icon-warning">退款到帐中</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</template>
|
|
|
@@ -284,14 +286,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
canClose(status) {
|
|
|
- return ['pending', 'paid', 'pending_receipt', 'refunding'].includes(status)
|
|
|
+ return ['pending', 'paid', 'pending_receipt', 'refunding'].includes(status);
|
|
|
},
|
|
|
statusType(status) {
|
|
|
- var map = { pending: 'warning', paid: 'primary', pending_receipt: '', completed: 'success', cancelled: 'info', refunding: 'danger', refunded: 'danger', closed: 'info' }
|
|
|
+ var map = { pending: 'warning', paid: 'primary', pending_receipt: '', completed: 'success', cancelled: 'info', refunding: 'danger', refunded: 'danger', closed: 'info', refund_pending: 'warning' }
|
|
|
return map[status] || 'info'
|
|
|
},
|
|
|
statusLabel(status) {
|
|
|
- var map = { pending: '待支付', paid: '待发货', pending_receipt: '待收货', completed: '已完成', cancelled: '已取消', refunding: '退款中', refunded: '已退款', closed: '已关闭' }
|
|
|
+ var map = { pending: '待支付', paid: '待发货', pending_receipt: '待收货', completed: '已完成', cancelled: '已取消', refunding: '退款中', refunded: '已退款', closed: '已关闭', refund_pending: '退款到帐中' }
|
|
|
return map[status] || status
|
|
|
},
|
|
|
payMethodLabel(method) {
|
|
|
@@ -315,6 +317,7 @@ export default {
|
|
|
case 'ship': this.showShipDialog(row); break;
|
|
|
case 'close': this.handleClose(row); break;
|
|
|
case 'refund': this.showRefundDialog(row); break;
|
|
|
+ case 'view-pending-refund': this.$router.push('/pending-refund'); break;
|
|
|
}
|
|
|
}
|
|
|
}
|