This commit is contained in:
zlwu committed 2026-06-16 17:31:28 +08:00
1 parent 817dfff43c
commit 8ff159c251
41 files changed
+482 -567

No files matched your search

@@ -660,55 +660,6 @@
</script>
<style scoped lang="scss">
.finance-section-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px 0;
}
.finance-section-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text, #1e293b);
line-height: 1.4;
&::before {
content: '';
width: 4px;
height: 12px;
border-radius: 999px;
background: var(--primary-dark, #059669);
}
}
.finance-section-head--pending .finance-section-title::before {
background: #d97706;
}
.finance-section-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: #f1f5f9;
font-size: 12px;
font-weight: 600;
color: var(--mint-text-muted, #64748b);
}
.finance-section-head--pending .finance-section-count {
background: #fffbeb;
color: #d97706;
}
.finance-section-divider {
height: 8px;
margin: 8px 0 0;
@@ -728,55 +728,6 @@
min-width: 0;
}
.finance-section-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px 0;
}
.finance-section-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text, #1e293b);
line-height: 1.4;
&::before {
content: '';
width: 4px;
height: 12px;
border-radius: 999px;
background: var(--primary-dark, #059669);
}
}
.finance-section-head--pending .finance-section-title::before {
background: #d97706;
}
.finance-section-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: #f1f5f9;
font-size: 12px;
font-weight: 600;
color: var(--mint-text-muted, #64748b);
}
.finance-section-head--pending .finance-section-count {
background: #fffbeb;
color: #d97706;
}
.finance-section-divider {
height: 8px;
margin: 8px 0 0;
@@ -1514,21 +1514,12 @@
dotClass: s === 'tfqrz' ? 'current-amber' : 'done',
dotIcon: s === 'tfqrz' ? '●' : '✓',
labelClass: s === 'tfqrz' ? 'current-amber' : 'done',
connectorToNext: s === 'tfqrz' ? 'pending-gray' : 'done-red',
connectorToNext: s === 'ytf' ? 'done-red' : undefined,
hasDetailCard: true
})
}
if (s === 'tfqrz') {
steps.push({
key: 'refund-finance',
label: '退费财务确认信息',
dotClass: 'pending-gray',
dotIcon: '○',
labelClass: 'pending-gray',
hasDetailCard: false
})
} else if (s === 'ytf') {
if (s === 'ytf') {
steps.push({
key: 'refund-finance',
label: '退费财务确认信息',
@@ -384,10 +384,9 @@
gap: 12px;
min-height: 72px;
padding: 12px 16px;
border: 1px solid var(--mint-border, #d9e8e2);
border: 1px solid #d1fae5;
border-radius: 10px;
background: var(--surface, #fff);
box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
}
.stat-icon {
@@ -644,6 +644,12 @@
done: []
}
const FINANCE_TABS = [
{ name: 'pending', label: '待处理' },
{ name: 'done', label: '已处理' }
] as const
const activeTab = ref('pending')
const createTimeRange = ref<[string, string] | null>(null)
const searchForm = reactive({
txnType: '' as string,
@@ -831,55 +831,6 @@
</script>
<style scoped lang="scss">
.finance-section-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px 0;
}
.finance-section-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text, #1e293b);
line-height: 1.4;
&::before {
content: '';
width: 4px;
height: 12px;
border-radius: 999px;
background: var(--primary-dark, #059669);
}
}
.finance-section-head--pending .finance-section-title::before {
background: #d97706;
}
.finance-section-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: #f1f5f9;
font-size: 12px;
font-weight: 600;
color: var(--mint-text-muted, #64748b);
}
.finance-section-head--pending .finance-section-count {
background: #fffbeb;
color: #d97706;
}
.finance-section-divider {
height: 8px;
margin: 8px 0 0;
@@ -910,55 +910,6 @@
min-width: 0;
}
.finance-section-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px 0;
}
.finance-section-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text, #1e293b);
line-height: 1.4;
&::before {
content: '';
width: 4px;
height: 12px;
border-radius: 999px;
background: var(--primary-dark, #059669);
}
}
.finance-section-head--pending .finance-section-title::before {
background: #d97706;
}
.finance-section-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: #f1f5f9;
font-size: 12px;
font-weight: 600;
color: var(--mint-text-muted, #64748b);
}
.finance-section-head--pending .finance-section-count {
background: #fffbeb;
color: #d97706;
}
.finance-section-divider {
height: 8px;
margin: 8px 0 0;
@@ -199,7 +199,13 @@
destroy-on-close
:close-on-click-modal="false"
>
<el-form label-position="top" class="biz-dialog-form">
<el-form
ref="receiptFormRef"
:model="receiptForm"
:rules="receiptFormRules"
label-position="top"
class="biz-dialog-form"
>
<div class="form-grid-2">
<el-form-item label="申请单号">
<span class="view-field-text">{{ receiptPreviewRow?.applicationNo || '—' }}</span>
@@ -216,6 +222,18 @@
formatAmount(receiptPreviewRow?.paymentAmount ?? receiptPreviewRow?.amount)
}}</span>
</el-form-item>
<el-form-item label="转账方式" prop="transferType">
<el-select
v-model="receiptForm.transferType"
placeholder="请选择转账方式"
style="width: 100%"
>
<el-option label="微信转账" value="wxzz" />
<el-option label="支付宝转账" value="zzbzz" />
<el-option label="银行卡转账" value="yhkzz" />
<el-option label="现金" value="xj" />
</el-select>
</el-form-item>
<el-form-item label="备注" class="form-col-span-2">
<el-input
v-model="receiptForm.remark"
@@ -558,7 +576,9 @@
const receiptSubmitLoading = ref(false)
const receiptTargetIds = ref<string[]>([])
const receiptPreviewRow = ref<Record<string, unknown> | null>(null)
const receiptFormRef = ref<FormInstance>()
const receiptForm = reactive({
transferType: '',
remark: '',
attachments: [] as Array<{
id: string
@@ -567,6 +587,9 @@
_uploading?: boolean
}>
})
const receiptFormRules: FormRules = {
transferType: [{ required: true, message: '请选择转账方式', trigger: 'change' }]
}
const refundDialogVisible = ref(false)
const refundSubmitLoading = ref(false)
@@ -733,9 +756,11 @@
loadColumn(key)
}
function resetReceiptForm() {
function resetReceiptForm(transferType = '') {
receiptForm.transferType = transferType
receiptForm.remark = ''
receiptForm.attachments = []
receiptFormRef.value?.clearValidate()
}
function openReceiptDialog(row: Record<string, unknown>) {
@@ -743,7 +768,7 @@
if (!id) return
receiptTargetIds.value = [id]
receiptPreviewRow.value = row
resetReceiptForm()
resetReceiptForm(String(row.transferType || ''))
receiptDialogVisible.value = true
}
@@ -788,11 +813,14 @@
async function submitReceipt() {
if (!receiptTargetIds.value.length) return
const valid = await receiptFormRef.value?.validate().catch(() => false)
if (!valid) return
if (receiptForm.attachments.some((f) => f._uploading)) {
ElMessage.warning('附件上传中,请稍候')
return
}
const payload = {
transferType: receiptForm.transferType,
remark: receiptForm.remark.trim() || undefined,
transferAttachments: receiptAttachmentsToUrls() || undefined
}
@@ -345,7 +345,8 @@
.production-work-order-card__title-band {
padding: 12px 16px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
border-bottom: 1px solid #d1fae5;
}
.production-work-order-card__head-body {
@@ -377,14 +378,14 @@
.production-work-order-card__index {
flex-shrink: 0;
font-size: 12px;
color: rgba(255, 255, 255, 0.72);
color: var(--mint-text-muted, #64748b);
min-width: 20px;
}
.production-work-order-card__no {
font-size: 15px;
font-weight: 600;
color: #fff;
color: #1e293b;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
word-break: break-all;
}
@@ -190,21 +190,21 @@
align-items: center;
gap: 8px 12px;
padding: 12px 16px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border-bottom: none;
background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
border-bottom: 1px solid #d1fae5;
}
.qc-sample-row__idx {
flex-shrink: 0;
font-size: 12px;
color: rgba(255, 255, 255, 0.72);
color: var(--mint-text-muted, #64748b);
min-width: 20px;
}
.qc-sample-row__code {
font-size: 14px;
font-weight: 600;
color: #fff;
color: #1e293b;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
@@ -212,7 +212,7 @@
flex: 1;
min-width: 0;
font-size: 12px;
color: rgba(255, 255, 255, 0.88);
color: var(--mint-text-muted, #64748b);
line-height: 1.4;
}
@@ -222,9 +222,9 @@
font-weight: 600;
padding: 2px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.18);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.35);
background: var(--primary-bg, #ecfdf5);
color: #047857;
border: 1px solid #d1fae5;
}
.qc-wo-tabs {