This commit is contained in:
zlwu committed 2026-07-22 21:26:33 +08:00
1 parent aff71d296b
commit 68d96f87ff
34 files changed
+19587 -16249

No files matched your search

-1
View File
@@ -1 +0,0 @@
7389
+4
View File
@@ -170,6 +170,7 @@ def _build_public_page(db: Session, transport: PlTransport) -> PublicTransportPa
products=product_reads,
feedback_remark=transport.feedback_remark,
feedback_images=_parse_feedback_images(transport.feedback_images),
feedback_qty=transport.feedback_qty,
feedback_time=transport.feedback_time,
plan_voided=(
(plan is not None and plan.follow_status == "cancelled")
@@ -202,6 +203,9 @@ def save_public_feedback(
if payload.feedback_remark is not None:
transport.feedback_remark = payload.feedback_remark
if payload.feedback_qty is not None:
transport.feedback_qty = payload.feedback_qty
transport.feedback_time = datetime.now()
db.commit()
return success_response({"success": True, "message": "保存成功"})
+2
View File
@@ -191,6 +191,7 @@ class TransportFeedback(BaseModel):
class PublicTransportFeedback(BaseModel):
feedback_images: Optional[list[str]] = Field(default=None, alias="feedbackImages")
feedback_remark: Optional[str] = Field(default=None, alias="feedbackRemark")
feedback_qty: Optional[Decimal] = Field(default=None, alias="feedbackQty", ge=0, description="回传数量")
model_config = {"populate_by_name": True}
@@ -235,6 +236,7 @@ class PublicTransportPageRead(BaseModel):
products: list[PublicTransportPlanProductRead] = Field(default_factory=list)
feedback_remark: Optional[str] = Field(default=None, alias="feedbackRemark")
feedback_images: list[str] = Field(default_factory=list, alias="feedbackImages")
feedback_qty: Optional[Decimal] = Field(default=None, alias="feedbackQty", description="回传数量")
feedback_time: Optional[datetime] = Field(default=None, alias="feedbackTime")
plan_voided: bool = Field(default=False, alias="planVoided")
model_config = {"populate_by_name": True}
+41 -2
View File
@@ -12,6 +12,7 @@ from sqlalchemy.orm import Session
from app.core.config import settings
from app.core.utils import generate_uuid
from app.models.crm_models import CrmProduct
from app.models.db_models import DbInboundOutbound
from app.models.pl_models import (
PlInboundOrder,
@@ -391,6 +392,7 @@ def merge_plan_product_into_item(
product: Optional[PlPlanProduct],
*,
unit_map: dict[str, str],
crm_product_no: Optional[str] = None,
) -> None:
if not product:
item.setdefault("productNo", None)
@@ -398,7 +400,13 @@ def merge_plan_product_into_item(
item.setdefault("remark", None)
item["unitLabel"] = resolve_unit_label(unit_map, item.get("unit"))
return
item["productNo"] = product.product_no
# 优先 CRM 产品编码;计划冗余 product_no 可能被误存为 product_id
product_id = (product.product_id or item.get("productId") or "").strip()
plan_no = (product.product_no or "").strip()
resolved_no = (crm_product_no or "").strip()
if not resolved_no and plan_no and plan_no != product_id:
resolved_no = plan_no
item["productNo"] = resolved_no or None
item["packageSpec"] = product.package_spec
item["remark"] = (product.remark or "").strip() or None
if not item.get("specification") and product.model:
@@ -457,9 +465,40 @@ def enrich_io_order_dict(
)
products_by_id = {r.id: r for r in rows}
crm_ids = {
(pp.product_id or "").strip()
for pp in products_by_id.values()
if (pp.product_id or "").strip()
}
for it in raw_items:
pid = (it.get("productId") or "").strip()
if pid:
crm_ids.add(pid)
crm_no_by_id: dict[str, str] = {}
if crm_ids:
crm_rows = (
db.query(CrmProduct.id, CrmProduct.product_no)
.filter(
CrmProduct.id.in_(list(crm_ids)),
CrmProduct.tenant_no == tenant_no,
CrmProduct.del_flag == 0,
)
.all()
)
for row in crm_rows:
no = (row.product_no or "").strip()
if no:
crm_no_by_id[row.id] = no
for it in raw_items:
pp = products_by_id.get(it.get("planProductId") or "")
merge_plan_product_into_item(it, pp, unit_map=unit_map)
product_id = ((pp.product_id if pp else None) or it.get("productId") or "").strip()
merge_plan_product_into_item(
it,
pp,
unit_map=unit_map,
crm_product_no=crm_no_by_id.get(product_id),
)
if public_unit_as_label:
it["unit"] = it.get("unitLabel") or resolve_unit_label(unit_map, it.get("unit"))
@@ -143,7 +143,6 @@
"141": "Community 141",
"142": "Community 142",
"143": "Community 143",
"144": "Community 144",
"145": "Community 145",
"146": "Community 146",
"147": "Community 147",
@@ -162,8 +161,6 @@
"163": "Community 163",
"165": "Community 165",
"167": "Community 167",
"168": "Community 168",
"169": "Community 169",
"170": "Community 170",
"171": "Community 171",
"172": "Community 172",
+1 -1
View File
@@ -1 +1 @@
backend
/Users/wuzilong/work/00code/shanxia2.0/backend
+79 -94
View File
@@ -1,16 +1,16 @@
# Graph Report - backend (2026-07-19)
# Graph Report - backend (2026-07-20)
## Corpus Check
- 300 files · ~210,411 words
- 300 files · ~210,557 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 3969 nodes · 14567 edges · 170 communities (154 shown, 16 thin omitted)
- Extraction: 98% EXTRACTED · 2% INFERRED · 0% AMBIGUOUS · INFERRED: 335 edges (avg confidence: 0.54)
- 3969 nodes · 14570 edges · 167 communities (151 shown, 16 thin omitted)
- Extraction: 98% EXTRACTED · 2% INFERRED · 0% AMBIGUOUS · INFERRED: 336 edges (avg confidence: 0.54)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `aa5fbe77`
- Built from commit: `aff71d29`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@@ -148,7 +148,6 @@
- [[_COMMUNITY_Community 141|Community 141]]
- [[_COMMUNITY_Community 142|Community 142]]
- [[_COMMUNITY_Community 143|Community 143]]
- [[_COMMUNITY_Community 144|Community 144]]
- [[_COMMUNITY_Community 145|Community 145]]
- [[_COMMUNITY_Community 146|Community 146]]
- [[_COMMUNITY_Community 147|Community 147]]
@@ -167,8 +166,6 @@
- [[_COMMUNITY_Community 163|Community 163]]
- [[_COMMUNITY_Community 165|Community 165]]
- [[_COMMUNITY_Community 167|Community 167]]
- [[_COMMUNITY_Community 168|Community 168]]
- [[_COMMUNITY_Community 169|Community 169]]
- [[_COMMUNITY_Community 170|Community 170]]
- [[_COMMUNITY_Community 171|Community 171]]
- [[_COMMUNITY_Community 172|Community 172]]
@@ -202,19 +199,19 @@
## Import Cycles
- None detected.
## Communities (170 total, 16 thin omitted)
## Communities (167 total, 16 thin omitted)
### Community 0 - "Community 0"
Cohesion: 0.03
Nodes (218): category_add(), category_delete(), category_tree(), category_update(), clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert() (+210 more)
Cohesion: 0.04
Nodes (181): clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert(), clue_create(), clue_delete(), clue_detail(), clue_export() (+173 more)
### Community 2 - "Community 2"
Cohesion: 0.17
Nodes (11): pool_customer_assign(), pool_customer_claim(), pool_customer_list(), pool_record_detail(), pool_record_list(), PoolAssignBody, PoolClaimBody, PoolCustomerListBody (+3 more)
### Community 3 - "Community 3"
Cohesion: 0.05
Nodes (71): contact_add(), contact_delete(), contact_update(), customer_create(), customer_delete(), customer_update(), customer_name_exists(), BaseModel (+63 more)
Cohesion: 0.04
Nodes (78): contact_add(), contact_delete(), contact_update(), customer_create(), customer_delete(), customer_update(), customer_name_exists(), BaseModel (+70 more)
### Community 4 - "Community 4"
Cohesion: 0.19
@@ -285,8 +282,8 @@ Cohesion: 0.11
Nodes (32): CRM 报价单 API 路由 — 挂接到 crm.router, total_pages(), QuoteAcceptBody, QuoteApprovalApproveBody, QuoteApprovalListBody, QuoteApprovalRefreshNamesBody, QuoteApprovalWithdrawBody, QuoteCreateBody (+24 more)
### Community 21 - "Community 21"
Cohesion: 0.08
Nodes (59): bx_health(), 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, list_pending_payments(), list_processed_payments(), list_reimburse_offset_records(), offset(), pay() (+51 more)
Cohesion: 0.13
Nodes (29): approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse(), get_approval_history(), get_approvals(), get_generated_title() (+21 more)
### Community 22 - "Community 22"
Cohesion: 0.07
@@ -302,7 +299,7 @@ Nodes (28): assign_clues(), check_convert(), check_duplicate_clue(), convert_clu
### Community 25 - "Community 25"
Cohesion: 0.15
Nodes (27): _append_user_scope_conditions(), apply_data_scope(), assert_row_in_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3 (+19 more)
Nodes (24): _append_user_scope_conditions(), apply_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3, 合并多角色数据范围为 dept_ids / user_ids 并集。 (+16 more)
### Community 26 - "Community 26"
Cohesion: 0.11
@@ -318,7 +315,7 @@ Nodes (25): apply_dibang_prefill_to_order(), build_io_order_site_url(), create_i
### Community 29 - "Community 29"
Cohesion: 0.10
Nodes (66): register_quote_routes(), accept_quote(), _build_quote_filters(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value(), _enrich_contact_fields() (+58 more)
Nodes (64): register_quote_routes(), accept_quote(), _build_quote_filters(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value(), _enrich_contact_fields() (+56 more)
### Community 30 - "Community 30"
Cohesion: 0.12
@@ -369,44 +366,44 @@ Cohesion: 0.33
Nodes (19): check_python(), create_venv(), ensure_dirs(), ensure_valid_venv(), ensure_venv_and_runtime(), install_dependencies(), is_running(), log_error() (+11 more)
### Community 42 - "Community 42"
Cohesion: 0.10
Nodes (45): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+37 more)
Cohesion: 0.11
Nodes (40): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+32 more)
### Community 43 - "Community 43"
Cohesion: 0.18
Nodes (30): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), legacy_parent_id(), load_oss_id_to_url(), load_runtime_settings() (+22 more)
Nodes (31): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), legacy_parent_id(), load_oss_id_to_url(), load_runtime_settings() (+23 more)
### Community 44 - "Community 44"
Cohesion: 0.18
Nodes (14): _avatar_url_field(), _build_user_info_payload(), change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), public_quote_share(), Request, Session (+6 more)
Cohesion: 0.09
Nodes (40): clue_import_template(), customer_dealed(), customer_export(), customer_import_template(), customer_key(), customer_list(), customer_long_time_no_follow(), customer_mine() (+32 more)
### Community 45 - "Community 45"
Cohesion: 0.10
Nodes (37): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。, 报销模块 Service 基类 — 租户隔离 + UUID + 软删除。, apply_bx_scope(), assert_bx_attachment_biz_in_scope(), assert_bx_biz_in_scope() (+29 more)
Cohesion: 0.18
Nodes (20): filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。, allocate_reimburse_title_seq(), format_reimburse_title(), generate_apply_code(), generate_title(), is_auto_reimburse_title() (+12 more)
### Community 46 - "Community 46"
Cohesion: 0.19
Nodes (28): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), delete_plan(), _generate_plan_no(), get_plan() (+20 more)
### Community 48 - "Community 48"
Cohesion: 0.14
Nodes (35): bind_vehicle_driver(), create_driver(), create_personnel(), delete_carrier(), delete_driver(), delete_personnel(), delete_vehicle(), get_driver() (+27 more)
Cohesion: 0.13
Nodes (41): approve_carrier(), bind_vehicle_driver(), create_carrier(), create_driver(), create_personnel(), delete_carrier(), delete_driver(), delete_personnel() (+33 more)
### Community 49 - "Community 49"
Cohesion: 0.12
Nodes (33): _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。, Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。, refresh_token(), web_login(), create_access_token() (+25 more)
Cohesion: 0.14
Nodes (32): _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。, Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。, refresh_token(), web_login(), create_access_token() (+24 more)
### Community 50 - "Community 50"
Cohesion: 0.16
Nodes (18): get_user_menu_codes(), Session, 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web(), Session (+10 more)
### Community 51 - "Community 51"
Cohesion: 0.21
Nodes (22): calculate_subtotal(), _decimal_value(), delete_products_by_quote_id(), _ensure_quote_parent_scope(), _get_field(), get_quote_product(), insert_quote_product(), list_quote_products() (+14 more)
Cohesion: 0.20
Nodes (23): batch_insert_quote_products(), calculate_subtotal(), _decimal_value(), delete_products_by_quote_id(), _ensure_quote_parent_scope(), _get_field(), get_quote_product(), insert_quote_product() (+15 more)
### Community 52 - "Community 52"
Cohesion: 0.20
Nodes (19): approve_quote(), can_user_approve(), create_approval_records(), delete_pending_approvals(), get_quote_approval(), list_quote_approvals(), Any, Session (+11 more)
Cohesion: 0.18
Nodes (20): approve_quote(), can_user_approve(), create_approval_records(), delete_pending_approvals(), get_quote_approval(), list_quote_approvals(), Any, Session (+12 more)
### Community 53 - "Community 53"
Cohesion: 0.17
@@ -425,8 +422,8 @@ Cohesion: 0.22
Nodes (22): batch_insert_contract_products(), calculate_subtotal(), _decimal_value(), delete_price_tiers_by_contract_id(), delete_products_by_contract_id(), _get_field(), insert_contract_product(), _letter_oss_ids_to_json() (+14 more)
### Community 57 - "Community 57"
Cohesion: 0.13
Nodes (23): create_workflow(), delete_workflow(), get_workflow(), get_workflow_by_biz_type(), list_workflows(), Session, save_workflow_nodes(), update_workflow() (+15 more)
Cohesion: 0.14
Nodes (25): create_workflow(), delete_workflow(), get_workflow(), get_workflow_by_biz_type(), list_workflows(), Session, save_workflow_nodes(), update_workflow() (+17 more)
### Community 58 - "Community 58"
Cohesion: 0.35
@@ -449,32 +446,32 @@ Cohesion: 0.38
Nodes (14): _cargo_stats(), get_dashboard_stats(), get_inbound_by_cargo(), get_inbound_by_partner_cargo(), get_outbound_by_cargo(), get_outbound_by_partner_cargo(), _partner_cargo_stats(), Session (+6 more)
### Community 63 - "Community 63"
Cohesion: 0.19
Nodes (14): create_expense_item(), delete_expense_item(), get_expense_item(), get_expense_item_tree(), Session, update_expense_item(), get_bx_current_user(), BxExpenseItem (+6 more)
Cohesion: 0.20
Nodes (13): create_expense_item(), delete_expense_item(), get_expense_item(), get_expense_item_tree(), Session, update_expense_item(), BxExpenseItem, _coerce_id() (+5 more)
### Community 64 - "Community 64"
Cohesion: 0.17
Nodes (26): create_instance(), create_process_def(), create_task(), get_all_tasks_for_business(), get_instance(), get_latest_version(), get_nodes_by_version(), get_pending_tasks_by_node() (+18 more)
Cohesion: 0.15
Nodes (32): create_instance(), create_process_def(), create_task(), get_all_tasks_for_business(), get_instance(), get_latest_version(), get_nodes_by_version(), get_pending_tasks_by_node() (+24 more)
### Community 65 - "Community 65"
Cohesion: 0.38
Nodes (10): create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session, submit_leave() (+2 more)
Cohesion: 0.14
Nodes (15): BxAdvanceApply, BxAdvanceApproval, AdvanceService, Any, Session, 同一节点多次审批时,取 approval_time 最新的一条作为当前节点状态。, 返回全部审批动作,按时间正序排列,用于展示完整审批历史。, current_month_bounds() (+7 more)
### Community 66 - "Community 66"
Cohesion: 0.21
Nodes (16): PlCert, PlDocumentReminder, 证件到期提醒表 pl_document_reminder, list_owner_certs(), list_owner_certs_batch(), nearest_expire_date(), _normalize_cert_row(), date (+8 more)
### Community 67 - "Community 67"
Cohesion: 0.08
Nodes (27): 分页查询供方列表 — Java: CrmSupplierInfoController.list, 供方详情 — Java: CrmSupplierInfoController.getInfo, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 删除供方 — Java: CrmSupplierInfoController.remove, 导出供方列表 — Java: CrmSupplierInfoController.export, supplier_info_add(), supplier_info_delete() (+19 more)
Cohesion: 0.12
Nodes (16): 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方详情 — Java: CrmSupplierInfoController.getInfo, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 删除供方 — Java: CrmSupplierInfoController.remove, supplier_info_add(), supplier_info_delete(), supplier_info_detail() (+8 more)
### Community 68 - "Community 68"
Cohesion: 0.15
Nodes (9): 微信消息通知服务 支持微信小程序模板消息推送 使用方式: from app.core.wechat_message import WechatMes, 发送订单状态通知 Args: openid: 用户openid order_n, 发送支付成功通知 Args: openid: 用户openid order_n, 发送配送通知 Args: openid: 配送员openid task_no:, 发送配送时效预警 Args: openid: 配送员openid task_n, 发送退款结果通知 Args: openid: 用户openid order_n, 发送催单通知给配送员 Args: deliver_openid: 配送员openid, 发送模板消息 Args: openid: 用户openid template_ (+1 more)
Cohesion: 0.17
Nodes (8): 发送订单状态通知 Args: openid: 用户openid order_n, 发送支付成功通知 Args: openid: 用户openid order_n, 发送配送通知 Args: openid: 配送员openid task_no:, 发送配送时效预警 Args: openid: 配送员openid task_n, 发送退款结果通知 Args: openid: 用户openid order_n, 发送催单通知给配送员 Args: deliver_openid: 配送员openid, 发送模板消息 Args: openid: 用户openid template_, WechatMessageService
### Community 69 - "Community 69"
Cohesion: 0.12
Nodes (15): pool_rule_add(), pool_rule_delete(), pool_rule_detail(), pool_rule_execute(), pool_rule_list(), pool_rule_update(), pool_rule_update_status(), PoolRuleAddBody (+7 more)
Cohesion: 0.18
Nodes (26): advance_issue_stats(), batch_offset(), export_advance_issues(), issue_advance(), list_advance_issues(), list_advance_offset_records(), list_pending_payments(), list_processed_payments() (+18 more)
### Community 70 - "Community 70"
Cohesion: 0.20
@@ -497,12 +494,12 @@ Cohesion: 0.21
Nodes (20): _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images(), Session, UploadFile (+12 more)
### Community 75 - "Community 75"
Cohesion: 0.38
Nodes (9): create_supplier_info(), get_supplier_info(), Session, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java, Java: deleteWithValidByIds(门户软删), soft_delete_supplier_info(), total_pages(), update_supplier_info() (+1 more)
Cohesion: 0.22
Nodes (17): _apply_list_filters(), create_supplier_info(), get_supplier_info(), list_all_supplier_info(), list_supplier_info(), Any, Session, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java (+9 more)
### Community 76 - "Community 76"
Cohesion: 0.14
Nodes (27): approve_carrier(), create_carrier(), get_carrier(), reject_carrier(), update_carrier(), PlCarrier, carrier_to_read(), CarrierAuditReject (+19 more)
Cohesion: 0.17
Nodes (20): list_vehicles(), PlCarrier, CarrierBase, CarrierCreate, CarrierQualificationBase, DriverBase, DriverCreate, PersonnelBase (+12 more)
### Community 77 - "Community 77"
Cohesion: 0.20
@@ -521,8 +518,8 @@ Cohesion: 0.24
Nodes (18): _actor_ids(), _actor_names(), assert_row_deletable_by_creator(), assert_rows_deletable_by_creator(), can_delete_by_creator(), is_super_admin(), normalize_user_info(), Any (+10 more)
### Community 81 - "Community 81"
Cohesion: 0.31
Nodes (9): decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), Any, 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。, Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。, 从请求体解析用户名、密码。 返回 (username, password, error_message);error_message 非空时表示失败。 (+1 more)
Cohesion: 0.18
Nodes (11): Config, decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), Any, 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。, Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。 (+3 more)
### Community 82 - "Community 82"
Cohesion: 0.36
@@ -530,7 +527,7 @@ Nodes (14): ensure_crm_customer_linked_row_in_scope(), ensure_crm_owner_row_in_s
### Community 83 - "Community 83"
Cohesion: 0.24
Nodes (12): normalize_attachment_csv(), extract_minio_object_key(), join_relative_urls(), normalize_oss_storage_url(), MinIO 附件 URL 规范化(数据迁移共用)。 背景 ---- CRM / 地磅 / 报销与 shanxia2.0 共用同一 MinIO(bucket 默, 业务表 OSS ID 串 → 相对 URL 串(用于客户证照、跟进附件等)。, 去掉预签名 query(``?X-Amz-...``)。, 将绝对/相对 URL 规范为 MinIO object key(不含 bucket)。 (+4 more)
Nodes (11): extract_minio_object_key(), join_relative_urls(), normalize_oss_storage_url(), MinIO 附件 URL 规范化(数据迁移共用)。 背景 ---- CRM / 地磅 / 报销与 shanxia2.0 共用同一 MinIO(bucket 默, 业务表 OSS ID 串 → 相对 URL 串(用于客户证照、跟进附件等)。, 去掉预签名 query(``?X-Amz-...``)。, 将绝对/相对 URL 规范为 MinIO object key(不含 bucket)。, 迁移 CRM ``sys_oss`` 行:``url`` + ``file_name`` → 门户相对路径。 (+3 more)
### Community 84 - "Community 84"
Cohesion: 0.22
@@ -553,8 +550,8 @@ Cohesion: 0.40
Nodes (12): create_follow(), _enrich_follow_dict(), get_follow(), list_follows(), list_follows_by_customer(), Any, Session, _row_to_dict() (+4 more)
### Community 90 - "Community 90"
Cohesion: 0.22
Nodes (13): list_share_logs(), _parse_user_agent(), Any, Session, CRM 报价单分享访问日志 CRUD — 对照 CrmQuoteShareLogServiceImpl.java, Java: statisticsVisits, 简易 User-Agent 解析(替代 Hutool UserAgentUtil), Java: queryLogsByQuoteId (+5 more)
Cohesion: 0.26
Nodes (12): list_share_logs(), _parse_user_agent(), Any, Session, CRM 报价单分享访问日志 CRUD — 对照 CrmQuoteShareLogServiceImpl.java, Java: statisticsVisits, 简易 User-Agent 解析(替代 Hutool UserAgentUtil), Java: queryLogsByQuoteId (+4 more)
### Community 91 - "Community 91"
Cohesion: 0.32
@@ -577,8 +574,8 @@ Cohesion: 0.38
Nodes (6): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci()
### Community 96 - "Community 96"
Cohesion: 0.39
Nodes (10): create_site(), get_site(), list_sites(), Any, Session, _row_to_dict(), site_code_exists(), soft_delete_site() (+2 more)
Cohesion: 0.11
Nodes (23): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), create_site(), get_site(), list_sites() (+15 more)
### Community 97 - "Community 97"
Cohesion: 0.36
@@ -609,8 +606,8 @@ Cohesion: 0.36
Nodes (10): build_quote_html(), _default_value(), _format_date(), _format_discount(), _format_money(), generate_quote_pdf(), _get_pdf_styles(), Any (+2 more)
### Community 104 - "Community 104"
Cohesion: 0.38
Nodes (11): apply_pl_scope(), Session, PL 模块数据权限辅助(create_by / create_dept_id,无 owner_field)。, build_menu_badge_counts(), count_document_reminder_expired_pending(), count_freight_approval_pending(), count_freight_disburse_pending(), _count_pending_applies() (+3 more)
Cohesion: 0.49
Nodes (10): apply_pl_scope(), Session, build_menu_badge_counts(), count_document_reminder_expired_pending(), count_freight_approval_pending(), count_freight_disburse_pending(), _count_pending_applies(), count_plan_archive_pending() (+2 more)
### Community 105 - "Community 105"
Cohesion: 0.20
@@ -621,8 +618,8 @@ Cohesion: 0.43
Nodes (5): _inject_user_info_after_tenant(), patch_contract_routes(), patch_quote_routes(), patch_route_file(), Path
### Community 107 - "Community 107"
Cohesion: 0.18
Nodes (20): Settings, BaseSettings, load_runtime_settings(), load_settings_env(), main(), verify_user_menu_codes(), assign_user_roles(), collect_subtree_menu_ids() (+12 more)
Cohesion: 0.12
Nodes (33): Settings, BaseSettings, load_runtime_settings(), load_settings_env(), main(), verify_user_menu_codes(), apply_renumber(), build_mapping() (+25 more)
### Community 108 - "Community 108"
Cohesion: 0.36
@@ -633,20 +630,20 @@ Cohesion: 0.67
Nodes (3): parse_optional_plan_datetime(), datetime, 运输计划相关日期时间解析:前端 date-picker 仅传 YYYY-MM-DD。
### Community 111 - "Community 111"
Cohesion: 0.23
Nodes (14): _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj(), _schedule_persist_log() (+6 more)
Cohesion: 0.08
Nodes (29): category_add(), category_delete(), category_tree(), category_update(), product_add(), product_delete(), product_detail(), product_export() (+21 more)
### Community 112 - "Community 112"
Cohesion: 0.18
Nodes (17): get_oper_log_meta(), OperLogMeta, 请求级操作日志元数据(ContextVar), 供异步落库线程使用,避免 ContextVar 跨线程丢失。, set_oper_log_meta(), snapshot_oper_log_meta(), _format_summary(), oper_log() (+9 more)
Cohesion: 0.16
Nodes (15): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, assert_row_in_data_scope(), BxCrudService, Any, Session, 报销模块 Service 基类 — 租户隔离 + UUID + 软删除。, apply_bx_scope(), assert_bx_attachment_biz_in_scope() (+7 more)
### Community 113 - "Community 113"
Cohesion: 0.13
Nodes (31): Session, recognize_cert(), RecognizeCertBody, cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes() (+23 more)
### Community 114 - "Community 114"
Cohesion: 0.40
Nodes (11): _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics(), get_clue_source_statistics(), get_clue_trend_statistics(), Any (+3 more)
Cohesion: 0.36
Nodes (12): _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics(), get_clue_source_statistics(), get_clue_trend_statistics(), Any (+4 more)
### Community 115 - "Community 115"
Cohesion: 0.38
@@ -665,8 +662,8 @@ Cohesion: 0.36
Nodes (13): _build_tree(), _cascade_soft_delete(), create_menu(), get_menu(), list_menus(), list_menus_tree(), menu_name_exists(), Any (+5 more)
### Community 124 - "Community 124"
Cohesion: 0.15
Nodes (20): operlog_detail(), operlog_list(), Session, 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), _user_info(), business_type_from_path(), title_from_path(), _apply_oper_log_scope() (+12 more)
Cohesion: 0.06
Nodes (57): operlog_detail(), operlog_list(), Session, 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), _user_info(), _claims_from_auth(), _format_body_bytes(), _persist_log() (+49 more)
### Community 125 - "Community 125"
Cohesion: 0.12
@@ -685,8 +682,8 @@ Cohesion: 0.29
Nodes (15): create_price_letter(), get_price_letter(), list_price_letters(), _parse_date(), Any, date, Session, _row_to_dict() (+7 more)
### Community 136 - "Community 136"
Cohesion: 0.27
Nodes (11): customer_dealed(), customer_export(), customer_key(), customer_list(), customer_long_time_no_follow(), customer_mine(), customer_to_follow(), customer_week_new() (+3 more)
Cohesion: 0.15
Nodes (14): invoice_info_add(), invoice_info_by_customer(), _invoice_info_by_customer_impl(), invoice_info_delete(), invoice_info_list(), invoice_info_set_default(), invoice_info_update(), 按客户ID查询开票信息(与 by-customer 等价) (+6 more)
### Community 137 - "Community 137"
Cohesion: 0.32
@@ -709,16 +706,12 @@ Cohesion: 0.20
Nodes (15): bind_biz(), delete_attachment(), download_file(), list_by_biz(), _parse_id_list(), preview_attachment(), Session, UploadFile (+7 more)
### Community 142 - "Community 142"
Cohesion: 0.40
Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
Cohesion: 0.33
Nodes (11): create_vehicle(), get_vehicle(), update_vehicle(), _vehicle_to_detail(), _vehicle_to_read(), PlVehicle, VehicleBase, VehicleCreate (+3 more)
### Community 143 - "Community 143"
Cohesion: 0.11
Nodes (34): create_vehicle(), get_vehicle(), list_vehicles(), update_vehicle(), _vehicle_to_detail(), _vehicle_to_read(), PlVehicle, PlVehiclePersonnel (+26 more)
### Community 144 - "Community 144"
Cohesion: 0.31
Nodes (13): apply_renumber(), build_mapping(), fetch_products(), format_new_product_no(), load_settings_env(), main(), product_id_sort_key(), Engine (+5 more)
Cohesion: 0.14
Nodes (24): PlVehiclePersonnel, 车辆-人员关联表 pl_vehicle_personnel, CertRead, VehiclePersonnelRow, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, SnapshotCertRead, SnapshotPersonnelRow, TransportResourceSnapshot (+16 more)
### Community 145 - "Community 145"
Cohesion: 0.23
@@ -761,21 +754,13 @@ Cohesion: 0.15
Nodes (30): create_clue_follow(), delete_clue_follow(), get_clue_follow(), get_follow_statistics(), list_clue_follows(), Any, Session, 更新线索跟进记录,必要时同步线索 next_time (+22 more)
### Community 165 - "Community 165"
Cohesion: 0.09
Nodes (33): ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, StartInstanceBody, publish_version(), SoftDeleteModel, BizAttachment, 数据模型(与 docs/sql/shanxia2.0.sql 全库导出基线对齐的核心系统表) (+25 more)
Cohesion: 0.13
Nodes (21): ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, StartInstanceBody, 流程实例 wf_process_instance, WfNode, WfProcessInstance, WfTask (+13 more)
### Community 167 - "Community 167"
Cohesion: 0.47
Nodes (8): compare_data(), item_key(), load_portal_dicts(), load_sx_dicts(), main(), parse_insert_values(), Path, unquote()
### Community 168 - "Community 168"
Cohesion: 0.50
Nodes (4): ApiRequestLogCRUD, Session, SysApiRequestLog, SysApiRequestLogHis
### Community 169 - "Community 169"
Cohesion: 0.36
Nodes (7): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 民族码表 sys_ethnic(国标 GB/T 3304,全局), SysEthnic
## Knowledge Gaps
- **30 isolated node(s):** `Config`, `Config`, `Config`, `Config`, `Config` (+25 more)
These have ≤1 connection - possible missing edges or undocumented components.
@@ -784,17 +769,17 @@ Nodes (7): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `Settings` connect `Community 107` to `Community 4`, `Community 70`, `Community 7`, `Community 105`, `Community 43`, `Community 12`, `Community 140`, `Community 144`, `Community 49`, `Community 145`, `Community 50`, `Community 125`, `Community 126`, `Community 31`?**
- **Why does `Settings` connect `Community 107` to `Community 4`, `Community 70`, `Community 7`, `Community 105`, `Community 43`, `Community 12`, `Community 140`, `Community 81`, `Community 145`, `Community 50`, `Community 125`, `Community 126`, `Community 31`?**
_High betweenness centrality (0.150) - this node is a cross-community bridge._
- **Why does `generate_uuid()` connect `Community 19` to `Community 129`, `Community 5`, `Community 6`, `Community 8`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 143`, `Community 15`, `Community 17`, `Community 147`, `Community 148`, `Community 23`, `Community 24`, `Community 154`, `Community 26`, `Community 28`, `Community 29`, `Community 30`, `Community 159`, `Community 32`, `Community 34`, `Community 37`, `Community 38`, `Community 165`, `Community 42`, `Community 45`, `Community 46`, `Community 48`, `Community 49`, `Community 51`, `Community 52`, `Community 55`, `Community 56`, `Community 57`, `Community 58`, `Community 60`, `Community 64`, `Community 66`, `Community 71`, `Community 73`, `Community 75`, `Community 76`, `Community 77`, `Community 79`, `Community 82`, `Community 86`, `Community 87`, `Community 89`, `Community 90`, `Community 93`, `Community 94`, `Community 96`, `Community 97`, `Community 100`, `Community 107`, `Community 117`, `Community 121`, `Community 125`?**
- **Why does `generate_uuid()` connect `Community 19` to `Community 129`, `Community 5`, `Community 6`, `Community 8`, `Community 10`, `Community 11`, `Community 13`, `Community 142`, `Community 15`, `Community 14`, `Community 17`, `Community 143`, `Community 147`, `Community 148`, `Community 23`, `Community 24`, `Community 154`, `Community 26`, `Community 28`, `Community 29`, `Community 30`, `Community 159`, `Community 32`, `Community 34`, `Community 37`, `Community 38`, `Community 45`, `Community 46`, `Community 48`, `Community 49`, `Community 51`, `Community 52`, `Community 55`, `Community 56`, `Community 57`, `Community 58`, `Community 60`, `Community 64`, `Community 65`, `Community 66`, `Community 71`, `Community 73`, `Community 75`, `Community 77`, `Community 79`, `Community 82`, `Community 86`, `Community 87`, `Community 89`, `Community 90`, `Community 93`, `Community 94`, `Community 96`, `Community 97`, `Community 100`, `Community 107`, `Community 112`, `Community 117`, `Community 121`, `Community 125`?**
_High betweenness centrality (0.118) - this node is a cross-community bridge._
- **Why does `BaseModel` connect `Community 3` to `Community 0`, `Community 2`, `Community 5`, `Community 6`, `Community 136`, `Community 9`, `Community 8`, `Community 11`, `Community 138`, `Community 141`, `Community 14`, `Community 143`, `Community 13`, `Community 10`, `Community 18`, `Community 20`, `Community 21`, `Community 22`, `Community 33`, `Community 36`, `Community 37`, `Community 165`, `Community 39`, `Community 40`, `Community 42`, `Community 46`, `Community 48`, `Community 53`, `Community 57`, `Community 62`, `Community 63`, `Community 67`, `Community 69`, `Community 74`, `Community 76`, `Community 77`, `Community 79`, `Community 98`, `Community 101`, `Community 102`, `Community 113`, `Community 124`?**
- **Why does `BaseModel` connect `Community 3` to `Community 0`, `Community 2`, `Community 5`, `Community 6`, `Community 136`, `Community 9`, `Community 8`, `Community 11`, `Community 138`, `Community 141`, `Community 142`, `Community 143`, `Community 14`, `Community 13`, `Community 18`, `Community 10`, `Community 20`, `Community 21`, `Community 22`, `Community 33`, `Community 36`, `Community 37`, `Community 165`, `Community 39`, `Community 40`, `Community 42`, `Community 44`, `Community 46`, `Community 48`, `Community 53`, `Community 57`, `Community 62`, `Community 63`, `Community 67`, `Community 69`, `Community 74`, `Community 76`, `Community 77`, `Community 79`, `Community 96`, `Community 98`, `Community 101`, `Community 102`, `Community 111`, `Community 113`, `Community 124`?**
_High betweenness centrality (0.110) - this node is a cross-community bridge._
- **Are the 8 inferred relationships involving `DbUserContext` (e.g. with `InventoryRelatedData` and `AutoGenerateMonthlyResult`) actually correct?**
_`DbUserContext` has 8 INFERRED edges - model-reasoned connections that need verification._
- **What connects `API 路由包 — 山峡化工生产一体化门户`, `返回运营端角色下拉选项(label=库中角色名,value=Web 角色码)。`, `返回用户下拉选项(label=昵称,value=用户ID,附带 nickName/userNo),供审批人选择等场景使用。` to the rest of the system?**
_461 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Community 0` be split into smaller, more focused modules?**
_Cohesion score 0.033470993117010815 - nodes in this community are weakly interconnected._
_Cohesion score 0.03662814099246737 - nodes in this community are weakly interconnected._
- **Should `Community 3` be split into smaller, more focused modules?**
_Cohesion score 0.04873949579831933 - nodes in this community are weakly interconnected._
_Cohesion score 0.04371201496026181 - nodes in this community are weakly interconnected._
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_py", "label": "transport.py", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportbase", "label": "TransportBase", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L17"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportcreate", "label": "TransportCreate", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L41"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportarrange", "label": "TransportArrange", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L46"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportinventorylinkread", "label": "TransportInventoryLinkRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L74"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportsitelinkread", "label": "TransportSiteLinkRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L84"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportupdate", "label": "TransportUpdate", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L98"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportread", "label": "TransportRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L122"}, {"id": "planresourcesnapshotmixin", "label": "PlanResourceSnapshotMixin", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportioorderbrief", "label": "TransportIoOrderBrief", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L141"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportarrangeresult", "label": "TransportArrangeResult", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L151"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_planarrangeinforead", "label": "PlanArrangeInfoRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L162"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportwithplans", "label": "TransportWithPlans", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L173"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_transportfeedback", "label": "TransportFeedback", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L182"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_publictransportfeedback", "label": "PublicTransportFeedback", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L191"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_publictransportplanproductread", "label": "PublicTransportPlanProductRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L198"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_publictransportpersonnelread", "label": "PublicTransportPersonnelRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L208"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_publictransportpageread", "label": "PublicTransportPageRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L215"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_publictransportsitepageread", "label": "PublicTransportSitePageRead", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L245"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_approvalsubmit", "label": "ApprovalSubmit", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L276"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_approvalrequest", "label": "ApprovalRequest", "file_type": "code", "source_file": "app/schemas/pl/transport.py", "source_location": "L281"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_transport_approvalrecordread", "label": "ApprovalRecordRead", "file_type": "code", "source_file": "app/schemas/pl/traLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_py", "label": "public_transport.py", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_resolve_unit_label", "label": "_resolve_unit_label()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L33"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_get_transport_by_token", "label": "_get_transport_by_token()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L40"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}, {"id": "pltransport", "label": "PlTransport", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_parse_feedback_images", "label": "_parse_feedback_images()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L54"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_format_plan_date", "label": "_format_plan_date()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L66"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_resolve_other_personnel", "label": "_resolve_other_personnel()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L76"}, {"id": "plplan", "label": "PlPlan", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}, {"id": "publictransportpersonnelread", "label": "PublicTransportPersonnelRead", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_build_public_page", "label": "_build_public_page()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L105"}, {"id": "publictransportpageread", "label": "PublicTransportPageRead", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_get_public_transport", "label": "get_public_transport()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L183"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_save_public_feedback", "label": "save_public_feedback()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L190"}, {"id": "publictransportfeedback", "label": "PublicTransportFeedback", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_format_file_size", "label": "_format_file_size()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L214"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_upload_public_attachment", "label": "upload_public_attachment()", "file_type": "code", "source_file": "app/api/pl/public_transport.py", "source_location": "L223"}, {"id": "uploadfile", "label": "UploadFile", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_transport.py"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/pl/public_transport.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/pl/public_transport.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_transport_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/pl/public_transport.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_apiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_py", "label": "pl_io_order_service.py", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_ioordercreateresult", "label": "IoOrderCreateResult", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L36"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_build_io_order_site_url", "label": "build_io_order_site_url()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L44"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_normalize_plan_date", "label": "_normalize_plan_date()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L50"}, {"id": "plplan", "label": "PlPlan", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "date", "label": "date", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_next_order_no", "label": "_next_order_no()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L61"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_dibang_qty_by_plan_product", "label": "_dibang_qty_by_plan_product()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L79"}, {"id": "decimal", "label": "Decimal", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_create_io_order_for_transport", "label": "create_io_order_for_transport()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L111"}, {"id": "plplanproduct", "label": "PlPlanProduct", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "pltransport", "label": "PlTransport", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_apply_dibang_prefill_to_order", "label": "apply_dibang_prefill_to_order()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L193"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_void_io_orders_for_plan", "label": "void_io_orders_for_plan()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L238"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_get_active_io_order_for_plan", "label": "get_active_io_order_for_plan()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L262"}, {"id": "orderheader", "label": "OrderHeader", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_parse_feedback_images", "label": "parse_feedback_images()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L292"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_dump_feedback_images", "label": "dump_feedback_images()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L304"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_service_apply_site_feedback", "label": "apply_site_feedback()", "file_type": "code", "source_file": "app/services/pl_io_order_service.py", "source_location": "L311"}, {"id": "orderitem", "label": "OrderItem", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/pl_io_order_service.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_pl_io_order_serLine truncated
+1 -1
View File
@@ -1 +1 @@
{"/Users/zlwu/work/00code/shanxia2.0/backend/start-prod.sh":{"size":7357,"mtime_ns":1782639355476060453,"hash":"ca89869446be74a2bf2367b3b28f448580220859a39a84ad9613ac5fe35a8433"},"/Users/zlwu/work/00code/shanxia2.0/backend/start.sh":{"size":9548,"mtime_ns":1780114661446983244,"hash":"4d632863e8a0cd81194b491d83a0218a4157435ae812dec76a6f6197b4d48e57"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/__init__.py":{"size":21,"mtime_ns":1780113982281973984,"hash":"60a04ff08fd97084e83ea809fd13feda6d2848be20ebf309e31fc1dad7523230"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/main.py":{"size":6280,"mtime_ns":1782790852770448643,"hash":"8f9da799977bee7134d87a26ff8434ac5ef8eabb0b7368dd537eee49ad7fd00b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/tasks/__init__.py":{"size":2207,"mtime_ns":1783208067881286091,"hash":"313e6da0e91d743ce891dd283458c79b50b24c4d909dc96ca7b3fd9d2bfa5013"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/auth.py":{"size":7457,"mtime_ns":1782790841500516545,"hash":"34bac56e1c2cb6215f4b5fa2dc32d77d4b4abca51428819eebf4afd269cc51cf"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto.py":{"size":1870,"mtime_ns":1780108930724444498,"hash":"c04b748aea86890a5971f749523c7b17dbad1ddd6f9f7f07a5679d159c984e33"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/login_crypto.py":{"size":3858,"mtime_ns":1780108930725155710,"hash":"b82d51afabf2293a9cb1fb2e5f994c383948e7f47ea95fe674686b4f3f3342b1"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/config.py":{"size":6958,"mtime_ns":1784032424448146538,"hash":"c2fb44aedb880733de28afa7f92d2c1c681eb600f821bbeba2bcda3933e5bc37"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_pay.py":{"size":23585,"mtime_ns":1780108930725768130,"hash":"3d52265ce65d21e7103f94afa1e8547aee0823b5ea6d65c50317436ac81fb4fc"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_request_log_middleware.py":{"size":11971,"mtime_ns":1782701669198208175,"hash":"0b84c32828939e6102bb3647691fa8f04b1f68e0e0e9f28127374cc44e19a11c"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/database.py":{"size":1510,"mtime_ns":1782790847265601586,"hash":"8bc9c8ae62e2be2c6920036582ba448dfcd1711c41cebb62274ff6bc6ee14b0b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/security.py":{"size":728,"mtime_ns":1780108930725470004,"hash":"df0f01115064f7b8de1c81dbe9a6db39360c236610b68c33b3234a51d7f0025b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/request_payload.py":{"size":2842,"mtime_ns":1780108930725350836,"hash":"e9937151530ab1417ef297aef59111977725cf90be2a8fa76c00a0618789aba0"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/__init__.py":{"size":61,"mtime_ns":1780108930724312414,"hash":"3dd1842ee59b0c804176b03b4b8a323bd4a252b7feb1bbc32db64f3a8928570e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/response.py":{"size":1824,"mtime_ns":1780108930725412462,"hash":"f1739352d65ea8287d76e282a59553aa8d63c97e35764c64ac378aa5bd9c347e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/menu_guard.py":{"size":1611,"mtime_ns":1780108930725223002,"hash":"3e26077288c3620a4780038b891a326206b45bffe00aca545bdae30172487235"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/db_collation.py":{"size":548,"mtime_ns":1780108930725025043,"hash":"0c680e25a18244ca839a7de6ed1f4313b33bc8da118d89c463aee1b6af00c6f9"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/context.py":{"size":421,"mtime_ns":1780108930724824458,"hash":"83a10aee67162374993c10a30bf8bb8bd9c4b35cf48f42c832415ccebd91660f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/utils.py":{"size":1498,"mtime_ns":1780108930725607296,"hash":"09323693661c1d4560458b86a954128ccff82bbaf6522da0b44f24da99ddf9ea"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/storage.py":{"size":14141,"mtime_ns":1782855136810943216,"hash":"3ae2c413c10898a8adb3d6773870bafbfbc18c739c10e0e8b4f765b4b5ca6c08"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/order_status_compat.py":{"size":2828,"mtime_ns":1780108930725284669,"hash":"5349e5a0745ee6734c4a995337779307adefc46f453906171988a77de2081540"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/exceptions.py":{"size":4946,"mtime_ns":1780108930725084335,"hash":"79c997d964bca1a4f12f2b92fb1f181fdb9e2b3cf72eae39f4cc164d23794fd7"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/data_scope.py":{"size":8043,"mtime_ns":1782648925694296304,"hash":"626dff86937e5cacec634ecbc61cd53d3763d760223a1d4ec7cd11f64e59a220"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/admin_request_json.py":{"size":2669,"mtime_ns":1780108930724378914,"hash":"4f68b3cf84291e7bddad6ecf4bb4d29ca5e1ec246a9f7f9c4cf5909d0ec1174a"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto_middleware.py":{"size":10876,"mtime_ns":1782790001926627098,"hash":"b39f128b6612589ea6ac5babd30752e9585b3af07b82bb1ad53c9e3c0d90816f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_message.py":{"size":11194,"mtime_ns":1780108930725684255,"hash":"5086070deb14d99d1a69e419b2299ec4Line truncated
{"/Users/zlwu/work/00code/shanxia2.0/backend/start-prod.sh":{"size":7357,"mtime_ns":1782639355476060453,"hash":"ca89869446be74a2bf2367b3b28f448580220859a39a84ad9613ac5fe35a8433"},"/Users/zlwu/work/00code/shanxia2.0/backend/start.sh":{"size":9548,"mtime_ns":1780114661446983244,"hash":"4d632863e8a0cd81194b491d83a0218a4157435ae812dec76a6f6197b4d48e57"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/__init__.py":{"size":21,"mtime_ns":1780113982281973984,"hash":"60a04ff08fd97084e83ea809fd13feda6d2848be20ebf309e31fc1dad7523230"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/main.py":{"size":6280,"mtime_ns":1782790852770448643,"hash":"8f9da799977bee7134d87a26ff8434ac5ef8eabb0b7368dd537eee49ad7fd00b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/tasks/__init__.py":{"size":2207,"mtime_ns":1783208067881286091,"hash":"313e6da0e91d743ce891dd283458c79b50b24c4d909dc96ca7b3fd9d2bfa5013"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/auth.py":{"size":7457,"mtime_ns":1782790841500516545,"hash":"34bac56e1c2cb6215f4b5fa2dc32d77d4b4abca51428819eebf4afd269cc51cf"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto.py":{"size":1870,"mtime_ns":1780108930724444498,"hash":"c04b748aea86890a5971f749523c7b17dbad1ddd6f9f7f07a5679d159c984e33"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/login_crypto.py":{"size":3858,"mtime_ns":1780108930725155710,"hash":"b82d51afabf2293a9cb1fb2e5f994c383948e7f47ea95fe674686b4f3f3342b1"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/config.py":{"size":6958,"mtime_ns":1784032424448146538,"hash":"c2fb44aedb880733de28afa7f92d2c1c681eb600f821bbeba2bcda3933e5bc37"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_pay.py":{"size":23585,"mtime_ns":1780108930725768130,"hash":"3d52265ce65d21e7103f94afa1e8547aee0823b5ea6d65c50317436ac81fb4fc"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_request_log_middleware.py":{"size":11971,"mtime_ns":1782701669198208175,"hash":"0b84c32828939e6102bb3647691fa8f04b1f68e0e0e9f28127374cc44e19a11c"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/database.py":{"size":1510,"mtime_ns":1782790847265601586,"hash":"8bc9c8ae62e2be2c6920036582ba448dfcd1711c41cebb62274ff6bc6ee14b0b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/security.py":{"size":728,"mtime_ns":1780108930725470004,"hash":"df0f01115064f7b8de1c81dbe9a6db39360c236610b68c33b3234a51d7f0025b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/request_payload.py":{"size":2842,"mtime_ns":1780108930725350836,"hash":"e9937151530ab1417ef297aef59111977725cf90be2a8fa76c00a0618789aba0"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/__init__.py":{"size":61,"mtime_ns":1780108930724312414,"hash":"3dd1842ee59b0c804176b03b4b8a323bd4a252b7feb1bbc32db64f3a8928570e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/response.py":{"size":1824,"mtime_ns":1780108930725412462,"hash":"f1739352d65ea8287d76e282a59553aa8d63c97e35764c64ac378aa5bd9c347e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/menu_guard.py":{"size":1611,"mtime_ns":1780108930725223002,"hash":"3e26077288c3620a4780038b891a326206b45bffe00aca545bdae30172487235"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/db_collation.py":{"size":548,"mtime_ns":1780108930725025043,"hash":"0c680e25a18244ca839a7de6ed1f4313b33bc8da118d89c463aee1b6af00c6f9"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/context.py":{"size":421,"mtime_ns":1780108930724824458,"hash":"83a10aee67162374993c10a30bf8bb8bd9c4b35cf48f42c832415ccebd91660f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/utils.py":{"size":1498,"mtime_ns":1780108930725607296,"hash":"09323693661c1d4560458b86a954128ccff82bbaf6522da0b44f24da99ddf9ea"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/storage.py":{"size":14141,"mtime_ns":1782855136810943216,"hash":"3ae2c413c10898a8adb3d6773870bafbfbc18c739c10e0e8b4f765b4b5ca6c08"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/order_status_compat.py":{"size":2828,"mtime_ns":1780108930725284669,"hash":"5349e5a0745ee6734c4a995337779307adefc46f453906171988a77de2081540"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/exceptions.py":{"size":4946,"mtime_ns":1780108930725084335,"hash":"79c997d964bca1a4f12f2b92fb1f181fdb9e2b3cf72eae39f4cc164d23794fd7"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/data_scope.py":{"size":8043,"mtime_ns":1782648925694296304,"hash":"626dff86937e5cacec634ecbc61cd53d3763d760223a1d4ec7cd11f64e59a220"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/admin_request_json.py":{"size":2669,"mtime_ns":1780108930724378914,"hash":"4f68b3cf84291e7bddad6ecf4bb4d29ca5e1ec246a9f7f9c4cf5909d0ec1174a"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto_middleware.py":{"size":10876,"mtime_ns":1782790001926627098,"hash":"b39f128b6612589ea6ac5babd30752e9585b3af07b82bb1ad53c9e3c0d90816f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_message.py":{"size":11194,"mtime_ns":1780108930725684255,"hash":"5086070deb14d99d1a69e419b2299ec4Line truncated
+5 -5
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>graphify - backend/graphify-out/graph.html</title>
<title>graphify - /Users/wuzilong/work/00code/shanxia2.0/backend/graphify-out/graph.html</title>
<script src="https://unpkg.com/vis-network@9.1.6/standalone/umd/vis-network.min.js"
integrity="sha384-Ux6phic9PEHJ38YtrijhkzyJ8yQlH8i/+buBR8s3mAZOJrP1gwyvAcIYl3GWtpX1"
crossorigin="anonymous"></script>
@@ -63,12 +63,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">3969 nodes &middot; 14567 edges &middot; 170 communities</div>
<div id="stats">3969 nodes &middot; 14570 edges &middot; 167 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "app_init", "label": "__init__.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 123, "community_name": "Community 123", "source_file": "app/__init__.py", "file_type": "code", "degree": 0}, {"id": "app_api_init", "label": "__init__.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 9, "community_name": "Community 9", "source_file": "app/api/__init__.py", "file_type": "code", "degree": 10}, {"id": "app_api_init_rationale_1", "label": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "community": 9, "community_name": "Community 9", "source_file": "app/api/__init__.py", "file_type": "rationale", "degree": 1}, {"id": "app_api_admin", "label": "admin.py", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 17.2, "font": {"size": 12, "color": "#ffffff"}, "title": "admin.py", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 110}, {"id": "app_api_admin_list_roles_for_select", "label": "list_roles_for_select()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_select()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_py_session", "label": "Session", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 13.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Session", "community": 18, "community_name": "Community 18", "source_file": "", "file_type": "code", "degree": 53}, {"id": "app_api_admin_list_users_for_select", "label": "list_users_for_select()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "list_users_for_select()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 6}, {"id": "app_api_admin_list_roles_for_designer", "label": "list_roles_for_designer()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_designer()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 6}, {"id": "app_api_admin_tenantcreatebody", "label": "TenantCreateBody", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantCreateBody", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 7}, {"id": "app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantUpdateBody", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 7}, {"id": "app_api_admin_list_tenants", "label": "list_tenants()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "list_tenants()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 3}, {"id": "app_api_admin_create_tenant", "label": "create_tenant()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "create_tenant()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_update_tenant", "label": "update_tenant()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"Line truncated
const RAW_EDGES = [{"from": "app_api_init", "to": "app_api_admin", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_bx_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_crm", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_db_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_leave", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_menu", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_monitor", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_public", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_workflow", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init_rationale_1", "to": "app_api_init", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_download_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_preview_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachmentdownloadurlbody", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_type", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_menu", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_post", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_role_management", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_site", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_tenant", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_user", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dict_type", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 226}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 1}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 12}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 85}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 29}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 36}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 41}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 38}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 74}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 64}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 37}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 55}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 31}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 35}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 95}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 31}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 12}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 61}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 91}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 41}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 34}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 70}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 57}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 31}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 29}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 29}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 50}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 25}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 27}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 67}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 63}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 34}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 33}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 30}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 24}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 21}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 39}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 28}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 20}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 29}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 21}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 20}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 73}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 32}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 14}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 48}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 30}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 36}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 38}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 20}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 23}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 20}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 27}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 32}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 51}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 23}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 41}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 13}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 18}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 23}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 24}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 16}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 25}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 28}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 11}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 18}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 28}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 19}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 16}, {"cid": 70, "color": "#4E79A7", "lLine truncated
const RAW_NODES = [{"id": "app_init", "label": "__init__.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 123, "community_name": "Community 123", "source_file": "app/__init__.py", "file_type": "code", "degree": 0}, {"id": "app_api_init", "label": "__init__.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 9, "community_name": "Community 9", "source_file": "app/api/__init__.py", "file_type": "code", "degree": 10}, {"id": "app_api_init_rationale_1", "label": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "community": 9, "community_name": "Community 9", "source_file": "app/api/__init__.py", "file_type": "rationale", "degree": 1}, {"id": "app_api_admin", "label": "admin.py", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 17.2, "font": {"size": 12, "color": "#ffffff"}, "title": "admin.py", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 110}, {"id": "app_api_admin_list_roles_for_select", "label": "list_roles_for_select()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_select()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_py_session", "label": "Session", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 13.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Session", "community": 18, "community_name": "Community 18", "source_file": "", "file_type": "code", "degree": 53}, {"id": "app_api_admin_list_users_for_select", "label": "list_users_for_select()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "list_users_for_select()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 6}, {"id": "app_api_admin_list_roles_for_designer", "label": "list_roles_for_designer()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_designer()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 6}, {"id": "app_api_admin_tenantcreatebody", "label": "TenantCreateBody", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantCreateBody", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 7}, {"id": "app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantUpdateBody", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 7}, {"id": "app_api_admin_list_tenants", "label": "list_tenants()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "list_tenants()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 3}, {"id": "app_api_admin_create_tenant", "label": "create_tenant()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "create_tenant()", "community": 18, "community_name": "Community 18", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_update_tenant", "label": "update_tenant()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"Line truncated
const RAW_EDGES = [{"from": "app_api_init", "to": "app_api_admin", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_bx_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_crm", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_db_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_leave", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_menu", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_monitor", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_public", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_workflow", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init_rationale_1", "to": "app_api_init", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_download_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_preview_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachmentdownloadurlbody", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_type", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_menu", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_post", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_role_management", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_site", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_tenant", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_user", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dict_type", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 187}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 1}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 12}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 93}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 29}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 36}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 41}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 38}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 74}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 64}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 37}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 55}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 31}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 35}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 95}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 31}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 12}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 61}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 91}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 41}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 34}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 35}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 57}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 31}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 29}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 26}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 50}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 25}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 27}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 65}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 63}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 34}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 33}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 30}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 24}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 21}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 39}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 28}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 20}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 29}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 21}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 20}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 46}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 33}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 42}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 23}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 30}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 43}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 35}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 20}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 24}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 22}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 27}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 32}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 51}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 23}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 40}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 13}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 18}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 23}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 24}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 16}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 24}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 34}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 39}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 18}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 17}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 17}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 30}, {"cid": 70, "color": "#4E79A7", "lLine truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,929 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>菜单布局方案对比 · 横向导航 Demo</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--primary: #10b981;
--primary-dark: #059669;
--primary-bg: #ecfdf5;
--portal-green: #1ca851;
--text: #1e293b;
--text-muted: #64748b;
--border: #d9e8e2;
--bg-page: #f8fafc;
--surface: #ffffff;
--table-head: #f8fafc;
--row-alt: #fafafa;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
--radius: 10px;
--content-padding: 24px;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 14px;
line-height: 1.5;
color: var(--text);
background: #eef2f0;
}
/* —— 选择器壳 —— */
.picker {
position: sticky;
top: 0;
z-index: 100;
background: #0f172a;
color: #e2e8f0;
border-bottom: 1px solid #1e293b;
padding: 12px 20px 14px;
}
.picker-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 8px 16px;
margin-bottom: 10px;
}
.picker-head h1 {
margin: 0;
font-size: 15px;
font-weight: 600;
color: #f8fafc;
}
.picker-head p {
margin: 0;
font-size: 12px;
color: #94a3b8;
}
.picker-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.picker-tab {
appearance: none;
border: 1px solid #334155;
background: #1e293b;
color: #cbd5e1;
border-radius: 8px;
padding: 8px 12px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
text-align: left;
max-width: 220px;
}
.picker-tab:hover { border-color: #64748b; color: #f1f5f9; }
.picker-tab.is-active {
background: var(--primary);
border-color: var(--primary);
color: #fff;
}
.picker-tab strong {
display: block;
font-size: 12px;
margin-bottom: 2px;
}
.picker-tab span {
display: block;
font-size: 11px;
opacity: 0.85;
font-weight: 400;
line-height: 1.35;
}
.picker-note {
margin: 10px 0 0;
font-size: 12px;
color: #94a3b8;
max-width: 960px;
}
.picker-note b { color: #e2e8f0; font-weight: 600; }
.stage {
padding: 16px;
max-width: 1280px;
margin: 0 auto;
}
.frame {
background: var(--bg-page);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow);
min-height: 620px;
display: none;
}
.frame.is-active { display: flex; flex-direction: column; }
/* 共用 mock UI */
.mock-content { flex: 1; padding: var(--content-padding); min-width: 0; }
.mock-panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.mock-panel-top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid var(--border);
}
.mock-panel-top h2 {
margin: 0;
font-size: 15px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}
.mock-panel-top h2::before {
content: "";
width: 3px;
height: 14px;
border-radius: 2px;
background: var(--primary);
}
.mock-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
font-size: 13px;
color: var(--text-muted);
}
.btn {
appearance: none;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
border-radius: 8px;
height: 32px;
padding: 0 12px;
font-size: 13px;
cursor: default;
}
.btn-main {
background: var(--primary);
border-color: var(--primary);
color: #fff;
font-weight: 600;
}
.mock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-table th {
text-align: left;
background: var(--table-head);
color: var(--text-muted);
font-weight: 600;
padding: 10px 14px;
border-bottom: 1px solid var(--border);
}
.mock-table td {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
color: var(--text);
}
.mock-table tr:nth-child(even) td { background: var(--row-alt); }
.tag {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 12px;
background: var(--primary-bg);
color: var(--primary-dark);
font-weight: 600;
}
.space-badge {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--text-muted);
background: #fff7ed;
border: 1px solid #fed7aa;
border-radius: 6px;
padding: 4px 8px;
}
.space-badge em {
font-style: normal;
font-weight: 700;
color: #c2410c;
}
.user-chip {
display: flex;
align-items: center;
gap: 8px;
color: inherit;
font-size: 13px;
white-space: nowrap;
}
.avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: rgba(255,255,255,0.25);
border: 1px solid rgba(255,255,255,0.35);
}
.avatar.dark {
background: var(--primary-bg);
border-color: var(--border);
}
/* ========== A: 现状门户 ========== */
.a-header {
height: 56px;
background: var(--portal-green);
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
gap: 12px;
}
.a-brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
font-size: 15px;
flex-shrink: 0;
}
.a-logo {
width: 32px;
height: 32px;
border-radius: 8px;
background: rgba(255,255,255,0.2);
display: grid;
place-items: center;
font-size: 12px;
font-weight: 800;
}
.a-modules {
display: flex;
gap: 6px;
flex: 1;
min-width: 0;
overflow: hidden;
}
.a-mod {
appearance: none;
border: 1px solid rgba(255,255,255,0.25);
background: rgba(255,255,255,0.12);
color: #fff;
border-radius: 8px;
padding: 6px 12px;
font-size: 13px;
white-space: nowrap;
cursor: pointer;
}
.a-mod.is-active {
background: #fff;
color: var(--portal-green);
border-color: #fff;
font-weight: 600;
}
.a-body { display: flex; flex: 1; min-height: 0; }
.a-side {
width: 220px;
flex-shrink: 0;
background: var(--surface);
border-right: 1px solid var(--border);
padding: 16px 12px;
}
.a-side .group-title {
font-size: 12px;
font-weight: 700;
color: var(--text-muted);
padding: 8px 12px;
letter-spacing: 0.02em;
}
.a-side a {
display: block;
padding: 8px 12px;
margin: 2px 0;
border-radius: 8px;
color: var(--text-muted);
text-decoration: none;
font-size: 13px;
font-weight: 500;
}
.a-side a:hover { background: var(--row-alt); color: var(--text); }
.a-side a.active {
background: var(--primary-bg);
color: var(--primary-dark);
font-weight: 600;
}
.width-callout {
margin: 12px;
padding: 8px 10px;
border-radius: 8px;
border: 1px dashed #fdba74;
background: #fffbeb;
font-size: 11px;
color: #9a3412;
line-height: 1.4;
}
/* ========== B: 纯顶栏横向 + 下拉 ========== */
.b-top {
height: 56px;
background: var(--surface);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 20px;
gap: 16px;
}
.b-brand {
display: flex;
align-items: center;
gap: 8px;
font-weight: 700;
font-size: 15px;
flex-shrink: 0;
color: var(--text);
}
.b-brand span { color: var(--primary); }
.b-nav {
display: flex;
align-items: stretch;
gap: 2px;
flex: 1;
min-width: 0;
height: 100%;
}
.b-item {
position: relative;
display: flex;
align-items: center;
height: 100%;
}
.b-link {
appearance: none;
border: 0;
background: transparent;
padding: 0 14px;
height: 100%;
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
border-bottom: 2px solid transparent;
}
.b-link:hover { color: var(--text); background: var(--row-alt); }
.b-item.is-active > .b-link {
color: var(--primary-dark);
font-weight: 600;
border-bottom-color: var(--primary);
}
.b-drop {
display: none;
position: absolute;
top: calc(100% - 2px);
left: 0;
min-width: 180px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
padding: 6px;
z-index: 20;
}
.b-item:hover .b-drop,
.b-item:focus-within .b-drop { display: block; }
.b-drop a {
display: block;
padding: 8px 12px;
border-radius: 8px;
color: var(--text-muted);
text-decoration: none;
font-size: 13px;
}
.b-drop a:hover,
.b-drop a.active {
background: var(--primary-bg);
color: var(--primary-dark);
}
.b-actions {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
color: var(--text);
}
/* ========== C: 双层顶栏 ========== */
.c-l1 {
height: 48px;
background: var(--portal-green);
color: #fff;
display: flex;
align-items: center;
padding: 0 20px;
gap: 16px;
}
.c-l1 .b-brand { color: #fff; }
.c-l1 .b-brand span { color: #d1fae5; }
.c-l1-nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.c-l1-btn {
appearance: none;
border: 0;
background: transparent;
color: rgba(255,255,255,0.85);
padding: 6px 12px;
border-radius: 8px;
font-size: 13px;
cursor: pointer;
}
.c-l1-btn.is-active,
.c-l1-btn:hover {
background: rgba(255,255,255,0.18);
color: #fff;
font-weight: 600;
}
.c-l2 {
height: 44px;
background: var(--surface);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 20px;
gap: 4px;
overflow-x: auto;
}
.c-l2 a {
text-decoration: none;
color: var(--text-muted);
font-size: 13px;
padding: 6px 12px;
border-radius: 8px;
white-space: nowrap;
font-weight: 500;
}
.c-l2 a:hover { background: var(--row-alt); color: var(--text); }
.c-l2 a.active {
background: var(--primary-bg);
color: var(--primary-dark);
font-weight: 600;
}
/* ========== D: Mega Menu ========== */
.d-mega {
display: none;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
width: min(720px, calc(100vw - 48px));
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
padding: 16px;
z-index: 30;
grid-template-columns: repeat(3, 1fr);
gap: 12px 20px;
}
.d-item { position: relative; height: 100%; display: flex; align-items: center; }
.d-item:hover .d-mega,
.d-item:focus-within .d-mega { display: grid; }
.d-col h4 {
margin: 0 0 8px;
font-size: 12px;
color: var(--text-muted);
font-weight: 700;
letter-spacing: 0.02em;
}
.d-col a {
display: block;
padding: 6px 8px;
margin: 0 -8px;
border-radius: 6px;
color: var(--text);
text-decoration: none;
font-size: 13px;
}
.d-col a:hover { background: var(--primary-bg); color: var(--primary-dark); }
.d-col a.active {
background: var(--primary-bg);
color: var(--primary-dark);
font-weight: 600;
}
/* ========== E: 顶栏一级 + 窄侧栏二级 ========== */
.e-body { display: flex; flex: 1; min-height: 0; }
.e-side {
width: 160px;
flex-shrink: 0;
background: var(--surface);
border-right: 1px solid var(--border);
padding: 12px 8px;
}
.e-side a {
display: block;
padding: 8px 10px;
margin: 2px 0;
border-radius: 8px;
color: var(--text-muted);
text-decoration: none;
font-size: 13px;
}
.e-side a:hover { background: var(--row-alt); color: var(--text); }
.e-side a.active {
background: var(--primary-bg);
color: var(--primary-dark);
font-weight: 600;
}
.gain-bar {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.gain-pill {
font-size: 11px;
padding: 4px 8px;
border-radius: 6px;
background: var(--primary-bg);
color: var(--primary-dark);
font-weight: 600;
border: 1px solid #a7f3d0;
}
.gain-pill.warn {
background: #fff7ed;
color: #c2410c;
border-color: #fed7aa;
}
</style>
</head>
<body>
<div class="picker">
<div class="picker-head">
<h1>web-admin 菜单布局方案对比</h1>
<p>Fresh Mint Token · 仅 Demo,未改产品代码 · 点击下方切换</p>
</div>
<div class="picker-tabs" role="tablist">
<button type="button" class="picker-tab is-active" data-demo="a" role="tab">
<strong>A · 现状(门户)</strong>
<span>顶栏模块卡 + 左侧 220px 子菜单</span>
</button>
<button type="button" class="picker-tab" data-demo="b" role="tab">
<strong>B · 纯顶栏下拉</strong>
<span>一级横排,二级 Hover 下拉</span>
</button>
<button type="button" class="picker-tab" data-demo="c" role="tab">
<strong>C · 双层顶栏</strong>
<span>一级绿条 + 二级白条,无侧栏</span>
</button>
<button type="button" class="picker-tab" data-demo="d" role="tab">
<strong>D · Mega 面板</strong>
<span>一级横排 + 大面板分组二级</span>
</button>
<button type="button" class="picker-tab" data-demo="e" role="tab">
<strong>E · 顶栏+窄侧栏</strong>
<span>一级上移,侧栏缩至 160px</span>
</button>
</div>
<p class="picker-note" id="demoNote">
<b>A 现状:</b>客户感知「左侧占空间」主要来自当前 PORTAL 布局的固定侧栏(约 220–270px)。内容区被横向压缩,宽表/操作列更容易出现横向滚动。
</p>
</div>
<div class="stage">
<!-- A -->
<div class="frame is-active" id="demo-a" data-label="A">
<header class="a-header">
<div class="a-brand"><div class="a-logo">SX</div>山峡一体化门户</div>
<div class="a-modules">
<button type="button" class="a-mod is-active">CRM</button>
<button type="button" class="a-mod">细胞存储</button>
<button type="button" class="a-mod">报销</button>
<button type="button" class="a-mod">系统管理</button>
<button type="button" class="a-mod">Demo</button>
</div>
<div class="user-chip"><div class="avatar"></div>管理员</div>
</header>
<div class="a-body">
<aside class="a-side">
<div class="group-title">客户与商机</div>
<a href="#" class="active">客户管理</a>
<a href="#">商机跟进</a>
<a href="#">合同管理</a>
<div class="group-title">商品</div>
<a href="#">商品列表</a>
<a href="#">分类管理</a>
<div class="width-callout">侧栏常宽 ≈ 220–270px<br />宽屏列表少约 1/6~1/5 可用宽度</div>
</aside>
<div class="mock-content">
<div class="gain-bar">
<span class="gain-pill warn">内容区最窄 · 基线对照</span>
<span class="space-badge">侧栏占用 <em>≈220px</em> 固定宽度</span>
</div>
<div class="mock-panel">
<div class="mock-panel-top"><h2>客户列表</h2></div>
<div class="mock-toolbar">
<span>已选 0 项</span>
<button type="button" class="btn btn-main">新增</button>
<button type="button" class="btn">导出</button>
</div>
<table class="mock-table">
<thead><tr><th>客户名称</th><th>区域</th><th>状态</th><th>更新时间</th></tr></thead>
<tbody>
<tr><td>华东生物科技</td><td>上海 / 浦东</td><td><span class="tag">合作中</span></td><td>2026-07-18</td></tr>
<tr><td>三峡医械</td><td>湖北 / 宜昌</td><td><span class="tag">合作中</span></td><td>2026-07-17</td></tr>
<tr><td>绿源检测</td><td>江苏 / 苏州</td><td><span class="tag">跟进中</span></td><td>2026-07-16</td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- B -->
<div class="frame" id="demo-b" data-label="B">
<header class="b-top">
<div class="b-brand">山峡<span>门户</span></div>
<nav class="b-nav" aria-label="主导航">
<div class="b-item is-active">
<button type="button" class="b-link">CRM ▾</button>
<div class="b-drop">
<a href="#" class="active">客户管理</a>
<a href="#">商机跟进</a>
<a href="#">合同管理</a>
<a href="#">商品列表</a>
<a href="#">分类管理</a>
</div>
</div>
<div class="b-item">
<button type="button" class="b-link">细胞存储 ▾</button>
<div class="b-drop">
<a href="#">样本接收</a>
<a href="#">质检工单</a>
<a href="#">协议管理</a>
</div>
</div>
<div class="b-item">
<button type="button" class="b-link">报销 ▾</button>
<div class="b-drop">
<a href="#">我的报销</a>
<a href="#">待审批</a>
<a href="#">借款申请</a>
</div>
</div>
<div class="b-item">
<button type="button" class="b-link">系统管理 ▾</button>
<div class="b-drop">
<a href="#">用户</a>
<a href="#">角色</a>
<a href="#">菜单</a>
<a href="#">租户</a>
</div>
</div>
<div class="b-item">
<button type="button" class="b-link">Demo ▾</button>
<div class="b-drop">
<a href="#">工作台</a>
<a href="#">标准列表</a>
<a href="#">订单列表</a>
</div>
</div>
</nav>
<div class="b-actions">
<div class="user-chip"><div class="avatar dark"></div>管理员</div>
</div>
</header>
<div class="mock-content">
<div class="gain-bar">
<span class="gain-pill">释放全部侧栏宽度 · 内容区最宽</span>
<span class="space-badge">侧栏占用 <em>0px</em></span>
</div>
<div class="mock-panel">
<div class="mock-panel-top"><h2>客户列表</h2></div>
<div class="mock-toolbar">
<span>已选 0 项</span>
<button type="button" class="btn btn-main">新增</button>
<button type="button" class="btn">导出</button>
</div>
<table class="mock-table">
<thead><tr><th>客户名称</th><th>区域</th><th>联系人</th><th>状态</th><th>更新时间</th></tr></thead>
<tbody>
<tr><td>华东生物科技</td><td>上海 / 浦东</td><td>王敏</td><td><span class="tag">合作中</span></td><td>2026-07-18</td></tr>
<tr><td>三峡医械</td><td>湖北 / 宜昌</td><td>李强</td><td><span class="tag">合作中</span></td><td>2026-07-17</td></tr>
<tr><td>绿源检测</td><td>江苏 / 苏州</td><td>陈洁</td><td><span class="tag">跟进中</span></td><td>2026-07-16</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- C -->
<div class="frame" id="demo-c" data-label="C">
<header class="c-l1">
<div class="b-brand">山峡<span>门户</span></div>
<nav class="c-l1-nav">
<button type="button" class="c-l1-btn is-active">CRM</button>
<button type="button" class="c-l1-btn">细胞存储</button>
<button type="button" class="c-l1-btn">报销</button>
<button type="button" class="c-l1-btn">系统管理</button>
<button type="button" class="c-l1-btn">Demo</button>
</nav>
<div class="user-chip"><div class="avatar"></div>管理员</div>
</header>
<nav class="c-l2" aria-label="二级导航">
<a href="#" class="active">客户管理</a>
<a href="#">商机跟进</a>
<a href="#">合同管理</a>
<a href="#">商品列表</a>
<a href="#">分类管理</a>
</nav>
<div class="mock-content">
<div class="gain-bar">
<span class="gain-pill">无侧栏 · 二级始终可见(无需 Hover)</span>
<span class="space-badge">额外顶栏高度 <em>+44px</em>,宽度全释放</span>
</div>
<div class="mock-panel">
<div class="mock-panel-top"><h2>客户列表</h2></div>
<div class="mock-toolbar">
<span>已选 0 项</span>
<button type="button" class="btn btn-main">新增</button>
<button type="button" class="btn">导出</button>
</div>
<table class="mock-table">
<thead><tr><th>客户名称</th><th>区域</th><th>联系人</th><th>状态</th><th>更新时间</th></tr></thead>
<tbody>
<tr><td>华东生物科技</td><td>上海 / 浦东</td><td>王敏</td><td><span class="tag">合作中</span></td><td>2026-07-18</td></tr>
<tr><td>三峡医械</td><td>湖北 / 宜昌</td><td>李强</td><td><span class="tag">合作中</span></td><td>2026-07-17</td></tr>
<tr><td>绿源检测</td><td>江苏 / 苏州</td><td>陈洁</td><td><span class="tag">跟进中</span></td><td>2026-07-16</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- D -->
<div class="frame" id="demo-d" data-label="D">
<header class="b-top">
<div class="b-brand">山峡<span>门户</span></div>
<nav class="b-nav">
<div class="d-item">
<button type="button" class="b-link" style="border-bottom-color:var(--primary);color:var(--primary-dark);font-weight:600">CRM ▾</button>
<div class="d-mega">
<div class="d-col">
<h4>客户与商机</h4>
<a href="#" class="active">客户管理</a>
<a href="#">商机跟进</a>
<a href="#">合同管理</a>
</div>
<div class="d-col">
<h4>商品主数据</h4>
<a href="#">商品列表</a>
<a href="#">分类管理</a>
<a href="#">单位管理</a>
</div>
<div class="d-col">
<h4>分析</h4>
<a href="#">销售看板</a>
<a href="#">区域报表</a>
</div>
</div>
</div>
<div class="d-item">
<button type="button" class="b-link">细胞存储 ▾</button>
<div class="d-mega">
<div class="d-col">
<h4>样本</h4>
<a href="#">样本接收</a>
<a href="#">质检工单</a>
</div>
<div class="d-col">
<h4>协议</h4>
<a href="#">协议管理</a>
<a href="#">归档查询</a>
</div>
<div class="d-col">
<h4>其他</h4>
<a href="#">库存概览</a>
</div>
</div>
</div>
<div class="d-item"><button type="button" class="b-link">报销 ▾</button></div>
<div class="d-item"><button type="button" class="b-link">系统管理 ▾</button></div>
<div class="d-item"><button type="button" class="b-link">Demo ▾</button></div>
</nav>
<div class="b-actions">
<div class="user-chip"><div class="avatar dark"></div>管理员</div>
</div>
</header>
<div class="mock-content">
<div class="gain-bar">
<span class="gain-pill">适合二级很多、需分组浏览的模块</span>
<span class="space-badge">侧栏 <em>0px</em> · Hover「CRM」查看大面板</span>
</div>
<div class="mock-panel">
<div class="mock-panel-top"><h2>客户列表</h2></div>
<div class="mock-toolbar">
<span>已选 0 项</span>
<button type="button" class="btn btn-main">新增</button>
<button type="button" class="btn">导出</button>
</div>
<table class="mock-table">
<thead><tr><th>客户名称</th><th>区域</th><th>联系人</th><th>状态</th><th>更新时间</th></tr></thead>
<tbody>
<tr><td>华东生物科技</td><td>上海 / 浦东</td><td>王敏</td><td><span class="tag">合作中</span></td><td>2026-07-18</td></tr>
<tr><td>三峡医械</td><td>湖北 / 宜昌</td><td>李强</td><td><span class="tag">合作中</span></td><td>2026-07-17</td></tr>
<tr><td>绿源检测</td><td>江苏 / 苏州</td><td>陈洁</td><td><span class="tag">跟进中</span></td><td>2026-07-16</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- E -->
<div class="frame" id="demo-e" data-label="E">
<header class="c-l1">
<div class="b-brand">山峡<span>门户</span></div>
<nav class="c-l1-nav">
<button type="button" class="c-l1-btn is-active">CRM</button>
<button type="button" class="c-l1-btn">细胞存储</button>
<button type="button" class="c-l1-btn">报销</button>
<button type="button" class="c-l1-btn">系统管理</button>
<button type="button" class="c-l1-btn">Demo</button>
</nav>
<div class="user-chip"><div class="avatar"></div>管理员</div>
</header>
<div class="e-body">
<aside class="e-side">
<a href="#" class="active">客户管理</a>
<a href="#">商机跟进</a>
<a href="#">合同管理</a>
<a href="#">商品列表</a>
<a href="#">分类管理</a>
<div class="width-callout" style="margin:10px 4px">窄侧栏 160px<br />比现状约省 60–110px</div>
</aside>
<div class="mock-content">
<div class="gain-bar">
<span class="gain-pill">折中:一级上移,二级仍常驻可见</span>
<span class="space-badge">侧栏 <em>160px</em>(可再折叠)</span>
</div>
<div class="mock-panel">
<div class="mock-panel-top"><h2>客户列表</h2></div>
<div class="mock-toolbar">
<span>已选 0 项</span>
<button type="button" class="btn btn-main">新增</button>
<button type="button" class="btn">导出</button>
</div>
<table class="mock-table">
<thead><tr><th>客户名称</th><th>区域</th><th>状态</th><th>更新时间</th></tr></thead>
<tbody>
<tr><td>华东生物科技</td><td>上海 / 浦东</td><td><span class="tag">合作中</span></td><td>2026-07-18</td></tr>
<tr><td>三峡医械</td><td>湖北 / 宜昌</td><td><span class="tag">合作中</span></td><td>2026-07-17</td></tr>
<tr><td>绿源检测</td><td>江苏 / 苏州</td><td><span class="tag">跟进中</span></td><td>2026-07-16</td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script>
const notes = {
a: '<b>A 现状(PORTAL):</b>顶栏选模块 + 左侧展示该模块子菜单。与当前 web-admin 默认布局最接近。客户说的「占空间」主要指这条固定侧栏。',
b: '<b>B 纯顶栏下拉:</b>内容区最宽,实现成本相对低(工程里已有 ArtHorizontalMenu / MenuTypeEnum.TOP)。风险:二级依赖 Hover,触控/键盘可达性与「同模块内频繁切换」体验偏弱;一级过多时会挤到省略号。',
c: '<b>C 双层顶栏:</b>推荐优先给客户看。无侧栏占宽,二级始终可见、单击即达,适合 B 端「在同一模块内反复切页面」。代价是垂直方向多约 44px。',
d: '<b>D Mega 面板:</b>适合二级菜单很多、需要分组的模块。信息密度高,但交互更重,移动端/窄屏要另做适配。',
e: '<b>E 顶栏 + 窄侧栏:</b>接近现状 PORTAL / TOP_LEFT 思路,只是把一级从侧栏挪到顶栏并收窄。改动小、风险低,但空间收益有限。'
};
const tabs = document.querySelectorAll('.picker-tab');
const frames = document.querySelectorAll('.frame');
const noteEl = document.getElementById('demoNote');
tabs.forEach((tab) => {
tab.addEventListener('click', () => {
const id = tab.getAttribute('data-demo');
tabs.forEach((t) => t.classList.toggle('is-active', t === tab));
frames.forEach((f) => f.classList.toggle('is-active', f.id === 'demo-' + id));
noteEl.innerHTML = notes[id] || '';
});
});
</script>
</body>
</html>
@@ -0,0 +1,780 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fresh Mint · 运输计划「运输信息」Tab 美化 Demo</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--primary: #10b981;
--primary-dark: #059669;
--primary-bg: #ecfdf5;
--text: #1e293b;
--text-muted: #64748b;
--border: #d9e8e2;
--surface: #ffffff;
--table-head: #f8fafc;
--bg-page: #f8fafc;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
--radius: 10px;
--warn: #d97706;
--warn-bg: #fffbeb;
--danger: #dc2626;
--info: #0284c7;
--info-bg: #f0f9ff;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 14px;
line-height: 1.5;
color: var(--text);
background: var(--bg-page);
}
.demo-page { max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px; }
.demo-head { margin-bottom: 28px; }
.demo-head h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.demo-head h1 span { color: var(--primary); }
.demo-head p { margin: 0 0 10px; color: var(--text-muted); max-width: 820px; }
.demo-head .meta {
display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.pill {
display: inline-flex; align-items: center; gap: 6px;
padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
background: var(--primary-bg); color: var(--primary-dark); border: 1px solid #a7f3d0;
}
.pill.muted { background: #f1f5f9; color: var(--text-muted); border-color: #e2e8f0; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(217,119,6,.25); }
.analysis {
display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-bottom: 28px;
}
@media (max-width: 900px) { .analysis { grid-template-columns: 1fr; } }
.panel {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.panel h2 {
margin: 0 0 12px; font-size: 15px; font-weight: 600;
padding-left: 10px; border-left: 3px solid var(--primary);
color: var(--primary-dark); line-height: 1.2;
}
.panel ul { margin: 0; padding-left: 18px; color: var(--text-muted); }
.panel li { margin: 6px 0; }
.panel li strong { color: var(--text); font-weight: 600; }
.approach-grid {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px;
}
@media (max-width: 980px) { .approach-grid { grid-template-columns: 1fr; } }
.approach {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
position: relative;
}
.approach.rec { border-color: #6ee7b7; box-shadow: 0 0 0 2px rgba(16,185,129,.12); }
.approach .badge {
position: absolute; top: 12px; right: 12px;
font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
background: var(--primary); color: #fff;
}
.approach h3 { margin: 0 0 8px; font-size: 15px; }
.approach p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.approach .pros { margin: 0; padding-left: 16px; font-size: 12px; color: var(--text-muted); }
.approach .pros li { margin: 4px 0; }
.scheme-tabs {
display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.scheme-tab {
appearance: none; border: 1px solid var(--border); background: #fff;
padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
color: var(--text-muted); cursor: pointer;
}
.scheme-tab.active {
color: var(--primary-dark); border-color: #6ee7b7; background: var(--primary-bg);
}
.scheme-pane { display: none; }
.scheme-pane.active { display: block; }
/* ── 模拟弹窗壳 ── */
.dialog-shell {
background: #fff; border: 1px solid var(--border); border-radius: 12px;
box-shadow: var(--shadow-lg); overflow: hidden; max-width: 1080px;
}
.dialog-head {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 20px; border-bottom: 1px solid #eef2f6;
}
.dialog-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dialog-head .x { color: var(--text-muted); font-size: 18px; }
.dialog-tabs {
display: flex; gap: 24px; padding: 0 20px;
border-bottom: 1px solid #eef2f6;
}
.dialog-tabs span {
padding: 12px 0; font-size: 14px; color: var(--text-muted); position: relative;
}
.dialog-tabs .on {
color: var(--primary-dark); font-weight: 600;
}
.dialog-tabs .on::after {
content: ""; position: absolute; left: 0; right: 0; bottom: 0;
height: 2px; background: var(--primary); border-radius: 2px;
}
.dialog-body {
padding: 18px 20px 22px;
max-height: 640px; overflow: auto;
background: #fafbfc;
}
.sec-title {
margin: 0 0 12px; padding-left: 10px; font-size: 14px; font-weight: 600;
color: var(--primary-dark); border-left: 3px solid var(--primary); line-height: 1;
}
.sec { margin-bottom: 18px; }
.sec:last-child { margin-bottom: 0; }
.tag {
display: inline-flex; align-items: center; padding: 2px 8px;
border-radius: 6px; font-size: 12px; font-weight: 500;
}
.tag.ok { background: var(--primary-bg); color: var(--primary-dark); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.muted { background: var(--table-head); color: var(--text-muted); }
.btn {
display: inline-flex; align-items: center; gap: 6px;
height: 32px; padding: 0 12px; border-radius: 8px;
border: 1px solid var(--border); background: #fff;
font-size: 13px; color: var(--text); cursor: pointer;
}
.btn.primary {
background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn.ghost { background: #fff; }
/* ===== 方案 A:旅程主轴 + 摘要卡 + 折叠明细 ===== */
.journey {
display: grid; grid-template-columns: 1.1fr 88px 1.1fr; gap: 0;
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
overflow: hidden; margin-bottom: 14px;
}
.journey-side { padding: 14px 16px; }
.journey-side .kicker {
font-size: 12px; font-weight: 600; color: var(--primary-dark);
margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.journey-side .kicker .dot {
width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.journey-side .place {
font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.journey-side .meta-line {
font-size: 12px; color: var(--text-muted); margin: 2px 0;
}
.journey-bridge {
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 8px; background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
border-left: 1px solid #eef2f6; border-right: 1px solid #eef2f6;
}
.journey-bridge .chip {
font-size: 11px; font-weight: 600; color: var(--primary-dark);
background: #e6f8ed; border: 1px solid #a8e0b8;
padding: 3px 10px; border-radius: 999px;
}
.journey-bridge .arrow { color: var(--primary); font-size: 18px; font-weight: 700; }
.vehicle-bar {
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
padding: 12px 14px; background: #fff; border: 1px solid var(--border);
border-radius: var(--radius); margin-bottom: 14px;
}
.plate {
font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
padding: 4px 10px; border-radius: 6px;
background: #111827; color: #fbbf24; border: 2px solid #fbbf24;
}
.vehicle-bar .v-meta { font-size: 13px; color: var(--text-muted); }
.vehicle-bar .v-meta b { color: var(--text); font-weight: 600; }
.vehicle-bar .spacer { flex: 1; }
.metric-row {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
@media (max-width: 720px) { .metric-row { grid-template-columns: 1fr 1fr; } }
.metric {
background: #fff; border: 1px solid var(--border); border-radius: 8px;
padding: 12px 14px;
}
.metric .label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.metric .value { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.metric .value.money { color: var(--primary-dark); }
.metric .sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.link-row {
display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; align-items: center;
margin-bottom: 8px;
}
.link-row label { font-size: 13px; color: var(--text-muted); }
.link-row input {
height: 36px; border: 1px solid var(--border); border-radius: 8px;
padding: 0 12px; font-size: 13px; color: var(--text); background: #fff; width: 100%;
}
.accordion {
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
overflow: hidden; margin-bottom: 10px;
}
.accordion summary {
list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
padding: 12px 14px; user-select: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .title { font-weight: 600; font-size: 14px; flex: 1; }
.accordion summary .chev {
color: var(--text-muted); transition: transform .2s; font-size: 12px;
}
.accordion[open] summary .chev { transform: rotate(90deg); }
.accordion summary:hover { background: #f8fafc; }
.accordion .body { padding: 0 14px 14px; border-top: 1px solid #eef2f6; }
.kv {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px;
padding-top: 12px;
}
@media (max-width: 720px) { .kv { grid-template-columns: 1fr 1fr; } }
.kv .item .l { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.kv .item .v { font-size: 13px; font-weight: 600; word-break: break-word; }
.mini-table {
width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px;
}
.mini-table th {
text-align: left; background: var(--table-head); color: var(--text-muted);
font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #eef2f6;
}
.mini-table td {
padding: 8px 10px; border-bottom: 1px solid #eef2f6; font-weight: 500;
}
.mini-table tr:last-child td { border-bottom: none; }
.feedback-card {
display: grid; grid-template-columns: 1fr auto; gap: 8px 16px;
padding: 12px; background: #f8fafc; border-radius: 8px; margin-top: 10px;
}
.feedback-card .big { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.feedback-card .note { font-size: 13px; color: var(--text); grid-column: 1 / -1; }
.thumbs { display: flex; gap: 8px; }
.thumb {
width: 48px; height: 48px; border-radius: 6px; background: #e2e8f0;
border: 1px solid var(--border);
}
.dibang-card {
margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.dibang-card .head {
display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafc;
}
.dibang-card .head .name { font-weight: 600; flex: 1; }
.weight-strip {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
border-top: 1px solid #eef2f6;
}
.weight-strip .cell {
padding: 10px 12px; border-right: 1px solid #eef2f6;
}
.weight-strip .cell:last-child { border-right: none; }
.weight-strip .l { font-size: 11px; color: var(--text-muted); }
.weight-strip .v { font-size: 14px; font-weight: 700; }
.weight-strip .v.hl { color: var(--primary-dark); }
/* ===== 方案 B:左侧锚点导航 ===== */
.split {
display: grid; grid-template-columns: 148px 1fr; gap: 16px;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.toc {
position: sticky; top: 0; align-self: start;
background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px;
}
.toc a {
display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none;
color: var(--text-muted); font-size: 13px;
}
.toc a:hover, .toc a.on { background: var(--primary-bg); color: var(--primary-dark); font-weight: 600; }
.toc-content .block {
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
padding: 14px; margin-bottom: 12px;
}
/* ===== 方案 C:现状压平(对照组) ===== */
.flat-kv {
display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff;
}
.flat-kv .cell { padding: 8px 6px; border-right: 1px solid #eef2f6; min-width: 0; }
.flat-kv .cell:last-child { border-right: none; }
.flat-kv .l { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.flat-kv .v { font-size: 12px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.dense-note {
margin: 8px 0 16px; padding: 10px 12px; background: #fff7ed; border: 1px solid #fed7aa;
border-radius: 8px; font-size: 12px; color: #9a3412;
}
.legend {
margin-top: 20px; padding: 14px 16px; background: #fff;
border: 1px dashed #a7f3d0; border-radius: var(--radius); font-size: 13px; color: var(--text-muted);
}
.legend strong { color: var(--primary-dark); }
</style>
</head>
<body>
<div class="demo-page">
<header class="demo-head">
<h1>运输计划 · <span>运输信息</span> Tab 美化 Demo</h1>
<p>
针对「查看运输计划」弹窗中运输信息 tab 信息密度过高的问题:当前约 7 个同级区块纵向堆叠,
含多组 KV 栅格与宽表,扫读成本高。本页给出需求分析与三套展示方案(含推荐方案可交互 Demo)。
</p>
<div class="meta">
<span class="pill">Fresh Mint · #10b981</span>
<span class="pill muted">仅 Demo,未改业务代码</span>
<span class="pill warn">推荐:方案 A 旅程主轴</span>
</div>
</header>
<section class="analysis">
<div class="panel">
<h2>现状与痛点</h2>
<ul>
<li><strong>信息块过多</strong>:运输链接 / 车辆 / 物流节点 / 运费 / 司机回传 / 出库回传 / 地磅,一屏难扫完。</li>
<li><strong>视觉权重平均</strong>:全部同级绿色竖条标题,缺少「先看什么」的叙事。</li>
<li><strong>列表过宽过密</strong>:地磅单表列多、出入库明细表列多,横向压迫感强。</li>
<li><strong>业务本是一条链路</strong>:取货 → 运输 → 送达 → 回传 → 过磅,但 UI 未体现旅程感。</li>
</ul>
</div>
<div class="panel">
<h2>美化目标</h2>
<ul>
<li><strong>先摘要、后明细</strong>:关键指标(车牌、运费、状态)一眼可见。</li>
<li><strong>用业务旅程组织</strong>:取货/送货成对呈现,回传与地磅可折叠。</li>
<li><strong>表变卡、列变指标</strong>:单行回传、过磅重量用卡片/指标条,少用「全宽大表」。</li>
<li><strong>不换色系</strong>:仍遵守 Fresh Mint,不引入多饱和色。</li>
</ul>
</div>
</section>
<div class="approach-grid">
<article class="approach rec">
<span class="badge">推荐</span>
<h3>A. 旅程主轴 + 摘要卡 + 折叠</h3>
<p>顶部车辆条 + 取货/送货旅程卡 + 运费指标条;回传/地磅默认折叠,按需展开。</p>
<ul class="pros">
<li>首屏信息密度下降约 40%</li>
<li>符合「运输」业务心智</li>
<li>落地成本中等,可渐进改造</li>
</ul>
</article>
<article class="approach">
<h3>B. 左侧锚点导航</h3>
<p>保留现有区块内容,左侧 sticky 目录快速跳转;适合坚持「全部展开」的用户。</p>
<ul class="pros">
<li>改动最小</li>
<li>仍偏长,美化感弱</li>
<li>适合信息必须全展的场景</li>
</ul>
</article>
<article class="approach">
<h3>C. 现状压平对照</h3>
<p>当前风格:多段同级标题 + 宽 KV + 宽表,作为「改前」对照,方便评审对比。</p>
<ul class="pros">
<li>信息完整</li>
<li>扫读成本最高</li>
<li>客户吐槽的形态</li>
</ul>
</article>
</div>
<div class="scheme-tabs" role="tablist">
<button class="scheme-tab active" data-tab="a" type="button">方案 A · 推荐</button>
<button class="scheme-tab" data-tab="b" type="button">方案 B · 锚点</button>
<button class="scheme-tab" data-tab="c" type="button">方案 C · 现状对照</button>
</div>
<!-- ════════════ 方案 A ════════════ -->
<div class="scheme-pane active" id="pane-a">
<div class="dialog-shell">
<div class="dialog-head">
<h2>查看运输计划 · YSJH20260720001</h2>
<span class="x">×</span>
</div>
<div class="dialog-tabs">
<span>计划概况</span>
<span class="on">运输信息</span>
<span>合同信息</span>
</div>
<div class="dialog-body">
<!-- 车辆摘要 -->
<div class="vehicle-bar">
<span class="plate">渝A·D1234</span>
<span class="v-meta">车型 <b>半挂牵引车</b></span>
<span class="v-meta">司机 <b>张三</b> 138****8000</span>
<span class="v-meta">承运商 <b>山峡物流有限公司</b></span>
<span class="spacer"></span>
<button class="btn ghost" type="button">查看车辆</button>
</div>
<!-- 物流旅程 -->
<div class="sec">
<h3 class="sec-title">物流旅程</h3>
<div class="journey">
<div class="journey-side">
<div class="kicker"><span class="dot"></span>取货</div>
<div class="place">重庆市江北区港城工业园 A 区</div>
<div class="meta-line">联系人:李四 · 139****6611</div>
<div class="meta-line">取货时间:2026-07-21 09:00</div>
<div class="meta-line">注意:需带危化品通行证</div>
</div>
<div class="journey-bridge">
<span class="chip">运输中</span>
<span class="arrow">→</span>
<span style="font-size:11px;color:var(--text-muted)">286 km</span>
</div>
<div class="journey-side">
<div class="kicker"><span class="dot" style="background:#0284c7"></span>送达</div>
<div class="place">成都市青白江区物流大道 88 号</div>
<div class="meta-line">联系人:王五 · 137****2299</div>
<div class="meta-line">送达时间:2026-07-21 18:30</div>
<div class="meta-line">注意:卸货需提前预约</div>
</div>
</div>
</div>
<!-- 运费指标 -->
<div class="sec">
<h3 class="sec-title">运费摘要</h3>
<div class="metric-row">
<div class="metric">
<div class="label">运费金额</div>
<div class="value money">¥ 4,860.00</div>
<div class="sub">按重量 · 已开票</div>
</div>
<div class="metric">
<div class="label">运输量</div>
<div class="value">32.400 <span style="font-size:12px;font-weight:500;color:var(--text-muted)">吨</span></div>
<div class="sub">单价 ¥150 / 吨</div>
</div>
<div class="metric">
<div class="label">运输公里数</div>
<div class="value">286</div>
<div class="sub">km</div>
</div>
<div class="metric">
<div class="label">费用状态</div>
<div class="value" style="font-size:15px;padding-top:4px"><span class="tag ok">有运输费用</span></div>
<div class="sub">计算方式:按重量</div>
</div>
</div>
</div>
<!-- 链接 -->
<div class="sec">
<h3 class="sec-title">运输链接</h3>
<div class="link-row">
<label>司机链接</label>
<input readonly value="https://example.com/m/driver/abc123" />
<button class="btn" type="button">复制</button>
</div>
<div class="link-row">
<label>现场链接</label>
<input readonly value="https://example.com/m/site/xyz789" />
<button class="btn" type="button">复制</button>
</div>
</div>
<!-- 折叠:司机回传 -->
<details class="accordion" open>
<summary>
<span class="tag ok">已回传</span>
<span class="title">司机回传信息</span>
<span class="tag muted">2026-07-21 19:12</span>
<span class="chev">▶</span>
</summary>
<div class="body">
<div class="feedback-card">
<div>
<div class="label" style="font-size:12px;color:var(--text-muted)">回传数量</div>
<div class="big">32.400 吨</div>
</div>
<button class="btn" type="button">编辑</button>
<div class="note">备注:车辆已到站,卸货顺利,无异常。</div>
<div class="thumbs">
<div class="thumb" title="附件1"></div>
<div class="thumb" title="附件2"></div>
</div>
</div>
</div>
</details>
<!-- 折叠:出库回传 -->
<details class="accordion" open>
<summary>
<span class="tag info">出库单</span>
<span class="title">出库单回传</span>
<span class="tag ok">已确认</span>
<span class="chev">▶</span>
</summary>
<div class="body">
<div style="display:flex;justify-content:flex-end;gap:8px;padding-top:10px">
<button class="btn" type="button">复制现场链接</button>
<button class="btn" type="button">编辑</button>
</div>
<div class="kv">
<div class="item"><div class="l">单据号</div><div class="v">CK20260721008</div></div>
<div class="item"><div class="l">业务类型</div><div class="v"><span class="tag info">出库</span></div></div>
<div class="item"><div class="l">往来单位</div><div class="v">成都某某实业</div></div>
<div class="item"><div class="l">计划合计</div><div class="v">32.400 吨</div></div>
<div class="item"><div class="l">实际合计</div><div class="v">32.180 吨</div></div>
<div class="item"><div class="l">现场备注</div><div class="v">磅差在允许范围</div></div>
</div>
<table class="mini-table">
<thead>
<tr>
<th>产品</th>
<th>规格</th>
<th>计划</th>
<th>实际</th>
<th>单位</th>
</tr>
</thead>
<tbody>
<tr>
<td>盐酸(31%)</td>
<td>工业级</td>
<td>20.000</td>
<td>19.860</td>
<td>吨</td>
</tr>
<tr>
<td>烧碱(液碱)</td>
<td>32%</td>
<td>12.400</td>
<td>12.320</td>
<td>吨</td>
</tr>
</tbody>
</table>
</div>
</details>
<!-- 折叠:地磅 -->
<details class="accordion">
<summary>
<span class="tag warn">过磅</span>
<span class="title">地磅单信息</span>
<span class="tag muted">1 条关联</span>
<span class="chev">▶</span>
</summary>
<div class="body">
<div class="dibang-card">
<div class="head">
<span class="name">盐酸(31%)</span>
<span class="tag ok">已完成</span>
<span class="tag muted">RK20260721015</span>
</div>
<div class="kv" style="padding:12px">
<div class="item"><div class="l">业务类型</div><div class="v">入库</div></div>
<div class="item"><div class="l">往来单位</div><div class="v">成都某某实业</div></div>
<div class="item"><div class="l">车牌号</div><div class="v">渝A·D1234</div></div>
<div class="item"><div class="l">产品</div><div class="v">盐酸(31%)</div></div>
<div class="item"><div class="l">数量</div><div class="v">19.860 吨</div></div>
<div class="item"><div class="l">出入库单号</div><div class="v">RK20260721015</div></div>
</div>
<div class="weight-strip">
<div class="cell"><div class="l">毛重</div><div class="v">48,620 kg</div></div>
<div class="cell"><div class="l">皮重</div><div class="v">28,760 kg</div></div>
<div class="cell"><div class="l">扣杂</div><div class="v">0 kg</div></div>
<div class="cell"><div class="l">净重</div><div class="v hl">19,860 kg</div></div>
</div>
</div>
</div>
</details>
</div>
</div>
</div>
<!-- ════════════ 方案 B ════════════ -->
<div class="scheme-pane" id="pane-b">
<div class="dialog-shell">
<div class="dialog-head">
<h2>查看运输计划 · YSJH20260720001</h2>
<span class="x">×</span>
</div>
<div class="dialog-tabs">
<span>计划概况</span>
<span class="on">运输信息</span>
<span>合同信息</span>
</div>
<div class="dialog-body">
<div class="split">
<nav class="toc">
<a class="on" href="#b-link">运输链接</a>
<a href="#b-vehicle">车辆信息</a>
<a href="#b-node">物流节点</a>
<a href="#b-freight">运费信息</a>
<a href="#b-driver">司机回传</a>
<a href="#b-io">出库单回传</a>
<a href="#b-db">地磅单</a>
</nav>
<div class="toc-content">
<div class="block" id="b-link">
<h3 class="sec-title">运输链接</h3>
<div class="link-row">
<label>司机链接</label>
<input readonly value="https://example.com/m/driver/abc123" />
<button class="btn" type="button">复制</button>
</div>
</div>
<div class="block" id="b-vehicle">
<h3 class="sec-title">车辆信息</h3>
<div class="vehicle-bar" style="margin:0;border:none;padding:0">
<span class="plate">渝A·D1234</span>
<span class="v-meta">司机 <b>张三</b></span>
<span class="v-meta">承运商 <b>山峡物流</b></span>
</div>
</div>
<div class="block" id="b-node">
<h3 class="sec-title">物流节点</h3>
<div class="journey" style="margin:0">
<div class="journey-side">
<div class="kicker"><span class="dot"></span>取货</div>
<div class="place">江北区港城工业园</div>
<div class="meta-line">2026-07-21 09:00</div>
</div>
<div class="journey-bridge"><span class="chip">运输</span><span class="arrow">→</span></div>
<div class="journey-side">
<div class="kicker"><span class="dot" style="background:#0284c7"></span>送达</div>
<div class="place">青白江区物流大道</div>
<div class="meta-line">2026-07-21 18:30</div>
</div>
</div>
</div>
<div class="block" id="b-freight">
<h3 class="sec-title">运费信息</h3>
<div class="metric-row" style="margin:0">
<div class="metric"><div class="label">金额</div><div class="value money">¥4,860</div></div>
<div class="metric"><div class="label">运量</div><div class="value">32.4t</div></div>
<div class="metric"><div class="label">里程</div><div class="value">286</div></div>
<div class="metric"><div class="label">开票</div><div class="value" style="font-size:14px">是</div></div>
</div>
</div>
<div class="block" id="b-driver">
<h3 class="sec-title">司机回传</h3>
<p style="margin:0;color:var(--text-muted);font-size:13px">内容同方案 A 卡片,此处略。</p>
</div>
<div class="block" id="b-io">
<h3 class="sec-title">出库单回传</h3>
<p style="margin:0;color:var(--text-muted);font-size:13px">明细表可保留,配合锚点跳转。</p>
</div>
<div class="block" id="b-db">
<h3 class="sec-title">地磅单信息</h3>
<p style="margin:0;color:var(--text-muted);font-size:13px">过磅指标条展示,减少宽表。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ════════════ 方案 C ════════════ -->
<div class="scheme-pane" id="pane-c">
<div class="dialog-shell">
<div class="dialog-head">
<h2>查看运输计划 · YSJH20260720001</h2>
<span class="x">×</span>
</div>
<div class="dialog-tabs">
<span>计划概况</span>
<span class="on">运输信息</span>
<span>合同信息</span>
</div>
<div class="dialog-body" style="background:#fff">
<div class="dense-note">对照:以下为当前「同级标题 + 宽 KV / 宽表」的信息压迫感示意(非最终稿)。</div>
<div class="sec">
<h3 class="sec-title">运输链接</h3>
<div class="link-row">
<label>司机链接</label>
<input readonly value="https://example.com/m/driver/abc123" />
<button class="btn" type="button">复制链接</button>
</div>
</div>
<div class="sec">
<h3 class="sec-title">车辆信息</h3>
<p style="margin:0;color:var(--text-muted)">车辆条组件(现状)</p>
</div>
<div class="sec">
<h3 class="sec-title">物流节点</h3>
<p style="margin:0 0 8px;color:var(--text-muted);font-size:12px">左取货 KV 四列 · 右送货 KV 四列</p>
</div>
<div class="sec">
<h3 class="sec-title">运费信息</h3>
<div class="flat-kv">
<div class="cell"><div class="l">是否有运输费用</div><div class="v">是</div></div>
<div class="cell"><div class="l">运输公里数</div><div class="v">286</div></div>
<div class="cell"><div class="l">运费计算方式</div><div class="v">按重量</div></div>
<div class="cell"><div class="l">运输量(吨)</div><div class="v">32.4</div></div>
<div class="cell"><div class="l">运输单价(元/吨)</div><div class="v">150.00</div></div>
<div class="cell"><div class="l">运费金额(元)</div><div class="v">4860.00</div></div>
<div class="cell"><div class="l">是否开票</div><div class="v">是</div></div>
</div>
</div>
<div class="sec">
<h3 class="sec-title">司机回传信息</h3>
<p style="margin:0;color:var(--text-muted);font-size:12px">宽表格:序号 / 时间 / 数量 / 备注 / 附件…</p>
</div>
<div class="sec">
<h3 class="sec-title">出库单回传</h3>
<p style="margin:0;color:var(--text-muted);font-size:12px">KV 五行 + 产品明细宽表 + 备注附件</p>
</div>
<div class="sec">
<h3 class="sec-title">地磅单信息</h3>
<p style="margin:0;color:var(--text-muted);font-size:12px">基础 KV 六列 + 地磅宽表(毛重/皮重/净重/时间…十余列)</p>
</div>
</div>
</div>
</div>
<div class="legend">
<strong>评审建议:</strong>
优先确认是否采用方案 A(旅程主轴 + 指标卡 + 折叠明细)。
若业务要求「运输信息必须全部默认展开、不可折叠」,可改用方案 B,或 A 的折叠默认全部 <code>open</code>。
确认后我再按选定方案落到 <code>pl-plan-view-tabs</code> 实现。
</div>
</div>
<script>
document.querySelectorAll('.scheme-tab').forEach((btn) => {
btn.addEventListener('click', () => {
document.querySelectorAll('.scheme-tab').forEach((b) => b.classList.remove('active'))
document.querySelectorAll('.scheme-pane').forEach((p) => p.classList.remove('active'))
btn.classList.add('active')
document.getElementById('pane-' + btn.dataset.tab).classList.add('active')
})
})
</script>
</body>
</html>
+4023 -5528
View File
File diff suppressed because it is too large. Load diff
+6 -16
View File
@@ -304,14 +304,11 @@
"302": "Community 302",
"303": "Community 303",
"304": "Community 304",
"305": "Community 305",
"306": "Community 306",
"307": "Community 307",
"308": "Community 308",
"309": "Community 309",
"310": "Community 310",
"311": "Community 311",
"312": "Community 312",
"313": "Community 313",
"314": "Community 314",
"315": "Community 315",
@@ -342,8 +339,7 @@
"340": "Community 340",
"341": "Community 341",
"342": "Community 342",
"343": "Community 343",
"344": "Community 344",
"344": "ArtException.vue",
"345": "Community 345",
"346": "Community 346",
"347": "Community 347",
@@ -370,8 +366,8 @@
"368": "Community 368",
"369": "Community 369",
"370": "Community 370",
"371": "Community 371",
"372": "Community 372",
"371": "detail.vue",
"372": "detail.vue",
"373": "Community 373",
"374": "Community 374",
"375": "Community 375",
@@ -404,11 +400,10 @@
"402": "Community 402",
"403": "Community 403",
"404": "Community 404",
"405": "Community 405",
"406": "Community 406",
"407": "Community 407",
"408": "Community 408",
"409": "Community 409",
"409": "DbCrmCustomerSelect.vue",
"410": "Community 410",
"411": "Community 411",
"412": "Community 412",
@@ -442,7 +437,7 @@
"440": "Community 440",
"441": "Community 441",
"442": "Community 442",
"443": "Community 443",
"443": "loadUserOptions",
"444": "Community 444",
"445": "Community 445",
"446": "Community 446",
@@ -511,7 +506,6 @@
"509": "Community 509",
"510": "Community 510",
"511": "Community 511",
"512": "Community 512",
"513": "Community 513",
"514": "Community 514",
"515": "Community 515",
@@ -693,9 +687,7 @@
"691": "Community 691",
"692": "Community 692",
"693": "Community 693",
"694": "Community 694",
"695": "Community 695",
"696": "Community 696",
"697": "Community 697",
"698": "Community 698",
"699": "Community 699",
@@ -747,7 +739,7 @@
"747": "升级",
"748": "升级",
"749": "升级",
"751": "[已发布]",
"751": "v2.4.2.1 - 2025-06-16",
"752": "新增",
"753": "新增",
"754": "新增",
@@ -763,10 +755,8 @@
"764": "新增",
"765": "新增",
"766": "新增",
"768": "版本号规则",
"769": "移除",
"770": "移除",
"771": "许可证",
"772": "重构",
"773": "重构",
"774": "重构",
+1 -1
View File
@@ -1 +1 @@
.
/Users/wuzilong/work/00code/shanxia2.0/web-admin
@@ -305,13 +305,13 @@
"303": "Community 303",
"304": "Community 304",
"305": "Community 305",
"306": "Community 306",
"306": "highlight.ts",
"307": "Community 307",
"308": "Community 308",
"309": "Community 309",
"310": "Community 310",
"311": "Community 311",
"312": "Community 312",
"312": "error-handle.ts",
"313": "Community 313",
"314": "Community 314",
"315": "Community 315",
@@ -342,8 +342,8 @@
"340": "Community 340",
"341": "Community 341",
"342": "Community 342",
"343": "Community 343",
"344": "Community 344",
"343": "fetchData",
"344": "ArtException.vue",
"345": "Community 345",
"346": "Community 346",
"347": "Community 347",
@@ -370,8 +370,8 @@
"368": "Community 368",
"369": "Community 369",
"370": "Community 370",
"371": "Community 371",
"372": "Community 372",
"371": "detail.vue",
"372": "detail.vue",
"373": "Community 373",
"374": "Community 374",
"375": "Community 375",
@@ -408,7 +408,7 @@
"406": "Community 406",
"407": "Community 407",
"408": "Community 408",
"409": "Community 409",
"409": "DbCrmCustomerSelect.vue",
"410": "Community 410",
"411": "Community 411",
"412": "Community 412",
@@ -442,7 +442,7 @@
"440": "Community 440",
"441": "Community 441",
"442": "Community 442",
"443": "Community 443",
"443": "loadUserOptions",
"444": "Community 444",
"445": "Community 445",
"446": "Community 446",
@@ -511,7 +511,7 @@
"509": "Community 509",
"510": "Community 510",
"511": "Community 511",
"512": "Community 512",
"512": "v2.5.7 - 2025-09-14",
"513": "Community 513",
"514": "Community 514",
"515": "Community 515",
@@ -693,14 +693,14 @@
"691": "Community 691",
"692": "Community 692",
"693": "Community 693",
"694": "Community 694",
"694": "isIoPlanFrozen",
"695": "Community 695",
"696": "Community 696",
"696": "handleArrange",
"697": "Community 697",
"698": "Community 698",
"699": "Community 699",
"700": "Community 700",
"701": "Community 701",
"701": "handleEdit",
"702": "Community 702",
"703": "Community 703",
"704": "Community 704",
@@ -744,13 +744,13 @@
"742": "Community 742",
"743": "修复",
"744": "修复",
"745": "修改",
"745": "handlePrintDeliverySlip",
"746": "升级",
"747": "升级",
"748": "升级",
"749": "升级",
"750": "变更类型",
"751": "[已发布]",
"750": "index.vue",
"751": "v2.4.2.1 - 2025-06-16",
"752": "新增",
"753": "新增",
"754": "新增",
@@ -766,11 +766,10 @@
"764": "新增",
"765": "新增",
"766": "新增",
"767": "更新日志",
"768": "版本号规则",
"768": "handlePrintInboundSlip",
"769": "移除",
"770": "移除",
"771": "许可证",
"771": "handlePrintSubpackSlip",
"772": "重构",
"773": "重构",
"774": "重构",
@@ -793,25 +792,6 @@
"791": "⚠️ 重要提示",
"792": "code:bash (# Install dependencies)",
"793": "code:bash (pnpm clean:dev)",
"794": "技术支持",
"795": "兼容性",
"796": "贡献",
"797": "捐赠",
"798": "code:bash (# 安装依赖)",
"799": "code:bash (pnpm clean:dev)",
"800": "安装运行",
"801": "快速访问",
"802": "持续优化与扩展",
"803": "精简版本",
"804": "这个项目有什么特别的呢?",
"805": "预览",
"806": "handleArrange",
"807": "handleEdit",
"808": "handlePrintDeliverySlip",
"809": "handlePrintInboundSlip",
"810": "handlePrintSubpackSlip",
"811": "handleAdd",
"812": "handleAddDictData",
"813": "handleEdit",
"814": "handleEditDictData"
"799": "code:bash (pnpm clean:dev)"
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+5 -2
View File
@@ -37,6 +37,7 @@ export interface PublicTransportPage {
products: PublicTransportProduct[]
feedbackRemark?: string
feedbackImages: string[]
feedbackQty?: number | null
feedbackTime?: string
planVoided?: boolean
}
@@ -48,8 +49,10 @@ export interface PublicUploadResult {
export const publicTransportApi = {
getPage: (token: string) => publicPlGet<PublicTransportPage>(`/public/pl/transport/${token}`),
saveFeedback: (token: string, data: { feedbackImages?: string[]; feedbackRemark?: string }) =>
publicPlPost<{ success: boolean }>(`/public/pl/transport/${token}/feedback`, data),
saveFeedback: (
token: string,
data: { feedbackImages?: string[]; feedbackRemark?: string; feedbackQty?: number | null }
) => publicPlPost<{ success: boolean }>(`/public/pl/transport/${token}/feedback`, data),
uploadAttachment: (token: string, file: File) =>
publicPlUpload<PublicUploadResult>(`/public/pl/transport/${token}/attachments`, file)
}
@@ -3,7 +3,7 @@
<el-dialog
v-model="innerVisible"
:title="dialogTitle"
width="1680px"
width="100%"
align-center
destroy-on-close
append-to-body
@@ -15,6 +15,39 @@
@opened="handleOpened"
>
<div class="pl-plan-form-body">
<section class="pl-plan-form-section">
<div class="pl-plan-form-section-head">
<h3 class="pl-plan-form-section-title">合同信息</h3>
<div class="pl-plan-form-section-actions">
<el-button
v-if="contractSnapshot"
class="btn-ghost"
@click="handleViewContract"
>
<el-icon><View /></el-icon>查看合同
</el-button>
<el-button class="btn-main" type="primary" @click="contractSelectorVisible = true">
<el-icon><Search /></el-icon>选择合同
</el-button>
</div>
</div>
<p v-if="!contractSnapshot" class="pl-plan-form-empty-hint">请选择 CRM 合同,系统将自动带入合同与产品信息</p>
<template v-else>
<ViewKvGrid :fields="contractBasicFields" :columns="5" />
<h4 class="pl-plan-subtitle">合同产品预览</h4>
<p class="pl-plan-form-empty-hint">点击「选择」将合同产品加入下方产品信息;已添加的产品不可重复选择</p>
<PlPlanFormProductTable
:products="contractProductRows"
show-select
:selected-product-ids="selectedPlanProductIds"
@select="handleSelectContractProduct"
/>
</template>
</section>
<section class="pl-plan-form-section">
<h3 class="pl-plan-form-section-title">基础信息</h3>
<el-form ref="basicFormRef" :model="formData" :rules="basicRules" label-position="right" label-width="100px" class="pl-dialog-form">
@@ -48,42 +81,6 @@
</el-form>
</section>
<section class="pl-plan-form-section">
<div class="pl-plan-form-section-head">
<h3 class="pl-plan-form-section-title">合同信息</h3>
<div class="pl-plan-form-section-actions">
<el-button
v-if="contractSnapshot"
class="btn-ghost"
@click="handleViewContract"
>
<el-icon><View /></el-icon>查看合同
</el-button>
<el-button class="btn-main" type="primary" @click="contractSelectorVisible = true">
<el-icon><Search /></el-icon>选择合同
</el-button>
</div>
</div>
<p v-if="!contractSnapshot" class="pl-plan-form-empty-hint">请选择 CRM 合同,系统将自动带入合同与产品信息</p>
<template v-else>
<div class="pl-plan-contract-kv-rows">
<ViewKvTable :fields="contractBasicRow1Fields" mode="triple" />
<ViewKvTable :fields="contractBasicRow2Fields" mode="triple" />
</div>
<h4 class="pl-plan-subtitle">合同产品预览</h4>
<p class="pl-plan-form-empty-hint">点击「选择」将合同产品加入下方产品信息;已添加的产品不可重复选择</p>
<PlPlanFormProductTable
:products="contractProductRows"
show-select
:selected-product-ids="selectedPlanProductIds"
@select="handleSelectContractProduct"
/>
</template>
</section>
<section class="pl-plan-form-section">
<h3 class="pl-plan-form-section-title">产品信息</h3>
<PlPlanFormProductTable
@@ -264,7 +261,7 @@ import { getContract } from '@/api/crm/contract'
import type { ContractVO } from '@/api/crm/contract/types'
import { carrierApi, planApi, transportApi, vehicleApi, type Carrier, type Plan, type PlanProduct, type PlanUpdatePayload, type Vehicle, type VehiclePersonnelRow } from '@/api/pl'
import ContractSelector from '@/components/business/contract-selector/index.vue'
import ViewKvTable from '@/components/business/system-view-dialog/ViewKvTable.vue'
import ViewKvGrid from '@/components/business/system-view-dialog/ViewKvGrid.vue'
import type { ViewField } from '@/components/business/system-view-dialog/types'
import PlVehicleSummaryStrip from '@/components/business/pl-vehicle-summary-strip/index.vue'
import PlVehicleViewDialog from '@/components/business/pl-vehicle-view-dialog/index.vue'
@@ -445,16 +442,12 @@ function buildContractBasicFields(contract: ContractVO): ViewField[] {
]
}
const contractBasicFieldRows = computed(() => {
const contractBasicFields = computed(() => {
const contract = contractSnapshot.value
if (!contract) return { row1: [] as ViewField[], row2: [] as ViewField[] }
const fields = buildContractBasicFields(contract)
return { row1: fields.slice(0, 3), row2: fields.slice(3, 6) }
if (!contract) return [] as ViewField[]
return buildContractBasicFields(contract)
})
const contractBasicRow1Fields = computed(() => contractBasicFieldRows.value.row1)
const contractBasicRow2Fields = computed(() => contractBasicFieldRows.value.row2)
/** 合同产品预览:固定展示合同原始明细,与下方可编辑的计划产品分离 */
const contractProductRows = computed<PlanFormProductRow[]>(() =>
mapContractProducts(contractSnapshot.value?.products)
@@ -1028,25 +1021,6 @@ async function handleSubmit(mode: 'save' | 'saveAndArrange' = 'save') {
color: #64748b;
}
.pl-plan-contract-kv-rows {
:deep(.view-kv-table-wrap) {
border-radius: 0;
}
:deep(.view-kv-table-wrap:first-child) {
border-radius: 8px 8px 0 0;
}
:deep(.view-kv-table-wrap:last-child) {
border-radius: 0 0 8px 8px;
border-top: none;
}
:deep(.view-kv-table-wrap:only-child) {
border-radius: 8px;
}
}
.pl-plan-kv-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
@@ -1192,7 +1166,8 @@ async function handleSubmit(mode: 'save' | 'saveAndArrange' = 'save') {
<style lang="scss">
.el-dialog.pl-plan-form-dialog.dialog-form-layout {
width: min(1680px, calc(100vw - 80px)) !important;
width: 100% !important;
max-width: calc(100vw - 48px);
max-height: var(--dialog-max-height, calc(100vh - 40px));
}
@@ -3,7 +3,7 @@
<el-dialog
v-model="innerVisible"
:title="dialogTitle"
width="1680px"
width="100%"
align-center
destroy-on-close
append-to-body
@@ -149,7 +149,8 @@ defineExpose({ reload })
<style lang="scss">
.el-dialog.pl-plan-view-dialog.dialog-form-layout {
width: min(1680px, calc(100vw - 80px)) !important;
width: 100% !important;
max-width: calc(100vw - 48px);
height: var(--dialog-max-height, calc(100vh - 40px));
max-height: var(--dialog-max-height, calc(100vh - 40px));
}
@@ -3,30 +3,30 @@
<div v-loading="loading" class="pl-plan-view-tabs" :class="{ 'is-embedded': embedded }">
<el-tabs v-model="activeTab" class="pl-plan-view-tabs__nav">
<el-tab-pane label="计划概况" name="overview">
<section class="pl-plan-form-section">
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">基础信息</h3>
<ViewKvTable :fields="overviewBasicViewFields" mode="quint" />
</section>
<section class="pl-plan-form-section">
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">产品信息</h3>
<p v-if="!productRows.length && !loading" class="pl-plan-form-empty-hint">暂无产品明细</p>
<PlPlanFormProductTable v-else :products="productRows" show-actual-qty />
</section>
<section class="pl-plan-form-section">
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">危化品证书信息</h3>
<PlPlanHazardCertViewTable :products="hazardProducts" />
</section>
<section class="pl-plan-form-section">
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">备注</h3>
<p class="pl-plan-view-remark">{{ plan?.remark || '—' }}</p>
</section>
</el-tab-pane>
<el-tab-pane label="运输信息" name="transport">
<section v-if="showArrangeLinks" class="pl-plan-form-section pl-plan-arrange-links">
<section v-if="showArrangeLinks" class="pl-plan-form-section pl-plan-form-section--plain pl-plan-arrange-links">
<h3 class="pl-plan-form-section-title">运输链接</h3>
<div class="pl-arrange-link-row">
<span class="pl-arrange-link-label">司机链接</span>
@@ -65,8 +65,8 @@
</p>
</section>
<section class="pl-plan-form-section">
<h3 class="pl-plan-form-section-title">车辆与承运</h3>
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">车辆信息</h3>
<PlVehicleSummaryStrip
v-if="vehicleBundle"
:detail="vehicleBundle.detail"
@@ -75,11 +75,12 @@
@view="vehicleViewVisible = true"
/>
<p v-else-if="!loading" class="pl-plan-form-empty-hint">暂无车辆信息</p>
</section>
<h4 class="pl-plan-subtitle">物流节点</h4>
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">物流节点</h3>
<div class="parties-row">
<div class="party-panel">
<div class="party-panel__title">取货信息</div>
<div class="party-panel party-panel--plain">
<ViewKvTable :fields="pickupViewFields" mode="quad" />
</div>
@@ -104,99 +105,112 @@
</span>
</div>
<div class="party-panel">
<div class="party-panel__title">送货信息</div>
<div class="party-panel party-panel--plain">
<ViewKvTable :fields="deliveryViewFields" mode="quad" />
</div>
</div>
</section>
<h4 class="pl-plan-subtitle">运费信息</h4>
<ViewKvTable :fields="freightViewFields" mode="quad" />
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">运费信息</h3>
<ViewKvTable :fields="freightViewFields" mode="sept" />
</section>
<div class="pl-plan-feedback-region">
<div class="pl-plan-feedback-region__head">
<h4 class="pl-plan-feedback-region__title">司机回传信息</h4>
<el-button
v-if="feedbackEditable"
class="btn-op-item"
:disabled="!canEditDriverFeedback"
@click="openDriverFeedbackDialog"
<section class="pl-plan-form-section pl-plan-form-section--plain">
<div class="pl-plan-form-section-head">
<h3 class="pl-plan-form-section-title">司机回传信息</h3>
<el-button
v-if="feedbackEditable"
class="btn-op-item"
:disabled="!canEditDriverFeedback"
@click="openDriverFeedbackDialog"
>
<el-icon><Edit /></el-icon>
{{ hasDriverFeedback ? '编辑' : '补充' }}
</el-button>
</div>
<p v-if="!hasDriverFeedback" class="pl-plan-form-empty-hint">暂无司机回传</p>
<div v-else class="view-subtable-wrap">
<el-table :data="driverFeedbackTableRows" class="view-subtable list-table" stripe>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column
prop="feedbackTime"
label="回传时间"
min-width="160"
align="center"
/>
<el-table-column
prop="feedbackQty"
label="回传数量"
min-width="100"
align="center"
>
<el-icon><Edit /></el-icon>
{{ hasDriverFeedback ? '编辑' : '补充' }}
</el-button>
</div>
<p v-if="!hasDriverFeedback" class="pl-plan-form-empty-hint">暂无司机回传</p>
<div v-else class="view-subtable-wrap">
<el-table :data="driverFeedbackTableRows" class="view-subtable list-table" stripe>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column
prop="feedbackTime"
label="回传时间"
min-width="160"
align="center"
/>
<el-table-column
prop="feedbackQty"
label="回传数量"
min-width="100"
align="center"
>
<template #default="{ row }">
{{ row.feedbackQty ?? '—' }}
</template>
</el-table-column>
<el-table-column
prop="feedbackRemark"
label="回传备注"
min-width="180"
show-overflow-tooltip
/>
<el-table-column label="回传附件" min-width="140" align="center" header-align="center">
<template #default="{ row }">
<div v-if="row.feedbackImages" class="pl-plan-feedback-table__attachment">
<AttachmentUploadField :model-value="row.feedbackImages" disabled compact />
</div>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</template>
<template #default="{ row }">
{{ row.feedbackQty ?? '—' }}
</template>
</el-table-column>
<el-table-column
prop="feedbackRemark"
label="回传备注"
min-width="180"
show-overflow-tooltip
/>
<el-table-column label="回传附件" min-width="140" align="center" header-align="center">
<template #default="{ row }">
<div v-if="row.feedbackImages" class="pl-plan-feedback-table__attachment">
<AttachmentUploadField :model-value="row.feedbackImages" disabled compact />
</div>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</template>
</el-table-column>
</el-table>
</div>
</section>
<section class="pl-plan-form-section pl-plan-form-section--plain">
<div class="pl-plan-form-section-head">
<h3 class="pl-plan-form-section-title">
{{ ioOrder ? (ioOrder.kind === 'inbound' ? '入库单回传' : '出库单回传') : '现场回传信息' }}
</h3>
<el-button
v-if="ioOrder?.siteUrl"
class="btn-op-item"
@click="copyArrangeSiteUrl(ioOrder.siteUrl)"
>
<el-icon><CopyDocument /></el-icon>
复制现场链接
</el-button>
</div>
<!-- 新链路:入库/出库单权威展示 -->
<template v-if="ioOrder">
<ViewKvTable :fields="ioOrderViewFields" mode="quint" />
<div class="view-subtable-wrap" style="margin-top: 12px">
<el-table :data="ioOrder.items || []" class="view-subtable list-table" stripe>
<el-table-column type="index" label="序号" min-width="68" align="center" />
<el-table-column prop="productNo" label="产品编码" min-width="110" show-overflow-tooltip />
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip />
<el-table-column prop="specification" label="型号/规格" min-width="100" show-overflow-tooltip />
<el-table-column label="单位" min-width="72" align="center">
<template #default="{ row }">{{ row.unitLabel || row.unit || '—' }}</template>
</el-table-column>
<el-table-column prop="planQty" label="计划数量" min-width="100" align="right" />
<el-table-column prop="actualQty" label="实际数量" min-width="100" align="right" />
<el-table-column prop="packageSpec" label="包装规格" min-width="110" show-overflow-tooltip />
<el-table-column prop="remark" label="备注" min-width="120" show-overflow-tooltip />
</el-table>
</div>
</div>
<div class="pl-plan-feedback-region">
<h4 class="pl-plan-feedback-region__title">
{{ ioOrder ? (ioOrder.kind === 'inbound' ? '入库单回传' : '出库单回传') : '现场回传信息' }}
</h4>
<!-- 新链路:入库/出库单权威展示 -->
<template v-if="ioOrder">
<ViewKvTable :fields="ioOrderViewFields" mode="quint" />
<div class="view-subtable-wrap" style="margin-top: 12px">
<el-table :data="ioOrder.items || []" class="view-subtable list-table" stripe>
<el-table-column type="index" label="序号" min-width="68" align="center" />
<el-table-column prop="productNo" label="产品编号" min-width="110" show-overflow-tooltip />
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip />
<el-table-column prop="specification" label="型号/规格" min-width="100" show-overflow-tooltip />
<el-table-column label="单位" min-width="72" align="center">
<template #default="{ row }">{{ row.unitLabel || row.unit || '—' }}</template>
</el-table-column>
<el-table-column prop="planQty" label="计划数量" min-width="100" align="right" />
<el-table-column prop="actualQty" label="实际数量" min-width="100" align="right" />
<el-table-column prop="packageSpec" label="包装规格" min-width="110" show-overflow-tooltip />
<el-table-column prop="remark" label="备注" min-width="120" show-overflow-tooltip />
</el-table>
</div>
<div style="margin-top: 12px">
<div class="pl-plan-io-site-meta">
<div class="pl-plan-io-site-meta__item">
<p class="pl-plan-form-empty-hint" style="margin-bottom: 6px">现场备注</p>
<p class="pl-plan-view-remark">{{ ioOrder.siteFeedbackRemark || '—' }}</p>
</div>
<div style="margin-top: 12px">
<div class="pl-plan-io-site-meta__item">
<p class="pl-plan-form-empty-hint" style="margin-bottom: 6px">现场附件</p>
<AttachmentUploadField
v-if="ioOrderImageCsv"
@@ -206,70 +220,68 @@
/>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</div>
<div style="margin-top: 12px; display: flex; gap: 8px">
<el-button v-if="feedbackEditable && ioOrder.status !== 'voided'" @click="openIoOrderEditDialog">
<el-icon><Edit /></el-icon>
{{ ioOrderHasFeedback ? '编辑' : '补充' }}
</el-button>
<el-button v-if="ioOrder.siteUrl" @click="copyArrangeSiteUrl(ioOrder.siteUrl)">
<el-icon><CopyDocument /></el-icon>
复制现场链接
</el-button>
</div>
</template>
<!-- 旧链路:按产品现场 link -->
<template v-else>
<p v-if="!siteInventoryRows.length && !loading" class="pl-plan-form-empty-hint">
暂无现场链接
</p>
<div v-else class="view-subtable-wrap">
<el-table :data="siteFeedbackTableRows" class="view-subtable list-table" stripe>
<el-table-column type="index" label="序号" min-width="68" align="center" />
<el-table-column prop="productName" label="产品" min-width="140" show-overflow-tooltip />
<el-table-column prop="siteFeedbackTime" label="保存时间" min-width="160" align="center" />
<el-table-column label="业务类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag
v-if="row.businessType && row.businessType !== '—'"
:type="businessTypeTagType(row.businessType)"
size="small"
>
{{ row.businessType }}
</el-tag>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</template>
</el-table-column>
<el-table-column prop="siteFeedbackRemark" label="现场备注" min-width="160" show-overflow-tooltip />
<el-table-column label="现场附件" min-width="140" align="center">
<template #default="{ row }">
<div v-if="row.siteFeedbackImages" class="pl-plan-feedback-table__attachment">
<AttachmentUploadField :model-value="row.siteFeedbackImages" disabled compact />
</div>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</template>
</el-table-column>
<el-table-column label="操作" min-width="240" align="center" fixed="right">
<template #default="{ row }">
<el-button
v-if="feedbackEditable"
class="btn-op-item"
@click="openSiteFeedbackDialog(row)"
>
<el-icon><Edit /></el-icon>
{{ rowHasSiteFeedback(row) ? '编辑' : '补充' }}
</el-button>
<el-button class="btn-op-item" @click="copySiteSummaryForRow(row.sourceRow)">
<el-icon><CopyDocument /></el-icon>
复制给现场
</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
</div>
</div>
<div v-if="feedbackEditable && ioOrder.status !== 'voided'" style="margin-top: 12px">
<el-button @click="openIoOrderEditDialog">
<el-icon><Edit /></el-icon>
{{ ioOrderHasFeedback ? '编辑' : '补充' }}
</el-button>
</div>
</template>
<!-- 旧链路:按产品现场 link -->
<template v-else>
<p v-if="!siteInventoryRows.length && !loading" class="pl-plan-form-empty-hint">
暂无现场链接
</p>
<div v-else class="view-subtable-wrap">
<el-table :data="siteFeedbackTableRows" class="view-subtable list-table" stripe>
<el-table-column type="index" label="序号" min-width="68" align="center" />
<el-table-column prop="productName" label="产品" min-width="140" show-overflow-tooltip />
<el-table-column prop="siteFeedbackTime" label="保存时间" min-width="160" align="center" />
<el-table-column label="业务类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag
v-if="row.businessType && row.businessType !== '—'"
:type="businessTypeTagType(row.businessType)"
size="small"
>
{{ row.businessType }}
</el-tag>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</template>
</el-table-column>
<el-table-column prop="siteFeedbackRemark" label="现场备注" min-width="160" show-overflow-tooltip />
<el-table-column label="现场附件" min-width="140" align="center">
<template #default="{ row }">
<div v-if="row.siteFeedbackImages" class="pl-plan-feedback-table__attachment">
<AttachmentUploadField :model-value="row.siteFeedbackImages" disabled compact />
</div>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</template>
</el-table-column>
<el-table-column label="操作" min-width="240" align="center" fixed="right">
<template #default="{ row }">
<el-button
v-if="feedbackEditable"
class="btn-op-item"
@click="openSiteFeedbackDialog(row)"
>
<el-icon><Edit /></el-icon>
{{ rowHasSiteFeedback(row) ? '编辑' : '补充' }}
</el-button>
<el-button class="btn-op-item" @click="copySiteSummaryForRow(row.sourceRow)">
<el-icon><CopyDocument /></el-icon>
复制给现场
</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
</section>
<h4 class="pl-plan-subtitle">地磅单信息</h4>
<section class="pl-plan-form-section pl-plan-form-section--plain">
<h3 class="pl-plan-form-section-title">地磅单信息</h3>
<p v-if="!dibangPlanRows.length && !loading" class="pl-plan-form-empty-hint"
>暂无关联地磅单</p
>
@@ -293,7 +305,7 @@
</div>
</div>
<ViewKvTable :fields="dibangBasicViewFields(row)" mode="quad" />
<ViewKvTable :fields="dibangBasicViewFields(row)" mode="hex" />
<template v-if="row.weighing">
<h5 class="pl-plan-dibang-weighing-title">地磅单</h5>
@@ -399,7 +411,7 @@
</el-tab-pane>
<el-tab-pane label="合同信息" name="contract">
<section class="pl-plan-form-section">
<section class="pl-plan-form-section pl-plan-form-section--plain">
<p v-if="!contractSnapshot" class="pl-plan-form-empty-hint">暂无关联合同信息</p>
<template v-else>
<div class="pl-plan-form-section-head">
@@ -488,7 +500,7 @@
<el-form v-if="ioOrderEditForm" label-position="top">
<el-form-item label="产品实际数量">
<el-table :data="ioOrderEditForm.items || []" size="small" border>
<el-table-column prop="productNo" label="产品编号" min-width="110" show-overflow-tooltip />
<el-table-column prop="productNo" label="产品编码" min-width="110" show-overflow-tooltip />
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip />
<el-table-column prop="specification" label="型号/规格" min-width="100" show-overflow-tooltip />
<el-table-column label="单位" min-width="72" align="center">
@@ -649,6 +661,7 @@
voided: '已作废'
}
const status = ioOrder.value.status
// 出库/入库单回传:取送货与「最近提交」与上方物流节点重复,不在此展示
return [
{ label: '单号', value: ioOrder.value.orderNo },
{
@@ -659,21 +672,7 @@
},
{ label: '计划号', value: ioOrder.value.planNo },
{ label: '车牌', value: ioOrder.value.vehicleNo },
{ label: '往来单位', value: ioOrder.value.partnerCompany },
{
label: '最近提交',
value: formatDateTime(ioOrder.value.siteFeedbackTime) || '—'
},
{ label: '取货地址', value: ioOrder.value.pickupAddress, span: 'full' },
{ label: '取货时间', value: formatDateTime(ioOrder.value.pickupTime) || '—' },
{ label: '取货注意事项', value: ioOrder.value.pickupNotes, span: 'full' },
{
label: '送货地址',
value: ioOrder.value.destinationAddress || ioOrder.value.destinationName,
span: 'full'
},
{ label: '送达时间', value: formatDateTime(ioOrder.value.deliveryTime) || '—' },
{ label: '送货注意事项', value: ioOrder.value.destinationNotes, span: 'full' }
{ label: '往来单位', value: ioOrder.value.partnerCompany }
]
})
@@ -756,20 +755,23 @@
function dibangBasicViewFields(row: PlPlanTransportDibangRow): ViewField[] {
const businessType = row.inventory?.businessType
// long: false — 强制六字段同一行展示,避免往来单位等长文案自动折行
return [
{ label: '出入库单号', value: row.inventory?.batchNo || row.link.batchNo },
{ label: '出入库单号', value: row.inventory?.batchNo || row.link.batchNo, long: false },
{
label: '业务类型',
value: businessType,
tagType: businessType ? businessTypeTagType(businessType) : undefined
tagType: businessType ? businessTypeTagType(businessType) : undefined,
long: false
},
{ label: '往来单位', value: row.inventory?.partnerCompany },
{ label: '往来单位', value: row.inventory?.partnerCompany, long: false },
{
label: '车牌号',
value: row.inventory?.vehicleNo || plan.value?.licensePlate || transport.value?.licensePlate
value: row.inventory?.vehicleNo || plan.value?.licensePlate || transport.value?.licensePlate,
long: false
},
{ label: '产品', value: row.inventory?.product || row.link.productName },
{ label: '数量(吨)', value: row.inventory?.quantity }
{ label: '产品', value: row.inventory?.product || row.link.productName, long: false },
{ label: '数量(吨)', value: row.inventory?.quantity, long: false }
]
}
@@ -976,28 +978,33 @@
const unit = freightUnitLabel.value
const isByWeight = hasFreight && displayFreightType.value === 'by_weight'
// long: false — 强制七字段同一行展示
return [
{ label: '是否有运输费用', value: getPlYesNoLabel(plan.value?.hasFreight) },
{ label: '运输公里数', value: hasFreight ? displayDistanceKm.value : '—' },
{ label: '是否有运输费用', value: getPlYesNoLabel(plan.value?.hasFreight), long: false },
{ label: '运输公里数', value: hasFreight ? displayDistanceKm.value : '—', long: false },
{
label: '运费计算方式',
value: hasFreight ? getPlFreightTypeLabel(displayFreightType.value) : '—'
value: hasFreight ? getPlFreightTypeLabel(displayFreightType.value) : '—',
long: false
},
{
label: `运输量(${unit})`,
value: isByWeight ? displayTransportQty.value : '—'
value: isByWeight ? displayTransportQty.value : '—',
long: false
},
{
label: `运输单价(元/${unit})`,
value: isByWeight ? displayFreightPrice.value : '—',
money: isByWeight
money: isByWeight,
long: false
},
{
label: '运费金额(元)',
value: hasFreight ? displayFreightAmount.value : '—',
money: hasFreight
money: hasFreight,
long: false
},
{ label: '是否开票', value: hasFreight ? displayHasInvoiceLabel.value : '—' }
{ label: '是否开票', value: hasFreight ? displayHasInvoiceLabel.value : '—', long: false }
]
})
@@ -1124,6 +1131,13 @@
& + & {
margin-top: 12px;
}
&--plain {
padding: 0;
border: none;
border-radius: 0;
background: transparent;
}
}
.pl-plan-form-section-head {
@@ -1251,6 +1265,13 @@
border: 1px solid var(--border, #d9e8e2);
border-radius: 10px;
background: #fff;
&--plain {
padding: 0;
border: none;
border-radius: 0;
background: transparent;
}
}
.party-panel__title {
@@ -1330,6 +1351,23 @@
background: #f8fafc;
}
.pl-plan-io-site-meta {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 16px 24px;
margin-top: 12px;
}
.pl-plan-io-site-meta__item {
min-width: 0;
}
@media (max-width: 720px) {
.pl-plan-io-site-meta {
grid-template-columns: 1fr;
}
}
.pl-plan-feedback-region__head {
display: flex;
align-items: center;
@@ -1352,14 +1390,14 @@
line-height: 1;
}
.pl-plan-feedback-region .view-subtable-wrap {
.pl-plan-form-section .view-subtable-wrap {
border: 1px solid #e2e8f0;
border-radius: 8px;
overflow: hidden;
background: #fff;
}
.pl-plan-feedback-region .view-subtable-wrap :deep(.el-table.view-subtable) {
.pl-plan-form-section .view-subtable-wrap :deep(.el-table.view-subtable) {
--el-table-header-bg-color: #f8fafc;
--el-table-header-text-color: #1e293b;
--el-table-border-color: #e2e8f0;
@@ -56,6 +56,10 @@
&--cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
&--cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
.view-kv {
@@ -102,14 +106,16 @@
}
@media (max-width: 1100px) {
.view-kv-grid--cols-4 {
.view-kv-grid--cols-4,
.view-kv-grid--cols-5 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 900px) {
.view-kv-grid--cols-3,
.view-kv-grid--cols-4 {
.view-kv-grid--cols-4,
.view-kv-grid--cols-5 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@@ -117,7 +123,8 @@
@media (max-width: 640px) {
.view-kv-grid,
.view-kv-grid--cols-3,
.view-kv-grid--cols-4 {
.view-kv-grid--cols-4,
.view-kv-grid--cols-5 {
grid-template-columns: 1fr;
}
@@ -96,7 +96,7 @@
</template>
</tr>
</template>
<template v-else>
<template v-else-if="mode === 'quint'">
<tr
v-for="(row, idx) in quintRows"
:key="quintRowKey(row, idx)"
@@ -124,6 +124,62 @@
</template>
</tr>
</template>
<template v-else-if="mode === 'hex'">
<tr
v-for="(row, idx) in hexRows"
:key="hexRowKey(row, idx)"
:class="{ 'row-long': row.type === 'long' }"
>
<template v-if="row.type === 'long'">
<th>{{ row.field.label }}</th>
<td colspan="11">
<ViewKvTableCell :field="row.field" />
</td>
</template>
<template v-else>
<template v-for="(field, fi) in row.fields" :key="field.label">
<th>{{ field.label }}</th>
<td
:colspan="
fi === row.fields.length - 1 && row.fields.length < 6
? (6 - row.fields.length) * 2 + 1
: undefined
"
>
<ViewKvTableCell :field="field" />
</td>
</template>
</template>
</tr>
</template>
<template v-else>
<tr
v-for="(row, idx) in septRows"
:key="septRowKey(row, idx)"
:class="{ 'row-long': row.type === 'long' }"
>
<template v-if="row.type === 'long'">
<th>{{ row.field.label }}</th>
<td colspan="13">
<ViewKvTableCell :field="row.field" />
</td>
</template>
<template v-else>
<template v-for="(field, fi) in row.fields" :key="field.label">
<th>{{ field.label }}</th>
<td
:colspan="
fi === row.fields.length - 1 && row.fields.length < 7
? (7 - row.fields.length) * 2 + 1
: undefined
"
>
<ViewKvTableCell :field="field" />
</td>
</template>
</template>
</tr>
</template>
</tbody>
</table>
</div>
@@ -136,23 +192,27 @@
import ViewKvTableCell from './ViewKvTableCell.vue'
import {
buildViewKvTableDualRows,
buildViewKvTableHexRows,
buildViewKvTableQuadRows,
buildViewKvTableQuintRows,
buildViewKvTableSeptRows,
buildViewKvTableTripleRows,
getViewFieldDisplayText,
isViewFieldFullSpan,
isViewFieldLong,
type ViewKvTableHexRow,
type ViewKvTableQuadRow,
type ViewKvTableQuintRow,
type ViewKvTableRow,
type ViewKvTableSeptRow,
type ViewKvTableTripleRow
} from '@/utils/view-field-layout'
const props = withDefaults(
defineProps<{
fields: ViewField[]
/** pair:一行一组;dual:一行两组(四列);triple:一行三组(六列);quad:一行四组(八列);quint:一行五组(十列) */
mode?: 'pair' | 'dual' | 'triple' | 'quad' | 'quint'
/** pair:一行一组;dual:两组;triple:三组;quad:四组;quint:五组;hex:六组;sept:七组 */
mode?: 'pair' | 'dual' | 'triple' | 'quad' | 'quint' | 'hex' | 'sept'
}>(),
{
mode: 'pair'
@@ -163,6 +223,8 @@
const tripleRows = computed(() => buildViewKvTableTripleRows(props.fields, formatViewValue))
const quadRows = computed(() => buildViewKvTableQuadRows(props.fields, formatViewValue))
const quintRows = computed(() => buildViewKvTableQuintRows(props.fields, formatViewValue))
const hexRows = computed(() => buildViewKvTableHexRows(props.fields, formatViewValue))
const septRows = computed(() => buildViewKvTableSeptRows(props.fields, formatViewValue))
const emit = defineEmits<{
(e: 'field-view', field: ViewField): void
@@ -194,6 +256,16 @@
if (row.type === 'long') return row.field.label
return row.fields.map((f) => f.label).join('-') || String(idx)
}
function hexRowKey(row: ViewKvTableHexRow, idx: number) {
if (row.type === 'long') return row.field.label
return row.fields.map((f) => f.label).join('-') || String(idx)
}
function septRowKey(row: ViewKvTableSeptRow, idx: number) {
if (row.type === 'long') return row.field.label
return row.fields.map((f) => f.label).join('-') || String(idx)
}
</script>
<style scoped lang="scss">
@@ -309,4 +381,36 @@
.view-kv-table--quint tr.row-long td {
width: auto;
}
.view-kv-table--hex th {
width: 5.5%;
}
.view-kv-table--hex td {
width: 11.2%;
}
.view-kv-table--hex tr.row-long th {
width: 5.5%;
}
.view-kv-table--hex tr.row-long td {
width: auto;
}
.view-kv-table--sept th {
width: 5%;
}
.view-kv-table--sept td {
width: 9.3%;
}
.view-kv-table--sept tr.row-long th {
width: 5%;
}
.view-kv-table--sept tr.row-long td {
width: auto;
}
</style>
@@ -31,7 +31,7 @@ export interface ViewField {
}
export type ViewFieldLayout = 'grid' | 'table'
export type ViewTableMode = 'pair' | 'dual' | 'triple' | 'quad' | 'quint'
export type ViewTableMode = 'pair' | 'dual' | 'triple' | 'quad' | 'quint' | 'hex' | 'sept'
export interface ViewFieldGroup {
title?: string
+66
View File
@@ -190,3 +190,69 @@ export function buildViewKvTableQuintRows(
}
return rows
}
export type ViewKvTableHexRow =
| { type: 'long'; field: ViewField }
| { type: 'hex'; fields: ViewField[] }
/** KV 表格模式(六组十二列):长字段独占行,短字段最多六个一组 */
export function buildViewKvTableHexRows(
fields: ViewField[],
formatValue: (val: unknown) => string
): ViewKvTableHexRow[] {
const rows: ViewKvTableHexRow[] = []
let i = 0
while (i < fields.length) {
const field = fields[i]
const text = getViewFieldDisplayText(field, formatValue)
if (isViewFieldLong(field, text) || isViewFieldFullSpan(field, text)) {
rows.push({ type: 'long', field })
i += 1
continue
}
const group: ViewField[] = [field]
i += 1
while (i < fields.length && group.length < 6) {
const next = fields[i]
const nextText = getViewFieldDisplayText(next, formatValue)
if (isViewFieldLong(next, nextText) || isViewFieldFullSpan(next, nextText)) break
group.push(next)
i += 1
}
rows.push({ type: 'hex', fields: group })
}
return rows
}
export type ViewKvTableSeptRow =
| { type: 'long'; field: ViewField }
| { type: 'sept'; fields: ViewField[] }
/** KV 表格模式(七组十四列):长字段独占行,短字段最多七个一组 */
export function buildViewKvTableSeptRows(
fields: ViewField[],
formatValue: (val: unknown) => string
): ViewKvTableSeptRow[] {
const rows: ViewKvTableSeptRow[] = []
let i = 0
while (i < fields.length) {
const field = fields[i]
const text = getViewFieldDisplayText(field, formatValue)
if (isViewFieldLong(field, text) || isViewFieldFullSpan(field, text)) {
rows.push({ type: 'long', field })
i += 1
continue
}
const group: ViewField[] = [field]
i += 1
while (i < fields.length && group.length < 7) {
const next = fields[i]
const nextText = getViewFieldDisplayText(next, formatValue)
if (isViewFieldLong(next, nextText) || isViewFieldFullSpan(next, nextText)) break
group.push(next)
i += 1
}
rows.push({ type: 'sept', fields: group })
}
return rows
}
@@ -126,103 +126,128 @@
<el-dialog
v-model="dialogVisible"
:title="kind === 'inbound' ? '编辑入库单' : '编辑出库单'"
width="1080px"
width="100%"
align-center
destroy-on-close
class="dialog-form-layout"
append-to-body
class="dialog-form-layout io-order-edit-dialog"
modal-class="order-module-dialog-mask"
:close-on-click-modal="false"
style="backdrop-filter: none"
>
<el-form v-if="editForm" label-position="top" class="form-grid-2">
<el-form-item label="单号">
<el-input :model-value="editForm.orderNo" disabled />
</el-form-item>
<el-form-item label="状态">
<el-select v-model="editForm.status" :disabled="editForm.status === 'voided'">
<el-option label="进行中" value="in_progress" />
<el-option label="已完成" value="completed" />
<el-option label="已作废" value="voided" />
</el-select>
</el-form-item>
<el-form-item label="计划号">
<el-input :model-value="editForm.planNo" disabled />
</el-form-item>
<el-form-item label="车牌">
<el-input :model-value="editForm.vehicleNo" disabled />
</el-form-item>
<el-form-item label="往来单位" class="form-col-span-2">
<el-input :model-value="editForm.partnerCompany" disabled />
</el-form-item>
<el-form-item label="取货地址" class="form-col-span-2">
<el-input :model-value="editForm.pickupAddress || '—'" disabled />
</el-form-item>
<el-form-item label="取货时间">
<el-input :model-value="formatDisplayTime(editForm.pickupTime)" disabled />
</el-form-item>
<el-form-item label="取货注意事项" class="form-col-span-2">
<el-input
type="textarea"
:rows="2"
:model-value="editForm.pickupNotes || '—'"
disabled
/>
</el-form-item>
<el-form-item label="送货地址" class="form-col-span-2">
<el-input
:model-value="editForm.destinationAddress || editForm.destinationName || '—'"
disabled
/>
</el-form-item>
<el-form-item label="送达时间">
<el-input :model-value="formatDisplayTime(editForm.deliveryTime)" disabled />
</el-form-item>
<el-form-item label="送货注意事项" class="form-col-span-2">
<el-input
type="textarea"
:rows="2"
:model-value="editForm.destinationNotes || '—'"
disabled
/>
</el-form-item>
<el-form-item label="产品明细" class="form-col-span-2">
<el-table :data="editForm.items || []" size="small" border>
<el-table-column prop="productNo" label="产品编号" min-width="110" show-overflow-tooltip />
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip />
<el-table-column prop="specification" label="型号/规格" min-width="100" show-overflow-tooltip />
<el-table-column label="单位" min-width="72" align="center">
<template #default="{ row }">{{ row.unitLabel || row.unit || '—' }}</template>
</el-table-column>
<el-table-column prop="planQty" label="计划数量" min-width="100" align="right" />
<el-table-column label="实际数量" min-width="120">
<template #default="{ row }">
<el-input-number
v-model="row.actualQty"
:min="0"
:precision="3"
:controls="false"
:disabled="editForm.status === 'voided'"
/>
</template>
</el-table-column>
<el-table-column prop="packageSpec" label="包装规格" min-width="110" show-overflow-tooltip />
<el-table-column prop="remark" label="备注" min-width="120" show-overflow-tooltip />
</el-table>
</el-form-item>
<el-form-item label="现场备注" class="form-col-span-2">
<el-input
v-model="editForm.siteFeedbackRemark"
type="textarea"
:rows="3"
maxlength="500"
show-word-limit
:disabled="editForm.status === 'voided'"
/>
</el-form-item>
<el-form-item label="现场附件" class="form-col-span-2">
<AttachmentUploadField
v-model="editImagesCsv"
:disabled="editForm.status === 'voided'"
/>
</el-form-item>
<el-form v-if="editForm" label-position="top">
<div class="form-grid-4">
<el-form-item label="单号">
<el-input :model-value="editForm.orderNo" disabled />
</el-form-item>
<el-form-item label="状态">
<el-select v-model="editForm.status" :disabled="editForm.status === 'voided'">
<el-option label="进行中" value="in_progress" />
<el-option label="已完成" value="completed" />
<el-option label="已作废" value="voided" />
</el-select>
</el-form-item>
<el-form-item label="计划号">
<el-input :model-value="editForm.planNo" disabled />
</el-form-item>
<el-form-item label="车牌">
<el-input :model-value="editForm.vehicleNo" disabled />
</el-form-item>
<el-form-item label="往来单位">
<el-input :model-value="editForm.partnerCompany" disabled />
</el-form-item>
<el-form-item label="取货时间">
<el-input :model-value="formatDisplayTime(editForm.pickupTime)" disabled />
</el-form-item>
<el-form-item label="取货地址">
<el-input :model-value="editForm.pickupAddress || '—'" disabled />
</el-form-item>
<el-form-item label="取货注意事项">
<el-input
type="textarea"
:rows="2"
:model-value="editForm.pickupNotes || '—'"
disabled
/>
</el-form-item>
<el-form-item label="送达时间">
<el-input :model-value="formatDisplayTime(editForm.deliveryTime)" disabled />
</el-form-item>
<el-form-item label="送货地址">
<el-input
:model-value="editForm.destinationAddress || editForm.destinationName || '—'"
disabled
/>
</el-form-item>
<el-form-item label="送货注意事项">
<el-input
type="textarea"
:rows="2"
:model-value="editForm.destinationNotes || '—'"
disabled
/>
</el-form-item>
<el-form-item label="现场备注">
<el-input
v-model="editForm.siteFeedbackRemark"
type="textarea"
:rows="3"
maxlength="500"
show-word-limit
:disabled="editForm.status === 'voided'"
/>
</el-form-item>
</div>
<div class="io-order-edit-full-fields">
<el-form-item label="产品明细">
<div class="panel dialog-list-panel">
<div class="list-body list-wrap dialog-list-body-only">
<el-table
class="list-table"
:data="editForm.items || []"
stripe
empty-text="暂无产品明细"
style="width: 100%"
>
<el-table-column
type="index"
label="序号"
min-width="60"
align="center"
header-align="center"
/>
<el-table-column prop="productNo" label="产品编号" min-width="110" show-overflow-tooltip />
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip />
<el-table-column prop="specification" label="型号/规格" min-width="100" show-overflow-tooltip />
<el-table-column label="单位" min-width="80" align="center">
<template #default="{ row }">{{ row.unitLabel || row.unit || '—' }}</template>
</el-table-column>
<el-table-column prop="planQty" label="计划数量" min-width="100" align="right" />
<el-table-column label="实际数量" min-width="120" align="right">
<template #default="{ row }">
<el-input-number
v-model="row.actualQty"
:min="0"
:precision="3"
:controls="false"
:disabled="editForm.status === 'voided'"
style="width: 100%"
/>
</template>
</el-table-column>
<el-table-column prop="packageSpec" label="包装规格" min-width="110" show-overflow-tooltip />
<el-table-column prop="remark" label="备注" min-width="120" show-overflow-tooltip />
</el-table>
</div>
</div>
</el-form-item>
<el-form-item label="现场附件">
<AttachmentUploadField
v-model="editImagesCsv"
:disabled="editForm.status === 'voided'"
/>
</el-form-item>
</div>
</el-form>
<template #footer>
<el-button @click="dialogVisible = false">
@@ -372,3 +397,32 @@
onMounted(fetchData)
</script>
<style lang="scss">
.el-dialog.io-order-edit-dialog.dialog-form-layout {
width: 100% !important;
max-width: calc(100vw - 48px);
.io-order-edit-full-fields {
width: 100%;
margin-top: 16px;
> .el-form-item {
width: 100%;
margin-bottom: 16px;
}
> .el-form-item:last-child {
margin-bottom: 0;
}
.el-form-item__content,
.panel.dialog-list-panel,
.list-body.list-wrap,
.el-table.list-table {
width: 100% !important;
max-width: 100%;
}
}
}
</style>
@@ -89,6 +89,25 @@
/>
</van-cell-group>
<van-cell-group inset class="section-card" title="回传数量">
<div class="actual-box">
<div class="actual-box__label">
<strong>实际数量</strong>
<span>请按实装填写,参考现场回执</span>
</div>
<div class="actual-box__row">
<van-field
v-model="feedbackQtyText"
type="number"
class="actual-box__field"
placeholder="请输入"
:border="false"
/>
<span class="actual-box__unit">{{ primaryQtyUnit }}</span>
</div>
</div>
</van-cell-group>
<van-cell-group inset class="section-card" title="回执上传">
<div class="uploader-wrap">
<van-uploader
@@ -115,7 +134,7 @@
</van-cell-group>
<van-cell-group v-if="page.feedbackTime" inset class="section-card">
<van-cell title="上次保存" :value="page.feedbackTime" />
<van-cell title="上次保存" :value="formatDateTime(page.feedbackTime)" />
</van-cell-group>
<footer class="page-footer">
@@ -151,9 +170,15 @@
const errorMessage = ref('')
const page = ref<PublicTransportPage | null>(null)
const feedbackRemark = ref('')
const feedbackQtyText = ref('')
const feedbackImages = ref<string[]>([])
const uploaderFiles = ref<UploaderFileListItem[]>([])
const primaryQtyUnit = computed(() => {
const unit = page.value?.products?.find((p) => p.unit)?.unit
return unit || '吨'
})
function formatPersonnelLine(person: PublicTransportPersonnel) {
const phone = person.phoneNo ? ` ${person.phoneNo}` : ''
return `${formatPlPersonnelNameWithRole(person.personnelName, person.role)}${phone}`.trim()
@@ -224,6 +249,8 @@
const data = await publicTransportApi.getPage(token.value)
page.value = data
feedbackRemark.value = data.feedbackRemark || ''
feedbackQtyText.value =
data.feedbackQty != null && data.feedbackQty !== undefined ? String(data.feedbackQty) : ''
feedbackImages.value = [...(data.feedbackImages || [])]
syncUploaderFromImages()
} catch (e: any) {
@@ -263,11 +290,22 @@
}
async function handleSave() {
const qtyRaw = feedbackQtyText.value.trim()
let feedbackQty: number | null = null
if (qtyRaw !== '') {
const parsed = Number(qtyRaw)
if (!Number.isFinite(parsed) || parsed < 0) {
showFailToast('请输入有效的回传数量')
return
}
feedbackQty = parsed
}
saving.value = true
try {
await publicTransportApi.saveFeedback(token.value, {
feedbackRemark: feedbackRemark.value,
feedbackImages: feedbackImages.value
feedbackImages: feedbackImages.value,
feedbackQty
})
showSuccessToast('保存成功')
await loadPage()
@@ -360,4 +398,58 @@
.product-cell :deep(.van-cell__value) {
display: none;
}
.actual-box {
margin: 4px 12px 12px;
padding: 12px 14px;
border-radius: 12px;
background: linear-gradient(180deg, #f0fdf4 0%, #fff 48%);
border: 1px solid #d1fae5;
}
.actual-box__label {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.actual-box__label strong {
font-size: 14px;
color: #0f172a;
}
.actual-box__label span {
font-size: 12px;
color: #64748b;
}
.actual-box__row {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 10px;
border-radius: 10px;
background: #fff;
border: 1px solid #a7f3d0;
}
.actual-box__field {
flex: 1;
padding: 0;
}
.actual-box__field :deep(.van-field__control) {
font-size: 20px;
font-weight: 700;
color: #059669;
}
.actual-box__unit {
flex-shrink: 0;
font-size: 13px;
font-weight: 600;
color: #64748b;
}
</style>