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
0f85b9bb
Commit
0f85b9bb
authored
Apr 22, 2022
by
leimo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '220418-fix' into 'v2-220418'
fix: 计划生成通知单商品名字段调整 See merge request linkseeks-design/pro-platform!504
parents
f405837a
18742bd5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
index.less
src/components/FormProgress/index.less
+3
-2
index.tsx
src/components/FormProgress/index.tsx
+7
-2
index.tsx
...eliveryNoticeAwaitB2B/components/AddEditContent/index.tsx
+3
-3
index.tsx
...eliveryNoticeAwaitSRM/components/AddEditContent/index.tsx
+2
-2
No files found.
src/components/FormProgress/index.less
View file @
0f85b9bb
.progressBox {
display:
inline-block
;
margin-left: 8px
;
display:
flex
;
align-items: center
;
}
.progress {
...
...
@@ -8,6 +8,7 @@
align-items: center;
width: 240px;
height: 16px;
margin-left: 8px;
padding: 0 8px;
border-radius: 8px;
font-size: 12px;
...
...
src/components/FormProgress/index.tsx
View file @
0f85b9bb
import
{
useState
,
useImperativeHandle
,
forwardRef
,
useRef
}
from
'react'
import
{
useState
,
useImperativeHandle
,
forwardRef
,
ReactNode
}
from
'react'
import
{
Modal
,
Input
,
Form
,
message
,
FormInstance
}
from
'antd'
import
styles
from
'./index.less'
...
...
@@ -6,6 +6,10 @@ export type HandleType = {
render
:
(
form
:
FormInstance
<
any
>
,
otherValues
?:
Object
)
=>
void
;
}
type
PropsType
=
{
title
?:
string
|
ReactNode
}
type
ColorItemType
=
{
bg
:
string
,
text
:
string
}
type
ColorType
=
{
...
...
@@ -32,7 +36,7 @@ const getColor = (scale: number) => {
}
}
const
FormProgress
=
({
}
,
ref
:
any
)
=>
{
const
FormProgress
=
({
title
}:
PropsType
,
ref
:
any
)
=>
{
const
[
scale
,
setScale
]
=
useState
<
number
>
(
0
)
useImperativeHandle
(
ref
,
()
=>
({
...
...
@@ -58,6 +62,7 @@ const FormProgress = ({}, ref: any) => {
return
(
<
div
className=
{
styles
.
progressBox
}
>
{
title
}
<
div
className=
{
styles
.
progress
}
style=
{
{
backgroundColor
:
getColor
(
scale
).
bg
,
color
:
getColor
(
scale
).
text
}
}
...
...
src/pages/order/deliveryNoticeManagement/deliveryNoticeAwaitB2B/components/AddEditContent/index.tsx
View file @
0f85b9bb
...
...
@@ -130,7 +130,7 @@ const DeliveryNoticeManagementAwaitB2BDetails: React.FC<PropsType> = ({ type, id
roleType
:
2
}
const
receivingAddress
=
{
planNo
:
planD
ata
.
planNo
,
planNo
:
d
ata
.
planNo
,
provinceName
:
data
.
provinceName
,
cityName
:
data
.
cityName
,
districtName
:
data
.
districtName
,
...
...
@@ -179,7 +179,7 @@ const DeliveryNoticeManagementAwaitB2BDetails: React.FC<PropsType> = ({ type, id
fullAddress
:
`
${
planData
.
provinceName
||
''
}${
planData
.
cityName
||
''
}${
planData
.
districtName
||
''
}${
planData
.
streetName
||
''
}${
planData
.
address
||
''
}
`
}
form
.
setFieldsValue
({
digest
:
`
${
planData
.
deliveryTime
}${
planData
.
productName
||
''
}
送货通知`
,
digest
:
`
${
planData
.
deliveryTime
}${
planData
.
product
s
[
0
]?.
product
Name
||
''
}
送货通知
`,
deliveryTime: moment(planData.deliveryTime),
receivingAddress,
member: {
...
...
@@ -236,7 +236,7 @@ const DeliveryNoticeManagementAwaitB2BDetails: React.FC<PropsType> = ({ type, id
return (
<AnchorPage
title=
{
<
div
>
{
`${PAGE_TYPE_LABEL[type]}送货通知单`
}
<
FormProgress
ref=
{
progressRef
}
/></
div
>
}
title={<
FormProgress title={`
$
{
PAGE_TYPE_LABEL
[
type
]}
送货通知单
`} ref={progressRef} /
>}
onBack={() => history.goBack()}
anchors={getConst(tableDataSource?.length)}
extra={
...
...
src/pages/order/deliveryNoticeManagement/deliveryNoticeAwaitSRM/components/AddEditContent/index.tsx
View file @
0f85b9bb
...
...
@@ -182,7 +182,7 @@ const DeliveryNoticeManagementAwaitSRMDetails: React.FC<PropsType> = ({ type, id
fullAddress
:
`
${
planData
.
provinceName
||
''
}${
planData
.
cityName
||
''
}${
planData
.
districtName
||
''
}${
planData
.
streetName
||
''
}${
planData
.
address
||
''
}
`
}
form
.
setFieldsValue
({
digest
:
`
${
planData
.
deliveryTime
}${
planData
.
productName
||
''
}
送货通知`
,
digest
:
`
${
planData
.
deliveryTime
}${
planData
.
product
s
[
0
]?.
product
Name
||
''
}
送货通知
`,
deliveryTime: moment(planData.deliveryTime),
receivingAddress,
member: {
...
...
@@ -239,7 +239,7 @@ const DeliveryNoticeManagementAwaitSRMDetails: React.FC<PropsType> = ({ type, id
return (
<AnchorPage
title=
{
<
div
>
{
`${PAGE_TYPE_LABEL[type]}送货通知单`
}
<
FormProgress
ref=
{
progressRef
}
/></
div
>
}
title={<
FormProgress title={`
$
{
PAGE_TYPE_LABEL
[
type
]}
送货通知单
`} ref={progressRef} /
>}
onBack={() => history.goBack()}
anchors={getConst(tableDataSource?.length)}
extra={
...
...
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