Commit 9ecf68fb authored by XieZhiXiong's avatar XieZhiXiong

chore: 补充订单类型翻译

parent 7a77a892
......@@ -5,6 +5,9 @@
* @LastEditTime: 2021-08-02 09:51:00
* @Description: 订单能力相关常量
*/
import { getIntl } from 'umi';
const intl = getIntl();
/* -----------订单能力相关常量,包括采购、销售订单,采购、供应会员评价管理------------------- */
......@@ -113,18 +116,18 @@ export const ORDER_TYPE_REQUISITION = 12;
export const ORDER_TYPE2_REQUISITION = 12;
export const ORDER_TYPE2 = {
[ORDER_TYPE2_INQUIRY]: '询价采购',
[ORDER_TYPE2_DEMAND]: '需求采购',
[ORDER_TYPE2_SPOT]: '现货采购',
[ORDER_TYPE2_CENTRALIZED]: '集采',
[ORDER_TYPE2_POINTS]: '积分兑换',
[ORDER_TYPE2_CHANNEL_DIRECT]: '渠道直采',
[ORDER_TYPE2_CHANNEL_SPOT]: '渠道现货',
[ORDER_TYPE2_CHANNEL_POINTS]: '渠道积分兑换',
[ORDER_TYPE2_ENQUIRY_CONTRACT]: '采购询价合同',
[ORDER_TYPE2_BIDDING_CONTRACT]: '采购竞价合同',
[ORDER_TYPE2_TENDER_CONTRACT]: '采购招标合同',
[ORDER_TYPE2_REQUISITION]: '请购单采购',
[ORDER_TYPE2_INQUIRY]: intl.formatMessage({ id: 'constants.order.1' }, { default: '询价采购' }),
[ORDER_TYPE2_DEMAND]: intl.formatMessage({ id: 'constants.order.2' }, { default: '需求采购' }),
[ORDER_TYPE2_SPOT]: intl.formatMessage({ id: 'constants.order.3' }, { default: '现货采购' }),
[ORDER_TYPE2_CENTRALIZED]: intl.formatMessage({ id: 'constants.order.4' }, { default: '集采' }),
[ORDER_TYPE2_CHANNEL_DIRECT]: intl.formatMessage({ id: 'constants.order.5' }, { default: '渠道直采' }),
[ORDER_TYPE2_CHANNEL_SPOT]: intl.formatMessage({ id: 'constants.order.6' }, { default: '渠道现货' }),
[ORDER_TYPE2_POINTS]: intl.formatMessage({ id: 'constants.order.7' }, { default: '积分兑换' }),
[ORDER_TYPE2_CHANNEL_POINTS]: intl.formatMessage({ id: 'constants.order.8' }, { default: '渠道积分兑换' }),
[ORDER_TYPE2_ENQUIRY_CONTRACT]: intl.formatMessage({ id: 'constants.order.9' }, { default: '采购询价合同' }),
[ORDER_TYPE2_BIDDING_CONTRACT]: intl.formatMessage({ id: 'constants.order.10' }, { default: '采购竞价合同' }),
[ORDER_TYPE2_TENDER_CONTRACT]: intl.formatMessage({ id: 'constants.order.11' }, { default: '采购招标合同' }),
[ORDER_TYPE2_REQUISITION]: intl.formatMessage({ id: 'constants.order.12' }, { default: '请购单采购' }),
};
......@@ -141,18 +144,18 @@ export const DELIVERY_TYPE = ['',
// 订单类型映射-Array形式
export const ORDER_TYPE = ['',
'询价采购',
'需求采购',
'现货采购',
'集采',
'渠道直采',
'渠道现货',
'积分兑换',
'渠道积分兑换',
'采购询价合同',
'采购招标合同',
'采购竞价合同',
'请购单采购',
intl.formatMessage({ id: 'constants.order.1' }, { default: '询价采购' }),
intl.formatMessage({ id: 'constants.order.2' }, { default: '需求采购' }),
intl.formatMessage({ id: 'constants.order.3' }, { default: '现货采购' }),
intl.formatMessage({ id: 'constants.order.4' }, { default: '集采' }),
intl.formatMessage({ id: 'constants.order.5' }, { default: '渠道直采' }),
intl.formatMessage({ id: 'constants.order.6' }, { default: '渠道现货' }),
intl.formatMessage({ id: 'constants.order.7' }, { default: '积分兑换' }),
intl.formatMessage({ id: 'constants.order.8' }, { default: '渠道积分兑换' }),
intl.formatMessage({ id: 'constants.order.9' }, { default: '采购询价合同' }),
intl.formatMessage({ id: 'constants.order.11' }, { default: '采购招标合同' }),
intl.formatMessage({ id: 'constants.order.10' }, { default: '采购竞价合同' }),
intl.formatMessage({ id: 'constants.order.12' }, { default: '请购单采购' }),
]
// 下单模式 *NEW
......
......@@ -35,6 +35,7 @@ import processRuleSetting from './en-US/system/processRuleSetting'
import afterService from './en-US/afterService';
import marketing from './en-US/marketing'
import responseCode from './en-US/responseCode'
import constants from './en-US/constants'
export default {
'global.siteName': '',
......@@ -75,4 +76,5 @@ export default {
...balance,
...marketing,
...responseCode,
...constants,
}
import order from './order';
export default {
...order,
};
\ No newline at end of file
export default {
'constants.order.1': 'Inquiry Purchase',
'constants.order.2': 'Demand Purchasing',
'constants.order.3': 'Spot purchase',
'constants.order.4': 'Central Purchase',
'constants.order.5': 'Channel direct purchase',
'constants.order.6': 'Channel spot',
'constants.order.7': 'Points redemption',
'constants.order.8': 'Channel Points Exchange',
'constants.order.9': 'Purchase Request for Quotation Contract',
'constants.order.10': 'Purchase auction contract',
'constants.order.11': 'Purchase Tender Contract',
'constants.order.12': 'Purchase Requisition',
}
\ No newline at end of file
......@@ -35,6 +35,7 @@ import processRuleSetting from './ko-KR/system/processRuleSetting'
import afterService from './ko-KR/afterService';
import marketing from './ko-KR/marketing'
import responseCode from './ko-KR/responseCode'
import constants from './ko-KR/constants'
export default {
'global.siteName': '',
......@@ -75,4 +76,5 @@ export default {
...balance,
...marketing,
...responseCode,
...constants,
}
import order from './order';
export default {
...order,
};
\ No newline at end of file
export default {
'constants.order.1': '구매 문의',
'constants.order.2': '구매 요청',
'constants.order.3': '현물 구매',
'constants.order.4': '중앙 구매',
'constants.order.5': '채널 직접 구매',
'constants.order.6': '채널 스팟',
'constants.order.7': '포인트 사용',
'constants.order.8': '채널 포인트 교환',
'constants.order.9': '견적 계약 구매 요청',
'constants.order.10': '구매 경매 계약',
'constants.order.11': '구매 입찰 계약',
'constants.order.12': '구매 요청',
}
\ No newline at end of file
......@@ -35,6 +35,7 @@ import processRuleSetting from './zh-CN/system/processRuleSetting'
import afterService from './zh-CN/afterService';
import marketing from './zh-CN/marketing'
import responseCode from './zh-CN/responseCode'
import constants from './zh-CN/constants'
export default {
'global.siteName': '',
......@@ -75,4 +76,5 @@ export default {
...balance,
...marketing,
...responseCode,
...constants,
}
import order from './order';
export default {
...order,
};
\ No newline at end of file
export default {
'constants.order.1': '询价采购',
'constants.order.2': '需求采购',
'constants.order.3': '现货采购',
'constants.order.4': '集采',
'constants.order.5': '渠道直采',
'constants.order.6': '渠道现货',
'constants.order.7': '积分兑换',
'constants.order.8': '渠道积分兑换',
'constants.order.9': '采购询价合同',
'constants.order.10': '采购竞价合同',
'constants.order.11': '采购招标合同',
'constants.order.12': '请购单采购',
}
\ No newline at end of file
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