Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 81ff37ec
authored
Aug 17, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: read boutique list fields from customer
1 parent
a33e3d2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
tabWorkOrder/pages/createOrder/services/customerDailyFields.helpers.js
tabWorkOrder/pages/createOrder/tests/customerDailyFields.helpers.test.mjs
tabWorkOrder/pages/tabWorkOrderRelevance/index.js
tabWorkOrder/pages/createOrder/services/customerDailyFields.helpers.js
View file @
81ff37e
...
...
@@ -202,6 +202,10 @@ export function buildBoutiqueCustomerDailyDisplay(customer = {}) {
}
}
export
function
buildBoutiqueCustomerDailyListDisplay
(
orderItem
=
{})
{
return
buildBoutiqueCustomerDailyDisplay
(
orderItem
?.
customer
||
{})
}
export
function
resolveBoutiqueDetailCustomerPhone
(
detail
=
{})
{
return
detail
?.
customer
?.
customerPhone
||
''
}
...
...
tabWorkOrder/pages/createOrder/tests/customerDailyFields.helpers.test.mjs
View file @
81ff37e
...
...
@@ -495,4 +495,38 @@ describe('customerDailyFields.helpers', () => {
null
)
})
it('IT-WO-DAILY-019: boutique list reads daily fields only from nested customer', () => {
assert.deepEqual(
customerDailyFields.buildBoutiqueCustomerDailyListDisplay({
customerTags: '5',
actualDeliveryDate: '2026-08-20',
customer: {
customerTags: '1,3',
actualDeliveryDate: 1787068800000
}
}),
{
showCustomerTags: true,
showActualDeliveryDate: true,
customerTagLabels: ['已触客', '已交付引荐'],
customerTagsText: '已触客/已交付引荐',
actualDeliveryDate: '2026-08-19'
}
)
assert.deepEqual(
customerDailyFields.buildBoutiqueCustomerDailyListDisplay({
customerTags: '1',
actualDeliveryDate: 1787068800000
}),
{
showCustomerTags: false,
showActualDeliveryDate: false,
customerTagLabels: [],
customerTagsText: '',
actualDeliveryDate: ''
}
)
})
})
tabWorkOrder/pages/tabWorkOrderRelevance/index.js
View file @
81ff37e
// tabWorkOrder/pages/index/index.js
import
api
from
'./api'
import
order_mixins
from
'./order_mixins.js'
import
{
buildBoutiqueCustomerDailyDisplay
}
from
'../createOrder/services/customerDailyFields.helpers.js'
import
{
buildBoutiqueCustomerDaily
List
Display
}
from
'../createOrder/services/customerDailyFields.helpers.js'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
let
timeoutId
...
...
@@ -527,7 +527,7 @@ Page({
// let userType = true
data
.
list
.
map
(
e
=>
{
e
.
customerDailyDisplay
=
buildBoutiqueCustomerDaily
Display
(
e
.
customer
)
e
.
customerDailyDisplay
=
buildBoutiqueCustomerDaily
ListDisplay
(
e
)
if
(
e
.
orderTime
)
e
.
orderTime
=
new
Date
(
e
.
orderTime
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
e
.
subOrderList
.
map
(
i
=>
{
...
...
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