提交
This commit is contained in:
1 parent
a7fbaa8fd9
commit
d2792174b5
55 files changed
+1863
-1419
No files matched your search
+60
-38
@@ -57,6 +57,13 @@
|
||||
>
|
||||
{{ acceptConclusionLabel(String(row.acceptConclusion || '')) }}
|
||||
</el-tag>
|
||||
<el-button
|
||||
v-if="showProtocolPayment(row)"
|
||||
class="btn-op-item sample-reception-card__fee-trigger"
|
||||
@click.stop="openProtocolFeeDialog(row)"
|
||||
>
|
||||
<el-icon><Wallet /></el-icon>协议费用
|
||||
</el-button>
|
||||
</div>
|
||||
<dl class="sample-reception-card__meta">
|
||||
<div class="sample-reception-card__meta-item">
|
||||
@@ -143,6 +150,10 @@
|
||||
<dt>接收时间</dt>
|
||||
<dd>{{ formatDisplayOrDash(row.receptionTime) }}</dd>
|
||||
</div>
|
||||
<div class="sample-reception-card__meta-item">
|
||||
<dt>接收记录创建时间</dt>
|
||||
<dd>{{ formatDisplayOrDash(row.createTime) }}</dd>
|
||||
</div>
|
||||
<div class="sample-reception-card__meta-item">
|
||||
<dt>经手人</dt>
|
||||
<dd>{{ row.handlerName || '—' }}</dd>
|
||||
@@ -151,12 +162,6 @@
|
||||
</dl>
|
||||
</div>
|
||||
<div class="sample-reception-card__ops">
|
||||
<QcWorkOrderProtocolPaymentPanel
|
||||
v-if="showProtocolPayment(row)"
|
||||
:summary="protocolPaymentSummary(row)"
|
||||
compact
|
||||
class="sample-reception-card__ops-payment"
|
||||
/>
|
||||
<el-button
|
||||
v-if="activeTab === 'pending'"
|
||||
class="btn-op-item primary"
|
||||
@@ -198,19 +203,37 @@
|
||||
@current-change="(v) => emit('page-change', v)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
v-model="protocolFeeDialogVisible"
|
||||
title="协议费用"
|
||||
width="720px"
|
||||
class="dialog-form-layout sample-reception-fee-dialog"
|
||||
append-to-body
|
||||
align-center
|
||||
destroy-on-close
|
||||
modal-class="protocol-dialog-mask"
|
||||
@closed="protocolFeeDialogSummary = null"
|
||||
>
|
||||
<QcWorkOrderProtocolPaymentPanel :summary="protocolFeeDialogSummary" embedded />
|
||||
<template #footer>
|
||||
<el-button @click="protocolFeeDialogVisible = false">
|
||||
<el-icon><Close /></el-icon>关闭
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { formatDisplayOrDash } from '@/utils/datetime-display'
|
||||
import { CircleCheck, View, EditPen } from '@element-plus/icons-vue'
|
||||
import { CircleCheck, Close, EditPen, View, Wallet } from '@element-plus/icons-vue'
|
||||
import {
|
||||
transportTypeLabel,
|
||||
acceptConclusionLabel,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
@@ -224,6 +247,9 @@
|
||||
|
||||
defineOptions({ name: 'SampleReceptionCardList' })
|
||||
|
||||
const protocolFeeDialogVisible = ref(false)
|
||||
const protocolFeeDialogSummary = ref<QcProtocolPaymentSummary | null>(null)
|
||||
|
||||
type ReceptionTab = 'pending' | 'received'
|
||||
|
||||
const props = withDefaults(
|
||||
@@ -317,6 +343,11 @@
|
||||
return summary as QcProtocolPaymentSummary
|
||||
}
|
||||
|
||||
function openProtocolFeeDialog(row: Record<string, unknown>) {
|
||||
protocolFeeDialogSummary.value = protocolPaymentSummary(row)
|
||||
protocolFeeDialogVisible.value = true
|
||||
}
|
||||
|
||||
function canEditReceived(row: Record<string, unknown>) {
|
||||
return props.canEditReceived(row)
|
||||
}
|
||||
@@ -389,6 +420,11 @@
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.sample-reception-card__fee-trigger {
|
||||
flex-shrink: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.sample-reception-card__checkbox {
|
||||
flex-shrink: 0;
|
||||
margin-right: -4px;
|
||||
@@ -465,36 +501,22 @@
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.sample-reception-card__ops-payment {
|
||||
flex: 1 1 240px;
|
||||
min-width: 0;
|
||||
margin-right: auto;
|
||||
|
||||
:deep(.qc-protocol-payment) {
|
||||
border: none;
|
||||
background: #e8f4ee;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
:deep(.qc-protocol-payment--compact) {
|
||||
width: 100%;
|
||||
padding: 10px 12px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:deep(.qc-protocol-payment__compact-details) {
|
||||
border-top: none;
|
||||
margin-top: 8px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
:deep(.qc-protocol-payment__detail-chip) {
|
||||
border: none;
|
||||
background: rgb(255 255 255 / 60%);
|
||||
}
|
||||
}
|
||||
|
||||
.sample-reception-cards-empty {
|
||||
padding: 24px 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
/* append-to-body 弹窗:嵌入面板去掉顶部分割,避免与 dialog body 叠线 */
|
||||
.sample-reception-fee-dialog {
|
||||
.qc-protocol-payment {
|
||||
padding: 0;
|
||||
border-top: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.qc-protocol-payment--embedded {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user