Commit 46ac74c6 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改翻译

parent 25226f9f
......@@ -268,4 +268,5 @@ export default {
'components.huiyuanfuwu':'Member Services',
'components.huiyuandenglu':'Member login',
'components.huiyuanzhuce':'Member Registration',
}
\ No newline at end of file
'components.xuanzezhidinghetong': 'Select the designated contract',
}
......@@ -268,4 +268,5 @@ export default {
'components.huiyuanfuwu': '회원 서비스',
'components.huiyuandenglu': '회원 등록',
'components.huiyuanzhuce': '회원 등록',
'components.xuanzezhidinghetong': '선택지정계약',
}
......@@ -268,4 +268,5 @@ export default {
'components.huiyuanfuwu': '会员服务',
'components.huiyuandenglu': '会员登录',
'components.huiyuanzhuce': '会员注册',
'components.xuanzezhidinghetong': '选择指定合同',
}
......@@ -164,7 +164,10 @@ const diaLogForm: React.FC<ListProps> = (props) => {
<FormTab.TabPane name="tab-1" tab={intl.formatMessage({ id: 'logistics.jibenxinxi' })}>
<FormMegaLayout wrapperWidth={570} labelWidth={174} labelCol={2} labelAlign="left">
<Field
required
x-rules={[{
required: true,
message: intl.formatMessage({ id: 'common.form.input.placeholder' })
}]}
title={intl.formatMessage({ id: 'logistics.mubanmingcheng' })}
name="name"
maxLength={15}
......@@ -196,7 +199,6 @@ const diaLogForm: React.FC<ListProps> = (props) => {
<FormMegaLayout inline>
<Field
name="weight"
required
// x-props={{
// style: {
// width: 160,
......@@ -213,10 +215,13 @@ const diaLogForm: React.FC<ListProps> = (props) => {
addonBefore: ' ',
addonAfter: intl.formatMessage({ id: 'logistics.nei' })
}}
x-rules={{
x-rules={[{
required: true,
message: intl.formatMessage({ id: 'common.form.input.placeholder' })
}, {
pattern: PATTERN_MAPS.weight,
message: intl.formatMessage({ id: 'logistics.shuzileixing3' })
}}
}]}
/>
<Field
name="price"
......@@ -232,10 +237,13 @@ const diaLogForm: React.FC<ListProps> = (props) => {
placeholder: '',
addonAfter: intl.formatMessage({ id: 'logistics.yuan' })
}}
x-rules={{
x-rules={[{
required: true,
message: intl.formatMessage({ id: 'common.form.input.placeholder' })
}, {
pattern: PATTERN_MAPS.money,
message: intl.formatMessage({ id: 'logistics.shuzileixing2' })
}}
}]}
/>
</FormMegaLayout>
<FormMegaLayout inline>
......@@ -257,10 +265,13 @@ const diaLogForm: React.FC<ListProps> = (props) => {
addonBefore: intl.formatMessage({ id: 'logistics.meizengjia' }),
addonAfter: intl.formatMessage({ id: 'logistics.zengjiayunfei' })
}}
x-rules={{
x-rules={[{
required: true,
message: intl.formatMessage({ id: 'common.form.input.placeholder' })
}, {
pattern: PATTERN_MAPS.weight,
message: intl.formatMessage({ id: 'logistics.shuzileixing3' })
}}
}]}
/>
<Field
name="incrementPrice"
......@@ -276,10 +287,13 @@ const diaLogForm: React.FC<ListProps> = (props) => {
addonAfter: intl.formatMessage({ id: 'logistics.yuan' })
}}
x-rules={{
x-rules={[{
required: true,
message: intl.formatMessage({ id: 'common.form.input.placeholder' })
}, {
pattern: PATTERN_MAPS.money,
message: intl.formatMessage({ id: 'logistics.shuzileixing2' })
}}
}]}
/>
</FormMegaLayout>
</FormMegaLayout>
......
......@@ -66,7 +66,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
}
// 新增合同
const tableAddButton = <Button style={{marginBottom: 16}} block icon={<PlusOutlined/>} disabled={pageStatus === PageStatus.PREVIEW} onClick={handleAddBtn} type='dashed'>选择指定合同</Button>
const tableAddButton = <Button style={{marginBottom: 16}} block icon={<PlusOutlined/>} disabled={pageStatus === PageStatus.PREVIEW} onClick={handleAddBtn} type='dashed'>{intl.formatMessage({id: 'components.xuanzezhidinghetong'})}</Button>
const tableColumns = [
......
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