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

feat:修改新增入口

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