Commit c5cdcfd2 authored by daniel's avatar daniel

feat(gpsDeposit): 退款逻辑优化

parent dd1fe180
......@@ -168,7 +168,7 @@
</div>
</n-card>
<!-- 搜索框 -->
<n-data-table v-if="!isConfigTab" :columns="orderColumns" :loading="loading" :row-key="rowKey" :data="orders" :pagination="pagination"
<n-data-table v-if="!isConfigTab" v-model:checked-row-keys="checkedRowKeys" :columns="orderColumns" :loading="loading" :row-key="rowKey" :data="orders" :pagination="pagination"
:bordered="false"
:remote="true" @update:checked-row-keys="handleCheck"/>
<n-card v-show="isConfigTab" title="押金详情" :bordered="false" >
......@@ -559,7 +559,7 @@
{
type: 'selection',
disabled(row) {
return TradeStatusEnum.PAY_SUCCESS.value !== row.tradeStatus && row.refundStatus != RefundStatusEnum.REFUND_SUCCESS.value
return TradeStatusEnum.PAY_SUCCESS.value !== row.tradeStatus && row.refundStatus == RefundStatusEnum.REFUND_SUCCESS.value
}
},
{
......@@ -1175,6 +1175,10 @@
message.error(result.message)
}
}
// 清空选中
const clearCheck = () => {
checkedRowKeys.value = []
}
/***---------------- 押金交互相关 end -----------------*/
onMounted(() => {
fetchOrders()
......@@ -1232,6 +1236,7 @@
showRefundModal,
onRefundCancel,
onRefundSubmit,
clearCheck,
}
}
})
......
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