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
9fc68259
Commit
9fc68259
authored
Apr 08, 2022
by
wzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 价格库跳转搜索物料
parent
4f716d01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
index.tsx
src/pages/priceManage/priceLibrary/index.tsx
+13
-5
index.tsx
src/pages/transaction/stockSellStorage/bills/index.tsx
+1
-5
No files found.
src/pages/priceManage/priceLibrary/index.tsx
View file @
9fc68259
import
React
,
{
useRef
}
from
'react'
;
import
React
,
{
use
Effect
,
use
Ref
}
from
'react'
;
import
{
Button
,
Card
,
Input
,
message
}
from
'antd'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
StandardTable
from
'@/components/StandardTable'
;
...
...
@@ -18,6 +18,7 @@ const formActions = createFormActions();
const
PriceLibrary
:
React
.
FC
<
{}
>
=
()
=>
{
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
const
{
code
}
=
history
.
location
.
query
;
const
columns
:
ColumnType
<
any
>
[]
=
[
{
...
...
@@ -158,10 +159,12 @@ const PriceLibrary: React.FC<{}> = () => {
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
getProductPriceManagementGetGoodsPriceList
(
params
).
then
(
res
=>
{
const
{
data
}
=
res
;
resolve
(
data
);
});
getProductPriceManagementGetGoodsPriceList
({
code
,
...
params
}).
then
(
res
=>
{
const
{
data
}
=
res
;
resolve
(
data
);
},
);
});
};
...
...
@@ -192,6 +195,11 @@ const PriceLibrary: React.FC<{}> = () => {
}
});
};
useEffect
(()
=>
{
if
(
code
)
{
formActions
.
setFieldValue
(
'code'
,
code
);
}
},
[
code
]);
return
(
<
PageHeaderWrapper
>
<
Card
>
...
...
src/pages/transaction/stockSellStorage/bills/index.tsx
View file @
9fc68259
...
...
@@ -103,11 +103,7 @@ const Bills: React.FC<{}> = () => {
})
.
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
===
9999
)
{
message
.
info
(
res
.
message
)
}
else
{
message
.
info
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
,
defaultMessage
:
res
.
message
}))
}
message
.
info
(
res
.
message
)
return
;
}
if
(
callback
)
{
...
...
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