Commit b8161b7f authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加会员待入库分类新增/会员维护修改入库分类信息 国际化

parent dc8487d7
...@@ -203,6 +203,16 @@ export default { ...@@ -203,6 +203,16 @@ export default {
'Please enter 0 or a positive integer, up to 8 digits', 'Please enter 0 or a positive integer, up to 8 digits',
'member.management.memberPrComingClassify.drawer.form.classify.invoiceTypeName':'Invoice Type', 'member.management.memberPrComingClassify.drawer.form.classify.invoiceTypeName':'Invoice Type',
'member.management.memberPrComingClassify.drawer.form.classify.taxPoint':'Tax Point', 'member.management.memberPrComingClassify.drawer.form.classify.taxPoint':'Tax Point',
'member.management.memberPrComingClassify.drawer.form.classify.payType': 'Settlement Method',
'member.management.memberPrComingClassify.drawer.form.classify.payType.required': 'Please choose a settlement method',
'member.management.memberPrComingClassify.drawer.form.classify.month.addonAfter': 'months',
'member.management.memberPrComingClassify.drawer.form.classify.month.legal': 'Please enter a positive integer',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay': 'Settlement Date',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter': 'monthDay',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal': 'Please enter a positive integer',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit': 'Please enter a value greater than 0 but less than or equal to 28',
'member.management.memberPrComingClassify.drawer.form.classify.days.addonAfter': 'days',
'member.management.memberPrComingClassify.drawer.form.classify.days.legal': 'Please enter a positive integer',
'member.management.memberPrComingClassify.drawer.form.verify':'Document review', 'member.management.memberPrComingClassify.drawer.form.verify':'Document review',
'member.management.memberPrComingClassify.drawer.form.verify.agree':'Whether it passes', 'member.management.memberPrComingClassify.drawer.form.verify.agree':'Whether it passes',
'member.management.memberPrComingClassify.drawer.form.verify.agree.pass':'Approval passed', 'member.management.memberPrComingClassify.drawer.form.verify.agree.pass':'Approval passed',
......
...@@ -83,8 +83,7 @@ export default { ...@@ -83,8 +83,7 @@ export default {
'member.management.maintain.black.getBlocked.form.reason.placeholder': '최대 120자, 한자 60자를 입력하십시오', 'member.management.maintain.black.getBlocked.form.reason.placeholder': '최대 120자, 한자 60자를 입력하십시오',
'member.management.maintain.eliminate.remove': '관계를 해제하다', 'member.management.maintain.eliminate.remove': '관계를 해제하다',
'member.management.maintain.eliminate.remove.title': '회원 관계 해제', 'member.management.maintain.eliminate.remove.title': '회원 관계 해제',
'member.management.maintain.eliminate.remove.title-description': 'member.management.maintain.eliminate.remove.title-description': '현재 회원 관계를 해제하고 회원의 권익을 누리지 않는다.회원 관계 재신청 가능',
'현재 회원 관계를 해제하고 회원의 권익을 누리지 않는다.회원 관계 재신청 가능',
'member.management.maintain.eliminate.remove.form.select.placeholder': '선택하십시오.', 'member.management.maintain.eliminate.remove.form.select.placeholder': '선택하십시오.',
'member.management.maintain.eliminate.remove.form.date': '해제 날짜', 'member.management.maintain.eliminate.remove.form.date': '해제 날짜',
'member.management.maintain.eliminate.remove.form.date.rules-required': '해제 날짜를 선택하십시오', 'member.management.maintain.eliminate.remove.form.date.rules-required': '해제 날짜를 선택하십시오',
...@@ -93,8 +92,7 @@ export default { ...@@ -93,8 +92,7 @@ export default {
'member.management.maintain.eliminate.remove.form.reason.rules-required': '원인을 기입해 주십시오', 'member.management.maintain.eliminate.remove.form.reason.rules-required': '원인을 기입해 주십시오',
'member.management.maintain.freeze.freeze': '얼어붙다', 'member.management.maintain.freeze.freeze': '얼어붙다',
'member.management.maintain.freeze.freeze.title': '회원 동결', 'member.management.maintain.freeze.freeze.title': '회원 동결',
'member.management.maintain.freeze.freeze.title-description': 'member.management.maintain.freeze.freeze.title-description': '현재 회원 관계를 해제하고 회원의 권익을 누리지 않는다.회원 관계 재신청 가능',
'현재 회원 관계를 해제하고 회원의 권익을 누리지 않는다.회원 관계 재신청 가능',
'member.management.maintain.freeze.freeze.form.reason': '회원 동결 원인', 'member.management.maintain.freeze.freeze.form.reason': '회원 동결 원인',
'member.management.maintain.freeze.freeze.form.reason.placeholder': '최대 120자, 한자 60자를 입력하십시오', 'member.management.maintain.freeze.freeze.form.reason.placeholder': '최대 120자, 한자 60자를 입력하십시오',
'member.management.maintain.freeze.freeze.form.reason.rules-required': '원인을 기입해 주십시오', 'member.management.maintain.freeze.freeze.form.reason.rules-required': '원인을 기입해 주십시오',
...@@ -166,8 +164,7 @@ export default { ...@@ -166,8 +164,7 @@ export default {
'member.management.memberPrComingInvestigate.drawer.form.inspect.score': '고찰 평점', 'member.management.memberPrComingInvestigate.drawer.form.inspect.score': '고찰 평점',
'member.management.memberPrComingInvestigate.drawer.form.inspect.score.rules-money': '소수점 두 자리 입력', 'member.management.memberPrComingInvestigate.drawer.form.inspect.score.rules-money': '소수점 두 자리 입력',
'member.management.memberPrComingInvestigate.drawer.form.inspect.result': '고찰 결과', 'member.management.memberPrComingInvestigate.drawer.form.inspect.result': '고찰 결과',
'member.management.memberPrComingInvestigate.drawer.form.inspect.result-placeholder': 'member.management.memberPrComingInvestigate.drawer.form.inspect.result-placeholder': '최대 60자, 한자 30자를 입력하십시오',
'최대 60자, 한자 30자를 입력하십시오',
'member.management.memberPrComingInvestigate.drawer.form.inspect.reports': '고찰 보고', 'member.management.memberPrComingInvestigate.drawer.form.inspect.reports': '고찰 보고',
'member.management.memberPrComingInvestigate.drawer.form.inspect.reports.rules-required': '답사 보고서를 올려주세요.', 'member.management.memberPrComingInvestigate.drawer.form.inspect.reports.rules-required': '답사 보고서를 올려주세요.',
'member.management.memberPrComingInvestigate.drawer.form.verify': '영수증 심사', 'member.management.memberPrComingInvestigate.drawer.form.verify': '영수증 심사',
...@@ -175,8 +172,7 @@ export default { ...@@ -175,8 +172,7 @@ export default {
'member.management.memberPrComingInvestigate.drawer.form.verify.agree.pass': '심사 통과', 'member.management.memberPrComingInvestigate.drawer.form.verify.agree.pass': '심사 통과',
'member.management.memberPrComingInvestigate.drawer.form.verify.agree.noPass': '심사가 통과하지 못하다', 'member.management.memberPrComingInvestigate.drawer.form.verify.agree.noPass': '심사가 통과하지 못하다',
'member.management.memberPrComingInvestigate.drawer.form.verify.reason': '불통과 원인', 'member.management.memberPrComingInvestigate.drawer.form.verify.reason': '불통과 원인',
'member.management.memberPrComingInvestigate.drawer.form.verify.placeholder': 'member.management.memberPrComingInvestigate.drawer.form.verify.placeholder': '최대 120자, 한자 60자를 입력하십시오',
'최대 120자, 한자 60자를 입력하십시오',
// 待入库分类 // 待入库分类
'member.management.memberPrComingClassify.verify.commiting': '커밋 중입니다. 잠시 기다려 주십시오...', 'member.management.memberPrComingClassify.verify.commiting': '커밋 중입니다. 잠시 기다려 주십시오...',
...@@ -185,24 +181,30 @@ export default { ...@@ -185,24 +181,30 @@ export default {
'member.management.memberPrComingClassify.drawer.form.classify': '입고 분류 정보', 'member.management.memberPrComingClassify.drawer.form.classify': '입고 분류 정보',
'member.management.memberPrComingClassify.drawer.form.classify.code': '회원 번호', 'member.management.memberPrComingClassify.drawer.form.classify.code': '회원 번호',
'member.management.memberPrComingClassify.drawer.form.classify.code.description-1': '최대 10비트 길이, 중복 불가', 'member.management.memberPrComingClassify.drawer.form.classify.code.description-1': '최대 10비트 길이, 중복 불가',
'member.management.memberPrComingClassify.drawer.form.classify.code.description-2': 'member.management.memberPrComingClassify.drawer.form.classify.code.description-2': '특수 기호는 지원되지 않습니다(영문 "-", 밑줄 및 중간줄 제외).',
'특수 기호는 지원되지 않습니다(영문 "-", 밑줄 및 중간줄 제외).', 'member.management.memberPrComingClassify.drawer.form.classify.code.rules-legal': '숫자, 영어, -를 입력하십시오.최대 10자 지원',
'member.management.memberPrComingClassify.drawer.form.classify.code.rules-legal':
'숫자, 영어, -를 입력하십시오.최대 10자 지원',
'member.management.memberPrComingClassify.drawer.form.classify.partnerType': '협력 관계', 'member.management.memberPrComingClassify.drawer.form.classify.partnerType': '협력 관계',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount': '1회 합작금액', 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount': '1회 합작금액',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.description-1': '1회 구매 허용 최대 금액', 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.description-1': '1회 구매 허용 최대 금액',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-legal': 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-legal': '소수점 이하 두 자리까지 사용할 수 있는 값을 입력하십시오',
'소수점 이하 두 자리까지 사용할 수 있는 값을 입력하십시오',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-max': '최대 8자 지원', 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-max': '최대 8자 지원',
'member.management.memberPrComingClassify.drawer.form.classify.areaCodes': '적용 구역', 'member.management.memberPrComingClassify.drawer.form.classify.areaCodes': '적용 구역',
'member.management.memberPrComingClassify.drawer.form.classify.categories': '주류', 'member.management.memberPrComingClassify.drawer.form.classify.categories': '주류',
'member.management.memberPrComingClassify.drawer.form.classify.category': '종류', 'member.management.memberPrComingClassify.drawer.form.classify.category': '종류',
'member.management.memberPrComingClassify.drawer.form.classify.paymentDay': '결제 주기(일)', 'member.management.memberPrComingClassify.drawer.form.classify.paymentDay': '결제 주기(일)',
'member.management.memberPrComingClassify.drawer.form.classify.paymentDay.rules-legal': 'member.management.memberPrComingClassify.drawer.form.classify.paymentDay.rules-legal': '0자릿수 또는 양의 정수(최대 8자릿수)를 입력하십시오.',
'0자릿수 또는 양의 정수(최대 8자릿수)를 입력하십시오.',
'member.management.memberPrComingClassify.drawer.form.classify.invoiceTypeName': '청구서 유형', 'member.management.memberPrComingClassify.drawer.form.classify.invoiceTypeName': '청구서 유형',
'member.management.memberPrComingClassify.drawer.form.classify.taxPoint': '세점', 'member.management.memberPrComingClassify.drawer.form.classify.taxPoint': '세점',
'member.management.memberPrComingClassify.drawer.form.classify.payType': '결제 방식',
'member.management.memberPrComingClassify.drawer.form.classify.payType.required': '결제 방식을 선택하다',
'member.management.memberPrComingClassify.drawer.form.classify.month.addonAfter': '개월',
'member.management.memberPrComingClassify.drawer.form.classify.month.legal': '양의 정수를 입력하십시오',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay': '결산일',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter': '일',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal': '양의 정수를 입력하십시오',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit': '0보다 크고 28보다 작은 값을 입력하십시오',
'member.management.memberPrComingClassify.drawer.form.classify.days.addonAfter': '일수',
'member.management.memberPrComingClassify.drawer.form.classify.days.legal': '양의 정수를 입력하십시오',
'member.management.memberPrComingClassify.drawer.form.verify': '영수증 심사', 'member.management.memberPrComingClassify.drawer.form.verify': '영수증 심사',
'member.management.memberPrComingClassify.drawer.form.verify.agree': '통과 여부', 'member.management.memberPrComingClassify.drawer.form.verify.agree': '통과 여부',
'member.management.memberPrComingClassify.drawer.form.verify.agree.pass': '심사 통과', 'member.management.memberPrComingClassify.drawer.form.verify.agree.pass': '심사 통과',
......
...@@ -185,24 +185,30 @@ export default { ...@@ -185,24 +185,30 @@ export default {
'member.management.memberPrComingClassify.drawer.form.classify': '入库分类信息', 'member.management.memberPrComingClassify.drawer.form.classify': '入库分类信息',
'member.management.memberPrComingClassify.drawer.form.classify.code': '会员编码', 'member.management.memberPrComingClassify.drawer.form.classify.code': '会员编码',
'member.management.memberPrComingClassify.drawer.form.classify.code.description-1': '长度最多10位,不可重复', 'member.management.memberPrComingClassify.drawer.form.classify.code.description-1': '长度最多10位,不可重复',
'member.management.memberPrComingClassify.drawer.form.classify.code.description-2': 'member.management.memberPrComingClassify.drawer.form.classify.code.description-2': '不支持特殊符号(除英文"_-";下划线和中划线)',
'不支持特殊符号(除英文"_-";下划线和中划线)', 'member.management.memberPrComingClassify.drawer.form.classify.code.rules-legal': '请输入数字、英文、_-,最多支持10个字符',
'member.management.memberPrComingClassify.drawer.form.classify.code.rules-legal':
'请输入数字、英文、_-,最多支持10个字符',
'member.management.memberPrComingClassify.drawer.form.classify.partnerType': '合作关系', 'member.management.memberPrComingClassify.drawer.form.classify.partnerType': '合作关系',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount': '单次合作金额', 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount': '单次合作金额',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.description-1': '允许单次采购最大金额', 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.description-1': '允许单次采购最大金额',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-legal': 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-legal': '请输入数值,最多支持小数点后两位',
'请输入数值,最多支持小数点后两位',
'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-max': '最多支持8个字符', 'member.management.memberPrComingClassify.drawer.form.classify.maxAmount.rules-max': '最多支持8个字符',
'member.management.memberPrComingClassify.drawer.form.classify.areaCodes': '适用区域', 'member.management.memberPrComingClassify.drawer.form.classify.areaCodes': '适用区域',
'member.management.memberPrComingClassify.drawer.form.classify.categories': '主营品类', 'member.management.memberPrComingClassify.drawer.form.classify.categories': '主营品类',
'member.management.memberPrComingClassify.drawer.form.classify.category': '品类', 'member.management.memberPrComingClassify.drawer.form.classify.category': '品类',
'member.management.memberPrComingClassify.drawer.form.classify.paymentDay': '付款周期(天)', 'member.management.memberPrComingClassify.drawer.form.classify.paymentDay': '付款周期(天)',
'member.management.memberPrComingClassify.drawer.form.classify.paymentDay.rules-legal': 'member.management.memberPrComingClassify.drawer.form.classify.paymentDay.rules-legal': '请输入0 或 正整数,最多8位数',
'请输入0 或 正整数,最多8位数',
'member.management.memberPrComingClassify.drawer.form.classify.invoiceTypeName': '发票类型', 'member.management.memberPrComingClassify.drawer.form.classify.invoiceTypeName': '发票类型',
'member.management.memberPrComingClassify.drawer.form.classify.taxPoint': '税点', 'member.management.memberPrComingClassify.drawer.form.classify.taxPoint': '税点',
'member.management.memberPrComingClassify.drawer.form.classify.payType': '结算方式',
'member.management.memberPrComingClassify.drawer.form.classify.payType.required': '请选择结算方式',
'member.management.memberPrComingClassify.drawer.form.classify.month.addonAfter': '个月',
'member.management.memberPrComingClassify.drawer.form.classify.month.legal': '请输入正整数',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay': '结算日',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter': '号',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal': '请输入正整数',
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit': '请输入大于0 小于等于 28的数值',
'member.management.memberPrComingClassify.drawer.form.classify.days.addonAfter': '天',
'member.management.memberPrComingClassify.drawer.form.classify.days.legal': '请输入正整数',
'member.management.memberPrComingClassify.drawer.form.verify': '单据审核', 'member.management.memberPrComingClassify.drawer.form.verify': '单据审核',
'member.management.memberPrComingClassify.drawer.form.verify.agree': '是否通过', 'member.management.memberPrComingClassify.drawer.form.verify.agree': '是否通过',
'member.management.memberPrComingClassify.drawer.form.verify.agree.pass': '审核通过', 'member.management.memberPrComingClassify.drawer.form.verify.agree.pass': '审核通过',
......
...@@ -180,11 +180,11 @@ export const schema: ISchema = { ...@@ -180,11 +180,11 @@ export const schema: ISchema = {
type: 'string', type: 'string',
enum: [], enum: [],
'x-component': 'Radio', 'x-component': 'Radio',
title: '结算方式', title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.payType' }, { default: '结算方式' }),
'x-rules': [ 'x-rules': [
{ {
required: true, required: true,
message: '请选择结算方式', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.payType.required' }, { default: '请选择结算方式' }),
}, },
], ],
}, },
...@@ -204,30 +204,30 @@ export const schema: ISchema = { ...@@ -204,30 +204,30 @@ export const schema: ISchema = {
type: 'string', type: 'string',
title: '', title: '',
'x-component-props': { 'x-component-props': {
addonAfter: '个月', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.month.addonAfter' }, { default: '个月' }),
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.quantity, pattern: PATTERN_MAPS.quantity,
message: '请输入正整数', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.month.legal' }, { default: '请输入正整数' }),
}, },
], ],
}, },
monthDay: { monthDay: {
type: 'string', type: 'string',
title: '结算日', title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay' }, { default: '结算日' }),
'x-component-props': { 'x-component-props': {
addonAfter: '号', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter' }, { default: '号' }),
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.quantity, pattern: PATTERN_MAPS.quantity,
message: '请输入正整数', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal' }, { default: '请输入正整数' }),
}, },
{ {
validator(value) { validator(value) {
const intVal = +value; const intVal = +value;
return intVal > 28 || intVal < 0 ? '请输入大于0 小于等于 28的数值' : ''; return intVal > 28 || intVal < 0 ? intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit' }, { default: '请输入大于0 小于等于 28的数值' }) : '';
} }
}, },
], ],
...@@ -251,12 +251,12 @@ export const schema: ISchema = { ...@@ -251,12 +251,12 @@ export const schema: ISchema = {
type: 'string', type: 'string',
title: '', title: '',
'x-component-props': { 'x-component-props': {
addonAfter: '天', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.days.addonAfter' }, { default: '天' }),
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.quantity, pattern: PATTERN_MAPS.quantity,
message: '请输入正整数', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.days.legal' }, { default: '请输入正整数' }),
}, },
], ],
}, },
...@@ -277,15 +277,15 @@ export const schema: ISchema = { ...@@ -277,15 +277,15 @@ export const schema: ISchema = {
properties: { properties: {
monthDay: { monthDay: {
type: 'string', type: 'string',
title: '结算日', title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay' }, { default: '结算日' }),
'x-component-props': { 'x-component-props': {
addonAfter: '号', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter' }, { default: '号' }),
}, },
'x-rules': [ 'x-rules': [
{ {
validator(value) { validator(value) {
const intVal = +value; const intVal = +value;
return intVal > 28 || intVal < 0 ? '请输入大于0 小于等于 28的数值' : ''; return intVal > 28 || intVal < 0 ? intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit' }, { default: '请输入大于0 小于等于 28的数值' }) : '';
} }
}, },
], ],
......
...@@ -180,11 +180,11 @@ export const schema: ISchema = { ...@@ -180,11 +180,11 @@ export const schema: ISchema = {
type: 'string', type: 'string',
enum: [], enum: [],
'x-component': 'Radio', 'x-component': 'Radio',
title: '结算方式', title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.payType' }, { default: '结算方式' }),
'x-rules': [ 'x-rules': [
{ {
required: true, required: true,
message: '请选择结算方式', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.payType.required' }, { default: '请选择结算方式' }),
}, },
], ],
}, },
...@@ -204,30 +204,30 @@ export const schema: ISchema = { ...@@ -204,30 +204,30 @@ export const schema: ISchema = {
type: 'string', type: 'string',
title: '', title: '',
'x-component-props': { 'x-component-props': {
addonAfter: '个月', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.month.addonAfter' }, { default: '个月' }),
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.quantity, pattern: PATTERN_MAPS.quantity,
message: '请输入正整数', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.month.legal' }, { default: '请输入正整数' }),
}, },
], ],
}, },
monthDay: { monthDay: {
type: 'string', type: 'string',
title: '结算日', title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay' }, { default: '结算日' }),
'x-component-props': { 'x-component-props': {
addonAfter: '号', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter' }, { default: '号' }),
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.quantity, pattern: PATTERN_MAPS.quantity,
message: '请输入正整数', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal' }, { default: '请输入正整数' }),
}, },
{ {
validator(value) { validator(value) {
const intVal = +value; const intVal = +value;
return intVal > 28 || intVal < 0 ? '请输入大于0 小于等于 28的数值' : ''; return intVal > 28 || intVal < 0 ? intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit' }, { default: '请输入大于0 小于等于 28的数值' }) : '';
} }
}, },
], ],
...@@ -251,12 +251,12 @@ export const schema: ISchema = { ...@@ -251,12 +251,12 @@ export const schema: ISchema = {
type: 'string', type: 'string',
title: '', title: '',
'x-component-props': { 'x-component-props': {
addonAfter: '天', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.days.addonAfter' }, { default: '天' }),
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.quantity, pattern: PATTERN_MAPS.quantity,
message: '请输入正整数', message: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.days.legal' }, { default: '请输入正整数' }),
}, },
], ],
}, },
...@@ -277,15 +277,15 @@ export const schema: ISchema = { ...@@ -277,15 +277,15 @@ export const schema: ISchema = {
properties: { properties: {
monthDay: { monthDay: {
type: 'string', type: 'string',
title: '结算日', title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay' }, { default: '结算日' }),
'x-component-props': { 'x-component-props': {
addonAfter: '号', addonAfter: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.addonAfter' }, { default: '号' }),
}, },
'x-rules': [ 'x-rules': [
{ {
validator(value) { validator(value) {
const intVal = +value; const intVal = +value;
return intVal > 28 || intVal < 0 ? '请输入大于0 小于等于 28的数值' : ''; return intVal > 28 || intVal < 0 ? intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit' }, { default: '请输入大于0 小于等于 28的数值' }) : '';
} }
}, },
], ],
......
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