提交 adfd7fd4 authored 作者: zgy's avatar zgy

新增英文版订单

上级 6b0900e8
...@@ -248,8 +248,8 @@ public class TbCfOrderController extends AbstractController { ...@@ -248,8 +248,8 @@ public class TbCfOrderController extends AbstractController {
public R orderBasic(@PathVariable("orderId") String orderId) { public R orderBasic(@PathVariable("orderId") String orderId) {
//查询列表数据 //查询列表数据
OrderBasicVo orderBasicVo = tbCfOrderListService.queryorderBasic(orderId); OrderBasicVo orderBasicVo = tbCfOrderListService.queryorderBasic(orderId);
orderBasicVo.setAtcTime("35天"); orderBasicVo.setAtcTime("35天(day)");
orderBasicVo.setCountry("赞比亚"); orderBasicVo.setCountry("赞比亚(Zambia)");
orderBasicVo.setSource("APP"); orderBasicVo.setSource("APP");
orderBasicVo.setDeliveryOrderList(tbCfOrderListService.queryOrderDeliveryList(orderId)); orderBasicVo.setDeliveryOrderList(tbCfOrderListService.queryOrderDeliveryList(orderId));
return R.ok().put("orderBasicVo", orderBasicVo); return R.ok().put("orderBasicVo", orderBasicVo);
......
...@@ -677,6 +677,25 @@ orderStatusFormat = function (cellvalue) { ...@@ -677,6 +677,25 @@ orderStatusFormat = function (cellvalue) {
return returnStr; return returnStr;
}; };
orderStatusEnFormat = function (cellvalue) {
var returnStr = "unknown";
if (!!cellvalue) {
if (cellvalue == '0') {
returnStr = "cancel";
} else if (cellvalue == '10') {
returnStr = "unpaid";
} else if (cellvalue == '20') {
returnStr = "paid";
} else if (cellvalue == '40') {
returnStr = "shipped";
} else if (cellvalue == '50') {
returnStr = "successful trade";
} else if (cellvalue == '60') {
returnStr = "transaction closed";
}
}
return returnStr;
};
/** /**
* 支付状态翻译 ,10未支付,20已支付 * 支付状态翻译 ,10未支付,20已支付
...@@ -712,6 +731,26 @@ deliveryFlagFormat = function (cellvalue) { ...@@ -712,6 +731,26 @@ deliveryFlagFormat = function (cellvalue) {
} }
return returnStr; return returnStr;
} }
/**
* 快递状态
* @param cellvalue
* @returns {string}
*/
deliveryFlagEnFormat = function (cellvalue) {
var returnStr = "unshipped"
if (!!cellvalue || cellvalue == '0') {
if (cellvalue == '10') {
returnStr = "shipped";
} else if (cellvalue == '20') {
returnStr = "China warehouse";
} else if (cellvalue == '40') {
returnStr = "Africa warehouse";
} else if (cellvalue == '50') {
returnStr = "signed";
}
}
return returnStr;
}
/** /**
* 用户类型翻译 * 用户类型翻译
* @param cellvalue * @param cellvalue
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论