-
+
+
+
+
+
+
+ {{ item.warehouseName }}
+
+
+
+
+
+
- {{ $t('system.warehouseAddress.fields.recipient') }}:
- {{ item.recipient || '-' }}
+ {{ $t('system.warehouseAddress.fields.recipient') }}
+ {{ displayRecipient(item) }}
- {{ $t('system.warehouseAddress.fields.contactPhone') }}:
- {{ item.contactPhone || '-' }}
+ {{ $t('system.warehouseAddress.fields.contactPhone') }}
+ {{ item.contactPhone || '-' }}
-
-
{{ $t('system.warehouseAddress.fields.shippingAddress') }}:
-
{{ item.shippingAddress || '-' }}
+
+ {{ $t('system.warehouseAddress.fields.shippingAddress') }}
+ {{ displayShippingAddress(item) }}
-
-
-
- {{ $t('system.warehouseAddress.actions.copy') }}
-
-
- {{ $t('system.warehouseAddress.actions.edit') }}
-
-
- {{ $t('system.warehouseAddress.actions.delete') }}
-
-
-
-
-
+
- {{ $t('system.warehouseAddress.actions.add') }}
+ {{ $t('system.warehouseAddress.actions.add') }}
@@ -107,9 +111,10 @@
@@ -327,34 +366,57 @@ onMounted(() => {
padding: 16px;
box-sizing: border-box;
display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 20px;
+ grid-template-columns: repeat(auto-fill, minmax(496px, 1fr));
+ gap: 24px;
align-items: start;
}
-/* 固定高度:grid 子项默认 min-height:auto 会按内容撑开,必须 min-height:0 才能让 height 生效 */
-@warehouse-card-height: 400px;
+@warehouse-card-height: 267px;
.warehouse-card-shell {
min-width: 0;
- /* 覆盖 grid item 默认 min-height:auto,否则内容多高卡片就多高,改数字看不出变化 */
min-height: 0;
height: @warehouse-card-height;
max-height: @warehouse-card-height;
overflow: hidden;
+ display: flex;
+ flex-direction: column;
box-sizing: border-box;
:deep(.arco-card) {
+ flex: 1;
min-height: 0;
height: 100%;
max-height: 100%;
display: flex;
flex-direction: column;
box-sizing: border-box;
+ border: 1px solid var(--color-border-2);
+ border-radius: 8px;
+ box-shadow: none;
+ transition: border-color 0.2s, box-shadow 0.2s;
+ }
+
+ :deep(.arco-card:hover) {
+ border-color: rgb(var(--primary-5));
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
:deep(.arco-card-header) {
+ height: auto;
+ min-height: 52px;
+ padding: 16px 20px;
+ border-bottom: 1px solid var(--color-border-1);
+ }
+
+ :deep(.arco-card-header-title) {
+ flex: 1;
+ min-width: 0;
+ }
+
+ :deep(.arco-card-header-extra) {
flex-shrink: 0;
+ margin-left: 12px;
}
:deep(.arco-card-body) {
@@ -362,13 +424,13 @@ onMounted(() => {
display: flex;
flex-direction: column;
min-height: 0;
- overflow: auto;
+ padding: 16px 20px 20px;
}
.warehouse-card-title {
display: flex;
align-items: center;
- gap: 8px;
+ gap: 12px;
min-width: 0;
}
@@ -377,18 +439,12 @@ onMounted(() => {
display: inline-flex;
align-items: center;
justify-content: center;
- width: 28px;
- height: 28px;
- border-radius: 6px;
+ width: 40px;
+ height: 40px;
+ border-radius: 8px;
background: var(--color-fill-2);
color: var(--app-primary-color, rgb(var(--arcoblue-6)));
- font-size: 16px;
- }
-
- .warehouse-card-type-tag {
- flex-shrink: 0;
- border-radius: 4px;
- font-weight: 500;
+ font-size: 20px;
}
.warehouse-card-title-text {
@@ -397,16 +453,59 @@ onMounted(() => {
text-overflow: ellipsis;
white-space: nowrap;
font-size: 18px;
- font-weight: 700;
+ font-weight: 600;
line-height: 1.35;
color: var(--color-text-1);
}
+ .card-extra {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ }
+
+ .warehouse-card-type-tag {
+ flex-shrink: 0;
+ max-width: 140px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ border-radius: 4px;
+ font-size: 13px;
+ line-height: 22px;
+ padding: 0 10px;
+ }
+
+ .card-actions {
+ display: flex;
+ align-items: center;
+ gap: 2px;
+ flex-shrink: 0;
+ }
+
+ .action-icon-btn {
+ width: 32px;
+ height: 32px;
+ padding: 0;
+ font-size: 16px;
+ color: var(--color-text-3);
+
+ &:hover {
+ color: rgb(var(--primary-6));
+ background: var(--color-fill-2);
+ }
+ }
+
+ .action-icon-btn--danger:hover {
+ color: rgb(var(--danger-6));
+ background: rgb(var(--danger-1));
+ }
+
&--add {
:deep(.arco-card.add-card) {
cursor: pointer;
- border: 1px dashed #d9d9d9;
- background: #fafafa;
+ border: 1px dashed var(--color-border-3);
+ background: var(--color-fill-1);
}
:deep(.arco-card-header) {
@@ -415,74 +514,78 @@ onMounted(() => {
:deep(.arco-card-body) {
padding: 0;
+ justify-content: center;
+ align-items: center;
}
.add-card-inner {
- flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
- min-height: 0;
- padding: 16px;
+ gap: 12px;
+ width: 100%;
+ height: 100%;
+ padding: 24px;
box-sizing: border-box;
- color: #8c8c8c;
+ color: var(--color-text-3);
.add-icon {
font-size: 48px;
- margin-bottom: 12px;
+ }
+
+ .add-text {
+ font-size: 14px;
}
}
:deep(.arco-card.add-card:hover) {
border-color: rgb(var(--primary-6));
- color: rgb(var(--primary-6));
- }
+ background: rgb(var(--primary-1));
- :deep(.arco-card.add-card:hover .add-card-inner) {
- color: rgb(var(--primary-6));
+ .add-card-inner {
+ color: rgb(var(--primary-6));
+ }
}
}
}
.card-body {
flex: 1;
+ min-height: 0;
+ overflow: auto;
display: flex;
flex-direction: column;
- min-height: 0;
- overflow: hidden;
-
- .card-body-scroll {
- flex: 1;
- min-height: 0;
- overflow: auto;
- }
-
- .card-actions {
- flex-shrink: 0;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- padding-top: 10px;
- margin-top: 4px;
- border-top: 1px solid var(--color-border-2);
- }
+ gap: 10px;
.card-row {
display: flex;
- margin-bottom: 12px;
- font-size: 13px;
+ align-items: flex-start;
+ gap: 12px;
+ font-size: 14px;
line-height: 1.5;
+ min-height: 22px;
.label {
flex-shrink: 0;
- width: 80px;
- color: #8c8c8c;
+ width: 72px;
+ color: var(--color-text-3);
}
.value {
flex: 1;
min-width: 0;
+ color: var(--color-text-1);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ &--address .value-address {
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ white-space: normal;
word-break: break-all;
}
}
diff --git a/src/views/warehouse/inboundNotice/index.vue b/src/views/warehouse/inboundNotice/index.vue
new file mode 100644
index 0000000..f83e81e
--- /dev/null
+++ b/src/views/warehouse/inboundNotice/index.vue
@@ -0,0 +1,316 @@
+
+
+
+
+
+
{ currentPage = 1; loadList() }">
+
+
+ {{ t(tab.labelKey) }}
+ ({{ summary[tab.countKey as 'forecasted' | 'completed'] }})
+
+
+
+
+
+
+
+
{ currentPage = 1; loadList() }" />
+
+
+
+
+ {{ t('warehouse.inbound.table.noticeNo') }}: {{ detailData.noticeNo }}
+
+
{{ t('warehouse.inbound.box') }}: {{ box.markBoxNo || box.boxSeqNo }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('warehouse.common.cancel') }}
+ {{ t('warehouse.common.save') }}
+
+
+
+
+
+
diff --git a/src/views/warehouse/inventory/index.vue b/src/views/warehouse/inventory/index.vue
new file mode 100644
index 0000000..c2a9afa
--- /dev/null
+++ b/src/views/warehouse/inventory/index.vue
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
+
{ currentPage = 1; loadList() }" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('warehouse.common.cancel') }}
+ {{ t('warehouse.common.confirm') }}
+
+
+
+
+
+
diff --git a/src/views/warehouse/parcel/index.vue b/src/views/warehouse/parcel/index.vue
new file mode 100644
index 0000000..9f70a51
--- /dev/null
+++ b/src/views/warehouse/parcel/index.vue
@@ -0,0 +1,226 @@
+
+
+
+
+
+
{ currentPage = 1; loadList() }">
+
+
+
+
+
+
+
{ currentPage = 1; loadList() }" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('warehouse.common.cancel') }}
+ {{ t('warehouse.common.save') }}
+
+
+
+
+
+
diff --git a/src/views/warehouse/sku/index.vue b/src/views/warehouse/sku/index.vue
new file mode 100644
index 0000000..ba27803
--- /dev/null
+++ b/src/views/warehouse/sku/index.vue
@@ -0,0 +1,255 @@
+
+
+
+
+
+
+
+
+
+
+
+
{ currentPage = 1; loadList() }"
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('warehouse.common.cancel') }}
+ {{ t('warehouse.common.save') }}
+
+
+
+
+
+
diff --git a/xhs-agent-desktop/app/__pycache__/agent_worker.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/agent_worker.cpython-314.pyc
index f5efe01..7af34c9 100644
Binary files a/xhs-agent-desktop/app/__pycache__/agent_worker.cpython-314.pyc and b/xhs-agent-desktop/app/__pycache__/agent_worker.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/app/__pycache__/config_store.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/config_store.cpython-314.pyc
index d6a832f..fddda7d 100644
Binary files a/xhs-agent-desktop/app/__pycache__/config_store.cpython-314.pyc and b/xhs-agent-desktop/app/__pycache__/config_store.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/app/__pycache__/engine_path.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/engine_path.cpython-314.pyc
new file mode 100644
index 0000000..2a03b8c
Binary files /dev/null and b/xhs-agent-desktop/app/__pycache__/engine_path.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/app/__pycache__/main_window.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/main_window.cpython-314.pyc
index 2f4bf5b..854cd16 100644
Binary files a/xhs-agent-desktop/app/__pycache__/main_window.cpython-314.pyc and b/xhs-agent-desktop/app/__pycache__/main_window.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/app/__pycache__/oms_agent_runner.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/oms_agent_runner.cpython-314.pyc
new file mode 100644
index 0000000..294f9b6
Binary files /dev/null and b/xhs-agent-desktop/app/__pycache__/oms_agent_runner.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/app/__pycache__/oms_client.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/oms_client.cpython-314.pyc
new file mode 100644
index 0000000..9792e3e
Binary files /dev/null and b/xhs-agent-desktop/app/__pycache__/oms_client.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/app/__pycache__/pair_server.cpython-314.pyc b/xhs-agent-desktop/app/__pycache__/pair_server.cpython-314.pyc
new file mode 100644
index 0000000..bca731a
Binary files /dev/null and b/xhs-agent-desktop/app/__pycache__/pair_server.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/.xhs_bridge/human_behavior.json b/xhs-agent-desktop/engine/.xhs_bridge/human_behavior.json
new file mode 100644
index 0000000..bdf4a44
--- /dev/null
+++ b/xhs-agent-desktop/engine/.xhs_bridge/human_behavior.json
@@ -0,0 +1,109 @@
+{
+ "default_max_attempts": 500,
+ "stagnant_limit": 20,
+ "min_scroll_delta": 10,
+ "max_click_per_round": 3,
+ "stagnant_check_threshold": 2,
+ "large_scroll_trigger": 5,
+ "button_click_interval": 3,
+ "final_sprint_push_count": 15,
+ "human_delay": {
+ "min_ms": 300,
+ "max_ms": 700
+ },
+ "reaction_time": {
+ "min_ms": 300,
+ "max_ms": 800
+ },
+ "hover_time": {
+ "min_ms": 100,
+ "max_ms": 300
+ },
+ "read_time": {
+ "min_ms": 500,
+ "max_ms": 1200
+ },
+ "short_read": {
+ "min_ms": 600,
+ "max_ms": 1200
+ },
+ "scroll_wait": {
+ "min_ms": 100,
+ "max_ms": 200
+ },
+ "post_scroll": {
+ "min_ms": 300,
+ "max_ms": 500
+ },
+ "navigation_delay": {
+ "min_ms": 1000,
+ "max_ms": 2500
+ },
+ "scroll_slow": {
+ "interval_base_ms": 1200,
+ "interval_jitter_ms": 300,
+ "scroll_ratio": 0.5
+ },
+ "scroll_normal": {
+ "interval_base_ms": 600,
+ "interval_jitter_ms": 200,
+ "scroll_ratio": 0.7
+ },
+ "scroll_fast": {
+ "interval_base_ms": 300,
+ "interval_jitter_ms": 100,
+ "scroll_ratio": 0.9
+ },
+ "home_feed_collect_time": {
+ "min": 90,
+ "max": 240
+ },
+ "search_feed_collect_time": {
+ "min": 60,
+ "max": 180
+ },
+ "home_browse_plan": {
+ "stable_sec_lo": 2.0,
+ "stable_sec_hi": 3.0,
+ "scroll_lo": 8,
+ "scroll_hi": 15,
+ "click_lo": 1,
+ "click_hi": 3,
+ "sprint_sec_lo": 4.0,
+ "sprint_sec_hi": 6.0,
+ "parse_sec_lo": 1.5,
+ "parse_sec_hi": 2.5,
+ "detail_stay_sec_lo": 10.0,
+ "detail_stay_sec_hi": 20.0,
+ "detail_scroll_lo": 3,
+ "detail_scroll_hi": 6
+ },
+ "search_browse_plan": {
+ "stable_sec_lo": 2.0,
+ "stable_sec_hi": 3.0,
+ "scroll_lo": 8,
+ "scroll_hi": 15,
+ "click_lo": 1,
+ "click_hi": 3,
+ "sprint_sec_lo": 4.0,
+ "sprint_sec_hi": 6.0,
+ "parse_sec_lo": 1.5,
+ "parse_sec_hi": 2.5,
+ "detail_stay_sec_lo": 10.0,
+ "detail_stay_sec_hi": 20.0,
+ "detail_scroll_lo": 3,
+ "detail_scroll_hi": 6
+ },
+ "inaccessible_keywords": [
+ "当前笔记暂时无法浏览",
+ "该内容因违规已被删除",
+ "该笔记已被删除",
+ "内容不存在",
+ "笔记不存在",
+ "已失效",
+ "私密笔记",
+ "仅作者可见",
+ "因用户设置,你无法查看",
+ "因违规无法查看"
+ ]
+}
\ No newline at end of file
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/__init__.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/__init__.cpython-314.pyc
new file mode 100644
index 0000000..b74ea94
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/__init__.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/config.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/config.cpython-314.pyc
new file mode 100644
index 0000000..2c994b5
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/config.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/exceptions.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/exceptions.cpython-314.pyc
new file mode 100644
index 0000000..b349018
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/exceptions.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/human_behavior.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/human_behavior.cpython-314.pyc
new file mode 100644
index 0000000..e7db63f
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/human_behavior.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/human_guard.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/human_guard.cpython-314.pyc
new file mode 100644
index 0000000..227cbf1
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/human_guard.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/license.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/license.cpython-314.pyc
new file mode 100644
index 0000000..43605fb
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/license.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/license_codes.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/license_codes.cpython-314.pyc
new file mode 100644
index 0000000..e8ddfd2
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/license_codes.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/service.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/service.cpython-314.pyc
new file mode 100644
index 0000000..2da8b02
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/service.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_client.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_client.cpython-314.pyc
new file mode 100644
index 0000000..8126013
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_client.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_process_manager.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_process_manager.cpython-314.pyc
new file mode 100644
index 0000000..db4a7d9
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_process_manager.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_tool_adapter.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_tool_adapter.cpython-314.pyc
new file mode 100644
index 0000000..31de738
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/skills_tool_adapter.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/subprocess_win.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/subprocess_win.cpython-314.pyc
new file mode 100644
index 0000000..7532cc0
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/subprocess_win.cpython-314.pyc differ
diff --git a/xhs-agent-desktop/engine/xhs_bridge/__pycache__/tools_catalog.cpython-314.pyc b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/tools_catalog.cpython-314.pyc
new file mode 100644
index 0000000..9f8b2f1
Binary files /dev/null and b/xhs-agent-desktop/engine/xhs_bridge/__pycache__/tools_catalog.cpython-314.pyc differ