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
e4d39f8a
Commit
e4d39f8a
authored
Dec 17, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改加工 回显加工企业bug
parent
792b81aa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
22 deletions
+46
-22
index.tsx
src/pages/handling/assign/add/index.tsx
+18
-12
schema.tsx
src/pages/handling/assign/add/schema.tsx
+18
-6
index.tsx
src/pages/handling/components/EnterPrise/index.tsx
+9
-1
schema.tsx
src/pages/handling/components/EnterPrise/schema.tsx
+1
-1
content.tsx
src/pages/handling/components/ProcessDetail/content.tsx
+0
-2
No files found.
src/pages/handling/assign/add/index.tsx
View file @
e4d39f8a
...
...
@@ -41,8 +41,8 @@ const Add: React.FC<{}> = () => {
const
postData
=
list
.
map
((
item
)
=>
{
return
{
productId
:
"fullId"
in
item
?
item
.
commodityId
:
item
.
id
,
memberId
:
item
.
memberId
,
memberRoleId
:
item
.
memberRoleId
,
memberId
:
item
.
memberId
||
authInfo
.
memberId
,
memberRoleId
:
item
.
memberRoleId
||
authInfo
.
memberRoleId
,
shopId
:
ENTERPRISE_MALL
[
authInfo
.
memberType
],
type
:
5
,
}
...
...
@@ -72,7 +72,7 @@ const Add: React.FC<{}> = () => {
disabled
:
record
.
purchaseCount
-
(
record
.
processNum
||
0
)
<=
0
,
}),
});
const
enterpriseTableRowSelection
=
useRowSelection
({
primaryKey
:
'
i
d'
,
type
:
'radio'
});
const
enterpriseTableRowSelection
=
useRowSelection
({
primaryKey
:
'
uniqueI
d'
,
type
:
'radio'
});
// 选择加工企业 modal 层
const
connectProduct
=
(
...
...
@@ -128,20 +128,21 @@ const Add: React.FC<{}> = () => {
...
orderData
}
})
const
keys
=
someLists
.
map
((
item
)
=>
item
.
id
);
if
(
isOrderProcess
)
{
orderTableRowSelection
.
setSelectedKeys
(
keys
);
const
orderDetailkeys
=
someLists
.
map
((
item
)
=>
item
.
fullId
);
orderTableRowSelection
.
setSelectedKeys
(
orderDetailkeys
);
orderTableRowSelection
.
setSelectedRows
(
someLists
);
}
else
{
const
keys
=
someLists
.
map
((
item
)
=>
item
.
id
);
productTableRowSelection
.
setSelectedKeys
(
keys
);
productTableRowSelection
.
setSelectedRows
(
someLists
);
}
enterpriseTableRowSelection
.
setSelectedKeys
([
data
.
processMemberId
]);
enterpriseTableRowSelection
.
setSelectedKeys
([
data
.
processMemberId
+
"_"
+
data
.
processRoleId
]);
enterpriseTableRowSelection
.
setSelectedRows
([{
id
:
data
.
processMemberId
,
memberId
:
data
.
processMemberId
,
name
:
data
.
processName
,
roleId
:
data
.
processRoleId
roleId
:
data
.
processRoleId
,
uniqueId
:
data
.
processMemberId
+
"_"
+
data
.
processRoleId
}])
setEditInfo
({
...
descValue
,
...
...
@@ -153,7 +154,8 @@ const Add: React.FC<{}> = () => {
orderList
:
isOrderProcess
?
someLists
:
[],
productList
:
!
isOrderProcess
?
someLists
:
[],
outerWorkFlow
:
data
.
outerWorkflowRecordsList
,
innerWorkFlow
:
data
.
innerWorkflowRecordsList
innerWorkFlow
:
data
.
innerWorkflowRecordsList
,
controller
:
1
,
})
}
})
...
...
@@ -165,7 +167,8 @@ const Add: React.FC<{}> = () => {
setEditInfo
({
source
:
1
,
createTime
:
" "
,
noticeNo
:
" "
noticeNo
:
" "
,
controller
:
1
})
}
},
[])
...
...
@@ -265,9 +268,9 @@ const Add: React.FC<{}> = () => {
*/
const
enterPriseOnOk
=
()
=>
{
const
row
=
enterpriseTableRowSelection
.
hasSelectedRows
;
const
{
memberId
,
name
,
roleId
,
id
}
=
row
[
0
];
const
{
memberId
,
name
,
roleId
}
=
row
[
0
];
formActions
.
setFieldValue
(
'Tabs.tab-1.layout.processName'
,
name
);
formActions
.
setFieldValue
(
'Tabs.tab-1.layout.processMemberId'
,
i
d
);
formActions
.
setFieldValue
(
'Tabs.tab-1.layout.processMemberId'
,
memberI
d
);
formActions
.
setFieldValue
(
'Tabs.tab-1.layout.processRoleId'
,
roleId
);
}
...
...
@@ -295,6 +298,9 @@ const Add: React.FC<{}> = () => {
const
{
deliveryDate
,
receivefullAddress
,
controller
,
outerStatus
,
innerStatus
,
// receiveAddressID,
enclosure
=
[],
deliveryDesc
=
''
,
...
...
src/pages/handling/assign/add/schema.tsx
View file @
e4d39f8a
...
...
@@ -82,14 +82,26 @@ const basicTab = {
],
"x-linkages"
:
[
{
"type"
:
"value:visible"
,
"target"
:
"*(orderList, orderSource)"
,
"condition"
:
"{{ $self.value === 1 }}"
"type"
:
"value:state"
,
"target"
:
"*(productList, productSource)"
,
"condition"
:
"{{ $self.value === 1 }}"
,
state
:
{
display
:
false
,
},
otherwise
:{
//条件不满足时控制bbb字段的编辑状态
display
:
true
}
},
{
"type"
:
"value:visible"
,
"target"
:
"*(productList, productSource)"
,
"condition"
:
"{{ $self.value === 2 }}"
"type"
:
"value:state"
,
"target"
:
"*(orderList, orderSource)"
,
"condition"
:
"{{ $self.value === 2 }}"
,
state
:
{
display
:
false
,
},
otherwise
:{
//条件不满足时控制bbb字段的编辑状态
display
:
true
}
},
]
},
...
...
src/pages/handling/components/EnterPrise/index.tsx
View file @
e4d39f8a
...
...
@@ -13,7 +13,15 @@ const EnterPrise = ({visible, cancel, rowSelection, ...restProps}) => {
// const [selectRow, memberRowCtl] = useRowSelectionTable({ customKey: 'id', type: 'radio'});
const
fetchData
=
useCallback
(
async
(
params
:
any
)
=>
{
let
res
=
await
PublicApi
.
getMemberManageLowerPageBynamerole
(
params
);
return
res
;
console
.
log
(
res
);
return
{
...
res
,
code
:
res
.
code
,
data
:
{
data
:
res
.
data
.
data
.
map
((
v
)
=>
({...
v
,
uniqueId
:
v
.
memberId
+
"_"
+
v
.
roleId
})),
total
:
res
.
data
.
code
}
};
},
[]);
const
onOk
=
()
=>
{
...
...
src/pages/handling/components/EnterPrise/schema.tsx
View file @
e4d39f8a
...
...
@@ -132,7 +132,7 @@ export const schema = {
"x-component"
:
"Table"
,
"x-component-props"
:
{
"columns"
:
columns
,
"rowKey"
:
"
i
d"
,
"rowKey"
:
"
uniqueI
d"
,
"pagination"
:
false
,
"rowSelection"
:
"{{rowSelection}}"
}
...
...
src/pages/handling/components/ProcessDetail/content.tsx
View file @
e4d39f8a
...
...
@@ -111,8 +111,6 @@ const Content: React.FC<Iprops> = React.forwardRef((props, conftentRef) => {
props
.
formSubmit
(
value
);
}
console
.
log
(
files
);
return
(
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
menu
}
>
...
...
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