Compare commits
2 Commits
a419834198
...
98de83d5f1
Author | SHA1 | Date | |
---|---|---|---|
98de83d5f1 | |||
d8bdf33e79 |
@ -1,4 +1,5 @@
|
|||||||
@import '~antd/es/style/themes/default.less';
|
@import '~antd/es/style/themes/default.less';
|
||||||
|
@import '~@/baseStyle.less';
|
||||||
|
|
||||||
.aboutContainer {
|
.aboutContainer {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
@ -7,9 +8,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.aboutContent {
|
.aboutContent {
|
||||||
max-width: 1200px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
width: @width;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aboutTitle {
|
.aboutTitle {
|
||||||
|
@ -64,46 +64,7 @@ const AboutPage: React.FC = () => {
|
|||||||
<Title level={2}>{intl.formatMessage({ id: 'about.title' })}</Title>
|
<Title level={2}>{intl.formatMessage({ id: 'about.title' })}</Title>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.aboutSection}>
|
<div className={styles.aboutContent} dangerouslySetInnerHTML={{ __html: content }} />
|
||||||
<Title level={3} className={styles.sectionTitle}>
|
|
||||||
{intl.formatMessage({ id: 'about.company.title' })}
|
|
||||||
</Title>
|
|
||||||
<div className={styles.sectionContent}>
|
|
||||||
<div className={styles.contentHtml} dangerouslySetInnerHTML={{ __html: content }} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
<div className={styles.aboutSection}>
|
|
||||||
<Title level={3} className={styles.sectionTitle}>
|
|
||||||
{intl.formatMessage({ id: 'about.contact.title' })}
|
|
||||||
</Title>
|
|
||||||
<div className={styles.sectionContent}>
|
|
||||||
<div className={styles.companyInfo}>
|
|
||||||
<div className={styles.infoItem}>
|
|
||||||
<span className={styles.label}>{intl.formatMessage({ id: 'about.address' })}:</span>
|
|
||||||
<span>{address}</span>
|
|
||||||
</div>
|
|
||||||
<div className={styles.infoItem}>
|
|
||||||
<span className={styles.label}>{intl.formatMessage({ id: 'about.phone' })}:</span>
|
|
||||||
<span>{contactsPhone}</span>
|
|
||||||
</div>
|
|
||||||
<div className={styles.infoItem}>
|
|
||||||
<span className={styles.label}>{intl.formatMessage({ id: 'about.hotline' })}:</span>
|
|
||||||
<span>{contactsConsult}</span>
|
|
||||||
</div>
|
|
||||||
<div className={styles.infoItem}>
|
|
||||||
<span className={styles.label}>{intl.formatMessage({ id: 'about.email' })}:</span>
|
|
||||||
<span>{contactsEmail}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className={styles.aboutFooter}>
|
|
||||||
<Paragraph>{intl.formatMessage({ id: 'about.copyright' })}</Paragraph>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -75,7 +75,7 @@ const HelpInfoPage: React.FC = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.helpInfoContainer}>
|
<div className={`${styles.helpInfoContainer} layout-content-main`}>
|
||||||
<div className={styles.helpInfoHeader}>
|
<div className={styles.helpInfoHeader}>
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
|
@ -90,77 +90,6 @@ const SupplierRegister: React.FC = () => {
|
|||||||
values.coscoSupplierBase = values.coscoSupplierBase || {};
|
values.coscoSupplierBase = values.coscoSupplierBase || {};
|
||||||
values.coscoSupplierBase.supplierType = supplierType;
|
values.coscoSupplierBase.supplierType = supplierType;
|
||||||
|
|
||||||
// 记录详细的表单数据,便于调试
|
|
||||||
console.log('表单原始数据:', JSON.parse(JSON.stringify(values)));
|
|
||||||
console.log('供应商基本信息:', values.coscoSupplierBase);
|
|
||||||
console.log('开票信息:', values.coscoSupplierInvoice);
|
|
||||||
console.log('银行账户信息:', values.coscoSupplierBank);
|
|
||||||
console.log('资质信息:', values.coscoSupplierQualifications);
|
|
||||||
console.log('调查问卷信息:', values.coscoSupplierSurvey);
|
|
||||||
console.log('调查问卷回复:', values.coscoSupplierSurveyQuestionReply);
|
|
||||||
console.log('调查问卷附件:', values.coscoSupplierSurveyAttachments);
|
|
||||||
|
|
||||||
// 处理文件上传组件返回的文件列表值
|
|
||||||
// 处理营业执照附件
|
|
||||||
if (
|
|
||||||
values.coscoSupplierBase.licenceAccessory &&
|
|
||||||
Array.isArray(values.coscoSupplierBase.licenceAccessory)
|
|
||||||
) {
|
|
||||||
const licenceFile = values.coscoSupplierBase.licenceAccessory[0];
|
|
||||||
values.coscoSupplierBase.licenceAccessory =
|
|
||||||
licenceFile?.response?.url || licenceFile?.response?.filePath || '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理纳税人资格证明
|
|
||||||
if (
|
|
||||||
values.coscoSupplierInvoice?.qualificationCertificate &&
|
|
||||||
Array.isArray(values.coscoSupplierInvoice.qualificationCertificate)
|
|
||||||
) {
|
|
||||||
const taxFile = values.coscoSupplierInvoice.qualificationCertificate[0];
|
|
||||||
values.coscoSupplierInvoice.qualificationCertificate =
|
|
||||||
taxFile?.response?.url || taxFile?.response?.filePath || '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理资质证书附件
|
|
||||||
if (values.coscoSupplierQualifications) {
|
|
||||||
values.coscoSupplierQualifications = values.coscoSupplierQualifications.map((qual: any) => {
|
|
||||||
if (qual.accessory && Array.isArray(qual.accessory)) {
|
|
||||||
const accessoryFile = qual.accessory[0];
|
|
||||||
qual.accessory =
|
|
||||||
accessoryFile?.response?.url || accessoryFile?.response?.filePath || '';
|
|
||||||
}
|
|
||||||
return qual;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理调查问卷附件
|
|
||||||
if (values.coscoSupplierSurveyAttachments) {
|
|
||||||
values.coscoSupplierSurveyAttachments = values.coscoSupplierSurveyAttachments.map(
|
|
||||||
(item: any) => {
|
|
||||||
if (item.fileUrl && Array.isArray(item.fileUrl)) {
|
|
||||||
const file = item.fileUrl[0];
|
|
||||||
item.fileUrl = file?.response?.url || file?.response?.filePath || '';
|
|
||||||
}
|
|
||||||
return item;
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理调查问卷回复
|
|
||||||
if (values.coscoSupplierSurveyQuestionReply) {
|
|
||||||
// 过滤出有效的问卷回复并确保数据格式正确
|
|
||||||
values.coscoSupplierSurveyQuestionReply = values.coscoSupplierSurveyQuestionReply
|
|
||||||
.filter((item: any) => item && item.surveyQuestionId && item.replyValue)
|
|
||||||
.map((item: any) => ({
|
|
||||||
surveyQuestionId: item.surveyQuestionId,
|
|
||||||
replyValue: item.replyValue,
|
|
||||||
}));
|
|
||||||
|
|
||||||
console.log('处理后的问卷回复:', values.coscoSupplierSurveyQuestionReply);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log('最终提交的表单数据:', JSON.parse(JSON.stringify(values)));
|
|
||||||
|
|
||||||
// 直接调用API
|
// 直接调用API
|
||||||
const response = await coscoSupplierBaseAdd(values);
|
const response = await coscoSupplierBaseAdd(values);
|
||||||
|
|
||||||
|
@ -119,7 +119,14 @@ const DomesticForm: React.FC<DomesticFormProps> = ({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
valuePropName="value"
|
getValueProps={(value) => {
|
||||||
|
return {
|
||||||
|
value: value?.length > 0 ? value[0]?.url : undefined,
|
||||||
|
};
|
||||||
|
}}
|
||||||
|
getValueFromEvent={(value) => {
|
||||||
|
return value?.length > 0 ? value[0]?.url : undefined;
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<FileUpload
|
<FileUpload
|
||||||
maxSize={10}
|
maxSize={10}
|
||||||
@ -452,7 +459,7 @@ const DomesticForm: React.FC<DomesticFormProps> = ({
|
|||||||
{/* 使用通用表单组件 */}
|
{/* 使用通用表单组件 */}
|
||||||
<QualificationSection form={form} />
|
<QualificationSection form={form} />
|
||||||
<InvoiceSection form={form} />
|
<InvoiceSection form={form} />
|
||||||
<BankAccountSection form={form} />
|
<BankAccountSection form={form} supplierType="dvs" />
|
||||||
<SurveySection form={form} surveyQuestions={surveyQuestions} />
|
<SurveySection form={form} surveyQuestions={surveyQuestions} />
|
||||||
<AttachmentSection form={form} />
|
<AttachmentSection form={form} />
|
||||||
</>
|
</>
|
||||||
|
@ -232,7 +232,7 @@ const ForeignForm: React.FC<ForeignFormProps> = ({
|
|||||||
{/* 使用通用表单组件 */}
|
{/* 使用通用表单组件 */}
|
||||||
<QualificationSection form={form} />
|
<QualificationSection form={form} />
|
||||||
<InvoiceSection form={form} />
|
<InvoiceSection form={form} />
|
||||||
<BankAccountSection form={form} />
|
<BankAccountSection form={form} supplierType="ovs" />
|
||||||
<SurveySection form={form} surveyQuestions={surveyQuestions} />
|
<SurveySection form={form} surveyQuestions={surveyQuestions} />
|
||||||
<AttachmentSection form={form} />
|
<AttachmentSection form={form} />
|
||||||
</>
|
</>
|
||||||
|
Reference in New Issue
Block a user