Commit c5cdcfd2 authored by daniel's avatar daniel

feat(gpsDeposit): 退款逻辑优化

parent dd1fe180
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
</div> </div>
</n-card> </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" :bordered="false"
:remote="true" @update:checked-row-keys="handleCheck"/> :remote="true" @update:checked-row-keys="handleCheck"/>
<n-card v-show="isConfigTab" title="押金详情" :bordered="false" > <n-card v-show="isConfigTab" title="押金详情" :bordered="false" >
...@@ -559,7 +559,7 @@ ...@@ -559,7 +559,7 @@
{ {
type: 'selection', type: 'selection',
disabled(row) { 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 @@ ...@@ -1175,6 +1175,10 @@
message.error(result.message) message.error(result.message)
} }
} }
// 清空选中
const clearCheck = () => {
checkedRowKeys.value = []
}
/***---------------- 押金交互相关 end -----------------*/ /***---------------- 押金交互相关 end -----------------*/
onMounted(() => { onMounted(() => {
fetchOrders() fetchOrders()
...@@ -1232,6 +1236,7 @@ ...@@ -1232,6 +1236,7 @@
showRefundModal, showRefundModal,
onRefundCancel, onRefundCancel,
onRefundSubmit, 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