Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
0
01SaaS-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴珊婧
01SaaS-test
Commits
238d0c8d
Commit
238d0c8d
authored
Jul 02, 2026
by
wushanjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补齐智能接单剩余依赖
parent
07a54ea1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
wanzhanggui_order_page.py
e2e/pages/wanzhanggui_order_page.py
+31
-4
No files found.
e2e/pages/wanzhanggui_order_page.py
View file @
238d0c8d
...
@@ -44,6 +44,8 @@ class ManualOrderData:
...
@@ -44,6 +44,8 @@ class ManualOrderData:
dispatch_price_mode
:
str
=
"percent"
dispatch_price_mode
:
str
=
"percent"
dispatch_price_percent
:
str
=
"90"
dispatch_price_percent
:
str
=
"90"
sub_order_title
:
str
=
""
sub_order_title
:
str
=
""
security_deposit
:
str
=
"0"
efficiency_deposit
:
str
=
"0"
service_hours
:
str
=
"14"
service_hours
:
str
=
"14"
boss_phone
:
str
=
"13800138000"
boss_phone
:
str
=
"13800138000"
contact_phone
:
str
=
"13800138000"
contact_phone
:
str
=
"13800138000"
...
@@ -4162,8 +4164,8 @@ class WanzhangguiOrderPage(TenantAuthPage):
...
@@ -4162,8 +4164,8 @@ class WanzhangguiOrderPage(TenantAuthPage):
else
:
else
:
self
.
fill_row_input
(
row
,
"请输入发单价"
,
price_value
)
self
.
fill_row_input
(
row
,
"请输入发单价"
,
price_value
)
self
.
fill_row_input
(
row
,
"请输入代练时限"
,
order
.
service_hours
)
self
.
fill_row_input
(
row
,
"请输入代练时限"
,
order
.
service_hours
)
self
.
fill_row_input
(
row
,
"请输入安全保证金"
,
"0"
)
self
.
fill_row_input
(
row
,
"请输入安全保证金"
,
order
.
security_deposit
)
self
.
fill_row_input
(
row
,
"请输入效率保证金"
,
"0"
)
self
.
fill_row_input
(
row
,
"请输入效率保证金"
,
order
.
efficiency_deposit
)
self
.
fill_row_input
(
row
,
"请输入联系电话"
,
order
.
contact_phone
)
self
.
fill_row_input
(
row
,
"请输入联系电话"
,
order
.
contact_phone
)
self
.
page
.
wait_for_timeout
(
800
)
self
.
page
.
wait_for_timeout
(
800
)
...
@@ -4363,8 +4365,8 @@ class WanzhangguiOrderPage(TenantAuthPage):
...
@@ -4363,8 +4365,8 @@ class WanzhangguiOrderPage(TenantAuthPage):
[title, order.orderTitle],
[title, order.orderTitle],
[price, order.priceValue],
[price, order.priceValue],
[hours, order.serviceHours],
[hours, order.serviceHours],
[safe,
'0'
],
[safe,
order.securityDeposit
],
[efficiency,
'0'
],
[efficiency,
order.efficiencyDeposit
],
[phone, order.contactPhone],
[phone, order.contactPhone],
];
];
const missing = [];
const missing = [];
...
@@ -4389,6 +4391,8 @@ class WanzhangguiOrderPage(TenantAuthPage):
...
@@ -4389,6 +4391,8 @@ class WanzhangguiOrderPage(TenantAuthPage):
"priceMode"
:
price_mode
,
"priceMode"
:
price_mode
,
"priceLabel"
:
"百分比发单价"
if
price_mode
==
"percent"
else
"固定发单价"
,
"priceLabel"
:
"百分比发单价"
if
price_mode
==
"percent"
else
"固定发单价"
,
"priceValue"
:
price_value
,
"priceValue"
:
price_value
,
"securityDeposit"
:
order
.
security_deposit
,
"efficiencyDeposit"
:
order
.
efficiency_deposit
,
"serviceHours"
:
order
.
service_hours
,
"serviceHours"
:
order
.
service_hours
,
"contactPhone"
:
order
.
contact_phone
,
"contactPhone"
:
order
.
contact_phone
,
},
},
...
@@ -13186,6 +13190,29 @@ class WanyoujiFulfillmentPage(TenantAuthPage):
...
@@ -13186,6 +13190,29 @@ class WanyoujiFulfillmentPage(TenantAuthPage):
return
last_text
return
last_text
return
last_text
return
last_text
def
verify_workshop_order_list_status
(
self
,
source_order_no
:
str
,
order_title
:
str
,
expected_statuses
:
list
[
str
]
|
tuple
[
str
,
...
],
)
->
str
:
frame
=
self
.
open_workshop_order_list
()
text
=
self
.
search_workshop_order_list
(
frame
,
source_order_no
,
order_title
)
row_text
=
self
.
extract_order_row_text
(
text
,
source_order_no
)
if
not
row_text
and
order_title
:
row_text
=
self
.
extract_order_row_text
(
text
,
order_title
)
target_text
=
row_text
or
text
assert
source_order_no
in
target_text
or
order_title
in
target_text
or
source_order_no
in
text
or
order_title
in
text
,
(
f
"丸友集订单列表未找到目标订单;source_order_no={source_order_no}; "
f
"order_title={order_title}; text={text[:1500]}"
)
row_status
=
self
.
extract_workshop_order_row_status
(
target_text
)
assert
any
(
status
in
target_text
or
status
==
row_status
for
status
in
expected_statuses
),
(
f
"丸友集订单列表状态不符合预期;source_order_no={source_order_no}; order_title={order_title}; "
f
"expected_statuses={list(expected_statuses)}; row_status={row_status}; row_text={target_text[:1500]}"
)
return
target_text
@
staticmethod
@
staticmethod
def
filtered_order_list_has_single_result
(
text
:
str
)
->
bool
:
def
filtered_order_list_has_single_result
(
text
:
str
)
->
bool
:
compact
=
re
.
sub
(
r"\s+"
,
""
,
text
or
""
)
compact
=
re
.
sub
(
r"\s+"
,
""
,
text
or
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment