Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
shenshaokai
jinfa-platform
Commits
88e5f45e
Commit
88e5f45e
authored
Oct 31, 2022
by
shenshaokai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复物料页面进去报错问题
parent
50c399b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
api.config.js
api.config.js
+1
-2
add.tsx
src/pages/commodity/material/materialPendingAdd/add.tsx
+4
-3
add.tsx
...ages/commodity/material/materialPendingAdd/schema/add.tsx
+2
-2
No files found.
api.config.js
View file @
88e5f45e
// jinfa
0618 token
// jinfa
1102 token 沿用518的
module
.
exports
=
[
{
name
:
'LogisticsV2'
,
token
:
'9d00f667e5f1ec2342134a3f1ecb27bc0e5b3cdaa46e4518d9cb04a2815f5baf'
,
categoryIds
:
[
0
],
},
// 物流能力v2
{
name
:
'ProductV2'
,
token
:
'3969a1870a57283277f8f906de4378dbe6c78591a8f46856c6647a49cab674cd'
,
categoryIds
:
[
0
],
},
// 商品服务V2
...
...
@@ -18,5 +18,4 @@ module.exports = [
{
name
:
'AfterServiceV2'
,
token
:
'9726648495299eae8b8f7ce291c64124cc36173fa5089684ac63fcd1ba1cff62'
,
categoryIds
:
[
0
],
},
// 售后能力V2
{
name
:
'ManageV2'
,
token
:
'986ed1501673515ce3cd47f952ae89f75f1ee51f5ec8c66fd96b2d3cb0222c14'
,
categoryIds
:
[
0
]
},
// 平台后台v2
{
name
:
'RuleEngineV2'
,
token
:
'ea0e2af9e48bfa0af5019baf4148da2dba5a397708b72f8b7cd31eb7380734bb'
,
categoryIds
:
[
0
]
},
// 规则引擎服务
]
src/pages/commodity/material/materialPendingAdd/add.tsx
View file @
88e5f45e
...
...
@@ -71,7 +71,7 @@ const fileTypeEnum = [
]
const
MaterialAdd
:
React
.
FC
<
IProps
>
=
(
props
:
any
)
=>
{
const
intl
=
useIntl
();
const
{
id
,
lastTypeParams
}
=
usePageStatus
();
const
{
location
:
{
state
,
query
},
match
}
=
props
;
...
...
@@ -104,7 +104,7 @@ const MaterialAdd: React.FC<IProps> = (props: any) => {
RequisRef
.
current
.
setVisible
(
true
)
}
const
RequisitionerBtn
=
<
div
className=
'connectBtn'
onClick=
{
handleOrder
}
><
LinkOutlined
style=
{
{
marginRight
:
4
}
}
/>
{
intl
.
formatMessage
({
id
:
'purchaseRequisition.xuanze'
,
defaultMessage
:
'选择'
})
}
</
div
>
useEffect
(()
=>
{
if
(
query
?.
type
===
'sourceData'
)
{
formActions
.
setFieldState
(
'sourceListCard'
,
(
state
)
=>
{
...
...
@@ -660,6 +660,7 @@ const MaterialAdd: React.FC<IProps> = (props: any) => {
handleSearchUnit,
// className={styles.startText}
startText: <span>发货地</span>,
Requisitioner:Boolean(isedtails)?'':RequisitionerBtn,
limitDecimalPoint,
handleVendor,
fileTypeEnum
...
...
@@ -782,7 +783,7 @@ const MaterialAdd: React.FC<IProps> = (props: any) => {
getProductCustomerGetCustomerCategoryById({ id: categoryId })
.then((data) => {
const { customerAttributeList } = data.data;
if (customerAttributeList?.length === 0) {
if (customerAttributeList?.length === 0) {
setHasProperties(false);
return;
}
...
...
src/pages/commodity/material/materialPendingAdd/schema/add.tsx
View file @
88e5f45e
...
...
@@ -161,7 +161,7 @@ export const getSchema = (schema: ISchema | null): ISchema => {
showSearch
:
true
,
filterOption
:
(
input
,
option
)
=>
(
option
!
.
children
as
unknown
as
string
).
includes
(
input
),
},
description
:
`{{
d
esc()}}`
description
:
`{{
brandD
esc()}}`
},
category
:
{
title
:
intl
.
formatMessage
({
id
:
'material.category'
,
defaultMessage
:
'品类'
}),
...
...
@@ -338,7 +338,7 @@ export const getSchema = (schema: ISchema | null): ISchema => {
}
},
},
},
images
:
{
type
:
'object'
,
...
...
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