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
陈智峰
jinfa-platform
Commits
c78310de
Commit
c78310de
authored
Aug 05, 2020
by
tjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
d467376d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
25 deletions
+23
-25
CustomRelevance.tsx
src/components/NiceForm/components/CustomRelevance.tsx
+9
-2
addBills.tsx
src/pages/transaction/stockSellStorage/bills/addBills.tsx
+12
-12
index.tsx
...pages/transaction/stockSellStorage/bills/schema/index.tsx
+1
-2
index.tsx
src/pages/transaction/stockSellStorage/inventory/index.tsx
+1
-9
No files found.
src/components/NiceForm/components/CustomRelevance.tsx
View file @
c78310de
import
React
from
'react'
;
import
{
Row
,
Col
,
Input
}
from
'antd'
;
import
styled
from
'styled-components'
;
import
cx
from
'classnames'
;
const
RowStyleLayout
=
styled
(
props
=>
<
div
{
...
props
}
/>)
`
width: 100%;
`
;
const
Relevance
=
props
=>
{
return
(
<
RowStyleLayout
>
<
Row
>
<
Col
>
123
</
Col
>
<
Col
>
456
</
Col
>
<
Col
span=
{
16
}
>
123
</
Col
>
<
Col
span=
{
8
}
>
456
</
Col
>
</
Row
>
</
RowStyleLayout
>
);
};
...
...
src/pages/transaction/stockSellStorage/bills/addBills.tsx
View file @
c78310de
...
...
@@ -16,18 +16,18 @@ const AddBills: React.FC<{}> = (props: any) => {
const
ref
=
useRef
({});
const
[
warehouseList
,
setWarehouseList
]
=
useState
<
any
>
([]);
useEffect
(()
=>
{
PublicApi
.
getWarehouseWarehouseList
({
current
:
'1'
,
pageSize
:
'10000'
,
}).
then
((
res
:
any
)
=>
{
let
list
=
[];
for
(
let
item
of
res
.
data
)
{
list
.
push
({
label
:
item
.
name
,
value
:
item
.
id
});
}
setWarehouseList
(
list
);
});
},
[]);
//
useEffect(() => {
//
PublicApi.getWarehouseWarehouseList({
//
current: '1',
//
pageSize: '10000',
//
}).then((res: any) => {
//
let list = [];
//
for (let item of res.data) {
//
list.push({ label: item.name, value: item.id });
//
}
//
setWarehouseList(list);
//
});
//
}, []);
const
handleSubmit
=
value
=>
{
if
(
usePageStatus
().
pageStatus
===
0
)
...
...
src/pages/transaction/stockSellStorage/bills/schema/index.tsx
View file @
c78310de
...
...
@@ -182,9 +182,8 @@ export const getBillsDetailSchema = warehouseList => {
},
relevanceInvoicesId
:
{
type
:
'string'
,
'x-component'
:
'
Text
'
,
'x-component'
:
'
CustomRelevance
'
,
title
:
'关联单据'
,
default
:
'暂无'
,
},
// itemNo: {
// type: 'string',
...
...
src/pages/transaction/stockSellStorage/inventory/index.tsx
View file @
c78310de
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
history
}
from
'umi'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Input
,
Button
,
Card
}
from
'antd'
;
import
{
PlusOutlined
,
EyeOutlined
,
UpOutlined
,
DeleteOutlined
,
DownOutlined
,
}
from
'@ant-design/icons'
;
import
{
Input
,
Card
}
from
'antd'
;
import
{
StandardTable
}
from
'god'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
...
...
@@ -17,7 +10,6 @@ import { createFormActions, FormEffectHooks } from '@formily/antd';
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
inventorySchema
}
from
'./schema'
;
import
style
from
'./index.less'
;
import
{
PublicApi
}
from
'@/services/api'
;
const
formActions
=
createFormActions
();
...
...
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