Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
51590935
Commit
51590935
authored
Mar 31, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 去掉到店判断
parent
c10b9ec3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
+4
-16
data.js
src/pages/businessManage/info/data.js
+0
-3
index.jsx
src/pages/businessManage/info/index.jsx
+3
-13
storeModal.jsx
src/pages/chainStoreManage/components/storeModal.jsx
+1
-0
No files found.
src/pages/businessManage/info/data.js
View file @
51590935
...
...
@@ -112,8 +112,6 @@ export async function getInfo() {
const
dataList
=
await
apiCategoryList
(
res
.
productBusiness
);
categoryList
=
dataList
.
data
;
}
// 判断是否包含到店类型
const
storedis
=
res
.
productBusiness
?.
includes
(
3
);
this
.
setState
({
settlementType
,
businessInfo
:
res
,
...
...
@@ -121,7 +119,6 @@ export async function getInfo() {
companyNamedis
,
categoryList
,
mainCategoryId
:
res
.
mainCategoryId
,
storedis
,
});
}
...
...
src/pages/businessManage/info/index.jsx
View file @
51590935
...
...
@@ -82,7 +82,6 @@ class BusinessInfo extends Component {
checkboxDisabled
:
false
,
mainCategoryId
:
null
,
companyNamedis
:
false
,
// 公司名称
storedis
:
true
,
// 到店校验
};
async
componentDidMount
()
{
...
...
@@ -331,9 +330,7 @@ class BusinessInfo extends Component {
}
onChangeBusinessModel
=
e
=>
{
const
storedis
=
e
.
includes
(
3
);
this
.
getCategoryList
(
e
);
this
.
setState
({
storedis
});
this
.
props
.
form
.
setFieldsValue
({
mainCategoryId
:
''
,
});
...
...
@@ -350,14 +347,7 @@ class BusinessInfo extends Component {
const
{
form
:
{
getFieldDecorator
},
}
=
this
.
props
;
const
{
businessInfo
,
type
,
checkboxDisabled
,
mainCategoryId
,
companyNamedis
,
storedis
,
}
=
this
.
state
;
const
{
businessInfo
,
type
,
checkboxDisabled
,
mainCategoryId
,
companyNamedis
}
=
this
.
state
;
return
(
<
div
className=
{
styles
.
infoBox
}
>
<
Form
className=
"login-form"
onSubmit=
{
this
.
handleSubmit
}
{
...
formItemLayout
}
>
...
...
@@ -691,7 +681,7 @@ class BusinessInfo extends Component {
</
Col
>
</>
)
}
{
(
+
mainCategoryId
===
carID
||
storedis
)
&&
(
{
+
mainCategoryId
===
carID
&&
(
<>
<
Col
span=
{
24
}
>
<
FormItem
label=
"授权品牌"
labelCol=
{
{
span
:
4
}
}
>
...
...
@@ -1091,7 +1081,7 @@ class BusinessInfo extends Component {
</
Row
>
)
}
</
Card
>
{
(
+
mainCategoryId
===
carID
||
storedis
)
&&
(
{
+
mainCategoryId
===
carID
&&
(
<
Card
title=
"其他信息"
>
<
Row
gutter=
{
24
}
>
<
Col
span=
{
24
}
>
...
...
src/pages/chainStoreManage/components/storeModal.jsx
View file @
51590935
...
...
@@ -261,6 +261,7 @@ const StoreModal = props => {
width=
"1000px"
destroyOnClose
maskClosable=
{
false
}
onCancel=
{
()
=>
handleCancel
()
}
footer=
{
<>
<
Button
key=
"back"
onClick=
{
()
=>
handleCancel
()
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment