Commit 78175c8b authored by 前端-许佳敏's avatar 前端-许佳敏

fix:优化仓位提示语

parent 91a58983
...@@ -129,7 +129,12 @@ export const repositMoreSchema: ISchema = { ...@@ -129,7 +129,12 @@ export const repositMoreSchema: ISchema = {
properties: { properties: {
name: { name: {
type: 'string', type: 'string',
required: true, "x-rules": [
{
required: true,
message: '请输入仓位名称'
}
],
title: '仓位名称', title: '仓位名称',
"x-component-props": { "x-component-props": {
placeholder: '建议名称:商品名称+商城名称+渠道描述' placeholder: '建议名称:商品名称+商城名称+渠道描述'
...@@ -145,7 +150,12 @@ export const repositMoreSchema: ISchema = { ...@@ -145,7 +150,12 @@ export const repositMoreSchema: ISchema = {
disabled: true, disabled: true,
addonAfter: "{{connectProduct}}" addonAfter: "{{connectProduct}}"
}, },
required: true "x-rules": [
{
required: true,
message: '请选择商品'
}
],
}, },
category: { category: {
type: 'string', type: 'string',
...@@ -177,7 +187,12 @@ export const repositMoreSchema: ISchema = { ...@@ -177,7 +187,12 @@ export const repositMoreSchema: ISchema = {
inventory: { inventory: {
type: 'number', type: 'number',
"x-component": "CustomSlider", "x-component": "CustomSlider",
required: true, "x-rules": [
{
required: true,
message: '请分配仓位库存'
}
],
"x-component-props": { "x-component-props": {
min: 0, min: 0,
max: 200 max: 200
...@@ -226,7 +241,12 @@ export const repositMoreSchema: ISchema = { ...@@ -226,7 +241,12 @@ export const repositMoreSchema: ISchema = {
dataSource: GlobalConfig.web.shopInfo dataSource: GlobalConfig.web.shopInfo
}, },
"title": "适用商城", "title": "适用商城",
required: true, "x-rules": [
{
required: true,
message: '请选择适用商城'
}
],
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment