指令问题修复

This commit is contained in:
andy committed 2026-09-17 11:03:19 +08:00
1 parent a3505f3921
commit 6eeaee07d4
40 files changed
+395 -59

No files matched your search

@@ -11,9 +11,13 @@ Chrome Manifest V3 扩展,在用户已登录的 LTJT ERP 页面内执行经过
## 当前版本
当前源码版本为 `0.5.186`。版本化 ZIP、文件哈希和 Skill/DOCX 基线见 [`../../dist/release-manifest.json`](../../dist/release-manifest.json)。旧版本实现流水已冻结在 [`../../archive/project-history/2026-08-16/chrome-extension-README.pre-governance.md`](../../archive/project-history/2026-08-16/chrome-extension-README.pre-governance.md)。
当前源码版本为 `0.5.187`。版本化 ZIP、文件哈希和 Skill/DOCX 基线见 [`../../dist/release-manifest.json`](../../dist/release-manifest.json)。旧版本实现流水已冻结在 [`../../archive/project-history/2026-08-16/chrome-extension-README.pre-governance.md`](../../archive/project-history/2026-08-16/chrome-extension-README.pre-governance.md)。
0.5.186 当前重点:
0.5.187 当前重点:
- 独立团修改新增 DBL 大床房到 frenshu3 的字段映射,与 SGL/TWN 一样按明确目标值填写,重新计算房间合计,并通过保存后 fresh GET 核对大床房和合计。程序解析器 v1.0.13 兼容“房间数更改为 12 标+2 大”;未指定房型保持原值,其他未实现字段继续整体阻断。需同步更新服务端、插件和平台最低版本,无数据库迁移;本地合成验证通过,真实 ERP 实写待验收。
继续保留 0.5.186 的车票匹配修复:
- 大交通选填车票说明在忽略空格/括号时保留原数字边界,修复 `C91 12:52` 无法用 `C91` 匹配的问题,继续阻止 `C91` 命中 `C911`。供应商与说明仍须匹配同一唯一候选;仅路线也可在唯一时使用,歧义时停止并显示最多 5 条供应商/说明,不暴露内部 ID 或价格。新增/变更以及原生联动前复核使用同一规则。零候选与候选未加载分别提示;未填车票说明的旧行为保持。回归为本地合成验证,真实 ERP 验收待部署方执行;需更新插件及平台最低版本,本修复无数据库迁移。
@@ -6619,7 +6619,7 @@
}
window.LTJTOrderAssistant = {
version: '0.5.186',
version: '0.5.187',
resolveNativeListSearchValues,
lookupKeywordMatchesText,
inspectLifecycleSearchCriteria: lifecycleSearchCriteria,
@@ -41,6 +41,7 @@
twin_room_count: 'frenshu1',
'rooms.SGL': 'frenshu0',
'rooms.TWN': 'frenshu1',
'rooms.DBL': 'frenshu3',
'pax.adult': 'darenshu',
'pax.child_bed': 'xiaorenshu',
'pax.child_no_bed': 'ertrenshu',
@@ -446,7 +447,7 @@
&& (!Number.isInteger(item.value) || item.value <= 0)) blockers.push('independent_twin_room_count_invalid');
if (action === 'order_update_independent' && /^pax\.(?:adult|child_bed|child_no_bed|leader)$/.test(target)
&& (!Number.isInteger(item.value) || item.value < 0)) blockers.push(`independent_passenger_count_invalid:${target}`);
if (action === 'order_update_independent' && /^rooms\.(?:SGL|TWN)$/.test(target)
if (action === 'order_update_independent' && /^rooms\.(?:SGL|TWN|DBL)$/.test(target)
&& (!Number.isInteger(item.value) || item.value < 0)) blockers.push(`independent_room_count_invalid:${target}`);
if (action === 'order_update_shared_plan' && (!Number.isInteger(item.value) || item.value <= 0)) blockers.push('planned_capacity_invalid');
if (action === 'order_update_shared_child' && (typeof item.value !== 'string' || !item.value.trim())) blockers.push('lifecycle_update_value_missing');
@@ -2864,7 +2865,7 @@
if (changes.length > beforeCount) {
changes[changes.length - 1].target = item.target;
if (operation.action === 'order_update_independent'
&& (item.target === 'twin_room_count' || /^rooms\.(?:SGL|TWN)$/.test(item.target))) roomCountChanged = true;
&& (item.target === 'twin_room_count' || /^rooms\.(?:SGL|TWN|DBL)$/.test(item.target))) roomCountChanged = true;
}
}
if (roomCountChanged) {
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "联泰下单助手",
"version": "0.5.186",
"version": "0.5.187",
"description": "在已登录 LTJT ERP 页面内规划并受控执行联泰 ERP 业务操作。",
"permissions": [
"activeTab",
@@ -211,7 +211,7 @@
];
const EXISTING_REF_KINDS = new Set(['independent_order', 'shared_plan', 'shared_child_order']);
const UPDATE_TARGETS = Object.freeze({
order_update_independent: new Set(['twin_room_count', 'rooms.SGL', 'rooms.TWN', 'pax.adult', 'pax.child_bed', 'pax.child_no_bed', 'pax.leader']),
order_update_independent: new Set(['twin_room_count', 'rooms.SGL', 'rooms.TWN', 'rooms.DBL', 'pax.adult', 'pax.child_bed', 'pax.child_no_bed', 'pax.leader']),
order_update_shared_plan: new Set(['planned_capacity']),
order_update_shared_child: new Set(['lodging_note'])
});
@@ -944,7 +944,7 @@
window.LTJTOrderAssistant = {
...(window.LTJTOrderAssistant || {}),
version: '0.5.186',
version: '0.5.187',
openTeamBatchForm,
pingTeamBatchFrame,
preflightTeamBatchNative,