update:
1. fix
This commit is contained in:
@@ -31,6 +31,13 @@ export default {
|
|||||||
label: "名称",
|
label: "名称",
|
||||||
prop: "productName",
|
prop: "productName",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入商品名称',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "缩略图",
|
label: "缩略图",
|
||||||
@@ -127,12 +134,40 @@ export default {
|
|||||||
{
|
{
|
||||||
label: "原价",
|
label: "原价",
|
||||||
prop: "originalPrice",
|
prop: "originalPrice",
|
||||||
type: "input",
|
type: "number",
|
||||||
|
min: 0,
|
||||||
|
precision: 2,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入有效金额',
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: /^\d+(\.\d{1,2})?$/,
|
||||||
|
message: '最多保留两位小数',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "销售价",
|
label: "销售价",
|
||||||
prop: "retailPrice",
|
prop: "retailPrice",
|
||||||
type: "input",
|
type: "number",
|
||||||
|
min: 0,
|
||||||
|
precision: 2,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入有效金额',
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: /^\d+(\.\d{1,2})?$/,
|
||||||
|
message: '最多保留两位小数',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "销量",
|
label: "销量",
|
||||||
@@ -151,7 +186,8 @@ export default {
|
|||||||
formatter: (row, value, cellValue) => {
|
formatter: (row, value, cellValue) => {
|
||||||
if (!Array.isArray(value)) return '';
|
if (!Array.isArray(value)) return '';
|
||||||
return value.map(s => `${s}`).join('; ');
|
return value.map(s => `${s}`).join('; ');
|
||||||
}
|
},
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "状态(0=下架,1=上架,3=删除)",
|
label: "状态(0=下架,1=上架,3=删除)",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
hide: true,
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "产品名称",
|
label: "名称",
|
||||||
prop: "productName",
|
prop: "productName",
|
||||||
type: "input",
|
type: "input",
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
@@ -59,7 +59,8 @@ export default {
|
|||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: 'data',
|
res: 'data',
|
||||||
url: 'link'
|
url: 'link'
|
||||||
}
|
},
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@@ -73,7 +74,8 @@ export default {
|
|||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: 'data',
|
res: 'data',
|
||||||
url: 'link'
|
url: 'link'
|
||||||
}
|
},
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "目的地",
|
label: "目的地",
|
||||||
@@ -89,32 +91,92 @@ export default {
|
|||||||
prop: "durationDays",
|
prop: "durationDays",
|
||||||
type: "number",
|
type: "number",
|
||||||
value: 1,
|
value: 1,
|
||||||
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "住宿晚数",
|
label: "住宿晚数",
|
||||||
prop: "durationNights",
|
prop: "durationNights",
|
||||||
type: "number",
|
type: "number",
|
||||||
value: 1,
|
value: 1,
|
||||||
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "起售价",
|
label: "起售价",
|
||||||
prop: "basePrice",
|
prop: "basePrice",
|
||||||
type: "input",
|
type: "number",
|
||||||
|
min: 0,
|
||||||
|
precision: 2,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入有效金额',
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: /^\d+(\.\d{1,2})?$/,
|
||||||
|
message: '最多保留两位小数',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "成人单价",
|
label: "成人单价",
|
||||||
prop: "adultPrice",
|
prop: "adultPrice",
|
||||||
type: "input",
|
type: "number",
|
||||||
|
min: 0,
|
||||||
|
precision: 2,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入有效金额',
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: /^\d+(\.\d{1,2})?$/,
|
||||||
|
message: '最多保留两位小数',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "儿童单价",
|
label: "儿童单价",
|
||||||
prop: "childPrice",
|
prop: "childPrice",
|
||||||
type: "input",
|
type: "number",
|
||||||
|
min: 0,
|
||||||
|
precision: 2,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入有效金额',
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: /^\d+(\.\d{1,2})?$/,
|
||||||
|
message: '最多保留两位小数',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "老年人单价",
|
label: "老年人单价",
|
||||||
prop: "elderlyPrice",
|
prop: "elderlyPrice",
|
||||||
type: "input",
|
type: "number",
|
||||||
|
min: 0,
|
||||||
|
precision: 2,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入有效金额',
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: /^\d+(\.\d{1,2})?$/,
|
||||||
|
message: '最多保留两位小数',
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -133,7 +195,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
label: "是否推荐",
|
label: "推荐",
|
||||||
prop: "isRecommended",
|
prop: "isRecommended",
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
||||||
@@ -146,7 +208,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
label: "是否填身份证",
|
label: "身份证",
|
||||||
prop: "requireIdCard",
|
prop: "requireIdCard",
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
||||||
@@ -159,7 +221,7 @@ export default {
|
|||||||
width: 160,
|
width: 160,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "是否填护照",
|
label: "护照",
|
||||||
prop: "requirePassport",
|
prop: "requirePassport",
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
||||||
@@ -172,7 +234,7 @@ export default {
|
|||||||
width: 160,
|
width: 160,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "是否填港澳通行证",
|
label: "港澳通行证",
|
||||||
prop: "requireHkMacauPass",
|
prop: "requireHkMacauPass",
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
||||||
@@ -185,7 +247,7 @@ export default {
|
|||||||
width: 160,
|
width: 160,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "产品详情",
|
label: "详情",
|
||||||
prop: "description",
|
prop: "description",
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user