|
|
|
@ -329,7 +329,7 @@ export const useProductsStore = create(
|
|
|
|
|
weekdays: definition.weekend.join(','),
|
|
|
|
|
WPI_SN: editingProduct.info.id,
|
|
|
|
|
WPP_VEI_SN: activeAgency.travel_agency_id,
|
|
|
|
|
lastedit_changed: '',
|
|
|
|
|
lastedit_changed: {},
|
|
|
|
|
audit_state_id: -1,
|
|
|
|
|
key: generateId(),
|
|
|
|
|
fresh: false
|
|
|
|
@ -369,7 +369,8 @@ export const useProductsStore = create(
|
|
|
|
|
if (prevQuotation.key === formValues.key) {
|
|
|
|
|
const changedObject = {}
|
|
|
|
|
for (const [key, value] of Object.entries(formValues)) {
|
|
|
|
|
if (key === 'use_dates' || key === 'id' || key === 'key' || key === 'weekdayList') continue
|
|
|
|
|
if (key === 'use_dates' || key === 'id' || key === 'key' || key === 'weekdayList'
|
|
|
|
|
|| key === 'WPI_SN' || key === 'WPP_VEI_SN') continue
|
|
|
|
|
|
|
|
|
|
const preValue = prevQuotation[key]
|
|
|
|
|
const hasChanged = preValue !== value
|
|
|
|
|