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
7be43942
Commit
7be43942
authored
Sep 23, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
b12ae118
660a745c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
41 deletions
+56
-41
confirmModal.tsx
src/pages/logistics/components/confirmModal.tsx
+4
-27
orderSearchDetail.tsx
src/pages/logistics/components/orderSearchDetail.tsx
+8
-5
orderSearchList.tsx
src/pages/logistics/components/orderSearchList.tsx
+3
-3
pageOrderLog.tsx
src/pages/logistics/components/pageOrderLog.tsx
+36
-3
toOrderSubmitDetail.tsx
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
+5
-3
No files found.
src/pages/logistics/components/confirmModal.tsx
View file @
7be43942
...
...
@@ -40,14 +40,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
const
{
setFieldState
}
=
createFormActions
()
onFieldChange$
(
'status'
).
subscribe
(({
value
})
=>
{
setFieldState
(
'remark'
,
state
=>
{
if
(
value
==
3
)
{
state
.
visible
=
false
}
else
{
state
.
visible
=
true
}
})
setFieldState
(
'freightPrice'
,
state
=>
{
if
(
value
==
3
)
{
if
(
value
==
4
)
{
state
.
visible
=
false
}
else
{
state
.
visible
=
true
...
...
@@ -78,14 +71,14 @@ const comfirmDialog: React.FC<Params> = (props) => {
effects=
{
()
=>
useFormEffects
()
}
onSubmit=
{
(
values
)
=>
handletOk
(
values
)
}
initialValues=
{
{
status
:
3
status
:
4
}
}
>
<
Field
enum=
{
[
{
label
:
'接受物流单'
,
value
:
3
},
{
label
:
'不接受物流单'
,
value
:
4
}
{
label
:
'接受物流单'
,
value
:
4
},
{
label
:
'不接受物流单'
,
value
:
3
}
]
}
name=
'status'
required
...
...
@@ -94,22 +87,6 @@ const comfirmDialog: React.FC<Params> = (props) => {
{
props
.
dontReceive
&&
<>
<
Field
title=
'运费'
name=
"freightPrice"
x
-
component=
"Input"
required
x
-
component
-
props=
{
{
placeholder
:
'运费'
,
// addonBefore: ' '
}
}
x
-
rules
={{
pattern
:
PATTERN_MAPS
.
money
,
message
:'数字类型,币制为当前站点对应的币制,保留2位小数'
}}
/>
{
/* <FormMegaLayout name='remarkOption' label='不接受原因' full required labelCol={2} labelAlign="top"> */
}
<
Field
title=
'不接受原因'
...
...
src/pages/logistics/components/orderSearchDetail.tsx
View file @
7be43942
...
...
@@ -5,6 +5,7 @@ import { EyeOutlined, ClockCircleOutlined, UpOutlined, DownOutlined, StopOutline
import
{
StandardTable
}
from
'god'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
ConfirmModal
from
'./confirmModal'
import
OrderLog
from
'./pageOrderLog'
import
{
history
}
from
'umi'
import
{
PublicApi
}
from
'@/services/api'
import
moment
from
'moment'
...
...
@@ -282,6 +283,9 @@ const detailInfo: React.FC<{}> = () => {
const
handleModalOK
=
()
=>
{
setvisible
(
false
)
ref
.
current
.
reload
()
setTimeout
(()
=>
{
history
.
goBack
()
},
1000
)
}
...
...
@@ -496,14 +500,13 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'mainCol-title'
]
}
>
外部流转记录
</
div
>
<
StandardTable
<
OrderLog
id=
{
id
}
pathName=
{
history
.
location
.
pathname
}
/>
{
/* <StandardTable
tableProps={{rowKey:'id'}}
currentRef={ref}
columns={columns}
fetchTableData={(params: any) => fetchData(params)}
/>
{
/* <Table dataSource={dataInfo.logList} columns={columns} pagination={pagination} /> */
}
/> */
}
</
Col
>
...
...
@@ -512,7 +515,7 @@ const detailInfo: React.FC<{}> = () => {
id=
{
id
}
dialogVisible=
{
visible
}
onCancel=
{
()
=>
setvisible
(
false
)
}
onOK
=
{()
=
>
handleModalOK}
onOK
=
{()
=
>
handleModalOK
()
}
/
>
</
PageHeaderWrapper
>
...
...
src/pages/logistics/components/orderSearchList.tsx
View file @
7be43942
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-18 15:55:51
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
8-18 14:13:08
* @LastEditTime: 2020-0
9-23 17:25:53
*/
import
React
,
{
useState
,
useEffect
,
useRef
,
ReactNode
}
from
'react'
;
import
{
Card
,
Button
,
Row
,
Col
,
Tooltip
,
Input
,
Select
,
Tag
,
Space
}
from
'antd'
...
...
@@ -224,9 +224,9 @@ const orderSearchList: React.FC<listProps> = (props) => {
if
(
reconds
.
status
==
3
)
{
component
=
// <Tag color='success'>接受物流单</Tag>
<><
span
style=
{
statuStyle
.
success
}
>
不接受物流单
</
span
></>
<><
span
style=
{
statuStyle
.
warn
}
>
不接受物流单
</
span
></>
}
else
if
(
reconds
.
status
==
4
)
{
component
=
<><
span
style=
{
statuStyle
.
warn
}
>
接受物流单
</
span
></>
component
=
<><
span
style=
{
statuStyle
.
success
}
>
接受物流单
</
span
></>
}
else
if
(
reconds
.
status
==
2
)
{
component
=
<><
span
style=
{
statuStyle
.
confirm
}
>
待确认
</
span
></>
}
else
if
(
reconds
.
status
==
1
)
{
...
...
src/pages/logistics/components/pageOrderLog.tsx
View file @
7be43942
...
...
@@ -3,7 +3,7 @@
* @Date: 2020-09-23 10:24:42
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-23 1
1:29:20
* @LastEditTime: 2020-09-23 1
8:07:31
* 外部流转记录
*/
import
React
,
{
Component
,
useRef
,
ReactNode
}
from
'react'
;
...
...
@@ -65,7 +65,7 @@ const columns: ColumnType<any>[] = [
export
interface
Params
{
id
:
string
|
number
,
pathName
?:
string
,
type
:
string
//Submit 能力中心待提交
type
?:
string
//Submit 能力中心待提交新增编辑
}
const
Log
:
React
.
FC
<
Params
>
=
(
props
)
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -73,7 +73,9 @@ const Log: React.FC<Params> = (props) => {
if
(
!
props
.
id
){
return
}
if
(
props
.
type
===
'Submit'
){
//待提交新增物流单
if
(
props
.
type
===
'Submit'
){
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getLogisticsOrderWaitSubmitPageOrderLog
({...
params
,
orderId
:
props
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
...
...
@@ -82,6 +84,37 @@ const Log: React.FC<Params> = (props) => {
})
});
}
//物流单提交-物流单查询
else
if
(
props
.
pathName
==
'/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil'
){
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getLogisticsOrderSubmitPageOrderLog
({...
params
,
orderId
:
props
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
resolve
(
res
.
data
)
}
})
});
}
//物流单处理-物流单查询
else
if
(
props
.
pathName
==
'/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil'
){
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getLogisticsOrderConfirmPageOrderLog
({...
params
,
orderId
:
props
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
resolve
(
res
.
data
)
}
})
});
}
//物流单处理-待确认物流单
else
if
(
props
.
pathName
==
'/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmDeatil'
){
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getLogisticsOrderWaitConfirmPageOrderLog
({...
params
,
orderId
:
props
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
resolve
(
res
.
data
)
}
})
});
}
};
return
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
}
}
...
...
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
View file @
7be43942
...
...
@@ -3,7 +3,7 @@
* @Date: 2020-07-28 11:25:30
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-23 1
5:39:4
9
* @LastEditTime: 2020-09-23 1
6:17:2
9
*/
import
React
,
{
Component
,
useEffect
,
useRef
,
useState
,
ReactNode
}
from
'react'
...
...
@@ -408,7 +408,6 @@ const Deatail: React.FC<{}> = () => {
setFieldValue
(
'detailList'
,
value
)
let
detailData
=
value
computedALL
(
detailData
)
})
}
...
...
@@ -454,10 +453,11 @@ const Deatail: React.FC<{}> = () => {
break
;
case
2
:
//发货单
// memberName 收货方
let
{
deliveryAddresId
,
fullAddress
,
memberName
}
=
values
[
0
]
let
{
deliveryAddresId
,
fullAddress
,
memberName
,
}
=
values
[
0
]
setShipmentOrderID
(
id
)
actions
.
setFieldValue
(
'shipmentOrderCode'
,
orderNo
)
actions
.
setFieldValue
(
"receiverName"
,
memberName
)
actions
.
setFieldValue
(
"invoicesTypeId"
,
1
)
//发货单
actions
.
setFieldValue
(
"receiverAddressId"
,
deliveryAddresId
)
actions
.
setFieldValue
(
"receiverFullAddress"
,
fullAddress
)
setvisibleObj
({
...
visibleObj
,
ModalSeletOrder2
:
false
})
...
...
@@ -564,6 +564,8 @@ const Deatail: React.FC<{}> = () => {
</
Row
>
<
FormItem
editable=
{
false
}
name=
"receiverName"
label=
'收货方'
component=
{
Input
}
/>
<
FormItem
display=
{
false
}
editable=
{
false
}
name=
"receiverAddressId"
label=
'收货地址id'
component=
{
Input
}
/>
{
/* <FormItem display={false} editable={false} name="invoicesTypeId" label='订单类型' component={Input}/> */
}
<
FormItem
editable=
{
false
}
name=
"receiverFullAddress"
label=
'收货地址'
component=
{
Input
}
/>
<
FormItem
name=
"shipperAddressId"
label=
"发货地址"
dataSource=
{
shipperAddress
}
required
component=
{
Select
}
/>
</
Col
>
...
...
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