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 53ce3d2a
authored
Aug 14, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: prompt only after store daily report changes
1 parent
14952b81
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
296 additions
and
9 deletions
packageDynamicForm/pages/storeDailyReport/storeDailyReport.js
packageDynamicForm/tests/storeDailyReportPage.contract.test.mjs
packageDynamicForm/pages/storeDailyReport/storeDailyReport.js
View file @
53ce3d2
...
@@ -152,6 +152,7 @@ Page({
...
@@ -152,6 +152,7 @@ Page({
_submitting
:
false
,
_submitting
:
false
,
_pushing
:
false
,
_pushing
:
false
,
_savingDraft
:
false
,
_savingDraft
:
false
,
_hasUnsavedChanges
:
false
,
editBaseRecordId
:
null
,
editBaseRecordId
:
null
,
/** 页面加载:初始化周历、拉 weekly 标记、加载当日表单 */
/** 页面加载:初始化周历、拉 weekly 标记、加载当日表单 */
...
@@ -310,6 +311,7 @@ Page({
...
@@ -310,6 +311,7 @@ Page({
editReport
()
{
editReport
()
{
if
(
!
this
.
data
.
isDateWithinEditableWindow
||
!
this
.
data
.
hasSavedRecord
)
return
if
(
!
this
.
data
.
isDateWithinEditableWindow
||
!
this
.
data
.
hasSavedRecord
)
return
this
.
editBaseRecordId
=
normalizeStoreDailyRecordId
(
this
.
dailyReportRecordId
)
this
.
editBaseRecordId
=
normalizeStoreDailyRecordId
(
this
.
dailyReportRecordId
)
this
.
resetStoreDailyChanged
()
this
.
data
.
isEditReport
=
true
this
.
data
.
isEditReport
=
true
this
.
applyStoreDailyViewState
({
isEditing
:
true
})
this
.
applyStoreDailyViewState
({
isEditing
:
true
})
if
(
this
.
engine
)
{
if
(
this
.
engine
)
{
...
@@ -325,6 +327,14 @@ Page({
...
@@ -325,6 +327,14 @@ Page({
}
}
},
},
markStoreDailyChanged
()
{
this
.
_hasUnsavedChanges
=
true
},
resetStoreDailyChanged
()
{
this
.
_hasUnsavedChanges
=
false
},
/** F2-1 有选人时给 F2-2 打 disabled,供 dynamic-form 字段级只读 */
/** F2-1 有选人时给 F2-2 打 disabled,供 dynamic-form 字段级只读 */
patchStoreStaffCountFieldDisabled
(
viewState
=
{})
{
patchStoreStaffCountFieldDisabled
(
viewState
=
{})
{
return
patchStoreStaffCountFieldInViewState
(
viewState
,
{
return
patchStoreStaffCountFieldInViewState
(
viewState
,
{
...
@@ -400,6 +410,7 @@ Page({
...
@@ -400,6 +410,7 @@ Page({
wx
.
showToast
({
title
:
'最多添加20条'
,
icon
:
'none'
})
wx
.
showToast
({
title
:
'最多添加20条'
,
icon
:
'none'
})
return
return
}
}
this
.
markStoreDailyChanged
()
const
rows
=
viewState
.
values
[
groupKey
]
||
[]
const
rows
=
viewState
.
values
[
groupKey
]
||
[]
const
errors
=
{
...
this
.
data
.
errors
}
const
errors
=
{
...
this
.
data
.
errors
}
delete
errors
[
groupKey
]
delete
errors
[
groupKey
]
...
@@ -417,6 +428,7 @@ Page({
...
@@ -417,6 +428,7 @@ Page({
const
{
groupKey
,
rowIndex
}
=
e
.
detail
||
{}
const
{
groupKey
,
rowIndex
}
=
e
.
detail
||
{}
if
(
!
this
.
engine
||
groupKey
==
null
||
rowIndex
==
null
)
return
if
(
!
this
.
engine
||
groupKey
==
null
||
rowIndex
==
null
)
return
const
viewState
=
this
.
engine
.
removeGroupRow
(
groupKey
,
rowIndex
)
const
viewState
=
this
.
engine
.
removeGroupRow
(
groupKey
,
rowIndex
)
this
.
markStoreDailyChanged
()
const
rows
=
viewState
.
values
[
groupKey
]
||
[]
const
rows
=
viewState
.
values
[
groupKey
]
||
[]
const
errors
=
{
...
this
.
data
.
errors
}
const
errors
=
{
...
this
.
data
.
errors
}
delete
errors
[
groupKey
]
delete
errors
[
groupKey
]
...
@@ -478,6 +490,7 @@ Page({
...
@@ -478,6 +490,7 @@ Page({
}
else
{
}
else
{
viewState
=
this
.
engine
.
mutateSubform
(
groupKey
,
rowIndex
,
childKey
,
value
)
viewState
=
this
.
engine
.
mutateSubform
(
groupKey
,
rowIndex
,
childKey
,
value
)
}
}
this
.
markStoreDailyChanged
()
const
errors
=
{
...
this
.
data
.
errors
}
const
errors
=
{
...
this
.
data
.
errors
}
delete
errors
[
`
${
groupKey
}
__
${
rowIndex
}
__
${
childKey
}
`
]
delete
errors
[
`
${
groupKey
}
__
${
rowIndex
}
__
${
childKey
}
`
]
this
.
applyEngineView
(
viewState
,
{
this
.
applyEngineView
(
viewState
,
{
...
@@ -629,6 +642,7 @@ Page({
...
@@ -629,6 +642,7 @@ Page({
/** 主加载:Loader → engine.init → applyEngineView */
/** 主加载:Loader → engine.init → applyEngineView */
async
loadFormData
()
{
async
loadFormData
()
{
this
.
closeNegotiationSummaryIfOpen
()
this
.
closeNegotiationSummaryIfOpen
()
this
.
resetStoreDailyChanged
()
const
{
reportDate
,
timeBean
}
=
this
.
data
const
{
reportDate
,
timeBean
}
=
this
.
data
if
(
!
reportDate
)
{
if
(
!
reportDate
)
{
this
.
setData
({
loading
:
false
})
this
.
setData
({
loading
:
false
})
...
@@ -803,6 +817,7 @@ Page({
...
@@ -803,6 +817,7 @@ Page({
const
{
key
,
value
}
=
e
.
detail
||
{}
const
{
key
,
value
}
=
e
.
detail
||
{}
if
(
!
this
.
engine
||
!
key
)
return
if
(
!
this
.
engine
||
!
key
)
return
const
viewState
=
this
.
engine
.
setFieldValue
(
key
,
value
)
const
viewState
=
this
.
engine
.
setFieldValue
(
key
,
value
)
this
.
markStoreDailyChanged
()
const
errors
=
{
...
this
.
data
.
errors
}
const
errors
=
{
...
this
.
data
.
errors
}
delete
errors
[
key
]
delete
errors
[
key
]
this
.
applyEngineView
(
viewState
,
{
errors
,
structureChanged
:
false
})
this
.
applyEngineView
(
viewState
,
{
errors
,
structureChanged
:
false
})
...
@@ -887,6 +902,7 @@ Page({
...
@@ -887,6 +902,7 @@ Page({
viewState
=
this
.
engine
.
setFieldValue
(
childKey
,
carInfo
)
viewState
=
this
.
engine
.
setFieldValue
(
childKey
,
carInfo
)
delete
errors
[
childKey
]
delete
errors
[
childKey
]
}
}
this
.
markStoreDailyChanged
()
this
.
applyEngineView
(
viewState
,
extra
)
this
.
applyEngineView
(
viewState
,
extra
)
},
},
...
@@ -1073,6 +1089,7 @@ Page({
...
@@ -1073,6 +1089,7 @@ Page({
viewState
=
this
.
engine
.
setFieldValue
(
resolved
.
childKey
,
vin
)
viewState
=
this
.
engine
.
setFieldValue
(
resolved
.
childKey
,
vin
)
delete
errors
[
resolved
.
childKey
]
delete
errors
[
resolved
.
childKey
]
}
}
this
.
markStoreDailyChanged
()
this
.
applyEngineView
(
viewState
,
extra
)
this
.
applyEngineView
(
viewState
,
extra
)
},
},
...
@@ -1167,6 +1184,7 @@ Page({
...
@@ -1167,6 +1184,7 @@ Page({
settleStoreDailySaveState
(
savedRecordId
,
persistPayload
=
{})
{
settleStoreDailySaveState
(
savedRecordId
,
persistPayload
=
{})
{
const
submissionPatch
=
resolveSubmissionPatch
(
persistPayload
)
const
submissionPatch
=
resolveSubmissionPatch
(
persistPayload
)
this
.
resetStoreDailyChanged
()
this
.
dailyReportRecordId
=
savedRecordId
this
.
dailyReportRecordId
=
savedRecordId
this
.
editBaseRecordId
=
normalizeStoreDailyRecordId
(
savedRecordId
)
this
.
editBaseRecordId
=
normalizeStoreDailyRecordId
(
savedRecordId
)
Object
.
assign
(
this
.
data
,
{
Object
.
assign
(
this
.
data
,
{
...
@@ -1485,9 +1503,13 @@ Page({
...
@@ -1485,9 +1503,13 @@ Page({
}
}
},
},
confirmLeaveEditing
(
action
)
{
confirmLeaveEditing
(
action
,
options
=
{}
)
{
if
(
this
.
_savingDraft
||
this
.
_pushing
)
return
if
(
this
.
_savingDraft
||
this
.
_pushing
)
return
if
(
!
this
.
data
.
isEditReport
)
return
action
()
if
(
!
this
.
data
.
isEditReport
)
return
action
()
if
(
options
.
onlyWhenChanged
&&
!
this
.
_hasUnsavedChanges
)
{
this
.
exitEditMode
()
return
action
()
}
wx
.
showModal
({
wx
.
showModal
({
...
buildStoreDailyLeaveModal
(),
...
buildStoreDailyLeaveModal
(),
success
:
result
=>
{
success
:
result
=>
{
...
@@ -1510,7 +1532,7 @@ Page({
...
@@ -1510,7 +1532,7 @@ Page({
this
.
applyCalendarState
(
selectWeek
,
timeBean
)
this
.
applyCalendarState
(
selectWeek
,
timeBean
)
this
.
refreshWeeklyList
()
this
.
refreshWeeklyList
()
this
.
loadFormData
()
this
.
loadFormData
()
})
}
,
{
onlyWhenChanged
:
true
}
)
},
},
/** 下一周:刷新 weekly + loadFormData */
/** 下一周:刷新 weekly + loadFormData */
...
@@ -1523,7 +1545,7 @@ Page({
...
@@ -1523,7 +1545,7 @@ Page({
this
.
applyCalendarState
(
selectWeek
,
timeBean
)
this
.
applyCalendarState
(
selectWeek
,
timeBean
)
this
.
refreshWeeklyList
()
this
.
refreshWeeklyList
()
this
.
loadFormData
()
this
.
loadFormData
()
})
}
,
{
onlyWhenChanged
:
true
}
)
},
},
/** 周历点击选日:仅 loadFormData,不重复 refreshWeeklyList */
/** 周历点击选日:仅 loadFormData,不重复 refreshWeeklyList */
...
@@ -1532,7 +1554,7 @@ Page({
...
@@ -1532,7 +1554,7 @@ Page({
this
.
closeNegotiationSummaryIfOpen
()
this
.
closeNegotiationSummaryIfOpen
()
this
.
applyDaySelect
(
e
.
detail
)
this
.
applyDaySelect
(
e
.
detail
)
this
.
loadFormData
()
this
.
loadFormData
()
})
}
,
{
onlyWhenChanged
:
true
}
)
},
},
/** 页面卸载:清理车型选择 bridge pending,避免回调写入已销毁页面。 */
/** 页面卸载:清理车型选择 bridge pending,避免回调写入已销毁页面。 */
...
...
packageDynamicForm/tests/storeDailyReportPage.contract.test.mjs
View file @
53ce3d2
...
@@ -173,6 +173,225 @@ describe('storeDailyReport page contract', () => {
...
@@ -173,6 +173,225 @@ describe('storeDailyReport page contract', () => {
assert.match(js, /buildStoreDailyLeaveModal/)
assert.match(js, /buildStoreDailyLeaveModal/)
})
})
it('IT-STORE-DAILY-PAGE-002a: date navigation skips confirmation before a user modification', () => {
let modalCalls = 0
let actionCalls = 0
let exitCalls = 0
const { page } = createStorePageHarness({
wx: {
showModal() {
modalCalls += 1
}
}
})
page.data.isEditReport = true
page._hasUnsavedChanges = false
page.exitEditMode = () => {
exitCalls += 1
}
page.confirmLeaveEditing(
() => {
actionCalls += 1
},
{ onlyWhenChanged: true }
)
assert.equal(modalCalls, 0)
assert.equal(exitCalls, 1)
assert.equal(actionCalls, 1)
})
it('IT-STORE-DAILY-PAGE-002b: date navigation confirms after a user modification', () => {
let modalCalls = 0
let actionCalls = 0
const { page } = createStorePageHarness({
wx: {
showModal(options) {
modalCalls += 1
options.success({ confirm: false })
}
}
})
page.data.isEditReport = true
page._hasUnsavedChanges = true
page.confirmLeaveEditing(
() => {
actionCalls += 1
},
{ onlyWhenChanged: true }
)
assert.equal(modalCalls, 1)
assert.equal(actionCalls, 0)
})
it('IT-STORE-DAILY-PAGE-002c: only date navigation opts into changed-only confirmation', () => {
const { page } = createStorePageHarness()
const options = []
page.confirmLeaveEditing = (_action, input) => {
options.push(input)
}
page.lastWeek()
page.nextWeek()
page.dayClick({ detail: 2 })
page.jump()
assert.deepEqual(options, [
{ onlyWhenChanged: true },
{ onlyWhenChanged: true },
{ onlyWhenChanged: true },
undefined
])
})
it('IT-STORE-DAILY-PAGE-002d: navbar back still confirms an unchanged edit session', () => {
let modalCalls = 0
const { page } = createStorePageHarness({
wx: {
showModal() {
modalCalls += 1
}
}
})
page.data.isEditReport = true
page._hasUnsavedChanges = false
page.confirmLeaveEditing(() => {})
assert.equal(modalCalls, 1)
})
it('IT-STORE-DAILY-PAGE-002e: successful user content mutations mark the edit session changed', () => {
const scenarios = [
{
name: 'top-level field',
run(page) {
page.engine = {
setFieldValue: () => ({ values: { name: 'new' } })
}
page.onFieldChange({ detail: { key: 'name', value: 'new' } })
}
},
{
name: 'subform row add',
run(page) {
page.engine = {
addGroupRow: () => ({ added: true, rowIndex: 0, values: { customers: [{}] } })
}
page.onGroupAdd({ detail: { groupKey: 'customers' } })
}
},
{
name: 'subform row remove',
run(page) {
page.engine = {
removeGroupRow: () => ({ values: { customers: [] } })
}
page.onGroupRemove({ detail: { groupKey: 'customers', rowIndex: 0 } })
}
},
{
name: 'subform field',
run(page) {
page.engine = {
mutateSubform: () => ({ values: { customers: [{ name: 'new' }] } })
}
page.onGroupChange({
detail: { groupKey: 'customers', rowIndex: 0, childKey: 'name', value: 'new' }
})
}
},
{
name: 'vehicle picker result',
run(page) {
page.engine = {
setFieldValue: () => ({ values: { vehicle: { vehicleSeriesId: 3 } } })
}
page.applyCarBrandResult({
childKey: 'vehicle',
carInfo: { vehicleSeriesId: 3 }
})
}
},
{
name: 'VIN OCR result',
run(page) {
page.engine = {
setFieldValue: () => ({ values: { vin: 'TESTVIN' } })
}
page.applyVinOcrResult({ childKey: 'vin', vin: 'TESTVIN' })
}
}
]
for (const scenario of scenarios) {
const { page } = createStorePageHarness()
Object.assign(page.data, {
formDisabled: false,
writeInProgress: false,
errors: {},
groupActiveIndex: {},
groupFields: [{ key: 'customers', origin_children: [{ key: 'name' }] }]
})
page.applyEngineView = () => {}
scenario.run(page)
assert.equal(page._hasUnsavedChanges, true, scenario.name)
}
})
it('IT-STORE-DAILY-PAGE-002f: restoring an original field value keeps the session changed', () => {
const { page } = createStorePageHarness()
Object.assign(page.data, { formDisabled: false, writeInProgress: false, errors: {} })
page.engine = {
setFieldValue(key, value) {
return { values: { [key]: value } }
}
}
page.applyEngineView = () => {}
page.onFieldChange({ detail: { key: 'name', value: 'new' } })
page.onFieldChange({ detail: { key: 'name', value: 'original' } })
assert.equal(page._hasUnsavedChanges, true)
})
it('IT-STORE-DAILY-PAGE-002g: load, fresh edit and successful save start a clean edit session', async () => {
const { page } = createStorePageHarness()
page._hasUnsavedChanges = true
page.data.reportDate = ''
await page.loadFormData()
assert.equal(page._hasUnsavedChanges, false)
page._hasUnsavedChanges = true
Object.assign(page.data, { isDateWithinEditableWindow: true, hasSavedRecord: true })
page.applyStoreDailyViewState = () => ({})
page.editReport()
assert.equal(page._hasUnsavedChanges, false)
page._hasUnsavedChanges = true
page.settleStoreDailySaveState(101, {})
assert.equal(page._hasUnsavedChanges, false)
})
it('IT-STORE-DAILY-PAGE-002h: subform navigation does not mark content changed', () => {
const { page } = createStorePageHarness()
page.data.groupActiveIndex = { customers: 0 }
page.engine = {
getGroupRows: () => [{}, {}],
getViewState: () => ({ values: { customers: [{}, {}] } })
}
page.applyEngineView = () => {}
page.onGroupNav({ detail: { groupKey: 'customers', direction: 1 } })
assert.equal(page._hasUnsavedChanges, false)
})
it('IT-STORE-DAILY-PAGE-003: pushes only an existing record after refreshing detail', () => {
it('IT-STORE-DAILY-PAGE-003: pushes only an existing record after refreshing detail', () => {
const pushReportSource = js.slice(js.indexOf('async pushReport()'), js.indexOf('\n\t/** @deprecated', js.indexOf('async pushReport()')))
const pushReportSource = js.slice(js.indexOf('async pushReport()'), js.indexOf('\n\t/** @deprecated', js.indexOf('async pushReport()')))
assert.match(pushReportSource, /fetchReportDetail/)
assert.match(pushReportSource, /fetchReportDetail/)
...
@@ -229,19 +448,46 @@ describe('storeDailyReport page contract', () => {
...
@@ -229,19 +448,46 @@ describe('storeDailyReport page contract', () => {
}
}
page.applyEngineView = () => {}
page.applyEngineView = () => {}
await page.applyMonthlyPendingCountIfNeeded(1)
await page.applyMonthlyPendingCountIfNeeded(1)
return { fetchCalls, setFieldCalls }
return { fetchCalls, setFieldCalls
, hasUnsavedChanges: page._hasUnsavedChanges
}
}
}
it('IT-STORE-DAILY-PAGE-PENDING-001: first day sets F2-102 to zero without requesting API', async () => {
it('IT-STORE-DAILY-PAGE-PENDING-001: first day sets F2-102 to zero without requesting API', async () => {
const { fetchCalls, setFieldCalls } = await runMonthlyPendingScenario('2026-08-01')
const { fetchCalls, setFieldCalls, hasUnsavedChanges } =
await runMonthlyPendingScenario('2026-08-01')
assert.deepEqual(setFieldCalls, [['F2-102', 0]])
assert.deepEqual(setFieldCalls, [['F2-102', 0]])
assert.equal(fetchCalls, 0)
assert.equal(fetchCalls, 0)
assert.equal(hasUnsavedChanges, false)
})
})
it('IT-STORE-DAILY-PAGE-PENDING-002: non-first day writes latest API value to F2-102', async () => {
it('IT-STORE-DAILY-PAGE-PENDING-002: non-first day writes latest API value to F2-102', async () => {
const { fetchCalls, setFieldCalls } = await runMonthlyPendingScenario('2026-08-14')
const { fetchCalls, setFieldCalls, hasUnsavedChanges } =
await runMonthlyPendingScenario('2026-08-14')
assert.deepEqual(setFieldCalls, [['F2-102', 9]])
assert.deepEqual(setFieldCalls, [['F2-102', 9]])
assert.equal(fetchCalls, 1)
assert.equal(fetchCalls, 1)
assert.equal(hasUnsavedChanges, false)
})
it('IT-STORE-DAILY-PAGE-PENDING-003: automatic store staff count sync stays clean', () => {
const { page } = createStorePageHarness({
modules: {
'../../utils/store-staff-count.js': require('../utils/store-staff-count.js')
}
})
Object.assign(page.data, { isTodayReport: true, formDisabled: false })
page.getFormDisabled = () => false
page.engine = {
getViewState: () => ({
fixedFields: [{ key: 'F2-1', type: 'multipleSelect' }],
sectionGroups: [],
values: { 'F2-1': [{ id: 'staff-1', name: 'staff' }] }
}),
setFieldValue: (key, value) => ({ values: { [key]: value } })
}
page.applyEngineView = () => {}
page.applyStoreStaffCountIfNeeded()
assert.equal(page._hasUnsavedChanges, false)
})
})
it('IT-STORE-DAILY-PAGE-DUP-001: duplicate template preflight runs before VIN and replaces the fixed phone helper', () => {
it('IT-STORE-DAILY-PAGE-DUP-001: duplicate template preflight runs before VIN and replaces the fixed phone helper', () => {
...
@@ -569,7 +815,12 @@ describe('storeDailyReport page contract', () => {
...
@@ -569,7 +815,12 @@ describe('storeDailyReport page contract', () => {
assert.equal(page.data.errors[errorKey], '车架号校验不匹配,请核对后重新输入')
assert.equal(page.data.errors[errorKey], '车架号校验不匹配,请核对后重新输入')
})
})
async function runSaveConflictScenario({ baseId, latestDetail, confirm = true }) {
async function runSaveConflictScenario({
baseId,
latestDetail,
confirm = true,
submitCode = 0
}) {
const submissions = []
const submissions = []
let showModalCalls = 0
let showModalCalls = 0
const storeDailyApi = {
const storeDailyApi = {
...
@@ -579,7 +830,8 @@ describe('storeDailyReport page contract', () => {
...
@@ -579,7 +830,8 @@ describe('storeDailyReport page contract', () => {
async submitForm(payload) {
async submitForm(payload) {
submissions.push(payload)
submissions.push(payload)
return {
return {
code: 0,
code: submitCode,
message: submitCode === 0 ? '' : 'save failed',
data: { dailyReportRecordId: payload.dailyReportRecordId }
data: { dailyReportRecordId: payload.dailyReportRecordId }
}
}
}
}
...
@@ -622,12 +874,14 @@ describe('storeDailyReport page contract', () => {
...
@@ -622,12 +874,14 @@ describe('storeDailyReport page contract', () => {
page.reportTemplateId = 10002
page.reportTemplateId = 10002
page.dailyReportRecordId = baseId
page.dailyReportRecordId = baseId
page.editBaseRecordId = baseId === null ? null : String(baseId)
page.editBaseRecordId = baseId === null ? null : String(baseId)
page._hasUnsavedChanges = true
page.userContext = { merchantId: 10086, staffUuid: 'staff-1', sceneType: 1 }
page.userContext = { merchantId: 10086, staffUuid: 'staff-1', sceneType: 1 }
page.engine = {
page.engine = {
getPageContext: () => ({}),
getPageContext: () => ({}),
getViewState: () => ({ values: {} }),
getViewState: () => ({ values: {} }),
validate: () => ({ ok: true })
validate: () => ({ ok: true })
}
}
page.showSubmitFailureToast = () => {}
page.applyEngineView = () => {}
page.applyEngineView = () => {}
page.refreshAfterSubmit = async () => false
page.refreshAfterSubmit = async () => false
...
@@ -688,6 +942,17 @@ describe('storeDailyReport page contract', () => {
...
@@ -688,6 +942,17 @@ describe('storeDailyReport page contract', () => {
assert.equal(submissions[0].dailyReportRecordId, null)
assert.equal(submissions[0].dailyReportRecordId, null)
})
})
it('IT-STORE-DAILY-PAGE-020: a failed save keeps the edit session changed', async () => {
const { page, submissions } = await runSaveConflictScenario({
baseId: 7,
latestDetail: { dailyReportRecordId: 7 },
submitCode: 500
})
assert.equal(submissions.length, 1)
assert.equal(page._hasUnsavedChanges, true)
})
it('IT-STORE-DAILY-PAGE-017: requested Sunday anchors the previous week and next advances to current week', () => {
it('IT-STORE-DAILY-PAGE-017: requested Sunday anchors the previous week and next advances to current week', () => {
const timeUtil = createDeterministicWeekTimeUtil()
const timeUtil = createDeterministicWeekTimeUtil()
const { page } = createStorePageHarness({
const { page } = createStorePageHarness({
...
...
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