@@ -74,36 +174,137 @@ export default function EditOne(props: any) {
name="FormA"
form={formA}
onFinish={onFinishA}
+ onFinishFailed={(errorInfo) => {
+ // console.log(errorInfo)
+ // message.error('请填写完整的信息!')
+ errorInfo.errorFields.forEach((field) => {
+ if (field.errors.length > 0) {
+ // 显示每条错误信息
+ message.error(field.errors[0]);
+ }
+ });
+ }}
initialValues={{ softWare: '' }}
style={{ marginTop: 20 }}
>
-
+
商标名称*:
-
-
-
+
-
+
+
-
+
+
+
+ 若您的商标涉及他人姓名/肖像/期刊,请下载
授权声明书模板,填写完盖章签字后
+
+ {
+ const isPNG = file.type === 'image/png';
+ const isPDF = file.type === 'application/pdf';
+ const isJPG = file.type === 'image/jpg' || file.type === 'image/jpeg';
+ if (!isPNG && !isPDF && !isJPG) {
+ // console.error('仅支持 PNG、PDF、JPG 格式的文件!');
+ message.error('仅支持 PNG、PDF、JPG 格式的文件!');
+ }
+ return isPNG || isPDF || isJPG;
+ }}
+ // fileList={[]}
+ onChange={handleChange}
+ showUploadList={false}
+ headers={{ 'Auth': `Bearer ${token}` }}
+ disabled={fileList.length > 0}
+ >
+ 上传附件
+
+
+
+ ({fileList.length}/1)
+
+
+ {fileList.length > 0 ? (
+
+
{
+ window.open(showImage(fileList[0].uid, false))
+ }}>
+ {fileList[0].name}
+
+
{
+ setFileList([])
+ }}>
+
+ ) : (
+ <>>
+ )}
+ {/* 嘻嘻 */}
+ {/*
})
*/}
+
+
+
+ 2021年12月10日起,商标名称作为必填项提交至商标局。商标局审核人员会根据商标图样中的文字字母等实际展示的信息重新命名商标名称,并展示在商标局官网。 如何解决请参考文档
+
+
+
+
+
商标说明*:
@@ -121,7 +322,7 @@ export default function EditOne(props: any) {
color: 'black',
resize: 'none'
}}
- placeholder="商标说明"
+ placeholder="例:商标由中文“**”、英文“**”及图形构成,无特殊含义。"
>
@@ -131,21 +332,152 @@ export default function EditOne(props: any) {
-
-
-
- {/*
-
-
+
+
+ 商标类型*:
- */}
+
+
+ 自动生成
+ 手动上传
+
+
+
+
+
+
+
+
+
+
+ 暂无图片
+
+
+
+
{
+ const isPNG = file.type === 'image/png';
+ const isJPG = file.type === 'image/jpg' || file.type === 'image/jpeg';
+ if (!isPNG && !isJPG) {
+ // console.error('仅支持 PNG、PDF、JPG 格式的文件!');
+ message.error('仅支持 PNG、JPG 格式的文件!');
+ }
+ return isPNG || isJPG;
+ }}
+ // fileList={[]}
+ onChange={upImgHandleChange}
+ showUploadList={false}
+ headers={{ 'Auth': `Bearer ${token}` }}
+ disabled={imgList.length > 0}
+ >
+
+ 上传图片
+
+
+
+
+
+
+
+
@@ -159,31 +491,7 @@ export default function EditOne(props: any) {
initialValues={{ softWare: '' }}
style={{ marginTop: 20 }}
>
-
-
- 商标名称*:
-
-
-
-
-
-
-
-
-
-
-