Commit b4396b47 authored by 陈万宝's avatar 陈万宝

feat: 更新数据

parent 82902dc9
......@@ -62,7 +62,7 @@ class goodsManage extends Component {
auditRow: {}, // 查看审核信息使用
isVisibleDraft: false, // 显示隐藏草稿箱
isEditDraft: false, // 是否编辑草稿
productType: 5, // 商品类型
productType: 1, // 商品类型
takeAway: {}, // 弹窗外卖商品参数
searchValue: {}, // 搜索条件
refresh: '', // 外卖刷新
......@@ -82,6 +82,7 @@ class goodsManage extends Component {
this.categoryListByType(this.state.productType);
this.getVirtualCategory();
this.specList();
console.log('this.state.productType', this.state.productType);
}
handleSearch = page => {
......
......@@ -632,7 +632,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
}
}
if (customer.isUseCache) {
onValuesChange(editData, !0);
props.onValuesChange(editData, !0);
let tempEdit = JSON.parse(JSON.stringify(editData));
tempEdit = Object.assign({}, editData, { ...tempEdit.takeawayItem });
console.log('tempEdit', tempEdit);
......
......@@ -94,6 +94,7 @@ const ServiceGoods = options => {
const typeObj = {
type: productType,
};
console.log('visibleCacheEdit', visibleCacheEdit, e);
if (visibleCacheEdit) {
setVisibleCacheEdit(false);
localStorage.remove(localAutoSaveKey);
......@@ -101,6 +102,7 @@ const ServiceGoods = options => {
}
onAutoSaveValue(Object.assign(typeObj, e));
}
console.log('productType', productType, !isEdit);
if (productType === 5) {
setTakeawayInfoMation(e);
// console.log('takeawayInfoMation', takeawayInfoMation);
......@@ -401,6 +403,7 @@ const ServiceGoods = options => {
);
useEffect(() => {
// 外卖类型
console.log('takeAway', takeAway);
if (Object.keys(takeAway)?.length) {
const { spuId = '', groupId = '' } = takeAway;
if (spuId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment