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

fix: 修改翻译

parent f17ec721
...@@ -68,6 +68,15 @@ registerValidationRules({ ...@@ -68,6 +68,15 @@ registerValidationRules({
message += `,${intl.formatMessage({id: 'components.huozhe'})}${maxByte / 2}${intl.formatMessage({id: 'components.gehanzi'})}` message += `,${intl.formatMessage({id: 'components.huozhe'})}${maxByte / 2}${intl.formatMessage({id: 'components.gehanzi'})}`
} }
return str.length > maxByte ? message : ""; return str.length > maxByte ? message : "";
},
required: (value, desc, rules) => {
const { required } = desc;
let str = value;
let message = ``
if (required) {
message += `${intl.formatMessage({id: 'common.bitian'})}`
}
return (required && !str) ? message : ''
} }
}); });
...@@ -75,6 +84,7 @@ registerValidationRules({ ...@@ -75,6 +84,7 @@ registerValidationRules({
registerVirtualBox("MellowCard", ({ children, schema }) => { registerVirtualBox("MellowCard", ({ children, schema }) => {
const props = schema['x-component-props'] const props = schema['x-component-props']
console.log(props, 10086)
return ( return (
<FormItemCard {...props}> <FormItemCard {...props}>
...@@ -95,6 +105,8 @@ const schemaLayout = createControllerBox("schemaLayout", (_props) => { ...@@ -95,6 +105,8 @@ const schemaLayout = createControllerBox("schemaLayout", (_props) => {
// const { visible, title, onCancel, footer, ...others } = componentProps; // const { visible, title, onCancel, footer, ...others } = componentProps;
console.log(_props, 1111)
return ( return (
<NiceForm> <NiceForm>
<SchemaField schema={nestedSchema}></SchemaField> <SchemaField schema={nestedSchema}></SchemaField>
...@@ -148,6 +160,7 @@ export const componentExport = { ...@@ -148,6 +160,7 @@ export const componentExport = {
} }
const NiceForm: React.FC<NiceFormProps> = props => { const NiceForm: React.FC<NiceFormProps> = props => {
const { children, components, effects, expressionScope, loading = false, ...reset } = props; const { children, components, effects, expressionScope, loading = false, ...reset } = props;
console.log(props, 1008611)
const match = useRouteMatch(); const match = useRouteMatch();
const defineComponents = Object.assign(componentExport, components); const defineComponents = Object.assign(componentExport, components);
......
...@@ -33,13 +33,13 @@ export default { ...@@ -33,13 +33,13 @@ export default {
'afterService.components.ExchangeAddressInfo.deliveryType':'Delivery Method', 'afterService.components.ExchangeAddressInfo.deliveryType':'Delivery Method',
'afterService.components.ExchangeAddressInfo.deliveryType.placeholder':'Please select', 'afterService.components.ExchangeAddressInfo.deliveryType.placeholder':'Please select',
'afterService.components.ExchangeAddressInfo.deliveryType.required':'Please select a delivery method', 'afterService.components.ExchangeAddressInfo.deliveryType.required':'Please select a delivery method',
'afterService.components.ExchangeAddressInfo.deliveryAddress':'Exchange shipping address', 'afterService.components.ExchangeAddressInfo.deliveryAddress':'Return address',
'afterService.components.ExchangeAddressInfo.deliveryAddress.placeholder':'Please select', 'afterService.components.ExchangeAddressInfo.deliveryAddress.placeholder':'Please select',
'afterService.components.ExchangeAddressInfo.deliveryAddress.required':'Please select the replacement shipping address', 'afterService.components.ExchangeAddressInfo.deliveryAddress.required':'Please select the replacement shipping address',
'afterService.components.ExchangeAddressInfo.pickupAddress':'Exchange Pickup Address', 'afterService.components.ExchangeAddressInfo.pickupAddress':'Exchange Pickup Address',
'afterService.components.ExchangeAddressInfo.pickupAddress.placeholder':'Please select', 'afterService.components.ExchangeAddressInfo.pickupAddress.placeholder':'Please select',
'afterService.components.ExchangeAddressInfo.pickupAddress.required':'Please select the replacement address from the pickup', 'afterService.components.ExchangeAddressInfo.pickupAddress.required':'Please select the replacement address from the pickup',
'afterService.components.ExchangeAddressInfo.shippingAddress':'Exchange shipping address', 'afterService.components.ExchangeAddressInfo.shippingAddress':'Ship Addresss',
'afterService.components.ExchangeDeliverInfo.title':'Exchange Delivery Information', 'afterService.components.ExchangeDeliverInfo.title':'Exchange Delivery Information',
'afterService.components.ExchangeDeliverInfo.summaryColumns.orderNo':'Order number', 'afterService.components.ExchangeDeliverInfo.summaryColumns.orderNo':'Order number',
...@@ -171,10 +171,10 @@ export default { ...@@ -171,10 +171,10 @@ export default {
'afterService.components.ReturnAddressInfo.title': 'Return shipping address', 'afterService.components.ReturnAddressInfo.title': 'Return shipping address',
'afterService.components.ReturnAddressInfo.deliveryType': 'Delivery Method', 'afterService.components.ReturnAddressInfo.deliveryType': 'Delivery Method',
'afterService.components.ReturnAddressInfo.shippingAddress': 'Return shipping address', 'afterService.components.ReturnAddressInfo.shippingAddress': 'Return address',
'afterService.components.ReturnAddressInfo.shippingAddress.placeholder': 'please choose', 'afterService.components.ReturnAddressInfo.shippingAddress.placeholder': 'please choose',
'afterService.components.ReturnAddressInfo.shippingAddress.required': 'Please select the return address', 'afterService.components.ReturnAddressInfo.shippingAddress.required': 'Please select the return address',
'afterService.components.ReturnAddressInfo.deliveryAddress': 'Return shipping address', 'afterService.components.ReturnAddressInfo.deliveryAddress': 'Ship Address',
'afterService.components.ReturnAddressInfo.pickupAddress': 'Return address', 'afterService.components.ReturnAddressInfo.pickupAddress': 'Return address',
'afterService.components.ReturnAnalysis.title': 'Return shipping information', 'afterService.components.ReturnAnalysis.title': 'Return shipping information',
...@@ -234,8 +234,8 @@ export default { ...@@ -234,8 +234,8 @@ export default {
'afterService.components.Score.content': 'After-sales evaluation', 'afterService.components.Score.content': 'After-sales evaluation',
'afterService.components.StopModal.title': 'Reason for suspension', 'afterService.components.StopModal.title': 'Reason for suspension',
'afterService.components.StopModal.date': 'Suspension time', 'afterService.components.StopModal.date': 'Pause time',
'afterService.components.StopModal.remark': 'Reason for suspension', 'afterService.components.StopModal.remark': 'Pause Reason',
'afterService.components.StopModal.remark.placeholder': 'Enter your content here, up to 100 characters, 50 Chinese characters', 'afterService.components.StopModal.remark.placeholder': 'Enter your content here, up to 100 characters, 50 Chinese characters',
'afterService.components.StopModal.remark.required': 'Please fill in the reason', 'afterService.components.StopModal.remark.required': 'Please fill in the reason',
......
...@@ -53,5 +53,5 @@ ...@@ -53,5 +53,5 @@
'content.notice.edit':'Edit notice', 'content.notice.edit':'Edit notice',
'content.notice.see':'View announcement', 'content.notice.see':'View announcement',
'content.notice.topping':'Topping', 'content.notice.topping':'Topping',
'content.xuanze': 'Select from the following labels'
} }
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
'handling.submit.batch':'Batch submission', 'handling.submit.batch':'Batch submission',
'handling.description':'Summary', 'handling.description':'Summary',
'handling.noticeficationNumAndDesc':'Noticefication Number/Summary', 'handling.noticeficationNumAndDesc':'Noticefication Number/Summary',
'handling.processName':'Processing company name', 'handling.processName':'Company',
'handling.docApproval':'Document review', 'handling.docApproval':'Document review',
'handling.docTime':'Document time', 'handling.docTime':'Document time',
'handling.restProcessNum':'Remaining processing quantity', 'handling.restProcessNum':'Remaining processing quantity',
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
'handling.assign.allQuery':'Assign production notice query', 'handling.assign.allQuery':'Assign production notice query',
'handling.assign.tobeAddQuery':'Query to be added production notice', 'handling.assign.tobeAddQuery':'Query to be added production notice',
'handling.process.require':'Processing requirements', 'handling.process.require':'Processing requirements',
'handling.delivery.instructions':'Delivery instructions', 'handling.delivery.instructions':'Deliverable',
'handling.pay.instructions':'Payment Instructions', 'handling.pay.instructions':'Payment',
'handling.tax.instructions':'tax instructions', 'handling.tax.instructions':'tax',
'handling.material.instructions':'Material instructions', 'handling.material.instructions':'Material',
'handling.packing.instructions':'Packing instructions', 'handling.packing.instructions':'Packing',
'handling.other.instructions':'Other instructions', 'handling.other.instructions':'Other',
'handling.toExamine':'Examine', 'handling.toExamine':'Examine',
'handling.toExamine.doc':'Examine documents', 'handling.toExamine.doc':'Examine documents',
'handling.toExamine.batch':'Batch submission for review', 'handling.toExamine.batch':'Batch submission for review',
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
'handling.fukuanshuoming':'Payment Instructions', 'handling.fukuanshuoming':'Payment Instructions',
'handling.shuifeishuoming':'Description of taxes and fees', 'handling.shuifeishuoming':'Description of taxes and fees',
'handling.wuzishuoming':'Material description', 'handling.wuzishuoming':'Material description',
'handling.baozhuangshuoming':'Packing instructions', 'handling.baozhuangshuoming':'Packing',
'handling.qitashuoming':'Other instructions', 'handling.qitashuoming':'Other instructions',
'handling.zuichang60gezifu30ge':'The longest is 60 characters, 30 Chinese characters', 'handling.zuichang60gezifu30ge':'The longest is 60 characters, 30 Chinese characters',
'handling.qingtianxiejiagongfei':'Please fill in the processing fee', 'handling.qingtianxiejiagongfei':'Please fill in the processing fee',
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
'home.useGuaid.guideTitle': '1. New product', 'home.useGuaid.guideTitle': '1. New product',
'home.useGuaid.guideDesc':'Intelligent in three minutes, complete product creation', 'home.useGuaid.guideDesc':'Intelligent in three minutes, complete product creation',
'home.useGuaid.guideClose':'Close', 'home.useGuaid.guideClose':'Close',
'home.userCenter.year':'year', 'home.userCenter.year':'Year',
'home.userCenter.month':'Month', 'home.userCenter.month':'Month',
'home.userCenter.day':'Day', 'home.userCenter.day':'Day',
'home.userCenter.day0':'Sunday', 'home.userCenter.day0':'Sunday',
......
...@@ -74,35 +74,35 @@ export default { ...@@ -74,35 +74,35 @@ export default {
'payandSettle.eAccountApprove.title': 'Tonglian account', 'payandSettle.eAccountApprove.title': 'Tonglian account',
'payandSettle.eAccountApprove.components.company.mellowCard.1': 'Enterprise Certification (1/4)', 'payandSettle.eAccountApprove.components.company.mellowCard.1': 'Enterprise Certification (1/4)',
'payandSettle.eAccountApprove.components.company.mellowCard.1.company': 'Company Name', 'payandSettle.eAccountApprove.components.company.mellowCard.1.company': 'Company',
'payandSettle.eAccountApprove.components.company.mellowCard.1.company.message': 'Please enter the company name', 'payandSettle.eAccountApprove.components.company.mellowCard.1.company.message': 'Please enter the company name',
'payandSettle.eAccountApprove.components.company.mellowCard.1.company.placeholder': 'Please enter the company name', 'payandSettle.eAccountApprove.components.company.mellowCard.1.company.placeholder': 'Please enter the company name',
'payandSettle.eAccountApprove.components.company.mellowCard.1.account': 'Business to public account', 'payandSettle.eAccountApprove.components.company.mellowCard.1.account': 'Public Account',
'payandSettle.eAccountApprove.components.company.mellowCard.1.account.message': 'Please enter a business-to-public account', 'payandSettle.eAccountApprove.components.company.mellowCard.1.account.message': 'Please enter a business-to-public account',
'payandSettle.eAccountApprove.components.company.mellowCard.1.account.placeholder': 'Please enter a business-to-public account', 'payandSettle.eAccountApprove.components.company.mellowCard.1.account.placeholder': 'Please enter a business-to-public account',
'payandSettle.eAccountApprove.components.company.mellowCard.1.name': 'Corporate name', 'payandSettle.eAccountApprove.components.company.mellowCard.1.name': 'Corporate',
'payandSettle.eAccountApprove.components.company.mellowCard.1.name.message': 'Please enter the name of the legal person', 'payandSettle.eAccountApprove.components.company.mellowCard.1.name.message': 'Please enter the name of the legal person',
'payandSettle.eAccountApprove.components.company.mellowCard.1.name.placeholder': 'Please enter the name of the legal person', 'payandSettle.eAccountApprove.components.company.mellowCard.1.name.placeholder': 'Please enter the name of the legal person',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bank': 'Name of the bank that opened the account', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bank': 'Deposit Bank',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bank.message': 'Please enter the name of the bank that opened the account', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bank.message': 'Please enter the name of the bank that opened the account',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bank.placeholder': 'Please enter the name of the bank that opened the account', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bank.placeholder': 'Please enter the name of the bank that opened the account',
'payandSettle.eAccountApprove.components.company.mellowCard.1.type': 'Legal person ID type', 'payandSettle.eAccountApprove.components.company.mellowCard.1.type': 'Voucher Type',
'payandSettle.eAccountApprove.components.company.mellowCard.1.type.1': 'ID Card', 'payandSettle.eAccountApprove.components.company.mellowCard.1.type.1': 'ID Card',
'payandSettle.eAccountApprove.components.company.mellowCard.1.type.message': 'Please select the legal person certificate type', 'payandSettle.eAccountApprove.components.company.mellowCard.1.type.message': 'Please select the legal person certificate type',
'payandSettle.eAccountApprove.components.company.mellowCard.1.type.placeholder': 'Please select the legal person certificate type', 'payandSettle.eAccountApprove.components.company.mellowCard.1.type.placeholder': 'Please select the legal person certificate type',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bankPart': 'Name of bank branch where the account is opened', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bankPart': 'Branch name',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bankPart.message': 'Please enter the bank branch name', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bankPart.message': 'Please enter the bank branch name',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bankPart.placeholder': 'Please enter the name of the bank branch where the account is opened', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bankPart.placeholder': 'Please enter the name of the bank branch where the account is opened',
'payandSettle.eAccountApprove.components.company.mellowCard.1.idcard': 'Legal person ID number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.idcard': 'Voucher number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.idcard.message': 'Please enter the legal person ID number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.idcard.message': 'Please enter the legal person ID number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.idcard.placeholder': 'Please enter the legal person ID number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.idcard.placeholder': 'Please enter the legal person ID number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bankNo': 'Branch number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bankNo': 'Branch number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bankNo.message': 'Please enter the branch number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bankNo.message': 'Please enter the branch number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.bankNo.placeholder': 'Please enter the branch number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.bankNo.placeholder': 'Please enter the branch number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.phone': 'Corporate phone number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.phone': 'Phone number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.phone.message': `Please enter the legal person's mobile phone number`, 'payandSettle.eAccountApprove.components.company.mellowCard.1.phone.message': `Please enter the legal person's mobile phone number`,
'payandSettle.eAccountApprove.components.company.mellowCard.1.phone.placeholder': `Please enter the legal person's mobile phone number`, 'payandSettle.eAccountApprove.components.company.mellowCard.1.phone.placeholder': `Please enter the legal person's mobile phone number`,
'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit': 'Unified Social Credit Code', 'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit': 'Credit Code',
'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit.message': 'Please enter the unified social credit code', 'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit.message': 'Please enter the unified social credit code',
'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit.message1': 'Please fill in the 12-digit unified social credit number', 'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit.message1': 'Please fill in the 12-digit unified social credit number',
'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit.placeholder': 'Please enter the unified social credit code', 'payandSettle.eAccountApprove.components.company.mellowCard.1.uniCredit.placeholder': 'Please enter the unified social credit code',
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
'payandSettle.eAccountApprove.components.companyFinish.1.title': 'Corporate Information', 'payandSettle.eAccountApprove.components.companyFinish.1.title': 'Corporate Information',
'payandSettle.eAccountApprove.components.companyFinish.1.name': 'Name', 'payandSettle.eAccountApprove.components.companyFinish.1.name': 'Name',
'payandSettle.eAccountApprove.components.companyFinish.1.phone': 'Mobile phone number', 'payandSettle.eAccountApprove.components.companyFinish.1.phone': 'Phone number',
'payandSettle.eAccountApprove.components.companyFinish.1.phone.button': 'Untie', 'payandSettle.eAccountApprove.components.companyFinish.1.phone.button': 'Untie',
'payandSettle.eAccountApprove.components.companyFinish.1.idCardAhead': 'Legal person ID front photo', 'payandSettle.eAccountApprove.components.companyFinish.1.idCardAhead': 'Legal person ID front photo',
'payandSettle.eAccountApprove.components.companyFinish.1.idCardBehind': 'Legal person ID reverse photo', 'payandSettle.eAccountApprove.components.companyFinish.1.idCardBehind': 'Legal person ID reverse photo',
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
'payandSettle.eAccountApprove.components.personal.cardNo': 'Certificate Number', 'payandSettle.eAccountApprove.components.personal.cardNo': 'Certificate Number',
'payandSettle.eAccountApprove.components.personal.cardNo.message': 'Please enter the ID number', 'payandSettle.eAccountApprove.components.personal.cardNo.message': 'Please enter the ID number',
'payandSettle.eAccountApprove.components.personal.cardNo.placeholder': 'Please enter the ID number', 'payandSettle.eAccountApprove.components.personal.cardNo.placeholder': 'Please enter the ID number',
'payandSettle.eAccountApprove.components.personal.phone': 'Mobile phone number', 'payandSettle.eAccountApprove.components.personal.phone': 'Phone number',
'payandSettle.eAccountApprove.components.personal.phone.message': 'Please enter your phone number', 'payandSettle.eAccountApprove.components.personal.phone.message': 'Please enter your phone number',
'payandSettle.eAccountApprove.components.personal.phone.placeholder': 'Please enter your phone number', 'payandSettle.eAccountApprove.components.personal.phone.placeholder': 'Please enter your phone number',
'payandSettle.eAccountApprove.components.personal.captcha': 'Verification code', 'payandSettle.eAccountApprove.components.personal.captcha': 'Verification code',
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
'payandSettle.eAccountApprove.components.personalFinish.mellowCard.1': 'Personal Information', 'payandSettle.eAccountApprove.components.personalFinish.mellowCard.1': 'Personal Information',
'payandSettle.eAccountApprove.components.personalFinish.mellowCard.name': 'Name', 'payandSettle.eAccountApprove.components.personalFinish.mellowCard.name': 'Name',
'payandSettle.eAccountApprove.components.personalFinish.mellowCard.phone': 'Mobile phone number', 'payandSettle.eAccountApprove.components.personalFinish.mellowCard.phone': 'Phone number',
'payandSettle.eAccountApprove.components.personalFinish.mellowCard.button.1': 'Untie', 'payandSettle.eAccountApprove.components.personalFinish.mellowCard.button.1': 'Untie',
'payandSettle.eAccountApprove.components.personalFinish.mellowCard.button.2': 'View contract agreement', 'payandSettle.eAccountApprove.components.personalFinish.mellowCard.button.2': 'View contract agreement',
'payandSettle.eAccountApprove.components.personalFinish.mellowCard.button.3': 'Improve now', 'payandSettle.eAccountApprove.components.personalFinish.mellowCard.button.3': 'Improve now',
...@@ -701,7 +701,7 @@ export default { ...@@ -701,7 +701,7 @@ export default {
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.3': 'Locked amount (yuan):', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.3': 'Locked amount (yuan):',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.4': 'Account Status:', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.4': 'Account Status:',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.1': 'Recharge', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.1': 'Recharge',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.2': 'Apply for withdrawal', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.2': 'Withdraw',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.2': 'Transaction record', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.2': 'Transaction record',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.3': 'Circulation record', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.3': 'Circulation record',
'payandSettle.capitalAccounts.accountLists.accountDetail.modal.1.modalTitle': 'Account recharge', 'payandSettle.capitalAccounts.accountLists.accountDetail.modal.1.modalTitle': 'Account recharge',
...@@ -1006,9 +1006,9 @@ export default { ...@@ -1006,9 +1006,9 @@ export default {
'payandSettle.capitalAccounts.eAccount.chaxun': 'Query', 'payandSettle.capitalAccounts.eAccount.chaxun': 'Query',
'payandSettle.capitalAccounts.eAccount.zuiduoketixian': 'Can withdraw up to ¥', 'payandSettle.capitalAccounts.eAccount.zuiduoketixian': 'Can withdraw up to ¥',
'payandSettle.capitalAccounts.eAccount.jinejinxianliang': 'Amount is limited to two decimal places', 'payandSettle.capitalAccounts.eAccount.jinejinxianliang': 'Amount is limited to two decimal places',
'payandSettle.capitalAccounts.eAccount.qiyemingcheng': 'Company Name', 'payandSettle.capitalAccounts.eAccount.qiyemingcheng': 'Company',
'payandSettle.capitalAccounts.eAccount.qiyeduigongzhang': 'Business-to-public accounts', 'payandSettle.capitalAccounts.eAccount.qiyeduigongzhang': 'Business-to-public accounts',
'payandSettle.capitalAccounts.eAccount.farenxingming': 'Corporate name', 'payandSettle.capitalAccounts.eAccount.farenxingming': 'Corporate',
'payandSettle.capitalAccounts.eAccount.kaihuyinhangming': 'Account opening bank name', 'payandSettle.capitalAccounts.eAccount.kaihuyinhangming': 'Account opening bank name',
'payandSettle.capitalAccounts.eAccount.farenzhengjianlei': 'Legal person certificate type', 'payandSettle.capitalAccounts.eAccount.farenzhengjianlei': 'Legal person certificate type',
'payandSettle.capitalAccounts.eAccount.shenfenzheng': 'ID Card', 'payandSettle.capitalAccounts.eAccount.shenfenzheng': 'ID Card',
......
...@@ -991,4 +991,9 @@ export default { ...@@ -991,4 +991,9 @@ export default {
'purchase.zhenduiyuxiangmukeshiyong': 'Budget amount available for the project', 'purchase.zhenduiyuxiangmukeshiyong': 'Budget amount available for the project',
'purchase.yusuanjine': 'budget amount', 'purchase.yusuanjine': 'budget amount',
'purchase.zhileguishudishihou': 'The bidding can be screened according to the cities after the owning cities are set. If the bidding is not set, it will be all cities by default', 'purchase.zhileguishudishihou': 'The bidding can be screened according to the cities after the owning cities are set. If the bidding is not set, it will be all cities by default',
'purchase.zhaobiaoxiagmuqiwnag': 'Expected transaction price of bidding project',
'purchase.zhaobiaofabuzhicaigoumen': 'Tender is posted to the procurement portal',
'purchase.yaoqingzhaobiao': 'Invite bidding',
'purchase.xuanzeyudangqianhuiyuanxia':
'Select members who are affiliated with the current member and whose role type is service provision members (suppliers), the bidding will only be sent to designated members',
} }
...@@ -53,5 +53,5 @@ ...@@ -53,5 +53,5 @@
'content.notice.edit': '공지 편집', 'content.notice.edit': '공지 편집',
'content.notice.see': '게시 보기', 'content.notice.see': '게시 보기',
'content.notice.topping': '지붕을 얹다', 'content.notice.topping': '지붕을 얹다',
'content.xuanze': '아래 라벨에서 선택하십시오'
} }
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
'handling.assign.add.processName.requiredMsg': '가공업체를 선택하세요', 'handling.assign.add.processName.requiredMsg': '가공업체를 선택하세요',
'handling.assign.add.receiveAddress': '배송 주소', 'handling.assign.add.receiveAddress': '배송 주소',
'handling.assign.add.receiveAddress.requiredMsg': '가공업체를 선택하세요', 'handling.assign.add.receiveAddress.requiredMsg': '가공업체를 선택하세요',
'handling.assign.add.notice.source': '알림 메시지 원본', 'handling.assign.add.notice.source': '고지서 출처',
'handling.assign.add.notice.source.order': '주문 가공', 'handling.assign.add.notice.source.order': '주문 가공',
'handling.assign.add.notice.source.product': '상품 가공', 'handling.assign.add.notice.source.product': '상품 가공',
'handling.assign.add.notice.deliveryDate': '납기', 'handling.assign.add.notice.deliveryDate': '납기',
......
...@@ -701,7 +701,7 @@ export default { ...@@ -701,7 +701,7 @@ export default {
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.3': '잠금 금액(원):', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.3': '잠금 금액(원):',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.4': '계정 상태:', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.rightTitle.4': '계정 상태:',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.1': '충전하다', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.1': '충전하다',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.2': '현금 인출을 신청하다', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.1.button.2': '신청하다',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.2': '거래 기록', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.2': '거래 기록',
'payandSettle.capitalAccounts.accountLists.accountDetail.card.3': '유전 기록', 'payandSettle.capitalAccounts.accountLists.accountDetail.card.3': '유전 기록',
'payandSettle.capitalAccounts.accountLists.accountDetail.modal.1.modalTitle': '계정 충전', 'payandSettle.capitalAccounts.accountLists.accountDetail.modal.1.modalTitle': '계정 충전',
......
...@@ -991,4 +991,9 @@ export default { ...@@ -991,4 +991,9 @@ export default {
'purchase.zhenduiyuxiangmukeshiyong': '프로젝트에 사용할 수 있는 예산 금액', 'purchase.zhenduiyuxiangmukeshiyong': '프로젝트에 사용할 수 있는 예산 금액',
'purchase.yusuanjine': '예산 금액', 'purchase.yusuanjine': '예산 금액',
'purchase.zhileguishudishihou': '귀속 지구시를 설정한후이 입찰은 지구시에 따라 선별할수 있으며 설치하지 않았을 때는 모든 지구시를 묵인했다', 'purchase.zhileguishudishihou': '귀속 지구시를 설정한후이 입찰은 지구시에 따라 선별할수 있으며 설치하지 않았을 때는 모든 지구시를 묵인했다',
'purchase.zhaobiaoxiagmuqiwnag': '입찰 프로젝트의 예상 거래 가격',
'purchase.zhaobiaofabuzhicaigoumen': '입찰이 조달 포털에 게시됨',
'purchase.yaoqingzhaobiao': '입찰 초대',
'purchase.xuanzeyudangqianhuiyuanxia':
'현재 회원과 제휴하고 역할 유형이 서비스 제공 회원(공급자)인 회원을 선택하면 지정된 회원에게만 입찰이 발송됩니다.',
} }
...@@ -53,5 +53,6 @@ ...@@ -53,5 +53,6 @@
'content.notice.edit': '编辑公告', 'content.notice.edit': '编辑公告',
'content.notice.see': '查看公告', 'content.notice.see': '查看公告',
'content.notice.topping': '置顶', 'content.notice.topping': '置顶',
'content.xuanze': '从下列标签中选择'
} }
...@@ -992,4 +992,9 @@ export default { ...@@ -992,4 +992,9 @@ export default {
'purchase.zhenduiyuxiangmukeshiyong': '针对于项目可使用的预算金额', 'purchase.zhenduiyuxiangmukeshiyong': '针对于项目可使用的预算金额',
'purchase.yusuanjine': '预算金额', 'purchase.yusuanjine': '预算金额',
'purchase.zhileguishudishihou': '置了归属地市后,此招标可根据地市进行筛选,未设置时默认为所有地市', 'purchase.zhileguishudishihou': '置了归属地市后,此招标可根据地市进行筛选,未设置时默认为所有地市',
'purchase.zhaobiaoxiagmuqiwnag': '招标项目期望成交价格',
'purchase.zhaobiaofabuzhicaigoumen': '招标发布至采购门户',
'purchase.yaoqingzhaobiao': '邀请招标',
'purchase.xuanzeyudangqianhuiyuanxia':
'选择与当前会员下属关系的会员且角色类型为服务提供的会员(供应商),招标只发送给指定会员',
} }
...@@ -149,7 +149,7 @@ export const addSchema = { ...@@ -149,7 +149,7 @@ export const addSchema = {
'x-rules': [ 'x-rules': [
{ {
required: true, required: true,
message: intl.formatMessage({ id: 'balance.settleRules.memberSettle.info.schema.addSchema.memberTab.message' }) message: intl.formatMessage({ id: 'balance.settleRules.memberSettle.info.schema.addSchema.memberTab.someLists' })
} }
] ]
} }
......
...@@ -107,7 +107,7 @@ const ChannelMember: React.FC<{}> = () => { ...@@ -107,7 +107,7 @@ const ChannelMember: React.FC<{}> = () => {
layouts: { layouts: {
order: 2 order: 2
}, },
children: <Button style={{width: 140}} icon={<PlusOutlined/>} onClick={() => history.push('/memberCenter/channelAbility/memberList/add')} type='primary'>新建</Button> children: <Button style={{width: 140}} icon={<PlusOutlined/>} onClick={() => history.push('/memberCenter/channelAbility/memberList/add')} type='primary'>{intl.formatMessage({id: 'common.button.add'})}</Button>
}} }}
formilyProps={{ formilyProps={{
layouts: { layouts: {
......
import React from 'react'; import React from 'react';
import { Checkbox } from 'antd'; import { Checkbox } from 'antd';
import { getIntl } from 'umi';
const CustomCheckbox = (props) => { const CustomCheckbox = (props) => {
console.log(props); const intl = getIntl();
const editable = props.editable const editable = props.editable
const handleChange = (e) => { const handleChange = (e) => {
props.mutators.change(e.target.checked) props.mutators.change(e.target.checked)
} }
return ( return (
<Checkbox disabled={!editable} checked={props.value} onChange={handleChange}>置顶</Checkbox> <Checkbox disabled={!editable} checked={props.value} onChange={handleChange}>{intl.formatMessage({id: 'content.notice.topping'})}</Checkbox>
) )
} }
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import styles from './Tags.less'; import styles from './Tags.less';
import { CloseCircleOutlined } from '@ant-design/icons'; import { CloseCircleOutlined } from '@ant-design/icons';
import { getIntl } from 'umi';
const Tags = (props) => { const Tags = (props) => {
const seletedTag = props.props['x-component-props']['seletedTag'] ; const seletedTag = props.props['x-component-props']['seletedTag'] ;
const intl = getIntl();
const editable = props.editable; const editable = props.editable;
const [tags, setTags] = useState<number[]>([]); const [tags, setTags] = useState<number[]>([]);
...@@ -63,7 +65,7 @@ const Tags = (props) => { ...@@ -63,7 +65,7 @@ const Tags = (props) => {
{ {
editable editable
? <> ? <>
<p className={styles.tips}>从下列标签中选择</p> <p className={styles.tips}>{intl.formatMessage({id: 'content.xuanze'})}</p>
<div className={styles.tags}> <div className={styles.tags}>
{ {
dataSource.map((item) => { dataSource.map((item) => {
......
import { getIntl } from 'umi'; import { getIntl } from 'umi';
interface IOption { interface IOption {
value: number|string, value: number | string,
label: number|string label: number | string
} }
const sortedList = (() => { const sortedList = (() => {
let res: IOption[] = [] let res: IOption[] = []
for(let i = 1; i <= 10; i++ ) { for (let i = 1; i <= 10; i++) {
let data: IOption = { let data: IOption = {
label: i, label: i,
value: i value: i
...@@ -30,7 +30,7 @@ const schema = { ...@@ -30,7 +30,7 @@ const schema = {
"labelAlign": "left", "labelAlign": "left",
}, },
properties: { properties: {
title : { title: {
name: 'title', name: 'title',
title: getIntl().formatMessage({ id: 'common.text.title' }), title: getIntl().formatMessage({ id: 'common.text.title' }),
'x-component': 'Input', 'x-component': 'Input',
...@@ -74,12 +74,12 @@ const schema = { ...@@ -74,12 +74,12 @@ const schema = {
}, },
allowClear: true, allowClear: true,
options: [ options: [
{label: getIntl().formatMessage({ id: 'content.info.label1' }), value: 1}, { label: getIntl().formatMessage({ id: 'content.info.label1' }), value: 1 },
{label: getIntl().formatMessage({ id: 'content.info.label2' }), value: 2}, { label: getIntl().formatMessage({ id: 'content.info.label2' }), value: 2 },
{label: getIntl().formatMessage({ id: 'content.info.label3' }), value: 3}, { label: getIntl().formatMessage({ id: 'content.info.label3' }), value: 3 },
{label: getIntl().formatMessage({ id: 'content.info.label4' }), value: 4}, { label: getIntl().formatMessage({ id: 'content.info.label4' }), value: 4 },
{label: getIntl().formatMessage({ id: 'content.info.label5' }), value: 5}, { label: getIntl().formatMessage({ id: 'content.info.label5' }), value: 5 },
{label: getIntl().formatMessage({ id: 'content.info.label6' }), value: 6} { label: getIntl().formatMessage({ id: 'content.info.label6' }), value: 6 }
], ],
}, },
}, },
...@@ -187,7 +187,7 @@ const schema = { ...@@ -187,7 +187,7 @@ const schema = {
name: "imageUrl", name: "imageUrl",
"x-component": "CustomUpload", "x-component": "CustomUpload",
"x-component-props": { "x-component-props": {
size: '无', size: getIntl().formatMessage({ id: 'commodity.products.viewProducts.card.6.isMemberPrice.2' }),
// onChange: "{{uploadImage}}", // onChange: "{{uploadImage}}",
fileMaxSize: 300 fileMaxSize: 300
}, },
......
...@@ -38,7 +38,7 @@ const AllQuery = () => { ...@@ -38,7 +38,7 @@ const AllQuery = () => {
}); });
const { columns } = useColumnWithFilter(queryColumns, [ const { columns } = useColumnWithFilter(queryColumns, [
{ {
title: intl.formatMessage({id: 'common,table.action'}), title: intl.formatMessage({id: 'common.table.action'}),
render: (text, record) => { render: (text, record) => {
return ( return (
<Space> <Space>
......
...@@ -75,7 +75,7 @@ const UserCenter: React.FC<Iprops> = (props) => { ...@@ -75,7 +75,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
{`Hi, ${userAuth?.company}! ${intl.formatMessage({ id: 'home.userCenter.wellcome' })}${GlobalConfig.global.siteInfo.name}`} {`Hi, ${userAuth?.company}! ${intl.formatMessage({ id: 'home.userCenter.wellcome' })}${GlobalConfig.global.siteInfo.name}`}
</div> </div>
<div className={styles.date}> <div className={styles.date}>
{today.format(`YYYY${intl.formatMessage({ id: 'home.userCenter.year' })}MM${intl.formatMessage({ id: 'home.userCenter.month' })}DD${intl.formatMessage({ id: 'home.userCenter.day' })}`)} {intl.formatMessage({ id: `home.userCenter.day${today.day()}` })} {today.format(`YYYY[${intl.formatMessage({ id: 'home.userCenter.year' })}]MM[${intl.formatMessage({ id: 'home.userCenter.month' })}]DD[${intl.formatMessage({ id: 'home.userCenter.day' })}]`)} {intl.formatMessage({ id: `home.userCenter.day${today.day()}` })}
</div> </div>
</div> </div>
<div className={styles.images}> <div className={styles.images}>
......
...@@ -6,11 +6,11 @@ const { Option } = Select; ...@@ -6,11 +6,11 @@ const { Option } = Select;
/** /**
* 绑定手机 * 绑定手机
*/ */
export const BIND_PHONE = 9; export const BIND_PHONE = 9;
/** /**
* 解绑手机 * 解绑手机
*/ */
export const UNBIND_PHONE = 6; export const UNBIND_PHONE = 6;
// e账户认证 组件切换控制 Context // e账户认证 组件切换控制 Context
export const EDetailContext = createContext<any>({}) export const EDetailContext = createContext<any>({})
...@@ -19,11 +19,11 @@ export const EDetailContext = createContext<any>({}) ...@@ -19,11 +19,11 @@ export const EDetailContext = createContext<any>({})
export const formItemLayout = { export const formItemLayout = {
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 2 }, sm: { span: 4 },
}, },
wrapperCol: { wrapperCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 10 }, sm: { span: 8 },
}, },
}; };
......
...@@ -77,12 +77,15 @@ const basicInfo: ISchema = { ...@@ -77,12 +77,15 @@ const basicInfo: ISchema = {
properties: { properties: {
purchaseType: { purchaseType: {
type: 'string', type: 'string',
required: true,
enum: Object.values(PURCHASE_TYPE).map((item, index) => ({ label: item, value: ++index })), enum: Object.values(PURCHASE_TYPE).map((item, index) => ({ label: item, value: ++index })),
title: `{{help('${getIntl().formatMessage({ id: 'schma.purchase.purchaseType.help', defaultMessage: '采购类型' })}', '${getIntl().formatMessage({ id: 'schma.purchase.purchaseType.help.text', defaultMessage: "有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购" })}')}}`, title: `{{help('${getIntl().formatMessage({ id: 'schma.purchase.purchaseType.help', defaultMessage: '采购类型' })}', '${getIntl().formatMessage({ id: 'schma.purchase.purchaseType.help.text', defaultMessage: "有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购" })}')}}`,
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'schma.purchase.purchaseType' }), placeholder: intl.formatMessage({ id: 'schma.purchase.purchaseType' }),
} },
"x-rules": [{
required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}]
}, },
projectName: { projectName: {
type: 'string', type: 'string',
...@@ -120,7 +123,8 @@ const basicInfo: ISchema = { ...@@ -120,7 +123,8 @@ const basicInfo: ISchema = {
}, },
budget: { budget: {
type: 'number', type: 'number',
title: '{{help("预算金额", "针对于项目可使用的预算金额")}}', // title: '{{help("预算金额", "针对于项目可使用的预算金额")}}',
title: `{{help("${intl.formatMessage({ id: 'purchase.yusuanjine' })}", "${intl.formatMessage({ id: 'purchase.zhenduiyuxiangmukeshiyong' })}")}}`,
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'schma.purchase.budgetPlaceholder' }), placeholder: intl.formatMessage({ id: 'schma.purchase.budgetPlaceholder' }),
style: { style: {
...@@ -146,14 +150,18 @@ const basicInfo: ISchema = { ...@@ -146,14 +150,18 @@ const basicInfo: ISchema = {
}, },
inviteTenderAreaList: { inviteTenderAreaList: {
type: 'array', type: 'array',
title: '{{help("适用地市", "置了归属地市后,此招标可根据地市进行筛选,未设置时默认为所有地市")}}', // title: '{{help("适用地市", "置了归属地市后,此招标可根据地市进行筛选,未设置时默认为所有地市")}}',
title: `{{help("${intl.formatMessage({ id: 'detail.purchase.areas' })}", "${intl.formatMessage({ id: 'purchase.zhileguishudishihou' })}")}}`,
'x-component': 'MultAddress', 'x-component': 'MultAddress',
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'detail.purchase.placeholder13' }), placeholder: intl.formatMessage({ id: 'detail.purchase.placeholder13' }),
warningText: intl.formatMessage({ id: 'detail.purchase.placeholder14' }), warningText: intl.formatMessage({ id: 'detail.purchase.placeholder14' }),
}, },
// default: [{ provinceCode: null, province: null, cityCode: null, city: null }], // default: [{ provinceCode: null, province: null, cityCode: null, city: null }],
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}]
}, },
memberName: { memberName: {
type: 'string', type: 'string',
...@@ -209,7 +217,10 @@ const bidMaterial: ISchema = { ...@@ -209,7 +217,10 @@ const bidMaterial: ISchema = {
addMode: { addMode: {
type: 'radio', type: 'radio',
title: intl.formatMessage({ id: 'detail.purchase.modalTitle3' }), title: intl.formatMessage({ id: 'detail.purchase.modalTitle3' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
enum: [ enum: [
{ {
label: intl.formatMessage({ id: 'detail.purchase.modalTitle4' }), label: intl.formatMessage({ id: 'detail.purchase.modalTitle4' }),
...@@ -257,7 +268,10 @@ const bidRequestInfo: ISchema = { ...@@ -257,7 +268,10 @@ const bidRequestInfo: ISchema = {
type: 'string', type: 'string',
"x-component": 'daterange', "x-component": 'daterange',
title: intl.formatMessage({ id: 'schma.purchase.inviteTenderStartTime' }), title: intl.formatMessage({ id: 'schma.purchase.inviteTenderStartTime' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
"x-component-props": { "x-component-props": {
placeholder: [intl.formatMessage({ id: 'detail.purchase.startTime1' }), intl.formatMessage({ id: 'detail.purchase.endTime1' })], placeholder: [intl.formatMessage({ id: 'detail.purchase.startTime1' }), intl.formatMessage({ id: 'detail.purchase.endTime1' })],
disabledDate: current => { disabledDate: current => {
...@@ -271,7 +285,10 @@ const bidRequestInfo: ISchema = { ...@@ -271,7 +285,10 @@ const bidRequestInfo: ISchema = {
type: 'string', type: 'string',
"x-component": 'date', "x-component": 'date',
title: intl.formatMessage({ id: 'table.purchase.openTenderTime' }), title: intl.formatMessage({ id: 'table.purchase.openTenderTime' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'table.purchase.openTenderTime' }), placeholder: intl.formatMessage({ id: 'table.purchase.openTenderTime' }),
disabledDate: current => { disabledDate: current => {
...@@ -285,7 +302,10 @@ const bidRequestInfo: ISchema = { ...@@ -285,7 +302,10 @@ const bidRequestInfo: ISchema = {
type: 'string', type: 'string',
"x-component": 'date', "x-component": 'date',
title: intl.formatMessage({ id: 'table.purchase.deliveryTime' }), title: intl.formatMessage({ id: 'table.purchase.deliveryTime' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'table.purchase.deliveryTime' }), placeholder: intl.formatMessage({ id: 'table.purchase.deliveryTime' }),
disabledDate: current => { disabledDate: current => {
...@@ -304,7 +324,8 @@ const bidRequestInfo: ISchema = { ...@@ -304,7 +324,8 @@ const bidRequestInfo: ISchema = {
marginTop: 4, marginTop: 4,
} }
}, },
title: '{{help("目标价", "招标项目期望成交价格")}}', // title: '{{help("目标价", "招标项目期望成交价格")}}',
title: `{{help("${intl.formatMessage({ id: 'detail.purchase.targetPrice' })}", "${intl.formatMessage({ id: 'purchase.zhaobiaoxiagmuqiwnag' })}")}}`,
default: true, default: true,
"x-linkages": [ "x-linkages": [
{ {
...@@ -392,7 +413,10 @@ const enterRequestInfo: ISchema = { ...@@ -392,7 +413,10 @@ const enterRequestInfo: ISchema = {
type: 'string', type: 'string',
"x-component": 'daterange', "x-component": 'daterange',
title: intl.formatMessage({ id: 'detail.purchase.startSignUp' }), title: intl.formatMessage({ id: 'detail.purchase.startSignUp' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
"x-component-props": { "x-component-props": {
disabledDate: current => { disabledDate: current => {
return current && current < moment().startOf('second') return current && current < moment().startOf('second')
...@@ -485,7 +509,10 @@ const qualificationNeedInfo: ISchema = { ...@@ -485,7 +509,10 @@ const qualificationNeedInfo: ISchema = {
showTime: true, showTime: true,
style: { width: "100%" } style: { width: "100%" }
}, },
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
}, },
preCheckRequirement: { preCheckRequirement: {
type: 'string', type: 'string',
...@@ -553,7 +580,10 @@ const evaluationNeedInfo: ISchema = { ...@@ -553,7 +580,10 @@ const evaluationNeedInfo: ISchema = {
showTime: true, showTime: true,
style: { width: "100%" } style: { width: "100%" }
}, },
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
}, },
evaluationRequirement: { evaluationRequirement: {
type: 'string', type: 'string',
...@@ -591,7 +621,10 @@ const evaluationNeedInfo: ISchema = { ...@@ -591,7 +621,10 @@ const evaluationNeedInfo: ISchema = {
}, },
isOnlineEvaluation: { isOnlineEvaluation: {
// type: 'boolean', // type: 'boolean',
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
"x-component": 'CheckboxSingle', "x-component": 'CheckboxSingle',
"x-component-props": { "x-component-props": {
children: intl.formatMessage({ id: 'table.purchase.zaixianpingbiao' }), children: intl.formatMessage({ id: 'table.purchase.zaixianpingbiao' }),
...@@ -612,7 +645,10 @@ const evaluationNeedInfo: ISchema = { ...@@ -612,7 +645,10 @@ const evaluationNeedInfo: ISchema = {
templateId: { templateId: {
type: 'number', type: 'number',
title: intl.formatMessage({ id: 'table.purchase.pingbiaoxiangmuban' }), title: intl.formatMessage({ id: 'table.purchase.pingbiaoxiangmuban' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
enum: [], enum: [],
"x-component-props": { "x-component-props": {
placeholder: intl.formatMessage({ id: 'table.purchase.qingxuanzepingbiao' }) placeholder: intl.formatMessage({ id: 'table.purchase.qingxuanzepingbiao' })
...@@ -754,10 +790,14 @@ const bidPattern: ISchema = { ...@@ -754,10 +790,14 @@ const bidPattern: ISchema = {
inviteTenderType: { inviteTenderType: {
type: 'radio', type: 'radio',
title: intl.formatMessage({ id: 'table.purchase.zhaobiaofangshi' }), title: intl.formatMessage({ id: 'table.purchase.zhaobiaofangshi' }),
"x-rules": [{
required: true, required: true,
message: intl.formatMessage({ id: 'common.bitian' })
}],
enum: [ enum: [
{ {
label: '{{help("公开招标", "招标发布至采购门户")}}', // label: '{{help("公开招标", "招标发布至采购门户")}}',
label: `{{help("${intl.formatMessage({ id: 'detail.purchase.modalTitle' })}", "${intl.formatMessage({ id: 'purchase.zhaobiaofabuzhicaigoumen' })}")}}`,
value: 1 value: 1
}, },
// { // {
...@@ -765,7 +805,8 @@ const bidPattern: ISchema = { ...@@ -765,7 +805,8 @@ const bidPattern: ISchema = {
// value: 2 // value: 2
// }, // },
{ {
label: '{{help("邀请招标", "选择与当前会员下属关系的会员且角色类型为服务提供的会员(供应商),招标只发送给指定会员")}}', // label: '{{help("邀请招标", "选择与当前会员下属关系的会员且角色类型为服务提供的会员(供应商),招标只发送给指定会员")}}',
label: `{{help("${intl.formatMessage({ id: 'purchase.yaoqingzhaobiao' })}", "${intl.formatMessage({ id: 'purchase.xuanzeyudangqianhuiyuanxia' })}")}}`,
value: 3 value: 3
} }
], ],
......
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