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
cb166a40
Commit
cb166a40
authored
Apr 08, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
送货通知列表 生成送货单功能
parent
236f0dc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
+31
-4
HandleFormSubmit.ts
src/pages/order/assets/handles/HandleFormSubmit.ts
+21
-2
RoleTypeEnum.ts
src/pages/order/constants/RoleTypeEnum.ts
+6
-0
index.tsx
...liveryNoticeManagement/deliveryNoticeFromCreate/index.tsx
+4
-2
No files found.
src/pages/order/assets/handles/HandleFormSubmit.ts
View file @
cb166a40
...
...
@@ -11,7 +11,10 @@ import {
getOrderDeliveryNoticeOrderCreateDeliveryOrder
}
from
'@/services/OrderNewV2Api'
;
import
moment
from
"moment"
;
import
{
}
from
'../../constants'
import
{
isNull
}
from
"lodash"
;
import
{
RoleTypeEnum
}
from
"../../constants/RoleTypeEnum"
;
...
...
@@ -252,8 +255,8 @@ export class DeliveryNoticeOrderAddService extends DeliveryNoteAddService {
getDetailById
(
id
:
string
):
any
{
return
getOrderDeliveryNoticeOrderCreateDeliveryOrder
({
id
}).
then
(
res
=>
{
const
data
=
res
.
data
if
(
isNull
(
data
))
return
false
;
if
(
isNull
(
data
))
return
false
;
let
formField
=
{
digest
:
data
.
digest
,
...
...
@@ -281,4 +284,19 @@ export class DeliveryNoticeOrderAddService extends DeliveryNoteAddService {
})
}
#
formService
=
null
;
setFormService
(
type
:
string
|
number
)
{
if
(
type
===
RoleTypeEnum
.
SRM
)
{
this
.
#
formService
=
new
DeliveryNoteAddService
(
this
.
getForm
())
}
if
(
type
===
RoleTypeEnum
.
B2B
)
{
this
.
#
formService
=
new
ReceivingNoteB2BAddService
(
this
.
getForm
())
}
}
getForomService
():
HandleFormSubmit
{
return
this
.
#
formService
;
}
}
\ No newline at end of file
src/pages/order/constants/RoleTypeEnum.ts
0 → 100644
View file @
cb166a40
export
enum
RoleTypeEnum
{
SRM
=
2
,
B2B
=
1
}
\ No newline at end of file
src/pages/order/deliveryNoticeManagement/deliveryNoticeFromCreate/index.tsx
View file @
cb166a40
...
...
@@ -43,12 +43,14 @@ function DeliveryNoticeFromCreate() {
service
.
getDetailById
(
id
).
then
(
res
=>
{
if
(
!
res
)
{
message
.
error
(
"数据存在错误,请
练习
服务端同事!"
)
message
.
error
(
"数据存在错误,请
联系
服务端同事!"
)
history
.
back
()
return
;
}
const
type
=
res
.
type
;
service
.
setFormService
(
type
);
form
.
setFieldsValue
(
res
)
setTableDataSource
(
res
.
products
)
})
...
...
@@ -57,7 +59,7 @@ function DeliveryNoticeFromCreate() {
const
handleSubmit
=
useCallback
(()
=>
{
service
.
setTableData
(
tableDataSource
);
service
.
submit
().
then
(
res
=>
{
service
.
getForomService
().
submit
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
go
(
-
1
)
}
...
...
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