This commit is contained in:
zlwu committed 2026-06-21 12:41:39 +08:00
1 parent 299609706c
commit e46c0480d4
87 files changed
+11975 -15543

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -114,8 +114,8 @@
@change="handleDateRangeChange"
/>
</el-form-item>
<el-form-item label="供方主体" prop="supplierId" required>
<el-select v-model="form.supplierId" placeholder="请选择供方主体" clearable style="width: 100%" @change="handleSupplierChange">
<el-form-item label="交易主体" prop="supplierId" required>
<el-select v-model="form.supplierId" placeholder="请选择交易主体" clearable style="width: 100%" @change="handleSupplierChange">
<el-option v-for="supplier in supplierList" :key="supplier.id" :label="supplier.supplierName" :value="supplier.id" />
</el-select>
</el-form-item>
@@ -180,7 +180,23 @@
<div class="party-flow-bridge" aria-hidden="true">
<span class="party-flow-bridge__label">供货</span>
<el-icon class="party-flow-bridge__arrow"><Right /></el-icon>
<span class="party-flow-bridge__arrow">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path
d="M5 12h11.5"
stroke="currentColor"
stroke-width="2.75"
stroke-linecap="round"
/>
<path
d="M13.5 8.5 18.5 12l-5 3.5"
stroke="currentColor"
stroke-width="2.75"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</span>
</div>
<div class="party-panel">
@@ -527,7 +543,6 @@ import {
Document,
Delete,
Sort,
Right,
Plus,
Search,
Close,
@@ -684,7 +699,7 @@ const rules = ref({
contactId: [{ required: true, message: '联系人不能为空', trigger: 'change' }],
signDate: [{ required: true, message: '签订日期不能为空', trigger: 'change' }],
ownerUserId: [{ required: true, message: '负责人不能为空', trigger: 'change' }],
supplierId: [{ required: true, message: '供方主体不能为空', trigger: 'change' }],
supplierId: [{ required: true, message: '交易主体不能为空', trigger: 'change' }],
startDate: [
{
validator: (_rule: any, _value: any, callback: any) => {
@@ -1759,7 +1774,7 @@ const handleSaveDraft = async () => {
return
}
if (!form.value.supplierId) {
$modal.msgWarning('供方主体不能为空')
$modal.msgWarning('交易主体不能为空')
return
}
@@ -2136,20 +2151,39 @@ const loadSupplierList = async () => {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
gap: 10px;
padding: 0 8px;
}
.party-flow-bridge__label {
font-size: 13px;
font-size: 12px;
font-weight: 600;
color: var(--primary-dark, #059669);
letter-spacing: 0.04em;
letter-spacing: 0.06em;
padding: 4px 10px;
border-radius: 999px;
background: #ecfdf5;
border: 1px solid #a7f3d0;
line-height: 1.2;
}
.party-flow-bridge__arrow {
font-size: 28px;
color: var(--primary, #10b981);
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 50%;
color: var(--primary-dark, #059669);
background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
border: 1px solid #a7f3d0;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.14);
svg {
width: 22px;
height: 22px;
display: block;
}
}
@media (max-width: 1100px) {
@@ -2161,6 +2195,7 @@ const loadSupplierList = async () => {
.party-flow-bridge {
flex: 0 0 auto;
flex-direction: row;
gap: 12px;
padding: 12px 0;
}