增加前端格式检查配置
This commit is contained in:
@@ -128,11 +128,26 @@ function readError(error: unknown, fallback: string) {
|
||||
<el-table-column label="创建时间" min-width="180">
|
||||
<template #default="{ row }">{{ formatDateTime(row.created_at) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="arbitration_result" label="仲裁结果" width="150" show-overflow-tooltip />
|
||||
<el-table-column
|
||||
prop="arbitration_result"
|
||||
label="仲裁结果"
|
||||
width="150"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column label="操作" width="160">
|
||||
<template #default="{ row }">
|
||||
<el-button size="small" :disabled="evidenceItems(row).length === 0" @click="evidenceDispute = row">证据</el-button>
|
||||
<el-button size="small" :disabled="row.status === 'resolved'" @click="openArbitration(row)">仲裁</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
:disabled="evidenceItems(row).length === 0"
|
||||
@click="evidenceDispute = row"
|
||||
>证据</el-button
|
||||
>
|
||||
<el-button
|
||||
size="small"
|
||||
:disabled="row.status === 'resolved'"
|
||||
@click="openArbitration(row)"
|
||||
>仲裁</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -146,9 +161,16 @@ function readError(error: unknown, fallback: string) {
|
||||
@page-change="handlePageChange"
|
||||
/>
|
||||
|
||||
<el-dialog :model-value="!!activeDispute" title="申诉仲裁" width="560px" @update:model-value="activeDispute = null">
|
||||
<el-dialog
|
||||
:model-value="!!activeDispute"
|
||||
title="申诉仲裁"
|
||||
width="560px"
|
||||
@update:model-value="activeDispute = null"
|
||||
>
|
||||
<div v-if="activeDispute" class="dialog-body">
|
||||
<p><strong>{{ activeDispute.order_no }}</strong> · {{ activeDispute.title }}</p>
|
||||
<p>
|
||||
<strong>{{ activeDispute.order_no }}</strong> · {{ activeDispute.title }}
|
||||
</p>
|
||||
<p>{{ activeDispute.description }}</p>
|
||||
<el-select v-model="result" class="full-control" placeholder="选择裁决结果">
|
||||
<el-option label="全额退款" value="full_refund" />
|
||||
@@ -168,19 +190,38 @@ function readError(error: unknown, fallback: string) {
|
||||
:step="10"
|
||||
placeholder="裁决金额"
|
||||
/>
|
||||
<p v-if="result === 'partial_refund'">部分退款金额表示退给租客的金额,剩余冻结金额结算给号主。</p>
|
||||
<p v-if="['deduct_deposit', 'compensate_owner'].includes(result)">金额表示从押金中赔付给号主的部分;不填则默认处理全额押金。</p>
|
||||
<el-input v-model="remark" class="panel-action" type="textarea" :rows="4" placeholder="填写客服裁决说明" />
|
||||
<p v-if="result === 'partial_refund'">
|
||||
部分退款金额表示退给租客的金额,剩余冻结金额结算给号主。
|
||||
</p>
|
||||
<p v-if="['deduct_deposit', 'compensate_owner'].includes(result)">
|
||||
金额表示从押金中赔付给号主的部分;不填则默认处理全额押金。
|
||||
</p>
|
||||
<el-input
|
||||
v-model="remark"
|
||||
class="panel-action"
|
||||
type="textarea"
|
||||
:rows="4"
|
||||
placeholder="填写客服裁决说明"
|
||||
/>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="activeDispute = null">取消</el-button>
|
||||
<el-button type="primary" :loading="submitting" @click="handleArbitrate">保存裁决</el-button>
|
||||
<el-button type="primary" :loading="submitting" @click="handleArbitrate"
|
||||
>保存裁决</el-button
|
||||
>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :model-value="!!evidenceDispute" title="申诉证据" width="640px" @update:model-value="evidenceDispute = null">
|
||||
<el-dialog
|
||||
:model-value="!!evidenceDispute"
|
||||
title="申诉证据"
|
||||
width="640px"
|
||||
@update:model-value="evidenceDispute = null"
|
||||
>
|
||||
<div v-if="evidenceDispute" class="dialog-body">
|
||||
<p><strong>{{ evidenceDispute.order_no }}</strong> · {{ evidenceDispute.title }}</p>
|
||||
<p>
|
||||
<strong>{{ evidenceDispute.order_no }}</strong> · {{ evidenceDispute.title }}
|
||||
</p>
|
||||
<div v-for="item in evidenceItems(evidenceDispute)" :key="item" class="evidence-row">
|
||||
<span>{{ item }}</span>
|
||||
<el-button size="small" @click="openEvidence(item)">打开</el-button>
|
||||
|
||||
Reference in New Issue
Block a user