Commit 875d4dc7 authored by 陈万宝's avatar 陈万宝

feat:更新分组下创建商品

parent 60719448
...@@ -167,8 +167,11 @@ const FormInformationBasic = forwardRef((props, ref) => { ...@@ -167,8 +167,11 @@ const FormInformationBasic = forwardRef((props, ref) => {
if ((editData?.productType === 5 && editData?.name) || customer.productType === 5) { if ((editData?.productType === 5 && editData?.name) || customer.productType === 5) {
shopGetByProductType(5); shopGetByProductType(5);
if (editData?.productRefShopId) { if (editData?.productRefShopId) {
setShopIdSource(editData?.productRefShopId); const productRefShopId = Array.isArray(editData?.productRefShopId)
queryShopList({ shopId: editData?.productRefShopId }); ? (editData?.productRefShopId).toString()
: editData?.productRefShopId;
setShopIdSource(productRefShopId);
queryShopList({ shopId: productRefShopId });
} }
setIsEditTakeaway(true); setIsEditTakeaway(true);
} }
......
...@@ -357,8 +357,8 @@ const ServiceGoods = options => { ...@@ -357,8 +357,8 @@ const ServiceGoods = options => {
onValuesChange(SourceData, !0); onValuesChange(SourceData, !0);
// 外卖类型--- // 外卖类型---
if (SourceData && SourceData?.type === 5) { if (SourceData && SourceData?.type === 5) {
setTakeawayEditData(SourceData); setTakeawayEditData(SourceData);
setIsUseCache(true); setIsUseCache(true);
} }
} else { } else {
setEditData(SourceData); setEditData(SourceData);
...@@ -450,8 +450,8 @@ const ServiceGoods = options => { ...@@ -450,8 +450,8 @@ const ServiceGoods = options => {
!info || !info ||
!info.infoMation || !info.infoMation ||
!info.infoMation.name || !info.infoMation.name ||
!info.infoMation.categoryId || !info.infoMation.categoryId
(info.infoMation.categoryId.length !== 3 && info.type !== 5) // (info.infoMation.categoryId.length !== 3 && info.type !== 5)
) { ) {
message.warning('请添加商品类目和名称'); message.warning('请添加商品类目和名称');
return; return;
......
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