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

fix: 翻译修复

parent 41ffbd00
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
'commodity.products.operationHandler.3':'Modify', 'commodity.products.operationHandler.3':'Modify',
'commodity.products.operationHandler.4':'Delete', 'commodity.products.operationHandler.4':'Delete',
'commodity.products.operationHandler.5':'On shelf', 'commodity.products.operationHandler.5':'On shelf',
'commodity.products.operationHandler.6':'Remove shelf', 'commodity.products.operationHandler.6':'Remove',
'commodity.products.operationHandler.7':'View supply products', 'commodity.products.operationHandler.7':'View supply products',
'commodity.products.step0Description.text.1':'Click to download EXCEL file template', 'commodity.products.step0Description.text.1':'Click to download EXCEL file template',
'commodity.products.step0Description.text.2':'According to the template to organize product information', 'commodity.products.step0Description.text.2':'According to the template to organize product information',
...@@ -792,7 +792,7 @@ export default { ...@@ -792,7 +792,7 @@ export default {
'commodity.products.addProductsItem.productImageForm.setting.option.1':'All attributes share product image (default)', 'commodity.products.addProductsItem.productImageForm.setting.option.1':'All attributes share product image (default)',
'commodity.products.addProductsItem.productImageForm.setting.option.2':'Set product image by attribute', 'commodity.products.addProductsItem.productImageForm.setting.option.2':'Set product image by attribute',
'commodity.products.addProductsItem.productImageForm.item.1':'Add pictures by specific attributes', 'commodity.products.addProductsItem.productImageForm.item.1':'Add pictures by specific attributes',
'commodity.products.addProductsItem.productImageForm.item.1.label':'all attributes are shared', 'commodity.products.addProductsItem.productImageForm.item.1.label':'all attributes shared',
'commodity.products.addProductsItem.productImageForm.alert.1': '1. You can select 6 images at a time', 'commodity.products.addProductsItem.productImageForm.alert.1': '1. You can select 6 images at a time',
'commodity.products.addProductsItem.productImageForm.alert.2': '2. The size of the picture is 800*800, the size of a single sheet does not exceed 600K, and only JPEG/JPG/PNG formats are supported', 'commodity.products.addProductsItem.productImageForm.alert.2': '2. The size of the picture is 800*800, the size of a single sheet does not exceed 600K, and only JPEG/JPG/PNG formats are supported',
'commodity.products.addProductsItem.productImageForm.alert.3': '3. The image quality should be clear and not blurred. It is recommended that the main image be a front view with a white background', 'commodity.products.addProductsItem.productImageForm.alert.3': '3. The image quality should be clear and not blurred. It is recommended that the main image be a front view with a white background',
......
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
'logistics.fahuoren': 'Consignor', 'logistics.fahuoren': 'Consignor',
'logistics.qingshurufahuo': 'Please enter the shipper', 'logistics.qingshurufahuo': 'Please enter the shipper',
'logistics.shengfen/zhi': '-province/municipalities-', 'logistics.shengfen/zhi': '-province/municipalities-',
'logistics.shiqu': '--', 'logistics.shiqu': '-City-',
'logistics.qu': '-District/County-', 'logistics.qu': '-District/County-',
'logistics.xiangxidizhi': 'Detailed address', 'logistics.xiangxidizhi': 'Detailed address',
'logistics.qingshuruxiangxi': 'Please enter the detailed address', 'logistics.qingshuruxiangxi': 'Please enter the detailed address',
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
'logistics.morenyunfei': 'Default freight', 'logistics.morenyunfei': 'Default freight',
'logistics.nei': 'Inside,', 'logistics.nei': 'Inside,',
'logistics.shuzileixing3': 'Number type, can keep 3 decimal places', 'logistics.shuzileixing3': 'Number type, can keep 3 decimal places',
'logistics.yuan': '', 'logistics.yuan': 'yuan',
'logistics.shuzileixing2': 'Number type, can keep 2 decimal places', 'logistics.shuzileixing2': 'Number type, can keep 2 decimal places',
'logistics.meizengjia': 'Every increase', 'logistics.meizengjia': 'Every increase',
'logistics.zengjiayunfei': 'Increase freight', 'logistics.zengjiayunfei': 'Increase freight',
......
...@@ -976,5 +976,16 @@ export default { ...@@ -976,5 +976,16 @@ export default {
'table.purchase.zhongbiaoshuliang': 'Number of winning bids', 'table.purchase.zhongbiaoshuliang': 'Number of winning bids',
'table.purchase.duiying': 'Correspondence', 'table.purchase.duiying': 'Correspondence',
'table.purchase.zhi': 'To', 'table.purchase.zhi': 'To',
'purchase.xiugaizhaiyao': 'Edit summary',
'purchase.xiugaishijian': 'Modify the time',
'purchase.fangwengaiyemiandelianjie': 'Visit the link on that page',
'purchase.liuzhuanshunxuhao': 'Flow SN',
'purchase.caozuojuese': 'Operator Role',
'purchase.zhuangtai': 'Status',
'purchase.caozuoshijian': 'Operator Time',
'purchase.shenheyijian': 'Audit Opinion',
'purchase.caozuoren': 'Operant',
'purchase.bumen': 'Division',
'purchase.zhiwei': 'Position',
'purchase.zuichang400gezifu200ge': 'Up to 400 characters, 200 Chinese characters',
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
'shop.form.label.albumName':'Promotional album', 'shop.form.label.albumName':'Promotional album',
'shop.form.label.shopLink':'Shop Link', 'shop.form.label.shopLink':'Shop Link',
'shop.form.label.mallLink':'Mall Link', 'shop.form.label.mallLink':'Mall Link',
'shop.form.label.phone':'Contact phone number', 'shop.form.label.phone':'Contact phone',
'shop.form.label.phone.placeholder':'Please enter the phone number', 'shop.form.label.phone.placeholder':'Please enter the phone number',
'shop.form.label.address':'Detailed address', 'shop.form.label.address':'Detailed address',
'shop.form.label.address.placeholder':'Please enter the detailed address', 'shop.form.label.address.placeholder':'Please enter the detailed address',
...@@ -123,13 +123,13 @@ ...@@ -123,13 +123,13 @@
'own.constant.page.type_3':'Market Information', 'own.constant.page.type_3':'Market Information',
'own.about.tab.item_1':'Basic information', 'own.about.tab.item_1':'Basic information',
'own.about.tab.item_2':'Plant photo', 'own.about.tab.item_2':'Plant photo',
'own.about.tab.item_3':'Qualification honor', 'own.about.tab.item_3':'Aptitude honor',
'own.about.tab.item_4':'Propaganda album', 'own.about.tab.item_4':'Propaganda album',
'own.about.form.memberShopAreas':'Business coverage area city', 'own.about.form.memberShopAreas':'Business coverage',
'own.about.form.memberShopAreas.required':'Please select a business coverage area', 'own.about.form.memberShopAreas.required':'Please select a business coverage area',
'own.about.form.mall.link':'own.about.form.mall.link', 'own.about.form.mall.link':'self-run mall Link',
'own.about.form.mall.link.select':'Please select self-operated mall', 'own.about.form.mall.link.select':'Please select self-run mall Link',
'own.about.form.mall.link.current':'Current self-operated mall link', 'own.about.form.mall.link.current':'Current self-run mall Link',
'own.mall.type_1':'Enterprise Mall', 'own.mall.type_1':'Enterprise Mall',
'own.mall.type_2':'Points Mall', 'own.mall.type_2':'Points Mall',
'own.mall.type_3':'Channel Mall', 'own.mall.type_3':'Channel Mall',
...@@ -154,4 +154,4 @@ ...@@ -154,4 +154,4 @@
'own.seo.add':'Add SEO', 'own.seo.add':'Add SEO',
'own.seo.form.type':'Page Type', 'own.seo.form.type':'Page Type',
'own.seo.form.type.required':'Please select the page type', 'own.seo.form.type.required':'Please select the page type',
} }
\ No newline at end of file
...@@ -976,5 +976,16 @@ export default { ...@@ -976,5 +976,16 @@ export default {
'table.purchase.zhongbiaoshuliang': '낙찰량', 'table.purchase.zhongbiaoshuliang': '낙찰량',
'table.purchase.duiying': '대응', 'table.purchase.duiying': '대응',
'table.purchase.zhi': '대상', 'table.purchase.zhi': '대상',
'purchase.xiugaizhaiyao': '요점을 고치다',
'purchase.xiugaishijian': '수정한 날짜',
'purchase.fangwengaiyemiandelianjie': '이 페이지에 대한 링크입니다',
'purchase.liuzhuanshunxuhao': '이전 번호',
'purchase.caozuojuese': '역할 조작',
'purchase.zhuangtai': '상태',
'purchase.caozuoshijian': '작업 시간',
'purchase.shenheyijian': '의견을 심사하다',
'purchase.caozuoren': '오퍼레이터',
'purchase.bumen': '부문',
'purchase.zhiwei': '직위',
'purchase.zuichang400gezifu200ge': '길게는 400자, 200자',
} }
...@@ -543,7 +543,8 @@ export default { ...@@ -543,7 +543,8 @@ export default {
'detail.purchase.label52': '操作时间', 'detail.purchase.label52': '操作时间',
'schma.purchase.purchaseType.help': '采购类型', 'schma.purchase.purchaseType.help': '采购类型',
'schma.purchase.purchaseType.help.text': '有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购', 'schma.purchase.purchaseType.help.text':
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购',
'schma.purchase.orderNo': '请输入订单编号', 'schma.purchase.orderNo': '请输入订单编号',
'schma.purchase.orderThe': '请输入订单摘要', 'schma.purchase.orderThe': '请输入订单摘要',
'schma.purchase.supplyMembersName': '请输入供应会员名称', 'schma.purchase.supplyMembersName': '请输入供应会员名称',
...@@ -976,5 +977,16 @@ export default { ...@@ -976,5 +977,16 @@ export default {
'table.purchase.zhongbiaoshuliang': '中标数量', 'table.purchase.zhongbiaoshuliang': '中标数量',
'table.purchase.duiying': '对应', 'table.purchase.duiying': '对应',
'table.purchase.zhi': '至', 'table.purchase.zhi': '至',
'purchase.xiugaizhaiyao': '修改摘要',
'purchase.xiugaishijian': '修改时间',
'purchase.fangwengaiyemiandelianjie': '访问该页面的链接',
'purchase.liuzhuanshunxuhao': '流转顺序号',
'purchase.caozuojuese': '操作角色',
'purchase.zhuangtai': '状态',
'purchase.caozuoshijian': '操作时间',
'purchase.shenheyijian': '审核意见',
'purchase.caozuoren': '操作人',
'purchase.bumen': '部门',
'purchase.zhiwei': '职位',
'purchase.zuichang400gezifu200ge': '最长400个字符,200个汉字',
} }
...@@ -25,13 +25,16 @@ export const classSchema: ISchema = { ...@@ -25,13 +25,16 @@ export const classSchema: ISchema = {
properties: { properties: {
name: { name: {
type: 'string', type: 'string',
title: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.name'}), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name' }),
required: true,
'x-component-props': { 'x-component-props': {
placeholder: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.name.placeholder'}), placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name.placeholder' }),
}, },
'x-rules': [ 'x-rules': [
{ {
required: true,
message: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name.placeholder' }),
},
{
limitByte: true, limitByte: true,
maxByte: 16, maxByte: 16,
}, },
...@@ -39,20 +42,25 @@ export const classSchema: ISchema = { ...@@ -39,20 +42,25 @@ export const classSchema: ISchema = {
}, },
type: { type: {
type: 'number', type: 'number',
title: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.type'}), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type' }),
required: true,
'x-component-props': { 'x-component-props': {
placeholder: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.type.placeholder'}), placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.placeholder' }),
}, },
'x-rules': [
{
required: true,
message: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.placeholder' }),
},
],
enum: [ enum: [
{ label: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.type.value.1'}), value: 1 }, { label: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.value.1' }), value: 1 },
{ label: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.type.value.2'}), value: 2 }, { label: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.value.2' }), value: 2 },
{ label: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.type.value.3'}), value: 3 }, { label: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.value.3' }), value: 3 },
{ label: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.type.value.4'}), value: 4 }, { label: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.value.4' }), value: 4 },
], ],
}, },
imageUrl: { imageUrl: {
title: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.imageUrl'}), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.imageUrl' }),
'x-component': 'CustomUpload', 'x-component': 'CustomUpload',
}, },
category: { category: {
...@@ -64,7 +72,7 @@ export const classSchema: ISchema = { ...@@ -64,7 +72,7 @@ export const classSchema: ISchema = {
}, },
name: { name: {
type: 'string', type: 'string',
title: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.category.name'}), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.category.name' }),
'x-component-props': { 'x-component-props': {
disabled: true, disabled: true,
addonAfter: '{{connectCategory}}', addonAfter: '{{connectCategory}}',
...@@ -74,11 +82,17 @@ export const classSchema: ISchema = { ...@@ -74,11 +82,17 @@ export const classSchema: ISchema = {
}, },
sort: { sort: {
type: 'number', type: 'number',
title: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.sort'}), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort' }),
required: true, required: true,
'x-component-props': { 'x-component-props': {
placeholder: getIntl().formatMessage({id: 'classAndProperty.class.classSchema.sort.placeholder'}), placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort.placeholder' }),
}, },
'x-rules': [
{
required: true,
message: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort.placeholder' }),
},
],
}, },
}, },
}, },
......
...@@ -15,14 +15,12 @@ import { CommodityType, customerCategoryTypeLabel } from '../constant'; ...@@ -15,14 +15,12 @@ import { CommodityType, customerCategoryTypeLabel } from '../constant';
import { getManageAreaAll, GetManageAreaAllResponse } from '@/services/ManageV2Api'; import { getManageAreaAll, GetManageAreaAllResponse } from '@/services/ManageV2Api';
const { Option } = Select const { Option } = Select
const layout = { const layout: any = {
labelCol: { colon: false,
span: 2, labelCol: { style: { width: "144px" } },
}, wrapperCol: { span: 12 },
wrapperCol: { labelAlign: "left"
span: 12, };
},
}
const layoutFormList = { const layoutFormList = {
labelCol: { labelCol: {
span: 2, span: 2,
......
...@@ -5,14 +5,12 @@ import { store } from '@/store' ...@@ -5,14 +5,12 @@ import { store } from '@/store'
import { getLogisticsSelectListCompany, GetLogisticsSelectListCompanyResponse, getLogisticsSelectListFreightTemplate, GetLogisticsSelectListFreightTemplateResponse, getLogisticsSelectListShipperAddress, GetLogisticsSelectListShipperAddressResponse } from '@/services/LogisticsV2Api' import { getLogisticsSelectListCompany, GetLogisticsSelectListCompanyResponse, getLogisticsSelectListFreightTemplate, GetLogisticsSelectListFreightTemplateResponse, getLogisticsSelectListShipperAddress, GetLogisticsSelectListShipperAddressResponse } from '@/services/LogisticsV2Api'
const { ProductStore } = store const { ProductStore } = store
const layout = { const layout: any = {
labelCol: { colon: false,
span: 2, labelCol: { style: { width: "144px" } },
}, wrapperCol: { span: 12 },
wrapperCol: { labelAlign: "left"
span: 12, };
},
}
export interface Iprops { export interface Iprops {
onRef: (refs: any) => void; onRef: (refs: any) => void;
......
...@@ -6,14 +6,12 @@ import { validatorByte } from '@/utils/regExp' ...@@ -6,14 +6,12 @@ import { validatorByte } from '@/utils/regExp'
import { QuestionCircleOutlined } from '@ant-design/icons' import { QuestionCircleOutlined } from '@ant-design/icons'
const { ProductStore } = store const { ProductStore } = store
const layout = { const layout: any = {
labelCol: { colon: false,
span: 2, labelCol: { style: { width: "144px" } },
}, wrapperCol: { span: 12 },
wrapperCol: { labelAlign: "left"
span: 12, };
},
}
export interface Iprops { export interface Iprops {
onRef: (refs: any) => void; onRef: (refs: any) => void;
......
...@@ -11,14 +11,12 @@ import { IProductSelectAttribute } from '@/module/productModule' ...@@ -11,14 +11,12 @@ import { IProductSelectAttribute } from '@/module/productModule'
import { orderlyLadderPrice, validatorNumberRange } from '../constant' import { orderlyLadderPrice, validatorNumberRange } from '../constant'
import { getProductSelectGetSelectCnUnit } from '@/services/ProductV2Api' import { getProductSelectGetSelectCnUnit } from '@/services/ProductV2Api'
const layout = { const layout: any = {
labelCol: { colon: false,
span: 2, labelCol: { style: { width: "144px" } },
}, wrapperCol: { span: 12 },
wrapperCol: { labelAlign: "left"
span: 12, };
},
}
const layoutSetPrice = { const layoutSetPrice = {
labelCol: { span: 24 }, labelCol: { span: 24 },
wrapperCol: { span: 24 }, wrapperCol: { span: 24 },
......
...@@ -5,14 +5,12 @@ import { inject, observer } from 'mobx-react' ...@@ -5,14 +5,12 @@ import { inject, observer } from 'mobx-react'
import { store } from '@/store' import { store } from '@/store'
import { validatorByte } from '@/utils/regExp' import { validatorByte } from '@/utils/regExp'
const layout = { const layout: any = {
labelCol: { colon: false,
span: 2, labelCol: { style: { width: "144px" } },
}, wrapperCol: { span: 12 },
wrapperCol: { labelAlign: "left"
span: 12, };
},
}
export interface Iprops { export interface Iprops {
attributesData: any[]; attributesData: any[];
onRef: (refs: any) => void; onRef: (refs: any) => void;
......
...@@ -8,14 +8,12 @@ import { inject, observer } from 'mobx-react' ...@@ -8,14 +8,12 @@ import { inject, observer } from 'mobx-react'
import { store } from '@/store' import { store } from '@/store'
import { getProductGoodsGetGoodsList, GetProductGoodsGetGoodsListResponseDetail } from '@/services/ProductV2Api' import { getProductGoodsGetGoodsList, GetProductGoodsGetGoodsListResponseDetail } from '@/services/ProductV2Api'
const layout = { const layout: any = {
labelCol: { colon: false,
span: 2, labelCol: { style: { width: "144px" } },
}, wrapperCol: { span: 12 },
wrapperCol: { labelAlign: "left"
span: 12, };
},
}
const SelectGoodsForm: React.FC<{}> = (props) => { const SelectGoodsForm: React.FC<{}> = (props) => {
const intl = useIntl(); const intl = useIntl();
......
...@@ -26,35 +26,44 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -26,35 +26,44 @@ export const initDetailSchema = (props: GroupItem[]) => {
properties: { properties: {
memberTypeId: { memberTypeId: {
type: 'string', type: 'string',
required: true,
title: intl.formatMessage({ id: 'member.management.import.query.form.basic.memberTypeId' }), title: intl.formatMessage({ id: 'member.management.import.query.form.basic.memberTypeId' }),
enum: [], enum: [],
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }), placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }),
}, },
'x-rules': [{
required: true,
message: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' })
}]
}, },
roleId: { roleId: {
type: 'string', type: 'string',
required: true,
title: intl.formatMessage({ id: 'member.management.import.query.form.basic.roleId' }), title: intl.formatMessage({ id: 'member.management.import.query.form.basic.roleId' }),
enum: [], enum: [],
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }), placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }),
}, },
'x-rules': [{
required: true,
message: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' })
}],
'x-props': { 'x-props': {
hasFeedback: true, hasFeedback: true,
}, },
}, },
level: { level: {
type: 'string', type: 'string',
required: true,
title: intl.formatMessage({ id: 'member.management.import.query.form.basic.level' }), title: intl.formatMessage({ id: 'member.management.import.query.form.basic.level' }),
enum: [], enum: [],
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }), placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }),
}, },
'x-rules': [{
required: true,
message: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' })
}],
'x-props': { 'x-props': {
hasFeedback: true, hasFeedback: true,
}, },
}, },
MEGA_LAYOUT1_1: { MEGA_LAYOUT1_1: {
...@@ -62,9 +71,9 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -62,9 +71,9 @@ export const initDetailSchema = (props: GroupItem[]) => {
'x-component': 'Mega-Layout', 'x-component': 'Mega-Layout',
'x-component-props': { 'x-component-props': {
label: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone' }), label: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone' }),
required: true, required: true,
wrapperCol: 24, wrapperCol: 24,
}, },
properties: { properties: {
MEGA_LAYOUT1_1_1: { MEGA_LAYOUT1_1_1: {
type: 'object', type: 'object',
...@@ -72,35 +81,41 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -72,35 +81,41 @@ export const initDetailSchema = (props: GroupItem[]) => {
'x-component-props': { 'x-component-props': {
grid: true, grid: true,
full: true, full: true,
}, },
properties: { properties: {
countryCodeId: { countryCodeId: {
type: 'string', type: 'string',
enum: [], enum: [],
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }), placeholder: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' }),
}, },
required: true, 'x-rules': [{
required: true,
message: intl.formatMessage({ id: 'member.management.import.query.form.placeholder-select' })
}],
}, },
phone: { phone: {
type: 'string', type: 'string',
required: true, 'x-mega-props': {
'x-mega-props': { span: 2,
span: 2,
}, },
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.placeholder' }), placeholder: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.placeholder' }),
maxLength: 11, maxLength: 11,
}, },
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.phone, required: true,
message: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.placeholder' })
},
{
pattern: PATTERN_MAPS.phone,
message: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.rules-fact' }), message: intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.rules-fact' }),
}, },
], ],
}, },
}, },
}, },
}, },
}, },
email: { email: {
...@@ -109,7 +124,7 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -109,7 +124,7 @@ export const initDetailSchema = (props: GroupItem[]) => {
'x-component-props': {}, 'x-component-props': {},
'x-rules': [ 'x-rules': [
{ {
pattern: PATTERN_MAPS.email, pattern: PATTERN_MAPS.email,
message: intl.formatMessage({ id: 'member.management.import.query.form.basic.email.rules-fact' }), message: intl.formatMessage({ id: 'member.management.import.query.form.basic.email.rules-fact' }),
}, },
], ],
...@@ -117,7 +132,7 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -117,7 +132,7 @@ export const initDetailSchema = (props: GroupItem[]) => {
}, },
}, },
}, },
}, },
'tab-2': { 'tab-2': {
type: 'object', type: 'object',
'x-component': 'TabPane', 'x-component': 'TabPane',
...@@ -130,54 +145,54 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -130,54 +145,54 @@ export const initDetailSchema = (props: GroupItem[]) => {
'x-component': 'Mega-Layout', 'x-component': 'Mega-Layout',
'x-component-props': { 'x-component-props': {
labelCol: 4, labelCol: 4,
wrapperCol: 12, wrapperCol: 12,
labelAlign: 'left', labelAlign: 'left',
full: true, full: true,
}, },
properties: { properties: {
upperRelationId: { upperRelationId: {
type: 'string', type: 'string',
enum: [], enum: [],
title: intl.formatMessage({ id: 'member.management.import.query.form.channel.upperRelationId' }), title: intl.formatMessage({ id: 'member.management.import.query.form.channel.upperRelationId' }),
required: true, required: true,
'x-component-props': { 'x-component-props': {
}, },
}, },
channelLevel: { channelLevel: {
type: 'text', type: 'text',
title: intl.formatMessage({ id: 'member.management.import.query.form.channel.channelLevel' }), title: intl.formatMessage({ id: 'member.management.import.query.form.channel.channelLevel' }),
}, },
channelTypeId: { channelTypeId: {
type: 'string', type: 'string',
enum: [], enum: [],
title: intl.formatMessage({ id: 'member.management.import.query.form.channel.channelTypeId' }), title: intl.formatMessage({ id: 'member.management.import.query.form.channel.channelTypeId' }),
required: true, required: true,
'x-component-props': { 'x-component-props': {
}, },
}, },
areas: { areas: {
type: 'array', type: 'array',
title: intl.formatMessage({ id: 'member.management.import.query.form.channel.areas' }), title: intl.formatMessage({ id: 'member.management.import.query.form.channel.areas' }),
required: true, required: true,
'x-component': 'CustomAddArray', 'x-component': 'CustomAddArray',
default: [], default: [],
items: { items: {
type: 'object', type: 'object',
properties: { properties: {
provinceCode: { provinceCode: {
type: 'string', type: 'string',
enum: [], enum: [],
'x-component-props': { 'x-component-props': {
allowClear: true, allowClear: true,
}, },
}, },
cityCode: { cityCode: {
type: 'string', type: 'string',
enum: [], enum: [],
'x-component-props': { 'x-component-props': {
allowClear: true, allowClear: true,
}, },
} }
} }
...@@ -186,16 +201,16 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -186,16 +201,16 @@ export const initDetailSchema = (props: GroupItem[]) => {
remark: { remark: {
type: 'string', type: 'string',
title: intl.formatMessage({ id: 'member.management.import.query.form.channel.remark' }), title: intl.formatMessage({ id: 'member.management.import.query.form.channel.remark' }),
required: true, required: true,
'x-component': 'TextArea', 'x-component': 'TextArea',
'x-component-props': { 'x-component-props': {
rows: 4, rows: 4,
placeholder: intl.formatMessage({ id: 'member.management.import.query.form.channel.remark.placeholder' }), placeholder: intl.formatMessage({ id: 'member.management.import.query.form.channel.remark.placeholder' }),
}, },
'x-rules': [ 'x-rules': [
{ {
limitByte: true, // 自定义校验规则 limitByte: true, // 自定义校验规则
maxByte: 200, maxByte: 200,
} }
], ],
}, },
...@@ -237,7 +252,7 @@ export const initDetailSchema = (props: GroupItem[]) => { ...@@ -237,7 +252,7 @@ export const initDetailSchema = (props: GroupItem[]) => {
type: 'object', type: 'object',
'x-component': 'Tab', 'x-component': 'Tab',
'x-component-props': { 'x-component-props': {
type: 'card', type: 'card',
hiddenKeys: ['tab-2'], hiddenKeys: ['tab-2'],
}, },
...tabSchema, ...tabSchema,
......
...@@ -124,7 +124,10 @@ export const rectificationAddSchema: ISchema = { ...@@ -124,7 +124,10 @@ export const rectificationAddSchema: ISchema = {
title: `${intl.formatMessage({ id: 'member.memberRectification.common.schema.add.rectifyAppendix'})}`, title: `${intl.formatMessage({ id: 'member.memberRectification.common.schema.add.rectifyAppendix'})}`,
type: 'array', type: 'array',
'x-component': 'FormilyUploadFiles', 'x-component': 'FormilyUploadFiles',
required: true, 'x-rules': [{
required: true,
message: `${intl.formatHTMLMessage({id: 'common.form.upload.placeholder'})} ${intl.formatMessage({ id: 'member.memberRectification.common.schema.add.rectifyAppendix'})}`
}]
} }
} }
} }
......
...@@ -19,8 +19,8 @@ import { getManageWebShopWebFindWebEnterpriseSelfShop } from '@/services/ManageV ...@@ -19,8 +19,8 @@ import { getManageWebShopWebFindWebEnterpriseSelfShop } from '@/services/ManageV
const layout: any = { const layout: any = {
colon: false, colon: false,
labelCol: { span: 4 }, labelCol: { span: 6 },
wrapperCol: { span: 20 }, wrapperCol: { span: 18 },
labelAlign: "left" labelAlign: "left"
} }
...@@ -190,19 +190,19 @@ const OwnMallAboutUs = () => { ...@@ -190,19 +190,19 @@ const OwnMallAboutUs = () => {
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name='describe' name='describe'
label={<RequireItem label={intl.formatMessage({ id: 'shop.form.label.describe' })} isRequire={true}/>} label={<RequireItem label={intl.formatMessage({ id: 'shop.form.label.describe' })} isRequire={true} />}
rules={[ rules={[
{ required: true, message: intl.formatMessage({ id: 'shop.form.describe.required' }) }, { required: true, message: intl.formatMessage({ id: 'shop.form.describe.required' }) },
{ validator: (r, v, c) => validatorByte(r, v, c, 400) } { validator: (r, v, c) => validatorByte(r, v, c, 400) }
]} ]}
> >
<Input.TextArea rows={3} placeholder="最长400个字符,200个汉字"/> <Input.TextArea rows={3} placeholder={intl.formatMessage({ id: 'purchase.zuichang400gezifu200ge' })} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name='memberShopAreas' name='memberShopAreas'
label={<RequireItem label={intl.formatMessage({ id: 'own.about.form.memberShopAreas' })} isRequire={true}/>} label={<RequireItem label={intl.formatMessage({ id: 'own.about.form.memberShopAreas' })} isRequire={true} />}
rules={[ rules={[
{ required: true, message: intl.formatMessage({ id: 'own.about.form.memberShopAreas.required' }) } { required: true, message: intl.formatMessage({ id: 'own.about.form.memberShopAreas.required' }) }
]} ]}
...@@ -219,7 +219,7 @@ const OwnMallAboutUs = () => { ...@@ -219,7 +219,7 @@ const OwnMallAboutUs = () => {
<Col span={12}> <Col span={12}>
<Form.Item label={intl.formatMessage({ id: 'own.about.form.mall.link' })}> <Form.Item label={intl.formatMessage({ id: 'own.about.form.mall.link' })}>
<Form.Item name='shopId'> <Form.Item name='shopId'>
<Select placeholder={intl.formatMessage({ id: 'own.about.form.mall.link.select' })} allowClear options={allMallList} onChange={selectMall}/> <Select placeholder={intl.formatMessage({ id: 'own.about.form.mall.link.select' })} allowClear options={allMallList} onChange={selectMall} />
</Form.Item> </Form.Item>
<Form.Item name='url'> <Form.Item name='url'>
<div className={styles.mallLink}> <div className={styles.mallLink}>
...@@ -233,21 +233,21 @@ const OwnMallAboutUs = () => { ...@@ -233,21 +233,21 @@ const OwnMallAboutUs = () => {
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name='phone' name='phone'
label={<RequireItem label={intl.formatMessage({ id: 'shop.form.label.phone' })}/>} label={<RequireItem label={intl.formatMessage({ id: 'shop.form.label.phone' })} />}
rules={[{ max: 20, message: `${intl.formatMessage({ id: 'common.text.most' })}20${intl.formatMessage({ id: 'common.unit.individual.character' })}` }]} rules={[{ max: 20, message: `${intl.formatMessage({ id: 'common.text.most' })}20${intl.formatMessage({ id: 'common.unit.individual.character' })}` }]}
> >
<Input placeholder={intl.formatMessage({ id: 'shop.form.label.phone.placeholder' })}/> <Input placeholder={intl.formatMessage({ id: 'shop.form.label.phone.placeholder' })} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name='address' name='address'
label={<RequireItem label={intl.formatMessage({ id: 'shop.form.label.address' })}/>} label={<RequireItem label={intl.formatMessage({ id: 'shop.form.label.address' })} />}
rules={[ rules={[
{ validator: (r, v, c) => validatorByte(r, v, c, 100) } { validator: (r, v, c) => validatorByte(r, v, c, 100) }
]} ]}
> >
<Input placeholder={intl.formatMessage({ id: 'shop.form.label.address.placeholder' })}/> <Input placeholder={intl.formatMessage({ id: 'shop.form.label.address.placeholder' })} />
</Form.Item> </Form.Item>
</Col> </Col>
</Row> </Row>
......
...@@ -154,7 +154,7 @@ const SeoAdd = () => { ...@@ -154,7 +154,7 @@ const SeoAdd = () => {
{ validator: (r, v, c) => validatorByte(r, v, c, 200) } { validator: (r, v, c) => validatorByte(r, v, c, 200) }
]} ]}
> >
<Input.TextArea rows={1} placeholder="最长200个字符,100个汉字" disabled={isView} /> <Input.TextArea rows={1} placeholder={intl.formatMessage({ id: 'handling.zuichang200gezifu100ge' })} disabled={isView} />
</Form.Item> </Form.Item>
</Col> </Col>
</Row> </Row>
......
...@@ -177,10 +177,13 @@ export const setPriceSchema: ISchema = { ...@@ -177,10 +177,13 @@ export const setPriceSchema: ISchema = {
type: 'number', type: 'number',
enum: [], enum: [],
title: getIntl().formatMessage({id: 'priceManage.schema.setPriceSchema.shopId'}), title: getIntl().formatMessage({id: 'priceManage.schema.setPriceSchema.shopId'}),
required: true,
"x-component-props": { "x-component-props": {
disabled: false, disabled: false,
}, },
'x-rules': [{
required: true,
message: getIntl().formatMessage({ id: 'member.management.import.query.form.placeholder-select' })
}],
}, },
productName: { productName: {
type: 'string', type: 'string',
...@@ -192,7 +195,10 @@ export const setPriceSchema: ISchema = { ...@@ -192,7 +195,10 @@ export const setPriceSchema: ISchema = {
disabled: true, disabled: true,
addonAfter: "{{connectProduct}}" addonAfter: "{{connectProduct}}"
}, },
required: true 'x-rules': [{
required: true,
message: getIntl().formatMessage({ id: 'member.management.import.query.form.placeholder-select' })
}],
}, },
productId: { productId: {
type: 'string', type: 'string',
......
...@@ -310,6 +310,7 @@ const PositionSetting: React.FC<PositionSettingProps> = (props) => { ...@@ -310,6 +310,7 @@ const PositionSetting: React.FC<PositionSettingProps> = (props) => {
dataIndex: 'id', dataIndex: 'id',
align: 'center', align: 'center',
key: 'id', key: 'id',
ellipsis: true,
}, },
{ {
title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.name' }), title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.name' }),
...@@ -324,30 +325,35 @@ const PositionSetting: React.FC<PositionSettingProps> = (props) => { ...@@ -324,30 +325,35 @@ const PositionSetting: React.FC<PositionSettingProps> = (props) => {
dataIndex: 'customerCategoryName', dataIndex: 'customerCategoryName',
align: 'center', align: 'center',
key: 'customerCategoryName', key: 'customerCategoryName',
ellipsis: true,
}, },
{ {
title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.brandName' }), title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.brandName' }),
dataIndex: 'brandName', dataIndex: 'brandName',
align: 'center', align: 'center',
key: 'brandName', key: 'brandName',
ellipsis: true,
}, },
{ {
title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.unitName' }), title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.unitName' }),
dataIndex: 'unitName', dataIndex: 'unitName',
align: 'center', align: 'center',
key: 'unitName', key: 'unitName',
ellipsis: true,
}, },
{ {
title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.upperMemberName' }), title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.upperMemberName' }),
dataIndex: 'upperMemberName', dataIndex: 'upperMemberName',
align: 'center', align: 'center',
key: 'upperMemberName', key: 'upperMemberName',
ellipsis: true,
}, },
{ {
title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.upperStockCount' }), title: intl.formatMessage({ id: 'repositories.components.positionSetting.columnsSetProduct.upperStockCount' }),
dataIndex: 'upperStockCount', dataIndex: 'upperStockCount',
align: 'center', align: 'center',
key: 'upperStockCount', key: 'upperStockCount',
ellipsis: true,
} }
] ]
......
This diff is collapsed.
...@@ -191,10 +191,13 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => { ...@@ -191,10 +191,13 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => {
provinceCode: { provinceCode: {
type: 'string', type: 'string',
enum: [], enum: [],
required: true,
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'logistics.shengfen/zhi' }), placeholder: intl.formatMessage({ id: 'logistics.shengfen/zhi' }),
}, },
'x-rules': [{
required: true,
message: `${intl.formatMessage({id: 'logistics.qingxuanze'})}${intl.formatMessage({ id: 'logistics.shengfen/zhi' })}`
}],
"x-mega-props": { "x-mega-props": {
span: 1 span: 1
}, },
...@@ -210,10 +213,13 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => { ...@@ -210,10 +213,13 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => {
cityCode: { cityCode: {
type: 'string', type: 'string',
enum: [], enum: [],
required: true,
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'logistics.shiqu' }), placeholder: intl.formatMessage({ id: 'logistics.shiqu' }),
}, },
'x-rules': [{
required: true,
message: `${intl.formatMessage({id: 'logistics.qingxuanze'})}${intl.formatMessage({ id: 'logistics.shiqu' })}`
}],
"x-mega-props": { "x-mega-props": {
span: 1 span: 1
}, },
...@@ -229,10 +235,13 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => { ...@@ -229,10 +235,13 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => {
districtCode: { districtCode: {
type: 'string', type: 'string',
enum: [], enum: [],
required: true,
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'logistics.qu' }), placeholder: intl.formatMessage({ id: 'logistics.qu' }),
}, },
'x-rules': [{
required: true,
message: `${intl.formatMessage({id: 'logistics.qingxuanze'})}${intl.formatMessage({ id: 'logistics.qu' })}`
}],
"x-mega-props": { "x-mega-props": {
span: 1 span: 1
}, },
...@@ -271,7 +280,7 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => { ...@@ -271,7 +280,7 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => {
"x-rules": [ "x-rules": [
{ {
required: true, required: true,
message: '', message: `${intl.formatMessage({id: 'detail.purchase.message22'})} ${intl.formatMessage({ id: 'logistics.xiangxidizhi' })} `,
}, },
{ {
limitByte: true, limitByte: true,
...@@ -317,7 +326,6 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => { ...@@ -317,7 +326,6 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => {
}, },
phone: { phone: {
type: 'string', type: 'string',
required: true,
'x-mega-props': { 'x-mega-props': {
span: 3, span: 3,
}, },
...@@ -327,6 +335,10 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => { ...@@ -327,6 +335,10 @@ const AddedAddressLayout: React.FC<AddressModalProps> = (props) => {
}, },
'x-rules': [ 'x-rules': [
{ {
required: true,
message: intl.formatMessage({ id: 'logistics.qingshurunide' }),
},
{
pattern: PATTERN_MAPS.phone, pattern: PATTERN_MAPS.phone,
message: intl.formatMessage({ id: 'logistics.qingshuruzhengque' }), message: intl.formatMessage({ id: 'logistics.qingshuruzhengque' }),
}, },
......
...@@ -48,8 +48,8 @@ const ProgressLayout: React.FC<ProgressProps> = (props: any) => { ...@@ -48,8 +48,8 @@ const ProgressLayout: React.FC<ProgressProps> = (props: any) => {
defaultValue={data.externalLogStates ? LOGSTATESTYPE.EXTERNALSTATES : LOGSTATESTYPE.INTERIORSTATES} defaultValue={data.externalLogStates ? LOGSTATESTYPE.EXTERNALSTATES : LOGSTATESTYPE.INTERIORSTATES}
> >
{data.externalLogStates && <Radio.Button value={LOGSTATESTYPE.EXTERNALSTATES}>{intl.formatMessage({ id: 'detail.purchase.externalLogStates' })}</Radio.Button>} {data.externalLogStates && <Radio.Button value={LOGSTATESTYPE.EXTERNALSTATES}>{intl.formatMessage({ id: 'detail.purchase.externalLogStates' })}</Radio.Button>}
{data.interiorLogStates && <Radio.Button value={LOGSTATESTYPE.INTERIORSTATES}>{intl.formatMessage({ id: 'detail.interiorLogStates' })}</Radio.Button>} {data.interiorLogStates && <Radio.Button value={LOGSTATESTYPE.INTERIORSTATES}>{intl.formatMessage({ id: 'detail.purchase.interiorLogStates' })}</Radio.Button>}
{data.examineInteriorLogStates && <Radio.Button value={LOGSTATESTYPE.EXMAINEINERIORSTATES}>{intl.formatMessage({ id: 'detail.examineInteriorLogStates' })}</Radio.Button>} {data.examineInteriorLogStates && <Radio.Button value={LOGSTATESTYPE.EXMAINEINERIORSTATES}>{intl.formatMessage({ id: 'detail.purchase.examineInteriorLogStates' })}</Radio.Button>}
</Radio.Group> </Radio.Group>
)} )}
</> </>
......
...@@ -50,7 +50,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => { ...@@ -50,7 +50,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
defaultValue={data.externalLogs ? LOGSTATESTYPE.EXTERNALSTATES : LOGSTATESTYPE.INTERIORSTATES} defaultValue={data.externalLogs ? LOGSTATESTYPE.EXTERNALSTATES : LOGSTATESTYPE.INTERIORSTATES}
> >
{data.externalLogs && <Radio.Button value={LOGSTATESTYPE.EXTERNALSTATES}>{intl.formatMessage({ id: 'detail.purchase.externalLogStates' })}</Radio.Button>} {data.externalLogs && <Radio.Button value={LOGSTATESTYPE.EXTERNALSTATES}>{intl.formatMessage({ id: 'detail.purchase.externalLogStates' })}</Radio.Button>}
{data.interiorLogs && <Radio.Button value={LOGSTATESTYPE.INTERIORSTATES}>{intl.formatMessage({ id: 'detail.interiorLogStates' })}</Radio.Button>} {data.interiorLogs && <Radio.Button value={LOGSTATESTYPE.INTERIORSTATES}>{intl.formatMessage({ id: 'detail.purchase.interiorLogStates' })}</Radio.Button>}
</Radio.Group> </Radio.Group>
)} )}
</> </>
......
.wrap { .wrap {
margin: -24px -24px 0; // margin: -24px -24px 0;
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -302,21 +302,23 @@ const ModalOperate: React.FC<IProps> = (props: any) => { ...@@ -302,21 +302,23 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
title={modalText()} title={modalText()}
name={causeName(modalType)} name={causeName(modalType)}
x-component="TextArea" x-component="TextArea"
required
x-component-props={{ x-component-props={{
placeholder: `${intl.formatMessage({ id: 'detail.purchase.tips17' })}${maxNumber}${intl.formatMessage({ id: 'detail.purchase.tips18' })}` placeholder: `${intl.formatMessage({ id: 'detail.purchase.tips17' })}${maxNumber}${intl.formatMessage({ id: 'detail.purchase.tips18' })}`
}} }}
x-rules={{ x-rules={[{
required: true,
message: `${intl.formatMessage({ id: 'detail.purchase.message22' })} ${modalText()}`,
}, {
validator: (value) => { validator: (value) => {
let _str = value; let _str = value;
_str = _str.replace(/[\u4E00-\u9FA5]/g, "AA"); _str = _str.replace(/[\u4E00-\u9FA5]/g, "AA");
if (_str.length > maxNumber * 2) { if (_str.length > maxNumber * 2) {
return { type: 'error', message: `${intl.formatMessage({ id: 'detail.purchase.tips19' })}${maxNumber * 2}${intl.formatMessage({ id: 'detail.purchase.tips20' })},${maxNumber}${intl.formatMessage({ id: 'detail.purchase.tips18' })}`}; return { type: 'error', message: `${intl.formatMessage({ id: 'detail.purchase.tips19' })}${maxNumber * 2}${intl.formatMessage({ id: 'detail.purchase.tips20' })},${maxNumber}${intl.formatMessage({ id: 'detail.purchase.tips18' })}` };
} else { } else {
return null; return null;
} }
} }
}} }]}
/>)} />)}
</SchemaForm> </SchemaForm>
</Modal> </Modal>
......
...@@ -20,18 +20,18 @@ const { Text } = Typography; ...@@ -20,18 +20,18 @@ const { Text } = Typography;
/** 外部流转记录 */ /** 外部流转记录 */
export const EXTERNALLOGS: ColumnType<any>[] = [ export const EXTERNALLOGS: ColumnType<any>[] = [
{ {
title: '流转顺序号', title: intl.formatMessage({id: 'purchase.liuzhuanshunxuhao'}),
key: 'index', key: 'index',
dataIndex: 'index', dataIndex: 'index',
render: (_text: any, _record: any, index: number) => <Text>{index + 1}</Text> render: (_text: any, _record: any, index: number) => <Text>{index + 1}</Text>
}, },
{ {
title: '操作角色', title: intl.formatMessage({id: 'purchase.caozuojuese'}),
key: 'roleName', key: 'roleName',
dataIndex: 'roleName', dataIndex: 'roleName',
}, },
{ {
title: '状态', title: intl.formatMessage({id: 'purchase.zhuangtai'}),
key: 'state', key: 'state',
dataIndex: 'state', dataIndex: 'state',
render: (_text: any, _record: any) => <Tag color={OFFTER_EXTERNALSTATE_COLOR[_text] || 'default'}>{_record.stateName}</Tag> render: (_text: any, _record: any) => <Tag color={OFFTER_EXTERNALSTATE_COLOR[_text] || 'default'}>{_record.stateName}</Tag>
...@@ -42,13 +42,13 @@ export const EXTERNALLOGS: ColumnType<any>[] = [ ...@@ -42,13 +42,13 @@ export const EXTERNALLOGS: ColumnType<any>[] = [
dataIndex: 'operation', dataIndex: 'operation',
}, },
{ {
title: '操作时间', title: intl.formatMessage({id: 'purchase.caozuoshijian'}),
key: 'createTime', key: 'createTime',
dataIndex: 'createTime', dataIndex: 'createTime',
render: (_text: any, _record: any) => <Text>{format(_text)}</Text> render: (_text: any, _record: any) => <Text>{format(_text)}</Text>
}, },
{ {
title: '审核意见', title: intl.formatMessage({id: 'purchase.shenheyijian'}),
key: 'auditOpinion', key: 'auditOpinion',
dataIndex: 'auditOpinion', dataIndex: 'auditOpinion',
}, },
...@@ -56,28 +56,28 @@ export const EXTERNALLOGS: ColumnType<any>[] = [ ...@@ -56,28 +56,28 @@ export const EXTERNALLOGS: ColumnType<any>[] = [
/** 内部流转记录 */ /** 内部流转记录 */
export const INTERNALLOGS: ColumnType<any>[] = [ export const INTERNALLOGS: ColumnType<any>[] = [
{ {
title: '流转顺序号', title: intl.formatMessage({id: 'purchase.liuzhuanshunxuhao'}),
key: 'index', key: 'index',
dataIndex: 'index', dataIndex: 'index',
render: (_text: any, _record: any, index: number) => <Text>{index + 1}</Text> render: (_text: any, _record: any, index: number) => <Text>{index + 1}</Text>
}, },
{ {
title: '操作人', title: intl.formatMessage({id: 'purchase.caozuoren'}),
key: 'roleName', key: 'roleName',
dataIndex: 'roleName', dataIndex: 'roleName',
}, },
{ {
title: '部门', title: intl.formatMessage({id: 'purchase.bumen'}),
key: 'department', key: 'department',
dataIndex: 'department', dataIndex: 'department',
}, },
{ {
title: '职位', title: intl.formatMessage({id: 'purchase.zhiwei'}),
key: 'position', key: 'position',
dataIndex: 'position', dataIndex: 'position',
}, },
{ {
title: '状态', title: intl.formatMessage({id: 'purchase.zhuangtai'}),
key: 'state', key: 'state',
dataIndex: 'state', dataIndex: 'state',
render: (_text: any, _record: any) => <Tag color={OFFTER_INTERNALSTATE_COLOR[_text] || 'default'}>{_record.stateName}</Tag> render: (_text: any, _record: any) => <Tag color={OFFTER_INTERNALSTATE_COLOR[_text] || 'default'}>{_record.stateName}</Tag>
...@@ -88,13 +88,13 @@ export const INTERNALLOGS: ColumnType<any>[] = [ ...@@ -88,13 +88,13 @@ export const INTERNALLOGS: ColumnType<any>[] = [
dataIndex: 'operation', dataIndex: 'operation',
}, },
{ {
title: '操作时间', title: intl.formatMessage({id: 'purchase.caozuoshijian'}),
key: 'createTime', key: 'createTime',
dataIndex: 'createTime', dataIndex: 'createTime',
render: (_text: any, _record: any) => <Text>{format(_text)}</Text> render: (_text: any, _record: any) => <Text>{format(_text)}</Text>
}, },
{ {
title: '审核意见', title: intl.formatMessage({id: 'purchase.shenheyijian'}),
key: 'auditOpinion', key: 'auditOpinion',
dataIndex: 'auditOpinion', dataIndex: 'auditOpinion',
}, },
......
...@@ -64,7 +64,7 @@ const DemandPlanAdded = () => { ...@@ -64,7 +64,7 @@ const DemandPlanAdded = () => {
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<> <>
{record.innerStatus === DEMANDPLAN_INTERNALSTATE_TYPE.WAITESUBMITAUDIT_TYPE && ( {record.innerStatus === DEMANDPLAN_INTERNALSTATE_TYPE.WAITESUBMITAUDIT_TYPE && (
<Popconfirm title="确定要提交吗?" okText="是" cancelText="否" onConfirm={() => handleSubmit(record.id)}> <Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm' })} okText={intl.formatMessage({ id: 'table.purchase.okText' })} cancelText={intl.formatMessage({ id: 'table.purchase.cancelText' })} onConfirm={() => handleSubmit(record.id)}>
<Button type='link'> <Button type='link'>
{intl.formatMessage({ id: 'table.purchase.submit' })} {intl.formatMessage({ id: 'table.purchase.submit' })}
</Button> </Button>
...@@ -72,7 +72,7 @@ const DemandPlanAdded = () => { ...@@ -72,7 +72,7 @@ const DemandPlanAdded = () => {
)} )}
<Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/demandPlan/demandPlanAdded/edit?id=${record.id}`)}>{intl.formatMessage({ id: 'table.purchase.eidt' })}</Button> <Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/demandPlan/demandPlanAdded/edit?id=${record.id}`)}>{intl.formatMessage({ id: 'table.purchase.eidt' })}</Button>
{record.innerStatus === DEMANDPLAN_INTERNALSTATE_TYPE.WAITESUBMITAUDIT_TYPE && ( {record.innerStatus === DEMANDPLAN_INTERNALSTATE_TYPE.WAITESUBMITAUDIT_TYPE && (
<Popconfirm title="确定要删除吗?" okText="是" cancelText="否" onConfirm={() => handleDelect(record.id)}> <Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm2' })} okText={intl.formatMessage({ id: 'table.purchase.okText' })} cancelText={intl.formatMessage({ id: 'table.purchase.cancelText' })} onConfirm={() => handleDelect(record.id)}>
<Button type='link'> <Button type='link'>
{intl.formatMessage({ id: 'table.purchase.delete' })} {intl.formatMessage({ id: 'table.purchase.delete' })}
</Button> </Button>
......
...@@ -101,7 +101,7 @@ const PurchasSeoAdded = () => { ...@@ -101,7 +101,7 @@ const PurchasSeoAdded = () => {
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name='link' name='link'
label={<RequireItem label={intl.formatMessage({ id: 'detail.purchase.doorLink' })} brief={<Tooltip placement="top" title="访问该页面的链接"><QuestionCircleOutlined /></Tooltip>} />} label={<RequireItem label={intl.formatMessage({ id: 'detail.purchase.doorLink' })} brief={<Tooltip placement="top" title={intl.formatMessage({id: 'purchase.fangwengaiyemiandelianjie'})}><QuestionCircleOutlined /></Tooltip>} />}
> >
<Input disabled={link === 'detail'} addonBefore={<Typography.Text type='secondary'>http://</Typography.Text>} /> <Input disabled={link === 'detail'} addonBefore={<Typography.Text type='secondary'>http://</Typography.Text>} />
</Form.Item> </Form.Item>
......
...@@ -53,6 +53,7 @@ const PurchasSeo = () => { ...@@ -53,6 +53,7 @@ const PurchasSeo = () => {
title: intl.formatMessage({ id: 'detail.purchase.pageName' }), title: intl.formatMessage({ id: 'detail.purchase.pageName' }),
key: 'name', key: 'name',
dataIndex: 'name', dataIndex: 'name',
width: 200,
render: (text: any, record: any) => <Typography.Link href={`/memberCenter/procurementAbility/purchasDoor/purchasSeo/detail?id=${record.id}`}>{text}</Typography.Link> render: (text: any, record: any) => <Typography.Link href={`/memberCenter/procurementAbility/purchasDoor/purchasSeo/detail?id=${record.id}`}>{text}</Typography.Link>
}, },
{ {
......
...@@ -72,7 +72,7 @@ const PurchasePlanDetailed = () => { ...@@ -72,7 +72,7 @@ const PurchasePlanDetailed = () => {
label: intl.formatMessage({ id: 'detail.purchase.summary' }), extra: ( label: intl.formatMessage({ id: 'detail.purchase.summary' }), extra: (
<div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}> <div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}>
<span>{data.summary}</span> <span>{data.summary}</span>
{ (pathPci === 'purchasePlanSubmit' && path === 'detail') && (<span onClick={() => handleEidt(data.summary, intl.formatMessage({ id: 'detail.purchase.summary' }), 'summary')} style={{ padding: 0, color: '#00B37A', cursor: 'pointer' }}>修改摘要</span>)} { (pathPci === 'purchasePlanSubmit' && path === 'detail') && (<span onClick={() => handleEidt(data.summary, intl.formatMessage({ id: 'detail.purchase.summary' }), 'summary')} style={{ padding: 0, color: '#00B37A', cursor: 'pointer' }}>{intl.formatMessage({id: 'purchase.xiugaizhaiyao'})}</span>)}
</div> </div>
) )
...@@ -86,7 +86,7 @@ const PurchasePlanDetailed = () => { ...@@ -86,7 +86,7 @@ const PurchasePlanDetailed = () => {
label: intl.formatMessage({ id: 'detail.purchase.startTime' }), extra: ( label: intl.formatMessage({ id: 'detail.purchase.startTime' }), extra: (
<div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}> <div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}>
<span>{format(data.startTime, "YYYY-MM-DD")}</span> <span>{format(data.startTime, "YYYY-MM-DD")}</span>
{(pathPci === 'purchasePlanSubmit' && path === 'detail') && (<span onClick={() => handleEidt(data.startTime, intl.formatMessage({ id: 'detail.purchase.purchaseStartTime' }), 'startTime')} style={{ padding: 0, color: '#00B37A', cursor: 'pointer' }}>修改时间</span>)} {(pathPci === 'purchasePlanSubmit' && path === 'detail') && (<span onClick={() => handleEidt(data.startTime, intl.formatMessage({ id: 'detail.purchase.purchaseStartTime' }), 'startTime')} style={{ padding: 0, color: '#00B37A', cursor: 'pointer' }}>{intl.formatMessage({id: 'purchase.xiugaishijian'})}</span>)}
</div> </div>
) )
}, },
...@@ -94,7 +94,7 @@ const PurchasePlanDetailed = () => { ...@@ -94,7 +94,7 @@ const PurchasePlanDetailed = () => {
label: intl.formatMessage({ id: 'detail.purchase.endTime' }), extra: ( label: intl.formatMessage({ id: 'detail.purchase.endTime' }), extra: (
<div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}> <div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}>
<span>{format(data.endTime, "YYYY-MM-DD")}</span> <span>{format(data.endTime, "YYYY-MM-DD")}</span>
{(pathPci === 'purchasePlanSubmit' && path === 'detail') && (<span onClick={() => handleEidt(data.endTime, intl.formatMessage({ id: 'detail.purchase.purchaseEndTime' }), 'endTime')} style={{ padding: 0, color: '#00B37A', cursor: 'pointer' }}>修改时间</span>)} {(pathPci === 'purchasePlanSubmit' && path === 'detail') && (<span onClick={() => handleEidt(data.endTime, intl.formatMessage({ id: 'detail.purchase.purchaseEndTime' }), 'endTime')} style={{ padding: 0, color: '#00B37A', cursor: 'pointer' }}>{intl.formatMessage({id: 'purchase.xiugaishijian'})}</span>)}
</div> </div>
) )
}, },
......
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