Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d6d0a24c
authored
Jul 31, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
test: cover customer archive display fields
1 parent
e71f67aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
tabWorkOrder/pages/createOrder/createOrder.wxml
tabWorkOrder/pages/createOrder/tests/customerProfileOnlyTemplate.test.mjs
tabWorkOrder/pages/createOrder/createOrder.wxml
View file @
d6d0a24
...
@@ -116,6 +116,7 @@ value="{{ orderObj.remark }}"
...
@@ -116,6 +116,7 @@ value="{{ orderObj.remark }}"
label="车主姓名"
label="车主姓名"
titleBtn="客户档案"
titleBtn="客户档案"
bindtitleClick="showCustomPop"
bindtitleClick="showCustomPop"
labelWidth="var(--fontSize290)"
value="{{ orderObj.customer.customerName || '请通过客户档案选择' }}"
value="{{ orderObj.customer.customerName || '请通过客户档案选择' }}"
/>
/>
</view>
</view>
...
...
tabWorkOrder/pages/createOrder/tests/customerProfileOnlyTemplate.test.mjs
View file @
d6d0a24
...
@@ -18,7 +18,23 @@ describe('createOrder customer information template', () => {
...
@@ -18,7 +18,23 @@ describe('createOrder customer information template', () => {
assert.ok(start >= 0)
assert.ok(start >= 0)
assert.ok(end > start)
assert.ok(end > start)
assert.match(customerSection, /bindtitleClick="showCustomPop"/)
assert.match(customerSection, /bindtitleClick="showCustomPop"/)
assert.match(customerSection, /请通过客户档案选择/)
assert.match(customerSection, /label="车主姓名"/)
assert.match(customerSection, /labelWidth="var\(--fontSize290\)"/)
assert.match(customerSection, /orderObj\.customer\.customerName \|\| '请通过客户档案选择'/)
assert.match(customerSection, /label="客户来源"/)
assert.match(customerSection, /filter\.getSalesTypeName\(Sourcecolumns, orderObj\.customer\.salesType\) \|\| '请通过客户档案选择'/)
assert.match(customerSection, /label="性别"/)
assert.match(customerSection, /orderObj\.customer\.customerSex == 1 \? '男' : \(orderObj\.customer\.customerSex == 2 \? '女' : '请通过客户档案选择'\)/)
assert.match(customerSection, /label="手机号"/)
assert.match(customerSection, /orderObj\.customer\.customerPhone \|\| '请通过客户档案选择'/)
assert.match(customerSection, /label="选择车型"/)
assert.match(customerSection, /orderObj\.customer\.carSeriesName \? orderObj\.customer\.carBrand \+ ' - ' \+ orderObj\.customer\.carChildsBrandName \+ ' - ' \+ orderObj\.customer\.carSeriesName : '请通过客户档案选择'/)
assert.match(customerSection, /label="车架号\( VIN \)"/)
assert.match(customerSection, /orderObj\.customer\.standNo \|\| '请通过客户档案选择'/)
assert.match(customerSection, /label="车牌号"/)
assert.match(customerSection, /orderObj\.customer\.plateNumber \|\| '请通过客户档案选择'/)
assert.match(customerSection, /label="是否体验"/)
assert.match(customerSection, /orderObj\.customer\.experienceFlag == 'Y' \? '是' : \(orderObj\.customer\.experienceFlag == 'N' \? '否' : '请通过客户档案选择'\)/)
assert.doesNotMatch(customerSection, /<input/)
assert.doesNotMatch(customerSection, /<input/)
assert.doesNotMatch(customerSection, /bind:click="toSelectCustomerSource"/)
assert.doesNotMatch(customerSection, /bind:click="toSelectCustomerSource"/)
assert.doesNotMatch(customerSection, /bindtap="changeGender"/)
assert.doesNotMatch(customerSection, /bindtap="changeGender"/)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment