254 lines
8.6 KiB
JavaScript
254 lines
8.6 KiB
JavaScript
import getCdnUrl from "./getCdnUrl.js"
|
|
|
|
const ordStaEnum = {
|
|
post: 1,
|
|
get: 2,
|
|
unpay: 3
|
|
}
|
|
const ordStatusList = [
|
|
{ title: '寄件', val: ordStaEnum.post },
|
|
{ title: '收件', val: ordStaEnum.get },
|
|
{ title: '待付款', val: ordStaEnum.unpay }
|
|
]
|
|
|
|
const payTypeEnum = {
|
|
postNow: 1,
|
|
toNow: 2,
|
|
postMonth: 3,
|
|
toMonth: 4,
|
|
outNow: 5,
|
|
outMonth: 6,
|
|
other: 7,
|
|
}
|
|
|
|
const payTypeList = [
|
|
{ title: '寄付现结', val: payTypeEnum.postNow },
|
|
{ title: '到付现结', val: payTypeEnum.toNow },
|
|
{ title: '寄付月结', val: payTypeEnum.postMonth },
|
|
{ title: '到付月结', val: payTypeEnum.toMonth },
|
|
{ title: '第三方付款', val: payTypeEnum.outNow },
|
|
{ title: '第三方月结',val: payTypeEnum.outMonth },
|
|
{ title: '其他', val: payTypeEnum.other }
|
|
]
|
|
|
|
|
|
const dlvTypeEnum = {
|
|
waitpack: 1,
|
|
getpack: 2,
|
|
trans: 3,
|
|
dispatch: 4,
|
|
sign: 5,
|
|
obtain: 6,
|
|
waitdispatch: 7,
|
|
cancel: 8,
|
|
nullify: 9,
|
|
forward: 10,
|
|
back: 11,
|
|
other: 12,
|
|
}
|
|
|
|
const dlvTypeList = [
|
|
{ title: '待取件', val: dlvTypeEnum.waitpack },
|
|
{ title: '已取件', val: dlvTypeEnum.getpack },
|
|
{ title: '运输中', val: dlvTypeEnum.trans },
|
|
{ title: '派送中', val: dlvTypeEnum.dispatch },
|
|
{ title: '已签收', val: dlvTypeEnum.sign },
|
|
{ title: '已收取',val: dlvTypeEnum.obtain },
|
|
{ title: '待派送', val: dlvTypeEnum.waitdispatch },
|
|
{ title: '已取消', val: dlvTypeEnum.cancel },
|
|
{ title: '已作废', val: dlvTypeEnum.nullify },
|
|
{ title: '已转寄', val: dlvTypeEnum.forward },
|
|
{ title: '已退回', val: dlvTypeEnum.back },
|
|
{ title: '其他', val: dlvTypeEnum.other },
|
|
]
|
|
|
|
const dateTypeEnum = {
|
|
week: 1,
|
|
month: 2,
|
|
custom: 3,
|
|
}
|
|
|
|
const dateTypeList = [
|
|
{ title: '近一周', val: dateTypeEnum.week },
|
|
{ title: '近一月', val: dateTypeEnum.month },
|
|
{ title: '自定义时间', val: dateTypeEnum.custom },
|
|
]
|
|
|
|
|
|
const sendTypeEnum = {
|
|
home: 1,
|
|
tockRoom: 2,
|
|
container: 3,
|
|
}
|
|
const sendTypeList = [
|
|
{ title: '上门取件', val: sendTypeEnum.home },
|
|
{ title: '仓库收货', val: sendTypeEnum.tockRoom },
|
|
{ title: '整柜提货', val: sendTypeEnum.container }
|
|
]
|
|
|
|
const payStatusEnum = {
|
|
todo: 1,
|
|
done: 2,
|
|
other: 3,
|
|
}
|
|
|
|
const payStatusList = [
|
|
{ title: '待付款', val: payStatusEnum.todo },
|
|
{ title: '已付款', val: payStatusEnum.done },
|
|
{ title: '其他', val: payStatusEnum.other }
|
|
]
|
|
|
|
const wareTypeEnum = {
|
|
uncome: 1,
|
|
comed: 2,
|
|
toConfirm: 3,
|
|
}
|
|
|
|
const wareTypeList = [
|
|
{ title: '待入仓', val: wareTypeEnum.uncome },
|
|
{ title: '已入仓', val: wareTypeEnum.comed },
|
|
{ title: '待确认', val: wareTypeEnum.toConfirm }
|
|
]
|
|
|
|
const qingguanEnum = {
|
|
kuaidi: 1,
|
|
zishui: 2,
|
|
ziti: 3,
|
|
}
|
|
|
|
const qingguanList = [
|
|
{ title: '快递清关', val: qingguanEnum.kuaidi },
|
|
{ title: '自税清关', val: qingguanEnum.zishui },
|
|
{ title: '自清自提', val: qingguanEnum.ziti },
|
|
]
|
|
|
|
const baoguanEnum = {
|
|
kuaidi: 1,
|
|
tuishui: 2,
|
|
}
|
|
|
|
const baoguanList = [
|
|
{ title: '快递报关', val: baoguanEnum.kuaidi },
|
|
{ title: '退税报关', val: baoguanEnum.tuishui },
|
|
]
|
|
|
|
const packTypeEnum = {
|
|
zhixiang: 1,
|
|
muxiang: 2,
|
|
zhenzhi: 3,
|
|
other: 4
|
|
}
|
|
|
|
const packTypeList = [
|
|
{ title: '纸箱', val: packTypeEnum.zhixiang },
|
|
{ title: '木箱', val: packTypeEnum.muxiang },
|
|
{ title: '针织袋', val: packTypeEnum.zhenzhi },
|
|
{ title: '其他', val: packTypeEnum.other },
|
|
]
|
|
|
|
const kuaidiTypeEnum = {
|
|
shunfeng: 1,
|
|
debang: 2,
|
|
yunda: 3,
|
|
other: 4
|
|
}
|
|
|
|
const kuaidiTypeList = [
|
|
{ title: '顺丰', val: kuaidiTypeEnum.shunfeng },
|
|
{ title: '德邦', val: kuaidiTypeEnum.debang },
|
|
{ title: '韵达', val: kuaidiTypeEnum.yunda },
|
|
{ title: '其他', val: kuaidiTypeEnum.other },
|
|
]
|
|
|
|
const dateRangeList = [
|
|
{ title: '天', val: 1 },
|
|
{ title: '周', val: 2 },
|
|
{ title: '月', val: 3 },
|
|
{ title: '季度', val: 4 },
|
|
{ title: '年', val: 5 },
|
|
]
|
|
|
|
const pageEventNames = {
|
|
globalClick: "globalClick", // 全局页面 click事件
|
|
chooseAddress: "chooseAddress", // 地址选择
|
|
}
|
|
|
|
const addressNameCodeMap = [
|
|
{ nameKey: 'countryName', codeKey: 'country' },
|
|
{ nameKey: 'provinceName', codeKey: 'province' },
|
|
{ nameKey: 'cityName', codeKey: 'city' },
|
|
{ nameKey: 'countyName', codeKey: 'county' },
|
|
{ nameKey: 'townName', codeKey: 'town' }
|
|
]
|
|
|
|
const authCodeEnum = {
|
|
lanShou: 'emis:app:scan:10',
|
|
faJianScan: 'emis:app:scan:20',
|
|
daoJianScan: 'emis:app:scan:30',
|
|
paiJianScan: 'emis:app:scan:40',
|
|
qianShouScan: 'emis:app:scan:50',
|
|
}
|
|
|
|
const dealBtnMap = {
|
|
lanShou: { title: '揽收扫描', subTitle: "", icon: getCdnUrl(`home/lshsm.png`), url: 'deliveryDeal/pickUp', code: authCodeEnum.lanShou },
|
|
shouHuo: { title: '收货入库', subTitle: "", icon: getCdnUrl(`home/shhruku.png`), url: 'deliveryDeal/storage' },
|
|
faJianScan: { title: '发件扫描', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/qutgoingScanning', code: authCodeEnum.faJianScan },
|
|
daoJianScan: { title: '到件扫描', subTitle: "", icon: getCdnUrl(`home/daojsm.png`), url: 'deliveryDeal/arriveScanning', code: authCodeEnum.daoJianScan },
|
|
yunDanLuRu: { title: '运单录入', subTitle: "", icon: getCdnUrl(`home/ydluru.png`), url: 'post/openorder' },
|
|
qianShouScan: { title: '签收扫描', subTitle: "", icon: getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning', code: authCodeEnum.qianShouScan },
|
|
fenBoScan: { title: '分拨发件', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/distributeOutgoing' },
|
|
paiJianScan: { title: '派件扫描', subTitle: "", icon: getCdnUrl(`home/paijsm.png`), url: 'deliveryDeal/deliveryScanning', code: authCodeEnum.paiJianScan },
|
|
yunDanXiuGai: { title: '运单修改', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/openorder' },
|
|
baoJiaShiSuan: { title: '报价试算', subTitle: "", icon: getCdnUrl(`home/baojshs.png`), url: 'post/freightCalculate' },
|
|
wenTiJian: { title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
|
daoPaiScan: { title: '到派扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
|
woDeErWeiMa: { title: '我的二维码', subTitle: "", icon: getCdnUrl(`mine/zhshu.png`), url: 'user/exclusiveQrcode' },
|
|
mianDanDayin: { title: '面单打印', subTitle: "", icon: getCdnUrl(`home/mdbuda.png`), url: 'print/courierNote' },
|
|
kuaiJianGenZong: { title: '快件跟踪', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: '' },
|
|
heBaoScan: { title: '合包扫描', subTitle: "", icon: getCdnUrl(`home/hebaosm.png`), url: 'tms/coPackingScanning' },
|
|
zhuangGuiScan: { title: '装柜扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'deliveryDeal/shipping' },
|
|
faJianQingDan: { title: '发件清单', subTitle: "", icon: getCdnUrl(`home/fjqingdan.png`), url: 'deliveryDeal/sendList' },
|
|
chaiBaoScan: { title: '拆包扫描', subTitle: "", icon: getCdnUrl(`home/chaibsm.png`), url: 'tms/unpackingScanning' },
|
|
baoGuanScan: { title: '报关扫描', subTitle: "", icon: getCdnUrl(`home/baogsm.png`), url: 'tms/customsDeclarationScanning' },
|
|
qingGuanScan: { title: '清关扫描', subTitle: "", icon: getCdnUrl(`home/qinggsm.png`), url: 'tms/customsClearanceScanning' },
|
|
zhuangCheScan: { title: '装车扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'tms/entruckingScanning' },
|
|
zhengCheScan: { title: '整车扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'tms/allCartScanning' },
|
|
xieCheScan: { title: '卸车扫描', subTitle: "", icon: getCdnUrl(`home/xiechesm.png`), url: 'tms/untruckingScanning' },
|
|
daoJianQingDan: { title: '到件清单', subTitle: "", icon: getCdnUrl(`home/daojqd.png`), url: 'deliveryDeal/arriveList' },
|
|
paiJianQingDan: { title: '派件清单', subTitle: "", icon: getCdnUrl(`home/paijqd.png`), url: 'deliveryDeal/paiList' },
|
|
liuCangScan: { title: '留仓扫描', subTitle: "", icon: getCdnUrl(`home/licsm.png`), url: 'deliveryDeal/stayScanning' },
|
|
zhuanJianScan: { title: '转件扫描', subTitle: "", icon: getCdnUrl(`home/zhuanjsm.png`), url: 'deliveryDeal/translateScanning' },
|
|
jinCangChaXun: { title: '进仓查询', subTitle: "", icon: getCdnUrl(`home/jincchx.png`), url: '' },
|
|
yunDanChaXun: { title: '运单查询', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: 'post/query' },
|
|
shuiFeiYuGu: { title: '税费预估', subTitle: "", icon: getCdnUrl(`home/shfgs.png`), url: '' }
|
|
}
|
|
|
|
export {
|
|
addressNameCodeMap,
|
|
dateRangeList,
|
|
pageEventNames,
|
|
authCodeEnum,
|
|
dealBtnMap,
|
|
ordStaEnum,
|
|
ordStatusList,
|
|
payTypeEnum,
|
|
payTypeList,
|
|
dlvTypeEnum,
|
|
dlvTypeList,
|
|
dateTypeEnum,
|
|
dateTypeList,
|
|
sendTypeEnum,
|
|
sendTypeList,
|
|
payStatusEnum,
|
|
payStatusList,
|
|
wareTypeEnum,
|
|
wareTypeList,
|
|
qingguanEnum,
|
|
qingguanList,
|
|
baoguanEnum,
|
|
baoguanList,
|
|
packTypeEnum,
|
|
packTypeList,
|
|
kuaidiTypeEnum,
|
|
kuaidiTypeList,
|
|
} |