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

fix: 修改翻译

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