Commit f6456f8f authored by LeeJiancong's avatar LeeJiancong

'处理报错'

parent a460f054
......@@ -3,7 +3,7 @@
* @Date: 2020-09-23 10:24:42
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-24 14:18:30
* @LastEditTime: 2020-09-24 14:21:32
* 外部流转记录
*/
import React, { Component,useRef,ReactNode } from 'react';
......@@ -70,18 +70,20 @@ export interface Params{
const Log: React.FC<Params> = (props) => {
const ref = useRef<any>({})
const fetchData = (params: any) => {
if(!props.id){
return []
}
//待提交新增物流单
if(props.type === 'Submit' ){
return new Promise((resolve, reject) => {
PublicApi.getLogisticsOrderWaitSubmitPageOrderLog({...params,orderId:props.id}).then(res => {
if(res.code === 1000){
resolve(res.data)
}
})
if(!props.id){
resolve([])
}else{
PublicApi.getLogisticsOrderWaitSubmitPageOrderLog({...params,orderId:props.id}).then(res => {
if(res.code === 1000){
resolve(res.data)
}
})
}
});
}
//物流单提交-物流单查询
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment