@chenchaolong/plugin-trade-compliance-workbench 0.1.46 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -630,7 +630,6 @@
630
630
  )
631
631
  )
632
632
  ),
633
- renderAssistantPanel(),
634
633
  detailItem ? renderDetailModal() : null,
635
634
  formDialog ? renderFormModal() : null,
636
635
  deleteDialog ? renderDeleteConfirmModal() : null,
@@ -656,34 +655,6 @@
656
655
  )
657
656
  }
658
657
 
659
- function renderAssistantPanel() {
660
- return h('aside', { className: 'tcw-assistant' },
661
- h('div', { className: 'tcw-assistant-head' },
662
- h('span', { className: 'tcw-assistant-mark' }, 'AI'),
663
- h('div', null,
664
- h('strong', null, '外贸合规助手'),
665
- h('p', null, '按流程处理识别结果,减少来回切换。')
666
- )
667
- ),
668
- h('section', { className: 'tcw-assistant-card' },
669
- h('h3', null, '当前建议'),
670
- h('p', null, assistantTip(activePage))
671
- ),
672
- h('section', { className: 'tcw-assistant-card' },
673
- h('h3', null, '快捷入口'),
674
- h('div', { className: 'tcw-assistant-actions' }, [
675
- h('button', { className: 'tcw-mini-btn', onClick: () => setActivePage('controlled-goods-page') }, '管控商品'),
676
- h('button', { className: 'tcw-mini-btn', onClick: () => setActivePage('products-page') }, '商品审核'),
677
- h('button', { className: 'tcw-mini-btn', onClick: () => setActivePage('hs-code-search-page') }, '查 HS 编码')
678
- ])
679
- ),
680
- h('section', { className: 'tcw-assistant-card' },
681
- h('h3', null, '处理顺序'),
682
- h('p', null, '先把管控规则和供应商商品确认入库,再审核购销合同并生成销售发票。')
683
- )
684
- )
685
- }
686
-
687
658
  function tab(key, label, icon, count, tone) {
688
659
  return h('button', { key, className: key === activePage ? 'tcw-tab active' : 'tcw-tab', onClick: () => setActivePage(key) },
689
660
  h('span', { className: 'tcw-nav-icon ' + (tone || 'blue') }, iconImage(icon, label, tone)),
@@ -1859,14 +1830,6 @@
1859
1830
  return 'Workspace / 工具'
1860
1831
  }
1861
1832
 
1862
- function assistantTip(key) {
1863
- if (key === 'overview-page') return '从总览开始,优先确认管控规则和供应商商品,再推进发票生成。'
1864
- if (key === 'controlled-goods-page') return '维护管控商品时,建议先核对 HS 编码和关键词,再保存入库。'
1865
- if (key === 'products-page') return '供应商商品可先选用候选 HS 编码,再检查英文品名和管控状态。'
1866
- if (key === 'workbooks-page') return '购销合同审核完毕后,再生成销售发票,避免后面重改。'
1867
- return '海关编码查询页用于人工确认候选结果,必要时可回到商品页继续处理。'
1868
- }
1869
-
1870
1833
  function isObject(value) {
1871
1834
  return value && typeof value === 'object' && !Array.isArray(value)
1872
1835
  }
@@ -2059,7 +2022,7 @@ button, input, textarea, select { font: inherit; letter-spacing: 0; }
2059
2022
  body { background: var(--tcw-bg); letter-spacing: 0; }
2060
2023
  .tcw-shell {
2061
2024
  display: grid;
2062
- grid-template-columns: 248px minmax(0, 1fr) 300px;
2025
+ grid-template-columns: 248px minmax(0, 1fr);
2063
2026
  grid-template-rows: 1fr;
2064
2027
  gap: 0;
2065
2028
  min-height: 100vh;
@@ -2262,68 +2225,12 @@ body { background: var(--tcw-bg); letter-spacing: 0; }
2262
2225
  }
2263
2226
  .tcw-table td { background: var(--tcw-card); }
2264
2227
  .tcw-table tr:hover td { background: #fbfdff; }
2265
- .tcw-assistant {
2266
- display: grid;
2267
- align-content: start;
2268
- gap: 12px;
2269
- border-left: 1px solid var(--tcw-border);
2270
- background: var(--tcw-card);
2271
- padding: 18px 14px;
2272
- }
2273
- .tcw-assistant-head {
2274
- display: flex;
2275
- align-items: flex-start;
2276
- gap: 10px;
2277
- padding: 2px 4px 8px;
2278
- }
2279
- .tcw-assistant-mark {
2280
- display: grid;
2281
- place-items: center;
2282
- width: 32px;
2283
- height: 32px;
2284
- border-radius: 8px;
2285
- background: #e7f8ef;
2286
- color: var(--tcw-success);
2287
- font-size: 12px;
2288
- font-weight: 900;
2289
- }
2290
- .tcw-assistant-head strong { display: block; font-size: 15px; }
2291
- .tcw-assistant-head p {
2292
- margin: 3px 0 0;
2293
- color: var(--tcw-muted);
2294
- font-size: 12px;
2295
- line-height: 1.5;
2296
- }
2297
- .tcw-assistant-card {
2298
- display: grid;
2299
- gap: 8px;
2300
- border: 1px solid var(--tcw-border);
2301
- border-radius: 8px;
2302
- background: var(--tcw-soft);
2303
- padding: 12px;
2304
- }
2305
- .tcw-assistant-card h3 {
2306
- margin: 0;
2307
- font-size: 13px;
2308
- }
2309
- .tcw-assistant-card p {
2310
- margin: 0;
2311
- color: var(--tcw-muted);
2312
- font-size: 12px;
2313
- line-height: 1.6;
2314
- }
2315
- .tcw-assistant-actions {
2316
- display: flex;
2317
- flex-wrap: wrap;
2318
- gap: 8px;
2319
- }
2320
2228
  .tcw-status.ok { background: #e7f8ef; color: var(--tcw-success); }
2321
2229
  .tcw-status.warn { background: #fff2df; color: #b35b00; }
2322
2230
  .tcw-status.danger { background: #fde8e6; color: var(--tcw-danger); }
2323
2231
  .tcw-status.muted { background: #eef2f6; color: var(--tcw-muted); }
2324
2232
  @media (max-width: 1280px) {
2325
2233
  .tcw-shell { grid-template-columns: 230px minmax(0, 1fr); }
2326
- .tcw-assistant { display: none; }
2327
2234
  }
2328
2235
  @media (max-width: 900px) {
2329
2236
  .tcw-shell { grid-template-columns: 1fr; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chenchaolong/plugin-trade-compliance-workbench",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "Trade Compliance Workbench app plugin for controlled goods review, supplier product management, and customs workbook generation.",
5
5
  "author": {
6
6
  "name": "XpertAI",