|
@@ -279,7 +279,7 @@ function GoodsAdd({ id, closeMoalFu, addListFu, editListFu, lookFlag }: Props) {
|
|
const onFinishFailed = useCallback(() => {
|
|
const onFinishFailed = useCallback(() => {
|
|
setCoverCheck(true);
|
|
setCoverCheck(true);
|
|
setTypeOk(true);
|
|
setTypeOk(true);
|
|
- return MessageFu.warning("有表单不符号规则!");
|
|
|
|
|
|
+ return MessageFu.warning("当前填入内容不符合要求!");
|
|
}, []);
|
|
}, []);
|
|
|
|
|
|
// 通过校验点击确定
|
|
// 通过校验点击确定
|
|
@@ -289,7 +289,7 @@ function GoodsAdd({ id, closeMoalFu, addListFu, editListFu, lookFlag }: Props) {
|
|
setCoverCheck(true);
|
|
setCoverCheck(true);
|
|
setTypeOk(true);
|
|
setTypeOk(true);
|
|
if (typeCheck.length === 0 || cover === "" || fileCheckFu)
|
|
if (typeCheck.length === 0 || cover === "" || fileCheckFu)
|
|
- return MessageFu.warning("有表单不符号规则!");
|
|
|
|
|
|
+ return MessageFu.warning("当前填入内容不符合要求!");
|
|
|
|
|
|
const fileIds = [];
|
|
const fileIds = [];
|
|
if (fileList.model.id && typeCheck.includes("model"))
|
|
if (fileList.model.id && typeCheck.includes("model"))
|
|
@@ -377,7 +377,7 @@ function GoodsAdd({ id, closeMoalFu, addListFu, editListFu, lookFlag }: Props) {
|
|
<Form.Item
|
|
<Form.Item
|
|
label="类别"
|
|
label="类别"
|
|
name="dictTexture"
|
|
name="dictTexture"
|
|
- rules={[{ required: true, message: "请选择类别!" }]}
|
|
|
|
|
|
+ // rules={[{ required: true, message: "请选择类别!" }]}
|
|
>
|
|
>
|
|
<Select
|
|
<Select
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -389,7 +389,7 @@ function GoodsAdd({ id, closeMoalFu, addListFu, editListFu, lookFlag }: Props) {
|
|
<Form.Item
|
|
<Form.Item
|
|
label="年代"
|
|
label="年代"
|
|
name="dictAge"
|
|
name="dictAge"
|
|
- rules={[{ required: true, message: "请选择年代!" }]}
|
|
|
|
|
|
+ // rules={[{ required: true, message: "请选择年代!" }]}
|
|
>
|
|
>
|
|
<Select
|
|
<Select
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -401,7 +401,7 @@ function GoodsAdd({ id, closeMoalFu, addListFu, editListFu, lookFlag }: Props) {
|
|
<Form.Item
|
|
<Form.Item
|
|
label="级别"
|
|
label="级别"
|
|
name="dictLevel"
|
|
name="dictLevel"
|
|
- rules={[{ required: true, message: "请选择级别!" }]}
|
|
|
|
|
|
+ // rules={[{ required: true, message: "请选择级别!" }]}
|
|
>
|
|
>
|
|
<Select
|
|
<Select
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -413,7 +413,7 @@ function GoodsAdd({ id, closeMoalFu, addListFu, editListFu, lookFlag }: Props) {
|
|
<Form.Item
|
|
<Form.Item
|
|
label="来源"
|
|
label="来源"
|
|
name="dictSource"
|
|
name="dictSource"
|
|
- rules={[{ required: true, message: "请选择来源!" }]}
|
|
|
|
|
|
+ // rules={[{ required: true, message: "请选择来源!" }]}
|
|
>
|
|
>
|
|
<Select
|
|
<Select
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|