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
da376f14
Commit
da376f14
authored
Apr 13, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-home-auth' into 'v2-220418'
fix: 采购选品修改参考品牌 See merge request linkseeks-design/pro-platform!253
parents
b88802ea
c7aaf418
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
add.tsx
src/pages/commodity/material/materialPendingAdd/add.tsx
+15
-1
index.tsx
src/pages/commodity/material/materialPendingAdd/index.tsx
+3
-2
add.tsx
...ages/commodity/material/materialPendingAdd/schema/add.tsx
+1
-0
No files found.
src/pages/commodity/material/materialPendingAdd/add.tsx
View file @
da376f14
...
...
@@ -68,6 +68,8 @@ const MaterialAdd = (props) => {
formActions
.
setFieldState
(
'sourceListCard'
,
(
state
)
=>
{
FormPath
.
setIn
(
state
,
'visible'
,
true
);
})
console
.
log
(
state
.
dataSource
)
if
(
!
state
.
dataSource
)
{
message
.
error
(
intl
.
formatMessage
({
id
:
'material.should.select.purchaseSelection'
,
defaultMessage
:
'请选择采购选品'
}));
}
...
...
@@ -135,6 +137,17 @@ const MaterialAdd = (props) => {
</
UploadFiles
>
)
const
createDescriptionElement
=
()
=>
{
return
{
desc
()
{
if
(
query
?.
type
!==
'sourceData'
)
{
return
null
;
}
return
React
.
createElement
(
'div'
,
{
className
:
styles
[
'label-required'
]
},
`参考品牌:
${
state
.
dataSource
?.
referenceBrand
}
`);
}
}
};
const handleSubmit = async (value) => {
console.log("values", value);
const {
...
...
@@ -299,7 +312,8 @@ const MaterialAdd = (props) => {
// renderListTableRemove: renderListTableRemove,
renderAddition: renderAddition(),
uploadContainer: uploadContainer,
customizeFileItemRender
:
customizeFileItemRender
customizeFileItemRender: customizeFileItemRender,
...createDescriptionElement(),
}}
effects={($, actions) => {
useAsyncCascader('category', fetchCategoryData)
...
...
src/pages/commodity/material/materialPendingAdd/index.tsx
View file @
da376f14
...
...
@@ -264,7 +264,7 @@ const MaterialQuery = () => {
name
:
target
.
name
,
goodsId
:
target
.
id
,
type
:
target
.
type
,
b
rand
:
target
.
brand
?.
name
,
referenceB
rand
:
target
.
brand
?.
name
,
goodsPic
:
target
.
goodsPic
?.
map
((
_item
)
=>
{
return
{
name
:
_item
,
...
...
@@ -288,6 +288,7 @@ const MaterialQuery = () => {
// rowSelection: selectRow
rowSelection
:
selectRow
}
}
keepAlive=
{
false
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
fetchListData
}
...
...
@@ -300,7 +301,7 @@ const MaterialQuery = () => {
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'code'
,
FORM_FILTER_PATH
);
useAsyncCascader
(
'materialGroupId'
,
fetchTreeData
)
useAsyncCascader
(
'categoryId'
,
fetchCategoryData
)
useAsyncCascader
(
'c
ustomerC
ategoryId'
,
fetchCategoryData
)
useAsyncSelect
(
'brandId'
,
fetchBrand
,
[
"name"
,
"id"
])
}
}
/>
...
...
src/pages/commodity/material/materialPendingAdd/schema/add.tsx
View file @
da376f14
...
...
@@ -128,6 +128,7 @@ export const getSchema = (schema: ISchema): ISchema => {
'x-component-props'
:
{
showSearch
:
true
,
},
description
:
`{{desc()}}`
},
category
:
{
title
:
intl
.
formatMessage
({
id
:
'material.category'
,
defaultMessage
:
'品类'
}),
...
...
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