1
This commit is contained in:
parent
66a40bbec4
commit
714a300a10
83
docs/部署-本地打包丢文件问题与修复.md
Normal file
83
docs/部署-本地打包丢文件问题与修复.md
Normal file
@ -0,0 +1,83 @@
|
||||
# 部署-本地打包丢文件问题与修复
|
||||
|
||||
## 现象
|
||||
|
||||
`npm run deploy` 在本地构建、上传都正常,最后报:
|
||||
|
||||
```
|
||||
❌ 新版本 index.html 缺失或为空,取消切换
|
||||
```
|
||||
|
||||
(来自 `scripts/remote/deploy.sh` 的打包完整性校验,`exit 1`;**线上版本未被切换,站点不受影响**。)
|
||||
|
||||
服务器上留下一个残缺版本目录(如 `releases/v20261010_175526_29776/`):
|
||||
有 `assets/`(743 个文件)、`favicon.ico`、`hikvision/`、`logo/`,**唯独没有 `index.html`**。
|
||||
|
||||
## 根因
|
||||
|
||||
**本地 `tar` 打包时把 `dist/index.html` 静默丢掉了**,上传的 `dist.tar.gz` 里根本没有它。
|
||||
|
||||
Windows 自带的 `tar.exe` 是 bsdtar(libarchive)。libarchive 有一条「不要把归档文件加进归档自己」的保护:
|
||||
|
||||
```c
|
||||
/* libarchive/archive_write_open_filename.c —— 打开输出文件时记录其身份 */
|
||||
if (S_ISREG(st.st_mode))
|
||||
archive_write_set_skip_file(a, st.st_dev, st.st_ino);
|
||||
|
||||
/* libarchive/archive_write.c —— 写入每条 entry 时比对 */
|
||||
if (archive_entry_ino_is_set(entry) &&
|
||||
archive_entry_dev(entry) == (dev_t)a->skip_file_dev &&
|
||||
archive_entry_ino64(entry) == a->skip_file_ino) {
|
||||
archive_set_error(&a->archive, EIO, "Can't add archive to itself");
|
||||
return (ARCHIVE_FAILED); /* 只让这一条 entry 失败,tar 退出码仍是 0 */
|
||||
}
|
||||
```
|
||||
|
||||
Windows 下这组 `(dev, ino)` 文件身份信息不可靠:当**压缩包与被打包目录同处一个目录/同一个卷**时,
|
||||
目录里某个普通文件会被误判成「归档自身」而被丢弃。实测丢的正好是 `dist/index.html`。
|
||||
|
||||
两个致命放大点:
|
||||
|
||||
1. **退出码 0**:只给该 entry 返回 `ARCHIVE_FAILED`,不是致命错误 → `deploy.mjs` 里 `run('tar', ...)` 判不出来。
|
||||
2. **本地只校验 `dist/`,不校验压缩包** → 坏产物被上传,直到远端校验才失败。
|
||||
|
||||
## 复现与证据(本地实测)
|
||||
|
||||
```powershell
|
||||
# 压缩包放在项目目录里(旧写法)——丢文件,但退出码 0
|
||||
tar -czf dist.tar.gz -C dist .
|
||||
# stderr: Can't add archive to itself
|
||||
# 条目 780,无 ./index.html
|
||||
|
||||
# 压缩包换到别的位置(或换个不会被误判的名字)——正常
|
||||
tar -czf "$env:TEMP\x.tar.gz" -C dist .
|
||||
# 条目 781,含 ./index.html
|
||||
```
|
||||
|
||||
两次归档**只差 `index.html` 一个文件**。
|
||||
|
||||
因为是文件身份信息「撞车」,取决于该目录的创建/删除历史(MFT 索引复用等),所以**表现为偶发**:
|
||||
同样的命令换名/换目录/重跑就可能正常。
|
||||
|
||||
## 修复
|
||||
|
||||
改 `scripts/deploy.mjs`:
|
||||
|
||||
1. **压缩包改放系统临时目录**(`os.tmpdir()`)——跨卷时 `dev` 不同,不可能再被误判;
|
||||
远端解压用的文件名仍是 `dist.tar.gz`(`TARBALL_NAME`),只是本地路径变了。
|
||||
2. **打包后回读压缩包校验**(`tar -tzf`),规则与远端 `deploy.sh` 一致:
|
||||
`index.html` + `index.html` 里引用的所有 `/assets/*.js|css` 必须齐全;缺文件则**重新打包一次**,仍缺才中止。
|
||||
3. 本地 `index.html` 校验补上「非空」判断。
|
||||
|
||||
另外新增两个排查开关(不改线上行为):
|
||||
|
||||
```bash
|
||||
npm run deploy -- --pack-only # 构建 + 打包 + 校验,不上传
|
||||
npm run deploy -- --pack-only --skip-build # 复用已有 dist,只验证打包
|
||||
```
|
||||
|
||||
## 排查/验证手法
|
||||
|
||||
- 看压缩包内容:`tar -tzf <归档> | findstr index.html`(**必须确认有此条目**)
|
||||
- 看到 `Can't add archive to itself` 警告即为本条问题的特征
|
||||
- 远端校验失败留下的版本目录可安全删除(脚本会按 KEEP 数量自然淘汰,不影响 `current`)
|
||||
@ -6,6 +6,8 @@
|
||||
* 依赖本机已安装:ssh、scp、tar(Windows 10 1803+ 自带 OpenSSH 客户端与 bsdtar)。
|
||||
*
|
||||
* 用法:npm run deploy
|
||||
* npm run deploy -- --pack-only (只打包+校验,不上传,用于排查)
|
||||
* npm run deploy -- --pack-only --skip-build
|
||||
*/
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { existsSync, readFileSync, rmSync } from 'node:fs';
|
||||
@ -33,10 +35,23 @@ const LOCAL_DIST = path.resolve('dist');
|
||||
const SSH_KEY = path.isAbsolute(config.sshKey) ? config.sshKey : path.join(os.homedir(), '.ssh', config.sshKey);
|
||||
const SSH_OPTS = ['-i', SSH_KEY, '-o', 'StrictHostKeyChecking=no'];
|
||||
const HOST = `${USER}@${IP}`;
|
||||
const TARBALL = 'dist.tar.gz';
|
||||
|
||||
// 远端解压用的固定文件名(remote/deploy.sh 里写死了 dist.tar.gz)
|
||||
const TARBALL_NAME = 'dist.tar.gz';
|
||||
// ⚠️ 本地压缩包必须放在项目目录之外(这里用系统临时目录)。
|
||||
// Windows 自带 bsdtar(tar.exe)有一条"不要把自己加进自己"的保护,按 (dev, ino) 判断文件身份;
|
||||
// 而 Windows 下该身份信息不可靠:当压缩包与被打包目录同处一个目录/卷时,
|
||||
// 某个普通文件会被误判为"归档自身"而被**静默丢弃**(实测丢 dist/index.html),
|
||||
// 且 tar 退出码仍为 0,导致坏产物被上传、远端校验才报错。
|
||||
// 详见 docs/部署-本地打包丢文件问题与修复.md
|
||||
const TARBALL = path.join(os.tmpdir(), `new3-dist-${process.pid}-${Date.now()}.tar.gz`);
|
||||
|
||||
const NPM = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
||||
|
||||
// --pack-only:只做构建+打包+校验,不上传(排查用);配合 --skip-build 复用已有 dist
|
||||
const PACK_ONLY = process.argv.includes('--pack-only');
|
||||
const SKIP_BUILD = process.argv.includes('--skip-build');
|
||||
|
||||
const RELEASE_NAME = `v${timestamp()}_${process.pid}`; // 版本号(带 PID,避免并发/重复发布冲突)
|
||||
const REMOTE_RELEASE = `${BASE_PATH}/releases/${RELEASE_NAME}`;
|
||||
|
||||
@ -73,24 +88,82 @@ function run(cmd, args, opts = {}) {
|
||||
if (res.status !== 0) process.exit(res.status ?? 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列出压缩包内的条目(去掉 tar 输出的 './' 前缀),失败直接中止。
|
||||
*/
|
||||
function tarList(archive) {
|
||||
const res = spawnSync('tar', ['-tzf', archive], { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 });
|
||||
if (res.error || res.status !== 0) {
|
||||
console.error(`❌ 读取压缩包内容失败: ${res.error ? res.error.message : (res.stderr || '').trim()}`);
|
||||
process.exit(1);
|
||||
}
|
||||
return res.stdout
|
||||
.split(/\r?\n/)
|
||||
.filter(Boolean)
|
||||
.map((name) => name.replace(/^\.\//, ''));
|
||||
}
|
||||
|
||||
/**
|
||||
* 压缩 dist 并校验压缩包内容。
|
||||
*
|
||||
* 不能只看 tar 的退出码:Windows bsdtar 丢文件时仍返回 0(见 TARBALL 处的说明),
|
||||
* 因此这里按**与远端 deploy.sh 相同的规则**回读压缩包校验,缺文件则重新打包,
|
||||
* 仍缺则本地中止,绝不把坏产物传上去。
|
||||
*/
|
||||
function packDist() {
|
||||
const html = readFileSync(path.join(LOCAL_DIST, 'index.html'), 'utf8');
|
||||
const refs = [...html.matchAll(/\/assets\/[A-Za-z0-9._-]+\.(?:js|css)/g)].map((m) => m[0].slice(1));
|
||||
|
||||
for (let attempt = 1; attempt <= 2; attempt++) {
|
||||
rmSync(TARBALL, { force: true });
|
||||
run('tar', ['-czf', TARBALL, '-C', LOCAL_DIST, '.']);
|
||||
|
||||
const entries = new Set(tarList(TARBALL));
|
||||
const missing = [];
|
||||
if (!entries.has('index.html')) missing.push('index.html');
|
||||
for (const ref of refs) if (!entries.has(ref)) missing.push(ref);
|
||||
|
||||
if (missing.length === 0) {
|
||||
console.log(`📦 压缩包校验通过(${entries.size} 个条目,index.html + ${refs.length} 个入口资源齐全)`);
|
||||
return;
|
||||
}
|
||||
|
||||
console.error(`⚠️ 压缩包缺少文件: ${[...new Set(missing)].join(', ')}(疑似 bsdtar 误判“归档自身”导致丢文件)`);
|
||||
if (attempt === 2) {
|
||||
console.error('❌ 重新打包后仍然缺文件,中止发布');
|
||||
process.exit(1);
|
||||
}
|
||||
console.log('🔁 重新打包…');
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`🚀 开始发布版本: ${RELEASE_NAME}`);
|
||||
|
||||
try {
|
||||
// 1. 本地打包(失败立即中止,防止把坏产物发到线上)
|
||||
run(NPM, ['run', 'build']);
|
||||
if (!SKIP_BUILD) run(NPM, ['run', 'build']);
|
||||
|
||||
// 2. 校验本地产物完整性
|
||||
if (!existsSync(path.join(LOCAL_DIST, 'index.html')) || !existsSync(path.join(LOCAL_DIST, 'assets'))) {
|
||||
console.error('❌ 本地构建产物不完整(缺少 index.html 或 assets),中止发布');
|
||||
const localIndex = path.join(LOCAL_DIST, 'index.html');
|
||||
if (!existsSync(localIndex) || readFileSync(localIndex, 'utf8').trim() === '' || !existsSync(path.join(LOCAL_DIST, 'assets'))) {
|
||||
console.error('❌ 本地构建产物不完整(缺少 index.html / assets 或 index.html 为空),中止发布');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// 3. 压缩并上传到独立的新版本目录(全程不触碰当前运行目录)
|
||||
run('tar', ['-czf', TARBALL, '-C', LOCAL_DIST, '.']);
|
||||
run('ssh', [...SSH_OPTS, HOST, `mkdir -p '${REMOTE_RELEASE}'`]);
|
||||
run('scp', [...SSH_OPTS, TARBALL, `${HOST}:${REMOTE_RELEASE}/${TARBALL}`]);
|
||||
// 3. 压缩 + 校验压缩包(防 bsdtar 静默丢文件)
|
||||
packDist();
|
||||
|
||||
// 4. 远程:解压 → 校验 → 补齐旧资源 → 原子切换 → 健康检查 → 清理
|
||||
if (PACK_ONLY) {
|
||||
rmSync(TARBALL, { force: true });
|
||||
console.log('✅ --pack-only:已完成构建与打包校验,未上传');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
// 4. 上传到独立的新版本目录(全程不触碰当前运行目录)
|
||||
run('ssh', [...SSH_OPTS, HOST, `mkdir -p '${REMOTE_RELEASE}'`]);
|
||||
run('scp', [...SSH_OPTS, TARBALL, `${HOST}:${REMOTE_RELEASE}/${TARBALL_NAME}`]);
|
||||
|
||||
// 5. 远程:解压 → 校验 → 补齐旧资源 → 原子切换 → 健康检查 → 清理
|
||||
const remoteScript = readFileSync(path.join(__dirname, 'remote', 'deploy.sh'), 'utf8');
|
||||
run(
|
||||
'ssh',
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -2,8 +2,8 @@
|
||||
更多设置表单
|
||||
- 由 UpperTable「字段设置」中的「更多设置」按钮打开
|
||||
- 表格工作模式(原字段设置工具栏内嵌的 radio,迁移至此)
|
||||
- 界面显示(浏览器 localStorage 持久化选项:Scan-box 模式 / 工具栏按钮模式 / 快捷键区域 / 页面布局)
|
||||
- 页面缓存 / tab 缓存分类(开关 / 最大缓存数量 / 应用范围)
|
||||
- 界面显示(浏览器 localStorage 持久化选项:Scan-box 模式 / 工具栏按钮模式 / 快捷键区域)
|
||||
- 页面缓存 / tab 缓存分类(开关 / 最大缓存数量)
|
||||
- 存储:experimental_{userId}_{roleId}(experimental store)、settings_{userId}_{roleId}(settings store)
|
||||
-->
|
||||
<template>
|
||||
@ -59,15 +59,6 @@
|
||||
<el-switch v-model="shortcutExpanded" />
|
||||
<span class="setting-hint">展开顶部快捷键面板(默认收起)</span>
|
||||
</div>
|
||||
|
||||
<div class="more-setting-row">
|
||||
<span class="setting-label">页面布局</span>
|
||||
<el-radio-group v-model="layoutMode" size="small">
|
||||
<el-radio-button value="top-bottom">顶部导航</el-radio-button>
|
||||
<el-radio-button value="sidebar">侧边导航</el-radio-button>
|
||||
</el-radio-group>
|
||||
<span class="setting-hint">顶部导航 = 菜单在顶部横向排列</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-divider />
|
||||
@ -94,13 +85,6 @@
|
||||
/>
|
||||
<span class="setting-hint">超出后淘汰最久未使用的页面</span>
|
||||
</div>
|
||||
|
||||
<div class="more-setting-row">
|
||||
<span class="setting-label">应用范围</span>
|
||||
<span class="setting-value">
|
||||
全部通过顶部导航栏 / 页面 tab 切换的路由页面
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-divider />
|
||||
@ -127,13 +111,6 @@
|
||||
/>
|
||||
<span class="setting-hint">超出后淘汰最久未使用的 tab</span>
|
||||
</div>
|
||||
|
||||
<div class="more-setting-row">
|
||||
<span class="setting-label">应用范围</span>
|
||||
<span class="setting-value">
|
||||
订单管理、波次管理、商品明细
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
@ -194,14 +171,6 @@ const shortcutExpanded = computed({
|
||||
}
|
||||
})
|
||||
|
||||
/** 页面布局:top-bottom=顶部导航 / sidebar=侧边导航 */
|
||||
const layoutMode = computed({
|
||||
get: () => settingsStore.layoutMode,
|
||||
set: (mode: 'sidebar' | 'top-bottom') => {
|
||||
settingsStore.changeSetting({ key: 'layoutMode', value: mode })
|
||||
}
|
||||
})
|
||||
|
||||
const tabCacheEnabled = computed({
|
||||
get: () => experimentalStore.tabCacheEnabled,
|
||||
set: (val: boolean) => {
|
||||
@ -253,7 +222,7 @@ function handlePageCacheMaxChange(val: number | undefined) {
|
||||
/** 恢复全部设置为默认配置(表格工作模式 / 界面显示 / 页面缓存 / tab 缓存) */
|
||||
function handleResetDefaults() {
|
||||
ElMessageBox.confirm(
|
||||
'确定恢复全部设置为默认配置吗?表格工作模式、界面显示(Scan-box 模式 / 工具栏按钮模式 / 快捷键区域 / 页面布局)、页面缓存、tab 缓存都将恢复默认。',
|
||||
'确定恢复全部设置为默认配置吗?表格工作模式、界面显示(Scan-box 模式 / 工具栏按钮模式 / 快捷键区域)、页面缓存、tab 缓存都将恢复默认。',
|
||||
'恢复默认',
|
||||
{
|
||||
type: 'warning',
|
||||
@ -272,6 +241,14 @@ function handleResetDefaults() {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.more-settings-dialog {
|
||||
/* 固定高度 + 内部滚动:表单不随内容拉伸,超出部分滚动查看 */
|
||||
:deep(.el-dialog__body) {
|
||||
height: 400px;
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.more-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -307,12 +284,6 @@ function handleResetDefaults() {
|
||||
font-size: 12px;
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
.setting-value {
|
||||
font-size: 12px;
|
||||
color: #606266;
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.el-divider--horizontal) {
|
||||
|
||||
567
src/oldprint.txt
567
src/oldprint.txt
@ -1,567 +0,0 @@
|
||||
|
||||
|
||||
|
||||
<script src="/js/jquery-1.4.2.min.js"
|
||||
language="javascript"></script>
|
||||
<script src="/js/jquery.js"
|
||||
language="javascript"></script>
|
||||
<script src="/js/json2.js"
|
||||
language="javascript"></script>
|
||||
<script src="/js/rem.js" language="javascript"></script>
|
||||
<script language="javascript">
|
||||
var j = jQuery.noConflict();
|
||||
</script>
|
||||
|
||||
<script language="JavaScript"
|
||||
src="/scripts/validator.js"></SCRIPT>
|
||||
<script language="JavaScript"
|
||||
src="/scripts/weightpackvalidate.js"></SCRIPT>
|
||||
|
||||
<style type="text/css">
|
||||
@import url("/CSS/validate1.css");
|
||||
@import url("/CSS/wms.css");
|
||||
@import url("/CSS/shopadmin.css");
|
||||
</style>
|
||||
|
||||
<html>
|
||||
<body style="background-color: ebeefa;" onLoad="doConnect()">
|
||||
|
||||
|
||||
<form
|
||||
action="/system/print-wmsorder!printWmsOrder.jspb"
|
||||
method="post" name="thisForm">
|
||||
<input type="hidden" name="webwork.token.name" value="token"/>
|
||||
<input type="hidden" name="token" value="7DEYGYB5KXZN98RAIY79GR4MQXPQ44U0"/>
|
||||
|
||||
<input type="hidden" id="Ids" name="Ids"
|
||||
value="f9e1a1165da7438e9129bc1856c7c51e">
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="register">
|
||||
<div class="content">
|
||||
|
||||
<table bgcolor="#8ba0e2" cellspacing="1" cellpadding="3"
|
||||
border="0" width="100%">
|
||||
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" id="printtype_info_check">
|
||||
打印类型:
|
||||
</div>
|
||||
<div class="redstar">
|
||||
*
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div class="input">
|
||||
|
||||
|
||||
<select name="printType" id="printType" onclick="getPrintType()"
|
||||
dataType="Require"
|
||||
msg="请选择">
|
||||
|
||||
<option value="0" selected>菜鸟打印</option>
|
||||
<option value="1" >系统打印</option>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff" id="system" style="display:none">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" id="miandanFlag_info_check">
|
||||
系统面单模板:
|
||||
</div>
|
||||
<div class="redstar">
|
||||
*
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div class="input">
|
||||
|
||||
|
||||
<select name="miandanFlag" onclick="getMiandanCode()"
|
||||
dataType="Require"
|
||||
msg="请选择">
|
||||
|
||||
<option value="0" selected>菜鸟标准模板</option>
|
||||
<option value="1" >京东标准模板</option>
|
||||
<option value="3" >顺丰二联模板</option>
|
||||
<option value="2" >菜鸟货到付款模板</option>
|
||||
<option value="5" >拣货面单模板</option>
|
||||
<option value="4" >自定义模板</option>
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff" id="cainiao0" style="">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" id="printer_info_check">
|
||||
打印机:
|
||||
</div>
|
||||
<div class="redstar">
|
||||
*
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
|
||||
|
||||
<div class="input">
|
||||
<a href="javascript:doGetPrinters()" id="printLink">获取打印机列表</a>
|
||||
|
||||
<select name="printer" id="selectID" onclick="getPrinters()"
|
||||
dataType="Require"
|
||||
msg="请选择" style='display:none'>
|
||||
<option value="">默认打印机</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff" id="cainiao1" style="">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" id="logo_info_check">
|
||||
快递LOGO:
|
||||
</div>
|
||||
<div class="redstar">
|
||||
*
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div class="input">
|
||||
|
||||
|
||||
<select name="logo" id="logo" onclick="getLogo()"
|
||||
dataType="Require"
|
||||
msg="请选择">
|
||||
|
||||
<option value="0" selected>不打印</option>
|
||||
、 <option value="1" >打印</option>
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff" id="cainiao2" style="">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" id="preview_info_check">
|
||||
打印预览:
|
||||
</div>
|
||||
<div class="redstar">
|
||||
*
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div class="input">
|
||||
|
||||
|
||||
<select name="preview" id="preview" onclick="getPreview()"
|
||||
dataType="Require"
|
||||
msg="请选择">
|
||||
|
||||
<option value="0" selected>否</option>
|
||||
、 <option value="1" >是</option>
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" >
|
||||
打印面单数:
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div class="input">
|
||||
<font size="3"><strong>1 </strong></font>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff" id="cainiao3" style="">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" >
|
||||
打印回执信息:
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div id="printInfo">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr bgcolor="#ffffff" id="cainiao4" style="">
|
||||
<td width="30%">
|
||||
|
||||
<div id="name">
|
||||
<div class="text" >
|
||||
打印预览链接:
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td width="70%">
|
||||
<div id="address">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<div class="wms_flex3">
|
||||
<a href="javascript:do_submit()" class="wms_btn_change wms_circle">打印 </a></div>
|
||||
|
||||
</td>
|
||||
<td align="center" width=20 > </td>
|
||||
<td align="center" >
|
||||
|
||||
<div class="wms_flex3">
|
||||
<a href="javascript:do_back()" class="wms_btn_change wms_circle" id='backStock'>返回</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
function doConnect()
|
||||
{
|
||||
socket = new WebSocket('ws://127.0.0.1:13528');
|
||||
|
||||
// 打开Socket
|
||||
socket.onopen = function(event)
|
||||
{
|
||||
// 监听消息
|
||||
socket.onmessage = function(event)
|
||||
{
|
||||
console.log('Client received a message',event);
|
||||
};
|
||||
|
||||
// 监听Socket的关闭
|
||||
socket.onclose = function(event)
|
||||
{
|
||||
console.log('Client notified socket has closed',event);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
document.ondragstart = function(){
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
initForm();
|
||||
|
||||
function do_submit() {
|
||||
var printer = document.getElementById('selectID');
|
||||
var index = printer.selectedIndex; // 选中索引
|
||||
var value = printer.options[index].value; // 选中值
|
||||
|
||||
|
||||
|
||||
var oSelect = document.getElementById('printType');
|
||||
|
||||
var preview = document.getElementById('preview');
|
||||
|
||||
|
||||
var previewflag;
|
||||
|
||||
if(preview.selectedIndex==0){
|
||||
previewflag=false;
|
||||
}
|
||||
if(preview.selectedIndex==1){
|
||||
previewflag=true;
|
||||
}
|
||||
|
||||
var size=1;
|
||||
|
||||
|
||||
|
||||
|
||||
if(oSelect.selectedIndex==0){
|
||||
|
||||
request = {
|
||||
cmd : "print",
|
||||
requetID : "001780047559779",
|
||||
version : "1.0",
|
||||
task : {
|
||||
taskID : "001780047559779",
|
||||
preview : previewflag,
|
||||
printer : value,
|
||||
documents : [
|
||||
|
||||
|
||||
|
||||
{documentID:"773423904996615",
|
||||
contents : [
|
||||
//电子面单部分
|
||||
{
|
||||
templateURL : "http://cloudprint.cainiao.com/cloudprint/template/getStandardTemplate.json?template_id=288948",
|
||||
|
||||
|
||||
"data":{"_dataFrom":"waybill","_page_config":{"REQUEST_LAYERED_IMAGE":false},"adsInfo":{"adId":"3","advertisementType":"DEFAULT","bannerUrl":"https://ad-cdn.cainiao.com/img/3/1719802275085_469.png","miniBannerUrl":"https://ad-cdn.cainiao.com/img/3/1719802270074_327.png","useCustomArea":false},"cpCode":"STO","extraInfo":{"appKey":"23535631","templateAdDisplayUp":true},"needEncrypt":false,"needReplaceRecipientInfoToTemplate":false,"orderChannelsType":"TB","packageInfo":{"goodsDescription":"商品","height":1,"id":"1","items":[{"count":1,"name":"商品名称"}],"length":1,"volume":0,"weight":0,"width":1},"parent":false,"realCpCode":"STO","recipient":{"address":{"detail":"北京北京市朝阳区劲松五区511楼4单元401","province":"北京"},"mobile":"15101185399","name":"杜楠"},"routingExtraInfo":{},"routingInfo":{"blockCode":"劲松五区","consolidation":{"name":"北京武清包"},"origin":{"code":"510902","name":"广东广州白云区太和公司"},"receiveBranch":{"code":"100020","name":"北京朝阳区潘家园公司"},"routeCode":"L004 A26","sortation":{"name":"111"},"startCenter":{},"terminalCenter":{}},"sender":{"address":{"city":"","detail":"广东省广州市白云区钟落潭良沙*****","district":"","province":""},"mobile":"13800000000","name":"吴**"},"shippingOption":{"code":"STANDARD_EXPRESS","title":"标准快递"},"waybillCode":"773423904996615"}
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
//自定义区部分
|
||||
{
|
||||
|
||||
templateURL : "http://cloudprint.cainiao.com/cloudprint/customArea/queryCustomAreaList4Top.json?custom_area_id=6474956",
|
||||
data : {
|
||||
"CustomControl": "#0 B1394673-1-1 商品总数 【1】\rE1区01-06-02 87848485 【1】 0\r\r验视员:太和",
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
]
|
||||
}
|
||||
};
|
||||
socket.send(JSON.stringify(request));
|
||||
/**
|
||||
* 响应请求demo
|
||||
* */
|
||||
socket.onmessage = function (event) {
|
||||
//document.getElementById('printInfo').innerHTML="<a href='http://127.0.0.1:13530/20180619_145525_877_19006.pdf'>打印预览</a>";
|
||||
var index1=event.data.indexOf("previewURL");
|
||||
var index2=event.data.indexOf("requestID");
|
||||
var index3=event.data.indexOf("success");
|
||||
var address=event.data.substring(index1+13,index2-3);
|
||||
var str="";
|
||||
if(index1>0){
|
||||
str="<a href='"+address+"' target='_blank'>打印预览</a>";
|
||||
}
|
||||
document.getElementById('printInfo').innerHTML=event.data;
|
||||
document.getElementById('address').innerHTML=str;
|
||||
|
||||
if(index3>0&&index1==-1){
|
||||
document.forms[0].action="/system/update-printflag!updatePrintFlag.jspb?currIndex=0&pageSize=20&search=1";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
};
|
||||
}else{
|
||||
var ret = validateAll(document.forms[0]);
|
||||
if (!ret) {
|
||||
return;
|
||||
}
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function getPrintType() {
|
||||
|
||||
document.getElementById("printtype_info_check").innerHTML = " <img src=\"http://www.ye4s.com/img/icon_right_19x19.gif\" width=\"19\" height=\"16\" align=\"absmiddle\"> 打印类型:" ;
|
||||
var oSelect = document.getElementById('printType');
|
||||
|
||||
if(oSelect.selectedIndex==0){
|
||||
document.getElementById("system").style.display="none";
|
||||
document.getElementById("cainiao0").style="";
|
||||
document.getElementById("cainiao1").style="";
|
||||
document.getElementById("cainiao2").style="";
|
||||
document.getElementById("cainiao3").style="";
|
||||
document.getElementById("cainiao4").style="";
|
||||
|
||||
}else{
|
||||
document.getElementById("system").style="";
|
||||
document.getElementById("cainiao0").style.display="none";
|
||||
document.getElementById("cainiao1").style.display="none";
|
||||
document.getElementById("cainiao2").style.display="none";
|
||||
document.getElementById("cainiao3").style.display="none";
|
||||
document.getElementById("cainiao4").style.display="none";
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
function getMiandanCode() {
|
||||
document.getElementById("miandanFlag_info_check").innerHTML = " <img src=\"http://www.ye4s.com/img/icon_right_19x19.gif\" width=\"19\" height=\"16\" align=\"absmiddle\"> 面单模板:" ;
|
||||
}
|
||||
function getCainiaoTemplate() {
|
||||
document.getElementById("cainiaoTemplate_info_check").innerHTML = " <img src=\"http://www.ye4s.com/img/icon_right_19x19.gif\" width=\"19\" height=\"16\" align=\"absmiddle\"> 菜鸟面单模板:" ;
|
||||
}
|
||||
function getLogo() {
|
||||
document.getElementById("logo_info_check").innerHTML = " <img src=\"http://www.ye4s.com/img/icon_right_19x19.gif\" width=\"19\" height=\"16\" align=\"absmiddle\"> 快递LOGO:" ;
|
||||
var logo = document.getElementById('logo');
|
||||
var printer = document.getElementById('selectID');
|
||||
var index = printer.selectedIndex; // 选中索引
|
||||
var value = printer.options[index].value; // 选中值
|
||||
var logoflag;
|
||||
|
||||
if(logo.selectedIndex==0){
|
||||
logoflag=false;
|
||||
}
|
||||
if(logo.selectedIndex==1){
|
||||
logoflag=true;
|
||||
}
|
||||
request = {
|
||||
requestID : "001780047559779",
|
||||
version : "1.0",
|
||||
cmd : "setPrinterConfig",
|
||||
printer : {
|
||||
name : value,
|
||||
needTopLogo : logoflag,
|
||||
needBottomLogo: logoflag
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
socket.send(JSON.stringify(request));
|
||||
socket.onmessage = function (event) {
|
||||
var response = eval(event.data);
|
||||
|
||||
if (response.cmd == 'setPrinterConfig') {
|
||||
getPrintersHandler(response);//处理打印机列表
|
||||
} else if (response.cmd == 'printerConfig') {
|
||||
printConfigHandler(response);
|
||||
}
|
||||
};
|
||||
}
|
||||
function doGetPrinters() {
|
||||
|
||||
request = {
|
||||
requestID : "001780047559779",
|
||||
version : "1.0",
|
||||
cmd : "getPrinters"
|
||||
};
|
||||
|
||||
socket.send(JSON.stringify(request));
|
||||
socket.onmessage = function (event) {
|
||||
|
||||
var t=JSON.parse(event.data);
|
||||
|
||||
$("#printLink").hide();
|
||||
$("#selectID").show();
|
||||
$("#selectID").empty();
|
||||
var t1=t.printers;
|
||||
t1.filter((p) => {
|
||||
if(t.defaultPrinter==p.name){
|
||||
$("#selectID").append("<option value='"+p.name+"'>"+p.name+"(默认)</option>");}else{
|
||||
$("#selectID").append("<option value='"+p.name+"'>"+p.name+"</option>");
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
function getPrinters(){
|
||||
document.getElementById("printer_info_check").innerHTML = " <img src=\"http://www.ye4s.com/img/icon_right_19x19.gif\" width=\"19\" height=\"16\" align=\"absmiddle\"> 打印机:" ;
|
||||
}
|
||||
function getPreview() {
|
||||
document.getElementById("preview_info_check").innerHTML = " <img src=\"http://www.ye4s.com/img/icon_right_19x19.gif\" width=\"19\" height=\"16\" align=\"absmiddle\"> 打印预览:" ;
|
||||
}
|
||||
function do_back() {
|
||||
window.location="/system/list-wmsorders!queryOrders.jspb?currIndex=0&pageSize=20&search=1";
|
||||
}
|
||||
</script>
|
||||
893
src/test.txt
893
src/test.txt
@ -1,893 +0,0 @@
|
||||
发货单号:JY202608240591,勾选主单和子单打印
|
||||
order.deliveryOrder.detail:
|
||||
{
|
||||
"flag": "success",
|
||||
"code": 1,
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"detail": {
|
||||
"id": 230857,
|
||||
"delivery_order_code": "JY202608240591",
|
||||
"pre_delivery_order_code": "",
|
||||
"pre_delivery_order_id": "",
|
||||
"order_type": "JYCK",
|
||||
"warehouse_code": "WH_RuACpJNT84",
|
||||
"order_flag": "",
|
||||
"extend_props": {
|
||||
"taxFee": "0",
|
||||
"taxAmount": "0",
|
||||
"innerProps": "{\"support_upload_identification_image\":0}",
|
||||
"selfSupport": "false",
|
||||
"actualAmount": "0",
|
||||
"tariffAmount": "0",
|
||||
"discountAmount": "0",
|
||||
"pdd_plat_discount": "0",
|
||||
"platDiscountAmount": "0",
|
||||
"addedValueTaxAmount": "0",
|
||||
"ewaybill_order_code": "",
|
||||
"declaringValueAmount": "0",
|
||||
"consumptionDutyAmount": "0",
|
||||
"support_upload_identification_image": "0"
|
||||
},
|
||||
"source_platform_code": "TB",
|
||||
"source_platform_name": "阿里健康大药房(新)",
|
||||
"oaid_order_source_code": null,
|
||||
"create_channel": "QM",
|
||||
"source_order_codes": "5127373406644026940",
|
||||
"sys_platform_code": "TB",
|
||||
"sys_platform_name": "淘宝",
|
||||
"create_at": "2026-08-24T09:35:06.000Z",
|
||||
"delete_at": null,
|
||||
"updated_at": "2026-08-24T11:31:24.000Z",
|
||||
"place_order_time": "2026-08-23T16:36:17.000Z",
|
||||
"pay_time": "2026-08-23T16:36:17.000Z",
|
||||
"pay_no": "",
|
||||
"service_code": null,
|
||||
"operator_name": "吴先生",
|
||||
"operate_time": "2026-08-24T09:35:06.000Z",
|
||||
"delivery_time": "2026-08-24T11:31:24.000Z",
|
||||
"shop_nick": "阿里健康大药房雄忻易仓",
|
||||
"buyer_message": "",
|
||||
"seller_message": "",
|
||||
"remark": "",
|
||||
"seller_nick": "吴先生",
|
||||
"buyer_nick": "*******5299",
|
||||
"total_amount": "52.90",
|
||||
"item_amount": "52.90",
|
||||
"discount_amount": "0.00",
|
||||
"freight": "0.00",
|
||||
"ar_amount": "0.00",
|
||||
"got_amount": "0.00",
|
||||
"service_fee": null,
|
||||
"logistics_code": "STO",
|
||||
"logistics_name": "申通快递",
|
||||
"sys_logistics_code": "STO",
|
||||
"sys_logistics_name": "申通快递",
|
||||
"basket_number": null,
|
||||
"express_code": "",
|
||||
"logistics_area_code": "",
|
||||
"delivery_type": null,
|
||||
"weight_type": 0,
|
||||
"is_urgency": "N",
|
||||
"invoice_flag": "N",
|
||||
"status": "finished",
|
||||
"name": "唐**",
|
||||
"zip_code": "",
|
||||
"tel": "*******5299",
|
||||
"mobile": "*******5299",
|
||||
"email": "",
|
||||
"country_code": "CN",
|
||||
"province": "新疆维吾尔自治区",
|
||||
"city": "可克达拉市",
|
||||
"area": "可克达拉市",
|
||||
"town": "金梁镇",
|
||||
"detail_address": "康养**公寓**号**单元***",
|
||||
"id_type": null,
|
||||
"id_number": null,
|
||||
"oaid": "1ib9qb8pambCp5S6CeqcISic7oPicCliaLxWXyVDOn1gokETmd0Libn61neHvpdaKd0EcJapV8k",
|
||||
"sync_status": "fin",
|
||||
"store_id": 1000288,
|
||||
"warehouse_id": 1000028,
|
||||
"from_key": 24869601,
|
||||
"items": "159110+1",
|
||||
"items_count": 1,
|
||||
"items_total": 1,
|
||||
"items_weight": 551,
|
||||
"items_hash": "1df1a3643530c5726694cadbc49af3a3",
|
||||
"items_crc": 578307627,
|
||||
"wave_id": 1777888535785186,
|
||||
"wave_no": "B2026082401760",
|
||||
"wave_strategy_version": 310,
|
||||
"wave_scan_result": 1,
|
||||
"post_status": "fin",
|
||||
"storage_status": "fin",
|
||||
"pick_status": "fin",
|
||||
"pack_status": "none",
|
||||
"sended_status": "none",
|
||||
"inspection_status": "padding",
|
||||
"recheck_status": "fin",
|
||||
"recheck_time": "2026-08-24T11:31:00.000Z",
|
||||
"step": 4,
|
||||
"print_status": "fin",
|
||||
"claim_status": "fin",
|
||||
"outbound_status": "fin",
|
||||
"lock_status": "none",
|
||||
"print_lock_status": "warehouse",
|
||||
"intercept_status": "none",
|
||||
"dispatch_lane": "m4"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"id": 159110,
|
||||
"item_code": "6942349798177",
|
||||
"item_name": "芦荟栀子花舒颜净肌去角质啫喱500ml",
|
||||
"sku_property": "",
|
||||
"quantity": 481,
|
||||
"locked_quantity": 0,
|
||||
"is_batch_mgmt": "N",
|
||||
"is_shelf_life_mgmt": "N",
|
||||
"is_images": "Y",
|
||||
"store_id": 1000288,
|
||||
"packing_requirements": "",
|
||||
"stock_unit": "瓶",
|
||||
"image_url": [
|
||||
"https://ye4s.file.gzxunren.com/1000028/images/20260817/568E17A3DADDBCEFC24549122EEE5F55.jpg",
|
||||
"https://ye4s.file.gzxunren.com/1000028/images/20260828/BF8C149F8E93EC8B788BBC05AF887CFC.jpg",
|
||||
"https://ye4s.file.gzxunren.com/1000028/images/20260828/B11C0CE202E67F688BF22E14036CA0A3.jpg"
|
||||
],
|
||||
"barcodes": [
|
||||
{
|
||||
"id": 36953,
|
||||
"barcode": "6942349798177"
|
||||
}
|
||||
],
|
||||
"plan_qty": 1,
|
||||
"order_line_no": "1",
|
||||
"stock_id": 159110,
|
||||
"order_item_id": 468585,
|
||||
"order_id": 230857
|
||||
}
|
||||
],
|
||||
"expresses": [
|
||||
{
|
||||
"waybill_code": "773438225951801",
|
||||
"weighing_weight": 620,
|
||||
"sys_logistics_code": "STO",
|
||||
"sys_logistics_name": "申通快递",
|
||||
"logistics_code": "STO",
|
||||
"logistics_name": "申通快递",
|
||||
"logistics_interface_id": 8,
|
||||
"logistics_interface_name": "CN-ST(申通)",
|
||||
"business_key": "1",
|
||||
"create_at": 1787565391000,
|
||||
"package_material_id": 26,
|
||||
"package_material_name_snapshot": "天豹7号半高"
|
||||
},
|
||||
{
|
||||
"waybill_code": "773439488157600",
|
||||
"weighing_weight": 0,
|
||||
"sys_logistics_code": "STO",
|
||||
"sys_logistics_name": "申通快递",
|
||||
"logistics_code": "STO",
|
||||
"logistics_name": "申通快递",
|
||||
"logistics_interface_id": 8,
|
||||
"logistics_interface_name": "CN-ST(申通)",
|
||||
"business_key": "2",
|
||||
"create_at": 1788166910000,
|
||||
"package_material_id": null,
|
||||
"package_material_name_snapshot": null
|
||||
}
|
||||
],
|
||||
"waybill_codes": [
|
||||
"773438225951801",
|
||||
"773439488157600"
|
||||
],
|
||||
"logs": [
|
||||
{
|
||||
"id": 5069592,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-09-01 09:36:59",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5069591,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-09-01 09:36:59",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5069573,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-09-01 09:35:47",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5069572,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-09-01 09:35:47",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5069429,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-09-01 09:34:54",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5069428,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-09-01 09:34:54",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5024021,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:47:43",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5024020,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:47:43",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023972,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:47:06",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023971,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:47:06",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023944,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:46:58",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023943,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:46:58",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023929,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:46:08",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023928,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:46:08",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023915,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:45:28",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023914,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:45:28",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023697,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:43:49",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023696,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:43:49",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023604,
|
||||
"operation_code": "ORDER_BATCH_MARK_PRINTED",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:42:37",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批量标记已打印:订单 230857",
|
||||
"operation_name": "ORDER_BATCH_MARK_PRINTED",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 5023603,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "殷建铭",
|
||||
"created_at": "2026-08-31 19:42:37",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "通知锁定执行成功,locked_count=0",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 4950740,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "张梅",
|
||||
"created_at": "2026-08-31 17:07:34",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "批次发送结束成功,print_id=60143,order_count=1",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 4950381,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "张梅",
|
||||
"created_at": "2026-08-31 17:06:29",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "批次发送失败,原因=打印服务返回失败",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 4946558,
|
||||
"operation_code": "ORDER_SYNC",
|
||||
"operator_name": "雷欢",
|
||||
"created_at": "2026-08-31 17:01:50",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "同步跳过:订单不存在",
|
||||
"operation_name": "同步订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 4946557,
|
||||
"operation_code": "子单号分配",
|
||||
"operator_name": "雷欢",
|
||||
"created_at": "2026-08-31 17:01:50",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "SYSTEM",
|
||||
"message": "子单号分配完成 | 子单2:成功",
|
||||
"operation_name": "子单号分配",
|
||||
"platform_name": "系统"
|
||||
},
|
||||
{
|
||||
"id": 4946556,
|
||||
"operation_code": "WAYBILL",
|
||||
"operator_name": "雷欢",
|
||||
"created_at": "2026-08-31 17:01:50",
|
||||
"external_log_type": "API",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "订单230857获取快递单成功,单号:773439488157600",
|
||||
"operation_name": "WAYBILL",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 3221570,
|
||||
"operation_code": "ORDER_PICK_COMPLETE",
|
||||
"operator_name": "冯城礼",
|
||||
"created_at": "2026-08-24 19:11:04",
|
||||
"external_log_type": "API",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "订单230857拣货完成",
|
||||
"operation_name": "拣货完成",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 3221489,
|
||||
"operation_code": "ORDER_WAVE_GRAB",
|
||||
"operator_name": "冯城礼",
|
||||
"created_at": "2026-08-24 19:09:15",
|
||||
"external_log_type": "API",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "订单230857抓取波次成功",
|
||||
"operation_name": "抓取波次",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 3217360,
|
||||
"operation_code": "ORDER_WAVE_CANCEL",
|
||||
"operator_name": "钟国富",
|
||||
"created_at": "2026-08-24 18:52:22",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "取消拣货任务 PK20260824185218X16Q,从波次释放",
|
||||
"operation_name": "取消波次",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 3217333,
|
||||
"operation_code": "ORDER_WAVE_GRAB",
|
||||
"operator_name": "钟国富",
|
||||
"created_at": "2026-08-24 18:52:18",
|
||||
"external_log_type": "API",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "订单230857抓取波次成功",
|
||||
"operation_name": "抓取波次",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 3217052,
|
||||
"operation_code": "ORDER_WAVE_CLAIM",
|
||||
"operator_name": "钟国富",
|
||||
"created_at": "2026-08-24 18:50:52",
|
||||
"external_log_type": "API",
|
||||
"external_log_id": null,
|
||||
"platform_code": "pda",
|
||||
"message": "整波领单完成(波次 B2026082401760)",
|
||||
"operation_name": "领取波次",
|
||||
"platform_name": "PDA"
|
||||
},
|
||||
{
|
||||
"id": 3214222,
|
||||
"operation_code": "ORDER_PRINT",
|
||||
"operator_name": "陈春愉",
|
||||
"created_at": "2026-08-24 18:36:49",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "批次发送结束成功,print_id=41299,order_count=27",
|
||||
"operation_name": "打印订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 3212007,
|
||||
"operation_code": "ORDER_WAVE_ASSIGN",
|
||||
"operator_name": "陈春愉",
|
||||
"created_at": "2026-08-24 18:16:47",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "订单被分配到波次 B2026082401760",
|
||||
"operation_name": "分配波次",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 3209326,
|
||||
"operation_code": "ORDER_STORAGE_ALLOCATE_SUCCESS",
|
||||
"operator_name": "陈春愉",
|
||||
"created_at": "2026-08-24 18:14:53",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "SYSTEM",
|
||||
"message": "储位分配成功",
|
||||
"operation_name": "分配储位成功",
|
||||
"platform_name": "系统"
|
||||
},
|
||||
{
|
||||
"id": 3208977,
|
||||
"operation_code": "ORDER_WAVE_CANCEL",
|
||||
"operator_name": "陈春愉",
|
||||
"created_at": "2026-08-24 18:14:30",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "波次 B2026082401693 被删除,订单移出波次",
|
||||
"operation_name": "取消波次",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 3205544,
|
||||
"operation_code": "ORDER_SYNC",
|
||||
"operator_name": "陈春愉",
|
||||
"created_at": "2026-08-24 17:56:32",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "同步到QM渠道",
|
||||
"operation_name": "同步订单",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 3205436,
|
||||
"operation_code": "WAYBILL",
|
||||
"operator_name": "陈春愉",
|
||||
"created_at": "2026-08-24 17:56:31",
|
||||
"external_log_type": "API",
|
||||
"external_log_id": null,
|
||||
"platform_code": "web",
|
||||
"message": "订单230857获取快递单成功,单号:773438225951801",
|
||||
"operation_name": "WAYBILL",
|
||||
"platform_name": "网页后台"
|
||||
},
|
||||
{
|
||||
"id": 3199698,
|
||||
"operation_code": "ORDER_WAVE_AUTO_GROUP",
|
||||
"operator_name": "system",
|
||||
"created_at": "2026-08-24 17:35:06",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "SYSTEM",
|
||||
"message": "自动加团到波次 B2026082401693",
|
||||
"operation_name": "自动加团",
|
||||
"platform_name": "系统"
|
||||
},
|
||||
{
|
||||
"id": 3199695,
|
||||
"operation_code": "ORDER_EXPRESS_POLICY_MATCH",
|
||||
"operator_name": "奇门",
|
||||
"created_at": "2026-08-24 17:35:06",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "SYSTEM",
|
||||
"message": "快递策略命中: 申通不发地区(9) → 申通快递",
|
||||
"operation_name": "策略命中",
|
||||
"platform_name": "系统"
|
||||
},
|
||||
{
|
||||
"id": 3199694,
|
||||
"operation_code": "ORDER_CREATE",
|
||||
"operator_name": "奇门",
|
||||
"created_at": "2026-08-24 17:35:06",
|
||||
"external_log_type": "NONE",
|
||||
"external_log_id": null,
|
||||
"platform_code": "SYSTEM",
|
||||
"message": "订单创建成功,orderId:230857",
|
||||
"operation_name": "创建订单",
|
||||
"platform_name": "系统"
|
||||
}
|
||||
]
|
||||
},
|
||||
"timestamp": 1788227217
|
||||
}
|
||||
|
||||
order.print.getPrintDataByWaybillCodes
|
||||
传参:{"waybill_codes":["773438225951801","773439488157600"]}
|
||||
响应:
|
||||
{
|
||||
"flag": "success",
|
||||
"code": 200,
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"summary": {
|
||||
"total_waves": 2,
|
||||
"total_orders": 3,
|
||||
"total_platforms": 2,
|
||||
"intercepted_count": 0
|
||||
},
|
||||
"waveGroups": [
|
||||
{
|
||||
"wave_id": 1777888535785186,
|
||||
"wave_no": "B2026082401760",
|
||||
"order_count": 2,
|
||||
"platforms": [
|
||||
{
|
||||
"platform": "CAINIAO",
|
||||
"platform_name": "菜鸟",
|
||||
"sys_logistics_code": "STO",
|
||||
"sys_logistics_name": "申通快递",
|
||||
"order_count": 2,
|
||||
"order_ids": [
|
||||
230857
|
||||
],
|
||||
"orders": [
|
||||
{
|
||||
"documentID": "773438225951801",
|
||||
"contents": [
|
||||
{
|
||||
"encryptedData": "AES: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",
|
||||
"signature": "MD:IGniV1WjuJWJgtls7t0K8w==",
|
||||
"templateURL": "https://cloudprint.cainiao.com/template/standard/288948/111",
|
||||
"ver": "waybill_print_secret_version_1"
|
||||
},
|
||||
{
|
||||
"templateURL": "http://cloudprint.cainiao.com/cloudprint/customArea/queryCustomAreaList4Top.json?custom_area_id=6474956",
|
||||
"data": {
|
||||
"CustomControl": "B2026082401760 [27-27] CN-ST(申通) 商品总数【1】\rE2区24-09-02 6942349798177 【1】 27"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"documentID": "773439488157600",
|
||||
"contents": [
|
||||
{
|
||||
"encryptedData": "AES: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",
|
||||
"signature": "MD:7dUwQvUGETzKsV9lPIcBwQ==",
|
||||
"templateURL": "https://cloudprint.cainiao.com/template/standard/288948/111",
|
||||
"ver": "waybill_print_secret_version_1"
|
||||
},
|
||||
{
|
||||
"templateURL": "http://cloudprint.cainiao.com/cloudprint/customArea/queryCustomAreaList4Top.json?custom_area_id=6474956",
|
||||
"data": {
|
||||
"CustomControl": "子单号【2】-773438225951801\rB2026082401760 [27-27] CN-ST(申通) 商品总数【1】\rE2区24-09-02 6942349798177 【1】 27"
|
||||
}
|
||||
}
|
||||
],
|
||||
"business_key": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"wave_id": 0,
|
||||
"wave_no": "",
|
||||
"order_count": 1,
|
||||
"platforms": [
|
||||
{
|
||||
"platform": "TB",
|
||||
"platform_name": "菜鸟",
|
||||
"order_count": 1,
|
||||
"orders": [
|
||||
{
|
||||
"documentID": "773439488157600",
|
||||
"contents": [
|
||||
{
|
||||
"templateURL": "https://cloudprint.cainiao.com/template/standard/288948/111",
|
||||
"data": {
|
||||
"_dataFrom": "template",
|
||||
"_page_config": {
|
||||
"REQUEST_LAYERED_IMAGE": false
|
||||
},
|
||||
"adsInfo": {
|
||||
"adId": "",
|
||||
"advertisementType": "",
|
||||
"bannerUrl": "",
|
||||
"miniBannerUrl": "",
|
||||
"useCustomArea": false
|
||||
},
|
||||
"cpCode": "STO",
|
||||
"extraInfo": {
|
||||
"appKey": "",
|
||||
"displayPrivacyBackup": false,
|
||||
"templateAdDisplayUp": true,
|
||||
"encryptWaybillCode": ""
|
||||
},
|
||||
"needEncrypt": false,
|
||||
"needReplaceRecipientInfoToTemplate": false,
|
||||
"orderChannelLogo": "",
|
||||
"orderChannelsType": "",
|
||||
"packageInfo": {
|
||||
"goodsDescription": "",
|
||||
"height": 0,
|
||||
"id": "",
|
||||
"items": [
|
||||
{
|
||||
"count": 0,
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"length": 0,
|
||||
"volume": 0,
|
||||
"weight": 0,
|
||||
"width": 0
|
||||
},
|
||||
"parent": false,
|
||||
"realCpCode": "STO",
|
||||
"recipient": {
|
||||
"address": {
|
||||
"city": "",
|
||||
"detail": "",
|
||||
"district": "",
|
||||
"province": ""
|
||||
},
|
||||
"mobile": "",
|
||||
"name": "",
|
||||
"secretConsigneeMobile": "",
|
||||
"tid": ""
|
||||
},
|
||||
"routingExtraInfo": {},
|
||||
"routingInfo": {
|
||||
"consolidation": {
|
||||
"name": ""
|
||||
},
|
||||
"origin": {
|
||||
"code": "",
|
||||
"name": ""
|
||||
},
|
||||
"receiveBranch": {
|
||||
"code": "",
|
||||
"name": ""
|
||||
},
|
||||
"routeCode": "",
|
||||
"sortation": {
|
||||
"name": ""
|
||||
},
|
||||
"startCenter": {},
|
||||
"terminalCenter": {}
|
||||
},
|
||||
"secretWaybillChannel": "",
|
||||
"secretWaybillType": "",
|
||||
"sender": {
|
||||
"address": {
|
||||
"city": "",
|
||||
"detail": "",
|
||||
"district": "",
|
||||
"province": ""
|
||||
},
|
||||
"mobile": "",
|
||||
"name": ""
|
||||
},
|
||||
"shippingOption": {
|
||||
"code": "",
|
||||
"title": ""
|
||||
},
|
||||
"waybillCode": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateURL": "http://cloudprint.cainiao.com/cloudprint/customArea/queryCustomAreaList4Top.json?custom_area_id=6474956",
|
||||
"data": {
|
||||
"CustomControl": "申通快递 商品总数【1】\rE2区24-09-02 6942349798177 【1】"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"wave_ids": [
|
||||
1777888535785186,
|
||||
0
|
||||
],
|
||||
"intercepted_count": 0,
|
||||
"intercepted_orders": [],
|
||||
"ext": {
|
||||
"missing_waybill_codes": [],
|
||||
"filtered_waybill_codes": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788227294
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import dayjs from 'dayjs'
|
||||
import type { StockReportListItem } from '@/api/stock.report/stock.report'
|
||||
import { normalizeBarcodeList } from '@/utils/barcode'
|
||||
|
||||
export const reportFieldLabels: Record<string, string> = {
|
||||
store_id: '货主ID',
|
||||
@ -101,6 +102,10 @@ export type ReportColumn = {
|
||||
sortable?: boolean | 'custom'
|
||||
sortOrders?: string[]
|
||||
copyAction?: 'copy' | 'copyQr'
|
||||
/** 复制/多值折叠取值:返回**数组**时启用多值折叠(只显示第 1 个 + `+N` 展开) */
|
||||
copyValue?: (row: StockReportListItem) => unknown
|
||||
/** 是否启用多值折叠,默认 true(copyValue 返回数组时生效) */
|
||||
copyMultiCollapse?: boolean
|
||||
formatter?: (row: StockReportListItem) => string
|
||||
}
|
||||
|
||||
@ -109,7 +114,14 @@ export const fixedReportColumns: ReportColumn[] = [
|
||||
{ prop: 'store_name', label: '货主', minWidth: 120, formatter: (row) => row.store_name || '--' },
|
||||
{ prop: 'item_name', label: '商品名称', minWidth: 140, formatter: (row) => row.item_name || '--' },
|
||||
{ prop: 'item_code', label: '商品编码', minWidth: 120, copyAction: 'copy' as const, formatter: (row) => row.item_code || '--' },
|
||||
{ prop: 'barcode', label: '条码', minWidth: 140, copyAction: 'copy' as const, formatter: (row) => row.barcode || '--' },
|
||||
{
|
||||
prop: 'barcode',
|
||||
label: '条码',
|
||||
minWidth: 140,
|
||||
copyAction: 'copy' as const,
|
||||
// 多数据折叠:条码可能为数组 / JSON 串 / `|`、`,` 分隔串,只显示第 1 个,其余隐藏,可主动展开查看
|
||||
copyValue: (row) => normalizeBarcodeList((row as any).barcodes ?? row.barcode)
|
||||
},
|
||||
{ prop: 'stock_id', label: 'SKU', width: 96, copyAction: 'copy' as const, formatter: (row) => formatReportCell(row.stock_id) },
|
||||
{
|
||||
prop: 'begin_total',
|
||||
@ -162,7 +174,8 @@ export function buildReportTableColumns(rows: StockReportListItem[]) {
|
||||
for (const row of rows) {
|
||||
if (!row || typeof row !== 'object') continue
|
||||
for (const k of Object.keys(row)) {
|
||||
if (k === '__rid' || k === 'store_id' || k === 'warehouse_id' || FIXED_PROPS.has(k)) continue
|
||||
// barcodes 已由「条码」列(copyValue 多值折叠)消费,避免再追加重复列
|
||||
if (k === '__rid' || k === 'store_id' || k === 'warehouse_id' || k === 'barcodes' || FIXED_PROPS.has(k)) continue
|
||||
extra.add(k)
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
243
日志.md
243
日志.md
@ -1,243 +0,0 @@
|
||||
2026.3.23
|
||||
一、今日完成
|
||||
-搭建orderManagement页面框架,整合并构建建"待审核订单"、"待处理订单"、"异常订单"、"配送订单"、"归档订单"五个页面。
|
||||
-设计order-common-config.tsorderManagement页面组件配置,包括scan-box筛选组件、通用快捷操作按钮、各组件upper-table自定义表格配置,解耦整合orderManagement各页面通用组件,精简多余代码,提升可维护性。
|
||||
-更新"待审核订单"、"待处理订单"字段,更符合上述页面的实际工作需要,提升工作效率。
|
||||
-找到数据库wms_order_delivery_100000.sql缺失字段,补全逻辑。
|
||||
-新增orderManagement各页面的api接口,等待后端完成api接口orderManagement页面即可显示后端数据。
|
||||
|
||||
二、问题记录
|
||||
后端的Order订单表部分字段缺失。
|
||||
后端Order页面接口暂未完成开发,返回空数据。
|
||||
|
||||
三、后续计划
|
||||
开发"收货单"的打印收货单功能
|
||||
根据需要更新完善orderManagement的"待审核订单"、"待处理订单"、"异常订单"、"配送订单"、"归档订单"五个页面的字段明细、筛选条件
|
||||
根据情况设计新增其他页面、新增操作功能或修复已有问题。
|
||||
|
||||
-----
|
||||
2026.3.24
|
||||
一、今日完成
|
||||
“收货单”添加打印/批量打印收货单功能,能够根据所选的打印单号打印/批量打印收货单。
|
||||
调整部分页面项目结构,规范化页面结构,防止后续扩展页面冲突。
|
||||
新增微信绑定页面,开发微信绑定/解绑功能。
|
||||
新增“库存”页面及其相关接口,搭建页面基础。
|
||||
排查删除permission数据库表无用字段。
|
||||
|
||||
二、问题记录
|
||||
页面“筛选”功能不可用。
|
||||
微信绑定页面二维码刷新功能失败。接口待测试。
|
||||
|
||||
|
||||
三、后续计划
|
||||
修复页面“筛选”功能不可用问题。
|
||||
更新注册/登录页面。
|
||||
完成“微信绑定”功能。
|
||||
完善“库存”相关页面操作与功能。
|
||||
|
||||
-----
|
||||
2026.3.25
|
||||
一、今日完成
|
||||
-优化layout框架,、stock页面、receiving页面、entry页面和部分页面组件适配不同尺寸显示屏幕,增大数据显示密度。
|
||||
-优化绑定微信接口,调整超时和轮询时间。
|
||||
-修复页面“筛选”功能不可用问题。
|
||||
-修复“商品明细”查看图片显示异常问题。
|
||||
-“收货单”新增“新建收货单”菜单及功能。
|
||||
-更新receiving接口、profile接口、stock接口。
|
||||
-更新scan-box、Upper-table公共组件样式。
|
||||
-stock接口新增二次封装。
|
||||
|
||||
二、问题记录
|
||||
后端tracking_number物流单号缺失
|
||||
|
||||
三、后续计划
|
||||
完善项目页面及其组件屏幕尺寸适配。
|
||||
添加后端已完成的api接口并进行功能的完善与开发。
|
||||
|
||||
-----
|
||||
2026.3.26
|
||||
一、今日完成
|
||||
-新增用户管理页面,添加account-config.ts用户管理配置文件和account.ts接口文件,实现用户管理功能。
|
||||
-优化stock、receving、entry、inventory、deliveryOrder页面和相关组件布局,统一结构设计和样式布局,提升可维护性。
|
||||
-修复receiving页面时间格式显示异常问题。
|
||||
-优化stock接口,排除删除废弃或无用接口。
|
||||
-更新stock-config.ts配置文件,提升stock页面维护性;更新表格状态字段数据。
|
||||
|
||||
二、问题记录
|
||||
-stock回收站,后端 stock.warehouse.list 接口(对应的数据库表)中不存在 is_deleted 字段,或者该接口不支持通过 is_deleted 参数进行过滤。
|
||||
-stock.warehouse.bindItem接口错误,数据库架构与查询语句不匹配。
|
||||
-图片上传遇到跨域问题。
|
||||
|
||||
三、后续计划
|
||||
完善接口设计,排除故障接口,测试接口功能。
|
||||
完善各页面config.ts配置设计,优化功能结构。
|
||||
完善各页面布局设计,统一样式和风格,降低维护成本。
|
||||
解决跨域问题。
|
||||
解决路由相关的一些潜在小问题。
|
||||
|
||||
-----
|
||||
2026.3.27
|
||||
一、今日完成
|
||||
-修复stock无法删除/批量删除商品问题。
|
||||
-修复receiving无法作废收货单的问题。
|
||||
-更新“绑定微信”二维码生成逻辑,修复轮询、绑定状态异常问题,优化二维码使用逻辑,修复轮询关闭异常的问题。
|
||||
-修复入库单页面入库列表、入库单详情接口无法获取数据问题。
|
||||
- 在 entry-config.ts 中实现了用于缺货创建的新录入字段。
|
||||
- 在 index.vue 中添加了用于创建缺货记录的对话框。
|
||||
- 增强了收货功能,增加了批量取消和完成选项。
|
||||
- 更新了 receiving-config.ts,以禁用状态选择。
|
||||
- 创建了用于列出缺货记录的缺货 API。
|
||||
- 开发了用于显示缺货日志和产品详情的组件。
|
||||
- 引入了缺货详情视图,支持表单处理及保存/重置功能。
|
||||
- 在 stockout-config.ts 中配置了缺货特定设置,包括状态和同步状态配置。
|
||||
- 通过新的 index.vue 布局改善了缺货管理的 UI。
|
||||
|
||||
二、问题记录
|
||||
order.reviewOrder.getreviewOrderlist接口没有返回数据。
|
||||
storage.receiving.completeReceiving收货单入库报错:有3个商品缺少必要信息。
|
||||
stock.warehouse.bindItem商品明细外部商品绑定报错:stock.warehouse.bindItem。
|
||||
stock获取回收站商品接口复用了商品信息接口stock.warehouse.list,导致冲突。
|
||||
|
||||
|
||||
三、后续计划
|
||||
完善接口设计,排除故障接口,测试接口功能。
|
||||
实现将项目打包并上传到服务器实现静态资源托管。
|
||||
|
||||
-----
|
||||
2026.3.28
|
||||
一、今日完成
|
||||
-404页面新增路由重定向和返回上一个页面功能,优化使用体验。
|
||||
-登录页面新增微信扫码登录功能。
|
||||
-优化注册/登录页面样式。
|
||||
-新增项目打包并推送到服务器、服务器项目回滚脚本。
|
||||
- 添加了配置文件(profile-config.ts),包含静态配置、模拟数据模板以及用户个人资料页面的表单选项。
|
||||
|
||||
二、问题记录
|
||||
无
|
||||
|
||||
三、后续计划
|
||||
更新项目样式、布局。
|
||||
完善测试api接口,修复问题。
|
||||
|
||||
-----
|
||||
2026.3.30
|
||||
一、今日完成
|
||||
添加仪表板和角色管理 API
|
||||
- 优化仓库统计、商店统计、订单趋势、平台分布、热销订单排名和快递比例的仪表板 API 功能。
|
||||
- 为仪表板配置和动态组件映射添加了新的可组合函数。
|
||||
- 在接口文档中记录了角色管理 API 端点。
|
||||
-新增工号角色管理模块功能,添加相关接口。
|
||||
-调整优化layout页面样式。
|
||||
-
|
||||
|
||||
二、问题记录
|
||||
-基础模块-index.tryAutoTranslateNewKeys未使用。
|
||||
-基础模块-index.searchSpace未使用。
|
||||
-工号角色管理模块-接口设计有问题。
|
||||
|
||||
三、后续计划
|
||||
完善接口设计,排除故障接口,测试接口功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
|
||||
-----
|
||||
2026.3.31
|
||||
一、今日完成
|
||||
添加权限管理 API 和 UI
|
||||
|
||||
- 实现了权限管理的 API 功能,包括列出、添加、更新和删除权限。
|
||||
- 创建了一个新的 Vue 组件用于权限管理界面,具有过滤、创建、编辑和删除权限的功能。
|
||||
- 增加了用于显示权限及其层级结构的树状结构。
|
||||
- 集成了表单验证和用户反馈,用于权限管理 UI 中执行的操作。
|
||||
-
|
||||
|
||||
二、问题记录
|
||||
无
|
||||
|
||||
三、后续计划
|
||||
完善接口、功能设计,排除故障接口,测试接口功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
|
||||
-----
|
||||
2026.4.1
|
||||
一、今日完成
|
||||
为账户和角色管理模块添加 API 文档;包括 PDA 和打印服务器的版本信息.
|
||||
-修改permission权限管理、account用户管理,优化使用逻辑,完成接口测试。
|
||||
-新增role角色管理页面,添加角色组管理功能。
|
||||
|
||||
二、问题记录
|
||||
-角色管理新增分组/将角色移动到新建角色下失败。role表中测试管理员无法成为其他角色的父级。
|
||||
-setting.permission.add接口新增权限返回成功,实际并未返回添加数据。
|
||||
-测试删除了一个商品的批量操作权限。
|
||||
|
||||
三、后续计划
|
||||
完善接口、功能设计,排除故障接口,测试接口功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
|
||||
-----
|
||||
2026.4.2
|
||||
一、今日完成
|
||||
功能:添加权限和角色配置文件,包含验证规则和默认模板
|
||||
|
||||
-创建了 permission-config.ts,用于定义权限规则、创建和更新权限的默认模板,以及权限类型的映射。
|
||||
-创建了 role-config.ts,用于定义角色规则、默认角色模板,以及权限类型的映射。
|
||||
优化账号管理、权限管理、角色管理相关使用逻辑,排除修改送功能设计问题。
|
||||
新增收货单excel导出功能。
|
||||
优化PDA下载使用逻辑。
|
||||
|
||||
二、问题记录
|
||||
无
|
||||
三、后续计划
|
||||
完善接口、功能设计,排除故障接口,测试接口功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
|
||||
-----
|
||||
2026.4.3
|
||||
一、今日完成
|
||||
-优化收货单页面及相关接口功能。
|
||||
-优化角色管理、权限管理、用户管理,修复接口使用问题。
|
||||
-添加了用于使用临时代码发起和确认合同的对话框。
|
||||
-创建了配置文件 `store-config.ts`,用于表格列和可用筛选字段。
|
||||
-新增“货主”页面及相关接口功能。
|
||||
|
||||
二、问题记录
|
||||
无
|
||||
|
||||
三、后续计划
|
||||
完善接口、功能设计,排除故障接口,测试接口功能。
|
||||
完善收货单、货主功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
|
||||
-----
|
||||
2026.4.4
|
||||
一、今日完成
|
||||
-修复权限管理PDA页面无法添加图标问题。
|
||||
-添加店铺仓库 API 功能和详情组件。
|
||||
-实现了用于管理店铺仓库操作的 API 功能,包括列表、签收、解绑、重命名以及配置奇门。
|
||||
-添加优化“货主”页面及其相关功能。
|
||||
-修复收货单图片不显示问题。
|
||||
-
|
||||
|
||||
二、问题记录
|
||||
无
|
||||
|
||||
三、后续计划
|
||||
完善接口、功能设计,排除故障接口,测试接口功能。
|
||||
完善收货单、货主功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
|
||||
-----
|
||||
2026.4.6
|
||||
一、今日完成
|
||||
-优化收货单页面及相关接口功能。
|
||||
-库位管理新增warehouse.getPickPath等接口和功能,优化页面相关框架。
|
||||
- 优化layout页面相关组件样式、功能使用逻辑。
|
||||
- 收货单新增货主绑定、商品关联功能。
|
||||
-优化收货单及其组件页面样式。
|
||||
|
||||
二、问题记录
|
||||
warehouse.update接口is_active未更新。
|
||||
|
||||
三、后续计划
|
||||
完善接口、功能设计,排除故障接口,测试接口功能。
|
||||
完善库位管理以及其他功能。
|
||||
熟悉开源远程电脑项目billd-desk,准备学习开发相关功能应用。
|
||||
Loading…
x
Reference in New Issue
Block a user