Commit 5d3baf2e authored by 陈万宝's avatar 陈万宝

feat:delete log

parent 204a333f
......@@ -102,7 +102,6 @@ const ServiceGoods = options => {
}
onAutoSaveValue(Object.assign(typeObj, e));
}
console.log('productType', productType, !isEdit);
if (productType === 5) {
setTakeawayInfoMation(e);
// onAutoSaveValue(Object.assign({ type: 5 }, e));
......@@ -265,14 +264,12 @@ const ServiceGoods = options => {
console.log('resuslt :>> ', resuslt);
if (!resuslt.includes(null)) {
const params = resuslt.reduce((origin, item) => {
console.log('origin', origin, item);
const { temp, ...other } = item;
origin[temp] = other;
return origin;
}, {});
const sendData = filterSendData(productType, params);
if (productType === 5) {
console.log(sendData, 'sendData');
if (+sendData?.repertoryType === 2 && sendData?.items?.length < 2) {
message.error('最少生成2个sku');
return;
......@@ -348,7 +345,6 @@ const ServiceGoods = options => {
await getAfterSalesAddrsPage();
await getMerchantSpecList();
if (Object.keys(SourceData).length) {
console.log('SourceData :>> ', SourceData, options.isDraft);
// 从编辑草稿进入 执行以下代码
if (options.isDraft) {
setIsUseCache(true);
......@@ -442,10 +438,7 @@ const ServiceGoods = options => {
// 保存草稿
const onSaveDraft = async () => {
console.log('newCategoryList :>> ', newCategoryList);
const info = localStorage.get(localAutoSaveKey);
console.log('info', info);
if (
!info ||
!info.infoMation ||
......
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