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

feat: 修改从草稿箱创建sku 自动删除草稿

parent 46c07611
......@@ -271,6 +271,9 @@ const ServiceGoods = options => {
return origin;
}, {});
const sendData = filterSendData(productType, params);
if (options.isDraft) {
sendData.productDraftId = SourceData.id;
}
if (productType === 5) {
if (+sendData?.repertoryType === 2 && sendData?.items?.length < 2) {
message.error('最少生成2个sku');
......@@ -282,9 +285,9 @@ const ServiceGoods = options => {
if (isEdit) {
sendData.id = pageId;
}
if (options.isDraft) {
sendData.productDraftId = SourceData.id;
}
// if (options.isDraft) {
// sendData.productDraftId = SourceData.id;
// }
console.log('sendData :>> ', sendData);
sendMerchantProductHttpRequest(sendData);
}
......
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