Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
9ecf68fb
Commit
9ecf68fb
authored
Feb 17, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 补充订单类型翻译
parent
7a77a892
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
96 additions
and
24 deletions
+96
-24
order.ts
src/constants/order.ts
+27
-24
en-US.ts
src/locales/en-US.ts
+2
-0
index.ts
src/locales/en-US/constants/index.ts
+6
-0
order.ts
src/locales/en-US/constants/order.ts
+15
-0
ko-KR.ts
src/locales/ko-KR.ts
+2
-0
index.ts
src/locales/ko-KR/constants/index.ts
+6
-0
order.ts
src/locales/ko-KR/constants/order.ts
+15
-0
zh-CN.ts
src/locales/zh-CN.ts
+2
-0
index.ts
src/locales/zh-CN/constants/index.ts
+6
-0
order.ts
src/locales/zh-CN/constants/order.ts
+15
-0
No files found.
src/constants/order.ts
View file @
9ecf68fb
...
...
@@ -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
...
...
src/locales/en-US.ts
View file @
9ecf68fb
...
...
@@ -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
,
}
src/locales/en-US/constants/index.ts
0 → 100644
View file @
9ecf68fb
import
order
from
'./order'
;
export
default
{
...
order
,
};
\ No newline at end of file
src/locales/en-US/constants/order.ts
0 → 100644
View file @
9ecf68fb
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
src/locales/ko-KR.ts
View file @
9ecf68fb
...
...
@@ -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
,
}
src/locales/ko-KR/constants/index.ts
0 → 100644
View file @
9ecf68fb
import
order
from
'./order'
;
export
default
{
...
order
,
};
\ No newline at end of file
src/locales/ko-KR/constants/order.ts
0 → 100644
View file @
9ecf68fb
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
src/locales/zh-CN.ts
View file @
9ecf68fb
...
...
@@ -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
,
}
src/locales/zh-CN/constants/index.ts
0 → 100644
View file @
9ecf68fb
import
order
from
'./order'
;
export
default
{
...
order
,
};
\ No newline at end of file
src/locales/zh-CN/constants/order.ts
0 → 100644
View file @
9ecf68fb
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment