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
2427d0ee
Commit
2427d0ee
authored
Mar 29, 2022
by
rex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料选择table
parent
86d30cb4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
127 additions
and
4 deletions
+127
-4
DeliveryNoteService.ts
src/pages/order/assets/handles/DeliveryNoteService.ts
+1
-1
DeliveryNoticeOrder.ts
src/pages/order/assets/handles/DeliveryNoticeOrder.ts
+28
-0
DeliveryGoodTableSelectMock.ts
src/pages/order/assets/mock/DeliveryGoodTableSelectMock.ts
+34
-0
DeliveryGoodTableSelect.tsx
...nents/DeliveryGoodTableSelect/DeliveryGoodTableSelect.tsx
+58
-0
index.tsx
src/pages/order/components/DeliveryGoodTableSelect/index.tsx
+2
-0
page-table-column.tsx
src/pages/order/constants/page-table-column.tsx
+2
-2
add.tsx
src/pages/order/deliveryNotice/manageSRM/add.tsx
+2
-1
No files found.
src/pages/order/assets/handles/DeliveryNoteService.ts
View file @
2427d0ee
...
...
@@ -40,7 +40,7 @@ class NoteService {
return
this
.
#
deliveryType
.
get
(
type
)
}
}
}
export
default
class
NoteFactoryService
{
...
...
src/pages/order/assets/handles/DeliveryNoticeOrder.ts
0 → 100644
View file @
2427d0ee
import
{
isDev
}
from
'@/constants'
;
import
{
getOrderDeliveryPlanOrderSrmProductPage
}
from
'@/services/OrderNewV2Api'
;
import
DeliveryGoodTableSelectMock
from
'../mock/DeliveryGoodTableSelectMock'
;
class
DeliveryNoticeOrder
{
getOrderDeliveryPlanProduct
()
{
if
(
isDev
)
{
return
Promise
.
resolve
({
data
:
DeliveryGoodTableSelectMock
});
}
return
getOrderDeliveryPlanOrderSrmProductPage
().
then
(
res
=>
{
return
res
.
data
;
})
}
}
class
DeliveryNoticeOrderFactory
{
#
instance
static
getInstance
()
{
return
new
DeliveryNoticeOrder
();
}
}
export
default
DeliveryNoticeOrderFactory
;
\ No newline at end of file
src/pages/order/assets/mock/DeliveryGoodTableSelectMock.ts
0 → 100644
View file @
2427d0ee
export
default
[{
"skuId"
:
"demoData"
,
"productNo"
:
"demoData"
,
"orderProductId"
:
1
,
"productName"
:
"demoData"
,
"spec"
:
"demoData"
,
"category"
:
"demoData"
,
"brand"
:
"demoData"
,
"unit"
:
"demoData"
,
"purchaseCount"
:
1
,
"receiveCount"
:
1
,
"transitCount"
:
1
,
"leftCount"
:
1
,
"planCount"
:
1
,
"orders"
:
[{
"orderNo"
:
"demoData"
,
"orderProductId"
:
1
,
"orderDigest"
:
"demoData"
,
"purchaseCount"
:
1
,
"receiveCount"
:
1
,
"transitCount"
:
1
,
"leftCount"
:
1
,
"planCount"
:
1
,
"consigneeId"
:
1
,
"consignee"
:
"demoData"
,
"provinceName"
:
"demoData"
,
"cityName"
:
"demoData"
,
"districtName"
:
"demoData"
,
"streetName"
:
"demoData"
,
"address"
:
"demoData"
,
"phone"
:
"demoData"
}]
}]
\ No newline at end of file
src/pages/order/components/DeliveryGoodTableSelect/DeliveryGoodTableSelect.tsx
0 → 100644
View file @
2427d0ee
import
{
Button
,
Drawer
,
Table
}
from
"antd"
;
import
{
isNull
}
from
"lodash"
;
import
{
useCallback
,
useEffect
,
useLayoutEffect
,
useState
}
from
"react"
;
import
DeliveryNoticeOrderFactory
from
"../../assets/handles/DeliveryNoticeOrder"
;
import
{
PlannedDeliveryMaterialExpandableTableColumn
,
PlannedDeliveryMaterialTableColumn
}
from
"../../constants/page-table-column"
;
function
DeliveryGoodTableModal
()
{
const
[
visible
,
setVisible
]
=
useState
(
false
)
const
service
=
DeliveryNoticeOrderFactory
.
getInstance
()
const
[
tableData
,
setTableData
]
=
useState
([])
const
handleVisible
=
useCallback
(()
=>
{
setVisible
(
true
)
},
[
visible
])
useEffect
(()
=>
{
service
.
getOrderDeliveryPlanProduct
().
then
(
res
=>
{
if
(
isNull
(
res
))
return
;
const
data
=
res
.
data
setTableData
(
data
)
})
},
[])
const
expandedRowRender
=
()
=>
{
return
(
<
Table
columns=
{
PlannedDeliveryMaterialExpandableTableColumn
}
/>
);
}
return
(
<>
<
div
className=
'mt-16'
>
<
Button
onClick=
{
handleVisible
}
>
选择物流
</
Button
>
</
div
>
<
Drawer
title=
"选择送货物料"
visible=
{
visible
}
width=
"90vw"
onClose=
{
()
=>
{
setVisible
(
false
)
}
}
>
<
Table
columns=
{
PlannedDeliveryMaterialTableColumn
}
dataSource=
{
tableData
}
expandedRowRender=
{
expandedRowRender
}
/>
</
Drawer
>
</>
);
}
export
default
DeliveryGoodTableModal
;
\ No newline at end of file
src/pages/order/components/DeliveryGoodTableSelect/index.tsx
0 → 100644
View file @
2427d0ee
export
{
default
as
DeliveryGoodTableModal
}
from
'./DeliveryGoodTableSelect'
\ No newline at end of file
src/pages/order/constants/page-table-column.tsx
View file @
2427d0ee
...
...
@@ -5,7 +5,7 @@
import
{
HarvestMaterialInput
}
from
"../assets/context"
;
import
{
BrandColumn
,
ClassColumn
,
CommodityIdColumn
,
ConsigneeNumColumn
,
DeliveredNumColumn
,
DeliveryNumColumn
,
FlowNoteColumn
,
FlowOnColumn
,
FlowOptionsColumn
,
FlowOptionsTimeColumn
,
FlowRoleColumn
,
FlowStatusColumn
,
MaterialModelColumn
,
MaterialNameColumn
,
MaterialNoColumn
,
OrderCreatedAtColumn
,
OrderNoColumn
,
OrderSummaryColumn
,
OredrNumColumn
,
PlannedDeliveryNumColumn
,
TradeNameColumn
,
TransitNumColumn
,
UntilColumn
}
from
"./table-column"
;
export
const
DeliveryNoteAddFromTableColumn
=
[
export
const
DeliveryNoteAddFromTableColumn
:
any
=
[
MaterialNoColumn
,
MaterialNameColumn
,
ClassColumn
,
...
...
@@ -27,7 +27,7 @@ export const DeliveryNoteAddFromTableColumn = [
}
]
export
const
OutStatusLogTableColumn
=
[
export
const
OutStatusLogTableColumn
:
any
=
[
FlowOnColumn
,
FlowRoleColumn
,
FlowStatusColumn
,
...
...
src/pages/order/deliveryNotice/manageSRM/add.tsx
View file @
2427d0ee
...
...
@@ -14,6 +14,7 @@ import { DatePickerSelect } from '@/components/DatePickerSelect'
import
DatePicker
from
'@/components/DatePicker'
;
import
{
AddressDrawer
}
from
'@/components/AddressDrawer'
;
import
{
getLogisticsSelectListShipperAddress
,
postLogisticsShipperAddressAdd
,
postLogisticsShipperAddressUpdate
}
from
'@/services/LogisticsV2Api'
;
import
DeliveryGoodTableSelect
from
'../../components/DeliveryGoodTableSelect/DeliveryGoodTableSelect'
;
const
ContentBoxItem
=
ContentBox
.
BaseInfoItem
;
...
...
@@ -117,7 +118,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
<
ContentBox
title=
{
DeliveryGood
.
name
}
id=
{
DeliveryGood
.
key
}
cols=
{
1
}
>
<
DeliveryGoodTableSelect
/>
<
Table
columns=
{
DeliveryNoticeTableColumn
}
/>
</
ContentBox
>
...
...
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