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

feat:修改新增入口

parent 0febb3b0
......@@ -11,7 +11,7 @@ export const TaskTypeSelect = props => {
customer.canTakeawayService,
);
const selectTabs = task => {
if (!customer.isEdit) {
if (!customer.isEdit && Object.keys(props.takeAway).length === 0) {
props.onChange(task);
}
};
......
......@@ -370,7 +370,7 @@ const ServiceGoods = options => {
useEffect(() => {
console.log('takeAway', takeAway);
// 外卖类型
if (takeAway) {
if (Object.keys(takeAway).length) {
const { spuId = '', groupId = '' } = takeAway
if (spuId) {
querGetShopDetail(takeAway);
......@@ -510,7 +510,7 @@ const ServiceGoods = options => {
)}
<ServiceContext.Provider value={providerValue}>
<Title title="商品类型" />
<TaskTypeSelect productType={productType} onChange={productChange} />
<TaskTypeSelect productType={productType} takeAway={takeAway} onChange={productChange} />
<Title title="商品基本信息编辑" />
<FormInformationBasic
......
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