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 4f2e2db3
authored
Sep 01, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
cd550b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
tabWorkOrder/pages/createOrder/services/submitPayload.helpers.js
tabWorkOrder/pages/createOrder/tests/submitPayload.helpers.test.mjs
tabWorkOrder/pages/createOrder/services/submitPayload.helpers.js
View file @
4f2e2db
...
...
@@ -124,7 +124,7 @@ export function prepareSubmitPayload(orderObj, context = {}) {
orderCreateType
:
context
.
orderCreateType
})
if
(
[
'createWithPay'
,
'supplementOrder'
].
includes
(
apiName
)
&&
[
'createWithPay'
,
'supplementOrder'
,
'correctionOrder'
].
includes
(
apiName
)
&&
submitObj
.
customer
)
{
submitObj
.
customer
=
reconcileBoutiqueCustomerDailyFields
(
...
...
tabWorkOrder/pages/createOrder/tests/submitPayload.helpers.test.mjs
View file @
4f2e2db
...
...
@@ -236,4 +236,28 @@ describe('submitPayload.helpers', () => {
'2026-08-04 00:00:00'
)
})
it('IT-WO-SUB-019: correction order submits the same delivery datetime format as a new order', () => {
const { apiName, submitObj } = prepareSubmitPayload(
{
...baseOrder,
customer: {
...baseOrder.customer,
salesType: 3,
actualDeliveryDate: 1788105600000
}
},
{
save: false,
isErrorOrder: true,
merchantBrands: [{ brandName: '宝马' }]
}
)
assert.equal(apiName, 'correctionOrder')
assert.equal(
submitObj.customer.actualDeliveryDate,
'2026-08-31 00:00:00'
)
})
})
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