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
151a7446
Commit
151a7446
authored
Sep 24, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善新增流程
parent
b82fa9c8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
CustomRelevance.tsx
src/components/NiceForm/components/CustomRelevance.tsx
+1
-2
addMember.tsx
src/pages/member/memberImport/addMember.tsx
+4
-0
useBusinessEffects.ts
...kSellStorage/bills/addBills/effects/useBusinessEffects.ts
+2
-1
index.tsx
...ges/transaction/stockSellStorage/bills/addBills/index.tsx
+5
-6
No files found.
src/components/NiceForm/components/CustomRelevance.tsx
View file @
151a7446
...
@@ -49,9 +49,8 @@ const Relevance = props => {
...
@@ -49,9 +49,8 @@ const Relevance = props => {
useEffect
(()
=>
{
useEffect
(()
=>
{
// Table 只能缓存 keys
// Table 只能缓存 keys
const
rowKeys
=
value
.
map
(
item
=>
item
[
tableRowKey
]);
const
rowKeys
=
value
.
map
(
item
=>
item
[
tableRowKey
]);
console
.
log
(
'rowKeys'
,
rowKeys
)
rowCtl
.
setSelectedRowKeys
(
rowKeys
);
rowCtl
.
setSelectedRowKeys
(
rowKeys
);
},
[
props
.
value
]);
},
[
props
.
value
,
tableProps
.
rowKey
]);
const
handleConfirm
=
()
=>
{
const
handleConfirm
=
()
=>
{
const
rows
=
rowCtl
.
selectRow
;
const
rows
=
rowCtl
.
selectRow
;
...
...
src/pages/member/memberImport/addMember.tsx
View file @
151a7446
...
@@ -181,6 +181,8 @@ const AddMember: React.FC<any> = props => {
...
@@ -181,6 +181,8 @@ const AddMember: React.FC<any> = props => {
areas
:
filtered
,
areas
:
filtered
,
remark
,
remark
,
detail
:
rest
,
detail
:
rest
,
},
{
timeout
:
0
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
;
return
;
...
@@ -212,6 +214,8 @@ const AddMember: React.FC<any> = props => {
...
@@ -212,6 +214,8 @@ const AddMember: React.FC<any> = props => {
areas
:
filtered
,
areas
:
filtered
,
remark
,
remark
,
detail
:
rest
,
detail
:
rest
,
},
{
timeout
:
0
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
;
return
;
...
...
src/pages/transaction/stockSellStorage/bills/addBills/effects/useBusinessEffects.ts
View file @
151a7446
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47
* @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-09-24 1
4:58:10
* @LastEditTime: 2020-09-24 1
6:02:02
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
...
@@ -288,6 +288,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -288,6 +288,7 @@ export const useBusinessEffects = (context, actions) => {
}
}
linkage
.
value
(
'relevanceInvoices'
,
undefined
);
linkage
.
value
(
'relevanceInvoices'
,
undefined
);
linkage
.
value
(
'invoicesDetailsRequests'
,
[]);
linkage
.
enum
(
'relevanceInvoices'
,
newEnum
);
linkage
.
enum
(
'relevanceInvoices'
,
newEnum
);
const
orderNoVal
=
getFieldValue
(
'orderNo'
);
const
orderNoVal
=
getFieldValue
(
'orderNo'
);
...
...
src/pages/transaction/stockSellStorage/bills/addBills/index.tsx
View file @
151a7446
...
@@ -42,7 +42,11 @@ const {
...
@@ -42,7 +42,11 @@ const {
}
=
FormEffectHooks
;
}
=
FormEffectHooks
;
const
AddBills
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
AddBills
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
{
pageStatus
,
preview
,
id
}
=
usePageStatus
();
const
{
pageStatus
,
preview
,
id
,
}
=
usePageStatus
();
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'checkbox'
});
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'checkbox'
});
const
[
billInfo
,
setBillInfo
]
=
useState
(
null
);
const
[
billInfo
,
setBillInfo
]
=
useState
(
null
);
...
@@ -124,11 +128,6 @@ const AddBills: React.FC<{}> = (props: any) => {
...
@@ -124,11 +128,6 @@ const AddBills: React.FC<{}> = (props: any) => {
...
rest
,
...
rest
,
invoicesTypeId
:
'S001'
,
invoicesTypeId
:
'S001'
,
});
});
console
.
log
({
transactionTime
:
transactionTime
?
moment
(
transactionTime
)
:
moment
(),
orderNo
:
orderNo
?
[{
orderNo
}]
:
[],
...
rest
,
})
}).
finally
(()
=>
{
}).
finally
(()
=>
{
setInfoLoading
(
false
);
setInfoLoading
(
false
);
});
});
...
...
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