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

feat:delete log

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