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
9725acf4
Commit
9725acf4
authored
Apr 14, 2022
by
Gavin Peng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 按钮权限配置以及修复已知bug
parent
04649f54
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
17 deletions
+24
-17
index.tsx
src/pages/order/components/CalendarModal/index.tsx
+1
-1
details.tsx
...r/deliveryPlanCollaboration/deliveryPlanQuery/details.tsx
+16
-9
index.tsx
...der/deliveryPlanCollaboration/deliveryPlanQuery/index.tsx
+4
-4
create.tsx
...er/deliveryPlanManagement/deliveryPlanAwaitSRM/create.tsx
+1
-1
details.tsx
...r/deliveryPlanManagement/deliveryPlanAwaitSRM/details.tsx
+1
-1
update.tsx
...er/deliveryPlanManagement/deliveryPlanAwaitSRM/update.tsx
+1
-1
No files found.
src/pages/order/components/CalendarModal/index.tsx
View file @
9725acf4
...
...
@@ -84,7 +84,7 @@ const CalendarModal = React.forwardRef((props: CalendarModalProps, ref: React.Re
<
Modal
title=
{
title
||
DefaultSelectDateText
}
visible=
{
visible
}
width=
{
width
||
10
80
}
width=
{
width
||
6
80
}
okText=
{
okText
||
DefaultModalOkText
}
cancelText=
{
cancelText
||
DefaultModalCancelText
}
onOk=
{
modalOnOk
}
...
...
src/pages/order/deliveryPlanCollaboration/deliveryPlanQuery/details.tsx
View file @
9725acf4
...
...
@@ -49,10 +49,12 @@ const statusTxt = new Map([[1, '待提交'], [2, '待确认'], [3, '待修订'],
const
selectedTableItem
=
new
Map
()
const
DeliveryPlanCollaborationDetails
:
React
.
FC
=
()
=>
{
const
{
location
:
{
query
:
{
ty
,
i
}
}
}
=
history
const
{
location
:
{
query
:
{
ty
,
i
,
bt
}
}
}
=
history
// 1-B2B 2-SRM
const
deliveryPlanType
=
godAtob
(
ty
as
string
)
const
id
=
godAtob
(
i
as
string
)
// notice-通知单 deliveryNote-送货单
const
pageBtn
=
godAtob
(
bt
as
string
)
const
ref
=
useRef
<
any
>
()
...
...
@@ -198,7 +200,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
const
time
=
new
Date
().
getTime
()
// 判断跳转
const
url
=
deliveryPlanType
===
'1'
?
'/memberCenter/order/deliveryNoticeManagement/awaitB2B/add'
:
'/memberCenter/order/deliveryNoticeManagement/awaitSRM/add'
noticePath
[
time
]
=
res
.
data
noticePath
[
time
]
=
res
.
data
localStorage
.
setItem
(
'NOTICE_PATH'
,
JSON
.
stringify
(
noticePath
))
selectedTableItem
.
clear
()
setTimeout
(()
=>
{
...
...
@@ -228,12 +230,12 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
}
let
noticePath
=
{}
const
time
=
new
Date
().
getTime
()
noticePath
[
time
]
=
res
.
data
noticePath
[
time
]
=
res
.
data
localStorage
.
setItem
(
'DELIVERY_NOTICE_PATH'
,
JSON
.
stringify
(
noticePath
))
selectedTableItem
.
clear
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
history
.
push
(
`/memberCenter/order/deliveryNotice/synergy/create?time=
${
time
}
&ot=
${
deliveryPlanType
}
`
)
},
1000
)
},
1000
)
}
else
{
message
.
warning
(
res
.
message
)
}
...
...
@@ -256,8 +258,13 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
extra=
{
<
Space
>
{
/* 条件渲染 */
}
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'Notice'
)
}
>
生成通知单
</
Button
>
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'DeliveryNote'
)
}
>
生成送货单
</
Button
>
{
pageBtn
===
'notice'
?
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'Notice'
)
}
>
生成送货通知单
</
Button
>
:
pageBtn
===
'deliveryNote'
?
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'DeliveryNote'
)
}
>
生成送货单
</
Button
>
:
null
}
</
Space
>
}
>
...
...
@@ -306,8 +313,8 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
ref=
{
ref
}
onOk=
{
(
date
)
=>
{
operation
===
'Notice'
?
generateNotice
(
date
)
:
generateDeliveryNote
(
date
)
?
generateNotice
(
date
)
:
generateDeliveryNote
(
date
)
}
}
/>
</
Spin
>
...
...
src/pages/order/deliveryPlanCollaboration/deliveryPlanQuery/index.tsx
View file @
9725acf4
...
...
@@ -43,16 +43,16 @@ const DeliveryPlanCollaborationQuery: React.FC = () => {
}
const
buttonGroup
=
{
'查看'
:
true
,
'生成送货通知单'
:
true
,
'生成送货单'
:
true
,
'生成送货通知单'
:
record
.
status
===
4
,
'生成送货单'
:
record
.
status
===
4
,
}
const
operationHandler
=
{
'查看'
:
()
=>
history
.
push
(
`/memberCenter/order/deliveryPlanCollaboration/query/details?ty=
${
godBtoa
(
record
.
orderType
)}
&i=
${
godBtoa
(
record
.
id
)}
`
),
'生成送货通知单'
:
()
=>
{
history
.
push
(
`/memberCenter/order/deliveryPlanCollaboration/query/details?ty=
${
godBtoa
(
record
.
orderType
)}
&i=
${
godBtoa
(
record
.
id
)}
`
)
history
.
push
(
`/memberCenter/order/deliveryPlanCollaboration/query/details?ty=
${
godBtoa
(
record
.
orderType
)}
&i=
${
godBtoa
(
record
.
id
)}
&bt=
${
godBtoa
(
'notice'
)}
`
)
},
'生成送货单'
:
()
=>
{
history
.
push
(
`/memberCenter/order/deliveryPlanCollaboration/query/details?ty=
${
godBtoa
(
record
.
orderType
)}
&i=
${
godBtoa
(
record
.
id
)}
`
)
history
.
push
(
`/memberCenter/order/deliveryPlanCollaboration/query/details?ty=
${
godBtoa
(
record
.
orderType
)}
&i=
${
godBtoa
(
record
.
id
)}
&bt=
${
godBtoa
(
'deliveryNote'
)}
`
)
},
}
return
(
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/create.tsx
View file @
9725acf4
...
...
@@ -30,7 +30,7 @@ const ORDER_TYPE = '2'
const
initMaterialTableColumn
=
[
{
...
MaterialNoColumn
,
dataIndex
:
'skuId'
,
width
:
80
,
},
{
...
MaterialNameColumn
,
dataIndex
:
'productName'
,
width
:
192
,
},
{
...
MaterialModelColumn
,
dataIndex
:
'
productName
'
,
width
:
128
,
},
{
...
MaterialModelColumn
,
dataIndex
:
'
spec
'
,
width
:
128
,
},
{
...
ClassColumn
,
dataIndex
:
'category'
,
width
:
96
,
},
{
...
BrandColumn
,
dataIndex
:
'brand'
,
width
:
96
,
},
{
...
UntilColumn
,
dataIndex
:
'unit'
,
width
:
64
,
},
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/details.tsx
View file @
9725acf4
...
...
@@ -33,7 +33,7 @@ const DeliveryPlanAwaitSRMDetails: React.FC = () => {
const
[
materialTableColumn
,
setMaterialTableColumn
]
=
useState
<
any
>
([
{
...
MaterialNoColumn
,
dataIndex
:
'skuId'
,
width
:
80
,
},
{
...
MaterialNameColumn
,
dataIndex
:
'productName'
,
width
:
192
,
},
{
...
MaterialModelColumn
,
dataIndex
:
'
productName
'
,
width
:
128
,
},
{
...
MaterialModelColumn
,
dataIndex
:
'
spec
'
,
width
:
128
,
},
{
...
ClassColumn
,
dataIndex
:
'category'
,
width
:
96
,
},
{
...
BrandColumn
,
dataIndex
:
'brand'
,
width
:
96
,
},
{
...
UntilColumn
,
dataIndex
:
'unit'
,
width
:
64
,
},
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/update.tsx
View file @
9725acf4
...
...
@@ -46,7 +46,7 @@ const DeliveryPlanAwaitSRMUpdate: React.FC = () => {
const
[
materialTableColumn
,
setMaterialTableColumn
]
=
useState
<
any
>
([
{
...
MaterialNoColumn
,
dataIndex
:
'skuId'
,
width
:
80
,
},
{
...
MaterialNameColumn
,
dataIndex
:
'productName'
,
width
:
192
,
},
{
...
MaterialModelColumn
,
dataIndex
:
'
productName
'
,
width
:
128
,
},
{
...
MaterialModelColumn
,
dataIndex
:
'
spec
'
,
width
:
128
,
},
{
...
ClassColumn
,
dataIndex
:
'category'
,
width
:
96
,
},
{
...
BrandColumn
,
dataIndex
:
'brand'
,
width
:
96
,
},
{
...
UntilColumn
,
dataIndex
:
'unit'
,
width
:
64
,
},
...
...
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