|
|
|
@ -360,7 +360,7 @@ export const useProductsStore = create(
|
|
|
|
|
|
|
|
|
|
if (formValues.fresh) {
|
|
|
|
|
formValues.key = generateId()
|
|
|
|
|
formValues.lastedit_changed = ''
|
|
|
|
|
formValues.lastedit_changed = {}
|
|
|
|
|
formValues.audit_state_id = -1 // 新增,
|
|
|
|
|
formValues.fresh = false // 添加到列表后就不是新纪录,保存要修改原来记录
|
|
|
|
|
mergedList = [...quotationList,...[formValues]]
|
|
|
|
@ -369,7 +369,7 @@ 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') continue
|
|
|
|
|
if (key === 'use_dates' || key === 'id' || key === 'key' || key === 'weekdayList') continue
|
|
|
|
|
|
|
|
|
|
const preValue = prevQuotation[key]
|
|
|
|
|
const hasChanged = preValue !== value
|
|
|
|
|