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
c3cb7ea4
Commit
c3cb7ea4
authored
Oct 28, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:新增订单后-删除进货单id
parent
34b56a47
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+2
-0
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+5
-4
index.ts
...es/transaction/purchaseOrder/orderCollect/schema/index.ts
+8
-0
No files found.
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
c3cb7ea4
...
@@ -137,6 +137,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
...
@@ -137,6 +137,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
ctx
.
setFieldValue
(
'supplyMembersId'
,
initValue
.
supplyMembersId
)
ctx
.
setFieldValue
(
'supplyMembersId'
,
initValue
.
supplyMembersId
)
ctx
.
setFieldValue
(
'supplyMembersRoleId'
,
initValue
.
supplyMembersRoleId
)
ctx
.
setFieldValue
(
'supplyMembersRoleId'
,
initValue
.
supplyMembersRoleId
)
ctx
.
setFieldValue
(
'supplyMembersName'
,
initValue
.
supplyMembersName
)
ctx
.
setFieldValue
(
'supplyMembersName'
,
initValue
.
supplyMembersName
)
initValue
.
idList
&&
ctx
.
setFieldValue
(
'idList'
,
initValue
.
idList
)
initValue
.
productType
&&
ctx
.
setFieldValue
(
'productType'
,
initValue
.
productType
)
ctx
.
setFieldValue
(
'orderProductRequests'
,
await
filterProductDataById
([],
productInfo
.
map
(
v
=>
{
ctx
.
setFieldValue
(
'orderProductRequests'
,
await
filterProductDataById
([],
productInfo
.
map
(
v
=>
{
return
{
return
{
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
c3cb7ea4
...
@@ -310,11 +310,12 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...
@@ -310,11 +310,12 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
}
}
}
}
effects=
{
(
$
,
ctx
)
=>
{
effects=
{
(
$
,
ctx
)
=>
{
$
(
'onFormMount'
).
subscribe
(()
=>
{
$
(
'onFormMount'
).
subscribe
(()
=>
{
if
(
id
)
{
if
(
id
||
modelType
)
{
ctx
.
setFieldState
(
'orderModel'
,
state
=>
{
ctx
.
setFieldState
(
'orderModel'
,
state
=>
{
state
.
props
[
"x-component-props"
]
=
{
state
.
editable
=
false
disabled
:
true
// state.props["x-component-props"] =
{
}
// disabled: true
//
}
})
})
}
}
})
})
...
...
src/pages/transaction/purchaseOrder/orderCollect/schema/index.ts
View file @
c3cb7ea4
...
@@ -176,6 +176,14 @@ const basicInfo: ISchema = {
...
@@ -176,6 +176,14 @@ const basicInfo: ISchema = {
type
:
'string'
,
type
:
'string'
,
display
:
false
display
:
false
},
},
idList
:
{
type
:
'array'
,
display
:
false
},
productType
:
{
type
:
'number'
,
display
:
false
},
orderNo
:
{
orderNo
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'订单编号'
,
title
:
'订单编号'
,
...
...
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