Commit 0eea2596 authored by dragondean@qq.com's avatar dragondean@qq.com

完善国际化提取

parent 946b8b13
const fs = require('fs'); const fs = require('fs');
const root = "./src" const root = "./src"
const savePath = "./i18n-messages.txt"
let allFiles = [] let allFiles = []
function getFiles(dir){ function getFiles(dir){
let files = fs.readdirSync(dir) let files = fs.readdirSync(dir)
files.forEach(file => { files.forEach(file => {
...@@ -14,6 +14,11 @@ function getFiles(dir){ ...@@ -14,6 +14,11 @@ function getFiles(dir){
} }
getFiles(root) getFiles(root)
/* allFiles = [
'src/views/ecw/box/shippingSea/utils.js',
'src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js'
]
console.log(allFiles) */
let messages = new Set() let messages = new Set()
allFiles.forEach(file => { allFiles.forEach(file => {
let data = fs.readFileSync(file, {encoding: 'utf-8'}) let data = fs.readFileSync(file, {encoding: 'utf-8'})
...@@ -25,4 +30,5 @@ allFiles.forEach(file => { ...@@ -25,4 +30,5 @@ allFiles.forEach(file => {
} }
}) })
fs.writeFileSync("./i18n-messages.txt", Array.from(messages).join("\n")) fs.writeFileSync("./i18n-messages.txt", Array.from(messages).join("\n"))
console.log("done!") console.log(messages)
\ No newline at end of file console.warn(`共提取 ${messages.size} 个待翻译内容,保存于${savePath}`)
\ No newline at end of file
...@@ -3,6 +3,9 @@ import * as _BOX from "@/api/ecw/box"; ...@@ -3,6 +3,9 @@ import * as _BOX from "@/api/ecw/box";
import FileSaver from "file-saver"; import FileSaver from "file-saver";
import Decimal from "decimal.js"; import Decimal from "decimal.js";
import i18n from "@/i18n"; import i18n from "@/i18n";
// 自动提取脚本只匹配$t,所以需要重新给个名字
const $t = i18n.t
/** /**
* 节点状态值 * 节点状态值
* *
...@@ -11,67 +14,67 @@ import i18n from "@/i18n"; ...@@ -11,67 +14,67 @@ import i18n from "@/i18n";
function getStatusName(statu) { function getStatusName(statu) {
const statusName = new Map(); const statusName = new Map();
statusName.set(11, i18n.t("未订舱")); statusName.set(11, $t("未订舱"));
statusName.set(12, i18n.t("已订舱")); statusName.set(12, $t("已订舱"));
statusName.set(21, i18n.t("未预装")); statusName.set(21, $t("未预装"));
statusName.set(22, i18n.t("预装中")); statusName.set(22, $t("预装中"));
statusName.set(23, i18n.t("预装审核中")); statusName.set(23, $t("预装审核中"));
statusName.set(24, i18n.t("预装审核失败")); statusName.set(24, $t("预装审核失败"));
statusName.set(25, i18n.t("预装审核成功")); statusName.set(25, $t("预装审核成功"));
statusName.set(2111, i18n.t("未理货")); statusName.set(2111, $t("未理货"));
statusName.set(2112, i18n.t("已理货")); statusName.set(2112, $t("已理货"));
statusName.set(31, i18n.t("未派车")); statusName.set(31, $t("未派车"));
statusName.set(32, i18n.t("已派车")); statusName.set(32, $t("已派车"));
statusName.set(41, i18n.t("未装柜")); statusName.set(41, $t("未装柜"));
statusName.set(42, i18n.t("装柜中")); statusName.set(42, $t("装柜中"));
statusName.set(43, i18n.t("已装柜、待封柜")); statusName.set(43, $t("已装柜、待封柜"));
statusName.set(44, i18n.t("封柜审核中")); statusName.set(44, $t("封柜审核中"));
statusName.set(45, i18n.t("封柜审核失败")); statusName.set(45, $t("封柜审核失败"));
statusName.set(46, i18n.t("封柜审核成功")); statusName.set(46, $t("封柜审核成功"));
statusName.set(47, i18n.t("已封柜,待出仓")); statusName.set(47, $t("已封柜,待出仓"));
statusName.set(51, i18n.t("未报关")); statusName.set(51, $t("未报关"));
statusName.set(52, i18n.t("报关中")); statusName.set(52, $t("报关中"));
statusName.set(53, i18n.t("已报关")); statusName.set(53, $t("已报关"));
statusName.set(61, i18n.t("未配船")); statusName.set(61, $t("未配船"));
statusName.set(62, i18n.t("已配船")); statusName.set(62, $t("已配船"));
statusName.set(71, i18n.t("未提单补料")); statusName.set(71, $t("未提单补料"));
statusName.set(72, i18n.t("已提单补料")); statusName.set(72, $t("已提单补料"));
statusName.set(81, i18n.t("未驳船")); statusName.set(81, $t("未驳船"));
statusName.set(82, i18n.t("已驳船")); statusName.set(82, $t("已驳船"));
statusName.set(91, i18n.t("未起运")); statusName.set(91, $t("未起运"));
statusName.set(92, i18n.t("已起运")); statusName.set(92, $t("已起运"));
statusName.set(101, i18n.t("未上传")); statusName.set(101, $t("未上传"));
statusName.set(102, i18n.t("已上传")); statusName.set(102, $t("已上传"));
statusName.set(111, i18n.t("未清关文件")); statusName.set(111, $t("未清关文件"));
statusName.set(112, i18n.t("已清关文件")); statusName.set(112, $t("已清关文件"));
statusName.set(121, i18n.t("未到港")); statusName.set(121, $t("未到港"));
statusName.set(122, i18n.t("已到港")); statusName.set(122, $t("已到港"));
statusName.set(131, i18n.t("未清关")); statusName.set(131, $t("未清关"));
statusName.set(132, i18n.t("已清关")); statusName.set(132, $t("已清关"));
statusName.set(181, i18n.t("未卸柜")); statusName.set(181, $t("未卸柜"));
statusName.set(182, i18n.t("卸柜中")); statusName.set(182, $t("卸柜中"));
statusName.set(183, i18n.t("卸柜审核中")); statusName.set(183, $t("卸柜审核中"));
statusName.set(184, i18n.t("卸柜审核失败")); statusName.set(184, $t("卸柜审核失败"));
statusName.set(185, i18n.t("卸柜审核成功")); statusName.set(185, $t("卸柜审核成功"));
statusName.set(186, i18n.t("已卸柜")); statusName.set(186, $t("已卸柜"));
statusName.set(191, i18n.t("未结算")); statusName.set(191, $t("未结算"));
statusName.set(192, i18n.t("结算中")); statusName.set(192, $t("结算中"));
statusName.set(193, i18n.t("已结算")); statusName.set(193, $t("已结算"));
return statusName.get(statu); return statusName.get(statu);
} }
...@@ -85,7 +88,7 @@ function seaBaseData() { ...@@ -85,7 +88,7 @@ function seaBaseData() {
return [ return [
[ [
{ {
title: i18n.t("订舱"), title: $t("订舱"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/dc-start.png"), start: require("@/assets/images/shipping/dc-start.png"),
end: require("@/assets/images/shipping/dc-end.png"), end: require("@/assets/images/shipping/dc-end.png"),
...@@ -106,7 +109,7 @@ function seaBaseData() { ...@@ -106,7 +109,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("排单"), title: $t("排单"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/yz-start.png"), start: require("@/assets/images/shipping/yz-start.png"),
wait: require("@/assets/images/shipping/yz-wait.png"), wait: require("@/assets/images/shipping/yz-wait.png"),
...@@ -139,7 +142,7 @@ function seaBaseData() { ...@@ -139,7 +142,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("理货"), title: $t("理货"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/lh-start.png"), start: require("@/assets/images/shipping/lh-start.png"),
wait: require("@/assets/images/shipping/lh-wait.png"), wait: require("@/assets/images/shipping/lh-wait.png"),
...@@ -159,7 +162,7 @@ function seaBaseData() { ...@@ -159,7 +162,7 @@ function seaBaseData() {
}, },
}, },
{ {
title: i18n.t("拖车"), title: $t("拖车"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/tc-start.png"), start: require("@/assets/images/shipping/tc-start.png"),
wait: require("@/assets/images/shipping/tc-wait.png"), wait: require("@/assets/images/shipping/tc-wait.png"),
...@@ -181,7 +184,7 @@ function seaBaseData() { ...@@ -181,7 +184,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("装柜"), title: $t("装柜"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/zg-start.png"), start: require("@/assets/images/shipping/zg-start.png"),
wait: require("@/assets/images/shipping/zg-wait.png"), wait: require("@/assets/images/shipping/zg-wait.png"),
...@@ -203,7 +206,7 @@ function seaBaseData() { ...@@ -203,7 +206,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("报关"), title: $t("报关"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/bg-start.png"), start: require("@/assets/images/shipping/bg-start.png"),
wait: require("@/assets/images/shipping/bg-wait.png"), wait: require("@/assets/images/shipping/bg-wait.png"),
...@@ -243,7 +246,7 @@ function seaBaseData() { ...@@ -243,7 +246,7 @@ function seaBaseData() {
}, },
}, },
{ {
title: i18n.t("提单补料"), title: $t("提单补料"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/tdcl-start.png"), start: require("@/assets/images/shipping/tdcl-start.png"),
wait: require("@/assets/images/shipping/tdcl-wait.png"), wait: require("@/assets/images/shipping/tdcl-wait.png"),
...@@ -265,7 +268,7 @@ function seaBaseData() { ...@@ -265,7 +268,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("驳船"), title: $t("驳船"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/bc-start.png"), start: require("@/assets/images/shipping/bc-start.png"),
wait: require("@/assets/images/shipping/bc-wait.png"), wait: require("@/assets/images/shipping/bc-wait.png"),
...@@ -287,7 +290,7 @@ function seaBaseData() { ...@@ -287,7 +290,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("起运"), title: $t("起运"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/qy-start.png"), start: require("@/assets/images/shipping/qy-start.png"),
wait: require("@/assets/images/shipping/qy-wait.png"), wait: require("@/assets/images/shipping/qy-wait.png"),
...@@ -309,7 +312,7 @@ function seaBaseData() { ...@@ -309,7 +312,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("提单Copy"), title: $t("提单Copy"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/tdcopy-start.png"), start: require("@/assets/images/shipping/tdcopy-start.png"),
wait: require("@/assets/images/shipping/tdcopy-wait.png"), wait: require("@/assets/images/shipping/tdcopy-wait.png"),
...@@ -335,7 +338,7 @@ function seaBaseData() { ...@@ -335,7 +338,7 @@ function seaBaseData() {
wait: require("@/assets/images/shipping/qg-wait.png"), wait: require("@/assets/images/shipping/qg-wait.png"),
end: require("@/assets/images/shipping/qg-end.png"), end: require("@/assets/images/shipping/qg-end.png"),
}, },
title: i18n.t("清关文件"), title: $t("清关文件"),
dataKey: "11", // 字典数据键值 dataKey: "11", // 字典数据键值
/** /**
* 清关文件状态:111、未清关文件;112、已清关文件 * 清关文件状态:111、未清关文件;112、已清关文件
...@@ -351,7 +354,7 @@ function seaBaseData() { ...@@ -351,7 +354,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("到港"), title: $t("到港"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/dg-start.png"), start: require("@/assets/images/shipping/dg-start.png"),
wait: require("@/assets/images/shipping/dg-wait.png"), wait: require("@/assets/images/shipping/dg-wait.png"),
...@@ -373,7 +376,7 @@ function seaBaseData() { ...@@ -373,7 +376,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("清关"), title: $t("清关"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/qg-start.png"), start: require("@/assets/images/shipping/qg-start.png"),
wait: require("@/assets/images/shipping/qg-wait.png"), wait: require("@/assets/images/shipping/qg-wait.png"),
...@@ -395,7 +398,7 @@ function seaBaseData() { ...@@ -395,7 +398,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("卸柜"), title: $t("卸柜"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/xg-start.png"), start: require("@/assets/images/shipping/xg-start.png"),
wait: require("@/assets/images/shipping/xg-wait.png"), wait: require("@/assets/images/shipping/xg-wait.png"),
...@@ -417,7 +420,7 @@ function seaBaseData() { ...@@ -417,7 +420,7 @@ function seaBaseData() {
], ],
[ [
{ {
title: i18n.t("结算"), title: $t("结算"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/js-start.png"), start: require("@/assets/images/shipping/js-start.png"),
wait: require("@/assets/images/shipping/js-wait.png"), wait: require("@/assets/images/shipping/js-wait.png"),
...@@ -449,7 +452,7 @@ function seaAirBaseData() { ...@@ -449,7 +452,7 @@ function seaAirBaseData() {
return [ return [
[ [
{ {
title: i18n.t("订舱"), title: $t("订舱"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/dc-start.png"), start: require("@/assets/images/shipping/dc-start.png"),
end: require("@/assets/images/shipping/dc-end.png"), end: require("@/assets/images/shipping/dc-end.png"),
...@@ -470,7 +473,7 @@ function seaAirBaseData() { ...@@ -470,7 +473,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("排单"), title: $t("排单"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/yz-start.png"), start: require("@/assets/images/shipping/yz-start.png"),
wait: require("@/assets/images/shipping/yz-wait.png"), wait: require("@/assets/images/shipping/yz-wait.png"),
...@@ -503,7 +506,7 @@ function seaAirBaseData() { ...@@ -503,7 +506,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("理货"), title: $t("理货"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/lh-start.png"), start: require("@/assets/images/shipping/lh-start.png"),
wait: require("@/assets/images/shipping/lh-wait.png"), wait: require("@/assets/images/shipping/lh-wait.png"),
...@@ -523,7 +526,7 @@ function seaAirBaseData() { ...@@ -523,7 +526,7 @@ function seaAirBaseData() {
}, },
}, },
{ {
title: i18n.t("拖车"), title: $t("拖车"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/tc-start.png"), start: require("@/assets/images/shipping/tc-start.png"),
wait: require("@/assets/images/shipping/tc-wait.png"), wait: require("@/assets/images/shipping/tc-wait.png"),
...@@ -545,7 +548,7 @@ function seaAirBaseData() { ...@@ -545,7 +548,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("装柜"), title: $t("装柜"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/zg-start.png"), start: require("@/assets/images/shipping/zg-start.png"),
wait: require("@/assets/images/shipping/zg-wait.png"), wait: require("@/assets/images/shipping/zg-wait.png"),
...@@ -567,7 +570,7 @@ function seaAirBaseData() { ...@@ -567,7 +570,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("报关"), title: $t("报关"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/bg-start.png"), start: require("@/assets/images/shipping/bg-start.png"),
wait: require("@/assets/images/shipping/bg-wait.png"), wait: require("@/assets/images/shipping/bg-wait.png"),
...@@ -587,7 +590,7 @@ function seaAirBaseData() { ...@@ -587,7 +590,7 @@ function seaAirBaseData() {
}, },
}, },
{ {
title: i18n.t("配船"), title: $t("配船"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/pc-start.png"), start: require("@/assets/images/shipping/pc-start.png"),
wait: require("@/assets/images/shipping/pc-wait.png"), wait: require("@/assets/images/shipping/pc-wait.png"),
...@@ -607,7 +610,7 @@ function seaAirBaseData() { ...@@ -607,7 +610,7 @@ function seaAirBaseData() {
}, },
}, },
{ {
title: i18n.t("提单补料"), title: $t("提单补料"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/tdcl-start.png"), start: require("@/assets/images/shipping/tdcl-start.png"),
wait: require("@/assets/images/shipping/tdcl-wait.png"), wait: require("@/assets/images/shipping/tdcl-wait.png"),
...@@ -629,7 +632,7 @@ function seaAirBaseData() { ...@@ -629,7 +632,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("驳船"), title: $t("驳船"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/bc-start.png"), start: require("@/assets/images/shipping/bc-start.png"),
wait: require("@/assets/images/shipping/bc-wait.png"), wait: require("@/assets/images/shipping/bc-wait.png"),
...@@ -651,7 +654,7 @@ function seaAirBaseData() { ...@@ -651,7 +654,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("起运"), title: $t("起运"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/qy-start.png"), start: require("@/assets/images/shipping/qy-start.png"),
wait: require("@/assets/images/shipping/qy-wait.png"), wait: require("@/assets/images/shipping/qy-wait.png"),
...@@ -673,7 +676,7 @@ function seaAirBaseData() { ...@@ -673,7 +676,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("提单Copy"), title: $t("提单Copy"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/tdcopy-start.png"), start: require("@/assets/images/shipping/tdcopy-start.png"),
wait: require("@/assets/images/shipping/tdcopy-wait.png"), wait: require("@/assets/images/shipping/tdcopy-wait.png"),
...@@ -699,7 +702,7 @@ function seaAirBaseData() { ...@@ -699,7 +702,7 @@ function seaAirBaseData() {
wait: require("@/assets/images/shipping/qg-wait.png"), wait: require("@/assets/images/shipping/qg-wait.png"),
end: require("@/assets/images/shipping/qg-end.png"), end: require("@/assets/images/shipping/qg-end.png"),
}, },
title: i18n.t("清关文件"), title: $t("清关文件"),
dataKey: "11", // 字典数据键值 dataKey: "11", // 字典数据键值
/** /**
* 清关文件状态:111、未清关文件;112、已清关文件 * 清关文件状态:111、未清关文件;112、已清关文件
...@@ -715,7 +718,7 @@ function seaAirBaseData() { ...@@ -715,7 +718,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("到港"), title: $t("到港"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/dg-start.png"), start: require("@/assets/images/shipping/dg-start.png"),
wait: require("@/assets/images/shipping/dg-wait.png"), wait: require("@/assets/images/shipping/dg-wait.png"),
...@@ -737,7 +740,7 @@ function seaAirBaseData() { ...@@ -737,7 +740,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("清关"), title: $t("清关"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/qg-start.png"), start: require("@/assets/images/shipping/qg-start.png"),
wait: require("@/assets/images/shipping/qg-wait.png"), wait: require("@/assets/images/shipping/qg-wait.png"),
...@@ -759,7 +762,7 @@ function seaAirBaseData() { ...@@ -759,7 +762,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("二程起飞"), title: $t("二程起飞"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/ecqf-start.png"), start: require("@/assets/images/shipping/ecqf-start.png"),
wait: require("@/assets/images/shipping/ecqf-wait.png"), wait: require("@/assets/images/shipping/ecqf-wait.png"),
...@@ -781,7 +784,7 @@ function seaAirBaseData() { ...@@ -781,7 +784,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("二程到港"), title: $t("二程到港"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/ecdg-start.png"), start: require("@/assets/images/shipping/ecdg-start.png"),
wait: require("@/assets/images/shipping/ecdg-wait.png"), wait: require("@/assets/images/shipping/ecdg-wait.png"),
...@@ -803,7 +806,7 @@ function seaAirBaseData() { ...@@ -803,7 +806,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("卸柜"), title: $t("卸柜"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/xg-start.png"), start: require("@/assets/images/shipping/xg-start.png"),
wait: require("@/assets/images/shipping/xg-wait.png"), wait: require("@/assets/images/shipping/xg-wait.png"),
...@@ -825,7 +828,7 @@ function seaAirBaseData() { ...@@ -825,7 +828,7 @@ function seaAirBaseData() {
], ],
[ [
{ {
title: i18n.t("结算"), title: $t("结算"),
imgSrc: { imgSrc: {
start: require("@/assets/images/shipping/js-start.png"), start: require("@/assets/images/shipping/js-start.png"),
wait: require("@/assets/images/shipping/js-wait.png"), wait: require("@/assets/images/shipping/js-wait.png"),
...@@ -861,254 +864,254 @@ function getColmnMapping() { ...@@ -861,254 +864,254 @@ function getColmnMapping() {
key: "sono", key: "sono",
}, },
{ {
title: i18n.t("船公司类型"), title: $t("船公司类型"),
key: "shipCompanyType", key: "shipCompanyType",
type: "supplier", type: "supplier",
}, },
{ {
title: i18n.t("驳船港"), title: $t("驳船港"),
key: "bargePortId", key: "bargePortId",
type: "dock", type: "dock",
}, },
{ {
title: i18n.t("大船港"), title: $t("大船港"),
key: "bigPortId", key: "bigPortId",
type: "dock", type: "dock",
}, },
{ {
title: i18n.t("目的港"), title: $t("目的港"),
key: "destPortId", key: "destPortId",
type: "dock", type: "dock",
}, },
{ {
title: i18n.t("订舱公司"), title: $t("订舱公司"),
key: "spaceCompanyId", key: "spaceCompanyId",
type: "supplier", type: "supplier",
}, },
{ {
title: i18n.t("预计驳船时间"), title: $t("预计驳船时间"),
key: "bargeTime", key: "bargeTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("预计开船时间"), title: $t("预计开船时间"),
key: "sailTime", key: "sailTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
preInstallInfo: [ preInstallInfo: [
{ {
title: i18n.t("预装时间"), title: $t("预装时间"),
key: "createTime", key: "createTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
trailerInfo: [ trailerInfo: [
{ {
title: i18n.t("货柜号"), title: $t("货柜号"),
key: "tlContainerNo", key: "tlContainerNo",
}, },
{ {
title: i18n.t("封条"), title: $t("封条"),
key: "tlStripSeal", key: "tlStripSeal",
}, },
{ {
title: i18n.t("拖车公司"), title: $t("拖车公司"),
key: "tlCompanyId", key: "tlCompanyId",
type: "supplier", type: "supplier",
}, },
{ {
title: i18n.t("拖车时间"), title: $t("拖车时间"),
key: "tlTime", key: "tlTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("车牌"), title: $t("车牌"),
key: "tlLicensePlate", key: "tlLicensePlate",
}, },
{ {
title: i18n.t("司机"), title: $t("司机"),
key: "tlDriver", key: "tlDriver",
}, },
{ {
title: i18n.t("联系方式"), title: $t("联系方式"),
key: "tlDriverContact", key: "tlDriverContact",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
tallyInfo: [ tallyInfo: [
{ {
title: i18n.t("完成理货时间"), title: $t("完成理货时间"),
key: "tyTime", key: "tyTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "tyOperator", key: "tyOperator",
}, },
], ],
agentInfo: [ agentInfo: [
{ {
title: i18n.t("代理商"), title: $t("代理商"),
key: "agentId", key: "agentId",
type: "supplier", type: "supplier",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
cabinetInfo: [ cabinetInfo: [
{ {
title: i18n.t("到仓时间"), title: $t("到仓时间"),
key: "ldInWarehouseTime", key: "ldInWarehouseTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("仓库类型"), title: $t("仓库类型"),
key: "ldWarehouseType", key: "ldWarehouseType",
type: "warehouse", type: "warehouse",
}, },
{ {
title: i18n.t("装柜时间"), title: $t("装柜时间"),
key: "ldBoxTime", key: "ldBoxTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("出仓时间"), title: $t("出仓时间"),
key: "ldOutWarehouseTime", key: "ldOutWarehouseTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
customsInfo: [ customsInfo: [
{ {
title: i18n.t("报关方式"), title: $t("报关方式"),
key: "dcCustomsType", key: "dcCustomsType",
type: "shipping_customs_type", type: "shipping_customs_type",
}, },
{ {
title: i18n.t("报关行公司"), title: $t("报关行公司"),
key: "dcCompanyId", key: "dcCompanyId",
type: "supplier", type: "supplier",
}, },
{ {
title: i18n.t("截关时间"), title: $t("截关时间"),
key: "dcCutOffTime", key: "dcCutOffTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("状态"), title: $t("状态"),
key: "dcCustomsStatus", key: "dcCustomsStatus",
type: "shipping_dcCustoms_status", type: "shipping_dcCustoms_status",
}, },
{ {
title: i18n.t("放行时间"), title: $t("放行时间"),
key: "dcPassTime", key: "dcPassTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("新封条"), title: $t("新封条"),
key: "dcStripSeal", key: "dcStripSeal",
}, },
{ {
title: i18n.t("柜重"), title: $t("柜重"),
key: "dcBoxWgt", key: "dcBoxWgt",
}, },
{ {
title: i18n.t("货重"), title: $t("货重"),
key: "dcGoodsWgt", key: "dcGoodsWgt",
}, },
{ {
title: i18n.t("VGM重量"), title: $t("VGM重量"),
key: "dcVgmWgt", key: "dcVgmWgt",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
shipConfigInfo: [ shipConfigInfo: [
{ {
title: i18n.t("已配/免配"), title: $t("已配/免配"),
key: "saExmtStatus", key: "saExmtStatus",
type: "saExmtStatus", type: "saExmtStatus",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
ladingBillInfo: [ ladingBillInfo: [
{ {
title: i18n.t("清关代理"), title: $t("清关代理"),
key: "agentId", key: "agentId",
type: "supplier", type: "supplier",
}, },
{ {
title: i18n.t("提单品名"), title: $t("提单品名"),
key: "blMblNo", key: "blMblNo",
}, },
{ {
title: i18n.t("通知方"), title: $t("通知方"),
key: "notifyingId", key: "notifyingId",
type: "user", type: "user",
}, },
{ {
title: i18n.t("提单备注"), title: $t("提单备注"),
key: "remarks", key: "remarks",
}, },
{ {
title: i18n.t("数量(个)"), title: $t("数量(个)"),
key: "packageNum", key: "packageNum",
}, },
{ {
title: i18n.t("体积"), title: $t("体积"),
key: "cbm", key: "cbm",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
bargeInfo: [ bargeInfo: [
{ {
title: i18n.t("驳船"), title: $t("驳船"),
key: "bgExmtStatus", key: "bgExmtStatus",
type: "bgExmtStatus", type: "bgExmtStatus",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
shippingInfo: [ shippingInfo: [
{ {
title: i18n.t("实际开船时间"), title: $t("实际开船时间"),
key: "dtRealShipTime", key: "dtRealShipTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("预计到港时间"), title: $t("预计到港时间"),
key: "dtEstArrivalTime", key: "dtEstArrivalTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
...@@ -1124,128 +1127,128 @@ function getColmnMapping() { ...@@ -1124,128 +1127,128 @@ function getColmnMapping() {
type: "isFile", type: "isFile",
}, },
{ {
title: i18n.t("出单方式"), title: $t("出单方式"),
key: "cdOutBillType", key: "cdOutBillType",
type: "billingMethod", type: "billingMethod",
}, },
{ {
title: i18n.t("寄送时间"), title: $t("寄送时间"),
key: "cdSendTime", key: "cdSendTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
arrivalInfo: [ arrivalInfo: [
{ {
title: i18n.t("实际到港时间"), title: $t("实际到港时间"),
key: "apRealTime", key: "apRealTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("确认到港"), title: $t("确认到港"),
key: "apConfirmTime", key: "apConfirmTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("卸港时间"), title: $t("卸港时间"),
key: "apUnloadPortTime", key: "apUnloadPortTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
clearanceInfo: [ clearanceInfo: [
{ {
title: i18n.t("预计清关时间"), title: $t("预计清关时间"),
key: "clEstTime", key: "clEstTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("清关时间"), title: $t("清关时间"),
key: "clClearTime", key: "clClearTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
takeOffInfo: [ takeOffInfo: [
{ {
title: i18n.t("预计头程时间"), title: $t("预计头程时间"),
key: "estHeadTime", key: "estHeadTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("实际头程时间"), title: $t("实际头程时间"),
key: "actHeadTime", key: "actHeadTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("预计二程时间"), title: $t("预计二程时间"),
key: "estSecondTime", key: "estSecondTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
airArrivalInfo: [ airArrivalInfo: [
{ {
title: i18n.t("预计到达时间"), title: $t("预计到达时间"),
key: "estTime", key: "estTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("实际到达时间"), title: $t("实际到达时间"),
key: "actTime", key: "actTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("实际二程时间"), title: $t("实际二程时间"),
key: "actSecondTime", key: "actSecondTime",
type: "datetime", type: "datetime",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
cabinetUnloadInfo: [ cabinetUnloadInfo: [
{ {
title: i18n.t("到仓时间"), title: $t("到仓时间"),
key: "ulWarehouseTime", key: "ulWarehouseTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("卸货时间"), title: $t("卸货时间"),
key: "ulBoxTime", key: "ulBoxTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
settlementInfo: [ settlementInfo: [
{ {
title: i18n.t("可结算"), title: $t("可结算"),
key: "slSettlementTime", key: "slSettlementTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("已结算"), title: $t("已结算"),
key: "slSettledTime", key: "slSettledTime",
type: "date", type: "date",
}, },
{ {
title: i18n.t("业务员"), title: $t("业务员"),
key: "operator", key: "operator",
}, },
], ],
...@@ -1260,44 +1263,44 @@ const constantDict = { ...@@ -1260,44 +1263,44 @@ const constantDict = {
saExmtStatus: [ saExmtStatus: [
{ {
value: "1", value: "1",
label: i18n.t("免配"), label: $t("免配"),
}, },
{ {
value: "2", value: "2",
label: i18n.t("已配"), label: $t("已配"),
}, },
], ],
// 驳船 // 驳船
bgExmtStatus: [ bgExmtStatus: [
{ {
value: "1", value: "1",
label: i18n.t("无驳船"), label: $t("无驳船"),
}, },
{ {
value: "2", value: "2",
label: i18n.t("有驳船"), label: $t("有驳船"),
}, },
], ],
// 出单方式 // 出单方式
billingMethod: [ billingMethod: [
{ {
value: "1", value: "1",
label: i18n.t("电放"), label: $t("电放"),
}, },
{ {
value: "2", value: "2",
label: i18n.t("正本"), label: $t("正本"),
}, },
], ],
// 是否有文件 // 是否有文件
isFile: [ isFile: [
{ {
value: "1", value: "1",
label: i18n.t("无需"), label: $t("无需"),
}, },
{ {
value: "2", value: "2",
label: i18n.t("已做"), label: $t("已做"),
}, },
], ],
}; };
......
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