对接境外注册
This commit is contained in:
@ -104,7 +104,7 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'certificateType']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请选择资质证书类型' }]}
|
||||
rules={[{ required: false, message: '请选择资质证书类型' }]}
|
||||
>
|
||||
<Select placeholder="请选择类型" style={{ width: '100%' }}>
|
||||
<Option value="机构资质">机构资质</Option>
|
||||
@ -123,7 +123,7 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'name']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请输入资质名称' }]}
|
||||
rules={[{ required: false, message: '请输入资质名称' }]}
|
||||
>
|
||||
<Input placeholder="请输入资质名称" />
|
||||
</Form.Item>
|
||||
@ -136,7 +136,7 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'code']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请输入资质证书编号' }]}
|
||||
rules={[{ required: false, message: '请输入资质证书编号' }]}
|
||||
>
|
||||
<Input placeholder="请输入证书编号" />
|
||||
</Form.Item>
|
||||
@ -158,7 +158,7 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'authority']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请输入发证机构' }]}
|
||||
rules={[{ required: false, message: '请输入发证机构' }]}
|
||||
>
|
||||
<Input placeholder="请输入发证机构" />
|
||||
</Form.Item>
|
||||
@ -171,7 +171,7 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'dateTime']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请选择发证日期' }]}
|
||||
rules={[{ required: false, message: '请选择发证日期' }]}
|
||||
>
|
||||
<DatePicker
|
||||
placeholder="年/月/日"
|
||||
@ -188,7 +188,7 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'termOfValidity']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请选择资质有效期' }]}
|
||||
rules={[{ required: false, message: '请选择资质有效期' }]}
|
||||
>
|
||||
<DatePicker
|
||||
placeholder="年/月/日"
|
||||
@ -205,8 +205,8 @@ export const QualificationSection: React.FC<CommonFormSectionsProps> = ({ form }
|
||||
<Form.Item
|
||||
name={[record.name, 'accessory']}
|
||||
noStyle
|
||||
rules={[{ required: true, message: '请上传资质证书附件' }]}
|
||||
valuePropName="value"
|
||||
rules={[{ required: false, message: '请上传资质证书附件' }]}
|
||||
valuePropName="value"
|
||||
>
|
||||
<FileUpload
|
||||
maxSize={10}
|
||||
@ -306,7 +306,11 @@ export const InvoiceSection: React.FC<CommonFormSectionsProps> = ({ form }) => {
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={8}>
|
||||
<Form.Item name={['coscoSupplierInvoice', 'qualificationCertificate']} label="一般纳税人资格证明" valuePropName="value">
|
||||
<Form.Item
|
||||
name={['coscoSupplierInvoice', 'qualificationCertificate']}
|
||||
label="一般纳税人资格证明"
|
||||
valuePropName="value"
|
||||
>
|
||||
<FileUpload
|
||||
maxSize={10}
|
||||
allowedTypes={['pdf', 'jpg', 'jpeg', 'png']}
|
||||
@ -450,7 +454,8 @@ export const BankAccountSection: React.FC<CommonFormSectionsProps> = ({ form })
|
||||
*/
|
||||
export const SurveySection: React.FC<SurveySectionProps> = ({ form, surveyQuestions }) => {
|
||||
// 使用API获取的问卷数据,如果没有则显示无数据状态
|
||||
const hasQuestions = surveyQuestions && Array.isArray(surveyQuestions) && surveyQuestions.length > 0;
|
||||
const hasQuestions =
|
||||
surveyQuestions && Array.isArray(surveyQuestions) && surveyQuestions.length > 0;
|
||||
|
||||
// 调试日志
|
||||
console.log('调查问卷数据:', surveyQuestions);
|
||||
@ -525,7 +530,13 @@ export const SurveySection: React.FC<SurveySectionProps> = ({ form, surveyQuesti
|
||||
</div>
|
||||
|
||||
{hasQuestions ? (
|
||||
<Form.List name="coscoSupplierSurveyQuestionReply" initialValue={surveyQuestions.map((q: any, index) => ({ surveyQuestionId: q.id, replyValue: '' }))}>
|
||||
<Form.List
|
||||
name="coscoSupplierSurveyQuestionReply"
|
||||
initialValue={surveyQuestions.map((q: any, index) => ({
|
||||
surveyQuestionId: q.id,
|
||||
replyValue: '',
|
||||
}))}
|
||||
>
|
||||
{(fields, { add, remove }) => {
|
||||
console.log('Form.List fields:', fields);
|
||||
|
||||
@ -567,13 +578,11 @@ export const SurveySection: React.FC<SurveySectionProps> = ({ form, surveyQuesti
|
||||
rules={[{ required: true, message: `请选择问题${index + 1}的答案` }]}
|
||||
wrapperCol={{ span: 24 }}
|
||||
>
|
||||
{record.coscoSurveyQuestionOptionList && record.coscoSurveyQuestionOptionList.length > 0 ? (
|
||||
{record.coscoSurveyQuestionOptionList &&
|
||||
record.coscoSurveyQuestionOptionList.length > 0 ? (
|
||||
<Radio.Group>
|
||||
{record.coscoSurveyQuestionOptionList.map((option: any) => (
|
||||
<Radio
|
||||
key={option.id}
|
||||
value={option.opentionValue}
|
||||
>
|
||||
<Radio key={option.id} value={option.opentionValue}>
|
||||
{option.optionName}
|
||||
</Radio>
|
||||
))}
|
||||
@ -584,7 +593,7 @@ export const SurveySection: React.FC<SurveySectionProps> = ({ form, surveyQuesti
|
||||
</Form.Item>
|
||||
</>
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
]}
|
||||
/>
|
||||
@ -712,7 +721,7 @@ export const AttachmentSection: React.FC<CommonFormSectionsProps> = ({ form }) =
|
||||
)}
|
||||
|
||||
{index > 0 && (
|
||||
<Form.Item name={[field.name, 'fileUrl']} valuePropName="value">
|
||||
<Form.Item name={[field.name, 'fileUrl']} valuePropName="value">
|
||||
<FileUpload
|
||||
maxSize={20}
|
||||
allowedTypes={['*']}
|
||||
|
Reference in New Issue
Block a user