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

feat:更新分组下创建商品

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