diff --git a/src/stores/Products/Index.js b/src/stores/Products/Index.js index 7da1344..64ef53c 100644 --- a/src/stores/Products/Index.js +++ b/src/stores/Products/Index.js @@ -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 diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index a6daa43..1df2fd8 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -223,6 +223,14 @@ function getFields(props) { , fieldProps?.city?.col || midCol ), + item( + 'city_list', + 99, +