|
|
@@ -1,8 +1,8 @@ |
|
|
|
import {getStatusTag} from "utils/statusUtils/Base"; |
|
|
|
|
|
|
|
const pending = {color:"#f5a83d", eng:"Pending", cht:"待辦"} |
|
|
|
const toBePaid = {color:"#f5a83d", eng:"To be Paid", cht:"待付款"} |
|
|
|
const paid = {color:"#22a13f", eng:"Paid", cht:"已付款"} |
|
|
|
const pending = {color:"#f5a83d", eng:"Pending", cht:"待辦", cn: "待办"} |
|
|
|
const toBePaid = {color:"#f5a83d", eng:"To be Paid", cht:"待付款", cn: "待付款"} |
|
|
|
const paid = {color:"#22a13f", eng:"Paid", cht:"已付款", cn: "已付款"} |
|
|
|
|
|
|
|
export function getStatus_Cht(params) { |
|
|
|
let status = getStatus(params); |
|
|
@@ -14,6 +14,16 @@ export function getStatus_Eng(params) { |
|
|
|
return status?getStatusTag({color: status.color, textColor:status.textColor, text:status.eng }):""; |
|
|
|
} |
|
|
|
|
|
|
|
export function getStatus_i18n(params, locale) { |
|
|
|
let status = getStatus(params); |
|
|
|
if(locale === 'zh-CN') |
|
|
|
return status?getStatusTag({color: status.color, textColor:status.textColor, text:status.cn }):""; |
|
|
|
if(locale === 'zh-HK') |
|
|
|
return status?getStatusTag({color: status.color, textColor:status.textColor, text:status.cht }):""; |
|
|
|
return status?getStatusTag({color: status.color, textColor:status.textColor, text:status.eng }):""; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getStatus(params) { |
|
|
|
let status = params?.row?params.row.status:params; |
|
|
|
|
|
|
|