细节修改

This commit is contained in:
2026-06-12 15:31:35 +08:00
parent fd257f027b
commit 9afb23567c
3 changed files with 19 additions and 253 deletions
@@ -1080,12 +1080,9 @@ const paymentMethodOptions = [
{ label: "银行转账(一次性结清)", value: "银行转账(一次性结清)" },
];
const SELF_COMPANY_NAME = "浙港物流平台有限公司";
const PARTY_ROLE_OUR = "OUR";
const PARTY_ROLE_OPPOSITE = "OPPOSITE";
// ========== 工具函数 ==========
function formatDateTimeValue(value, endOfDay = false) {
if (!value) return null;
if (String(value).includes(" ")) return value;
@@ -1354,7 +1351,6 @@ function normalizePartyState(partyState) {
: [
{
...createEmptyParty(PARTY_ROLE_OUR, 0),
companyName: SELF_COMPANY_NAME,
},
];
const counterpartyList = normalizePartyArray(
@@ -1467,7 +1463,6 @@ function createContractFormData() {
ourPartyList: [
{
...createEmptyParty(PARTY_ROLE_OUR, 0),
companyName: SELF_COMPANY_NAME,
},
],
counterpartyList: [],
@@ -2446,7 +2441,7 @@ function applySelfProfile(profile = {}) {
createEmptyParty(PARTY_ROLE_OUR, 0);
currentSelfParty.value = {
...createEmptyParty(PARTY_ROLE_OUR, 0),
companyName: profile.orgName || SELF_COMPANY_NAME,
companyName: profile.orgName || "",
subjectCode: profile.id || "",
contactPhone: profile.contactPhone || "",
contactEmail: profile.contactEmail || "",
@@ -2458,9 +2453,9 @@ function applySelfProfile(profile = {}) {
creditCode: profile.creditCode || "",
};
const shouldHydrateFirstParty =
!firstOurParty.companyName ||
firstOurParty.companyName === SELF_COMPANY_NAME ||
firstOurParty.companyName === profile.orgName;
(!firstOurParty.companyName && !firstOurParty.subjectCode) ||
firstOurParty.companyName === profile.orgName ||
(profile.id && firstOurParty.subjectCode === profile.id);
if (!shouldHydrateFirstParty) {
return;
}