Commit 27eac8db authored by Bill's avatar Bill

Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev

parents 944badf6 52c22aec
...@@ -606,6 +606,44 @@ const AddLogistics: React.FC<{}> = () => { ...@@ -606,6 +606,44 @@ const AddLogistics: React.FC<{}> = () => {
}) })
} }
}, [memberInfo]) }, [memberInfo])
/**跳转到售后/订单的详情 */
const jumpOrderDetail = (id: any) => {
switch (Number(createType)) {
case 1:
switch (Number(relevanceType)) {
case 1:
window.open(`/memberCenter/tranactionAbility/saleOrder/readyAddLogisticsOrder/preview?id=${id}`)
break;
case 2:
window.open(`/memberCenter/afterService/exchangeApplication/exchangePrAddLogistics/detail?id=${id}`)
break;
case 3:
window.open(`/memberCenter/afterService/exchangeManage/exchangePrAddLogistics/detail?id=${id}`)
break;
case 4:
window.open(`/memberCenter/afterService/returnApplication/returnPrAddLogistics/detail?id=${id}`)
break;
}
break;
case 2:
window.open(`/memberCenter/tranactionAbility/saleOrder/readyAddLogisticsOrder/preview?id=${id}`)
break;
case 3:
window.open(`/memberCenter/handling/confirm/pendingDelivered/detail?id=${id}`)
break;
case 4:
window.open(`/memberCenter/afterService/exchangeApplication/exchangePrAddLogistics/detail?id=${id}`)
break;
case 5:
window.open(`/memberCenter/afterService/exchangeManage/exchangePrAddLogistics/detail?id=${id}`)
break;
case 6:
window.open(`/memberCenter/afterService/returnApplication/returnPrAddLogistics/detail?id=${id}`)
break;
}
}
return ( return (
<PageHeaderWrapper <PageHeaderWrapper
onBack={() => history.goBack()} onBack={() => history.goBack()}
...@@ -636,11 +674,13 @@ const AddLogistics: React.FC<{}> = () => { ...@@ -636,11 +674,13 @@ const AddLogistics: React.FC<{}> = () => {
<Form.Item label="物流单号" name='receiverName1'><span></span></Form.Item> <Form.Item label="物流单号" name='receiverName1'><span></span></Form.Item>
<Form.Item label='对应发货单号' name='shipmentOrderCode'> <Form.Item label='对应发货单号' name='shipmentOrderCode'>
<Search disabled={!!history.location.query.createType} readOnly value={Object.keys(query).length > 0 ? query.shipmentOrderCode : undefined} enterButton={<><LinkOutlined /> 选择</>} onSearch={() => setshippingvisible(true)} /> <Search disabled={!!history.location.query.createType} readOnly value={Object.keys(query).length > 0 ? query.shipmentOrderCode : undefined} enterButton={<><LinkOutlined /> 选择</>} onSearch={() => setshippingvisible(true)} />
{query.shipmentOrderCode && <Button type='link'>查看单号详情</Button>} {query.shipmentOrderCode && <Button type='link'
onClick={() => window.open(`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${query.shipmentOrderId}&preview=1`)}
>查看单号详情</Button>}
</Form.Item> </Form.Item>
<Form.Item label='对应订单号/售后单' name='relevanceOrderCode'> <Form.Item label='对应订单号/售后单' name='relevanceOrderCode'>
<Search disabled={!!history.location.query.createType} readOnly value={Object.keys(query).length > 0 ? query.relevanceOrderCode : undefined} enterButton={<><LinkOutlined /> 选择</>} onSearch={() => setinvoicesvisible(true)} /> <Search disabled={!!history.location.query.createType} readOnly value={Object.keys(query).length > 0 ? query.relevanceOrderCode : undefined} enterButton={<><LinkOutlined /> 选择</>} onSearch={() => setinvoicesvisible(true)} />
{query.relevanceOrderCode && <Button type='link'>查看单号详情</Button>} {query.relevanceOrderCode && <Button type='link' onClick={() => jumpOrderDetail(query.relevanceOrderId)}>查看单号详情</Button>}
</Form.Item> </Form.Item>
<Form.Item label="收货方" name='receiverName'><span>{query.receiverName}/{query.receiverPhone}</span></Form.Item> <Form.Item label="收货方" name='receiverName'><span>{query.receiverName}/{query.receiverPhone}</span></Form.Item>
<Form.Item label="收货地址" name='receiverFullAddress'> <Form.Item label="收货地址" name='receiverFullAddress'>
......
/* /*
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-07-30 17:23:48 * @Date: 2020-07-30 17:23:48
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-30 17:24:49 * @LastEditTime: 2020-07-30 17:24:49
*/ */
export default { export default {
default: { default: {
padding: '2px 5px', padding: '2px 5px',
background: 'rgba(244,245,247,1)', background: 'rgba(244,245,247,1)',
borderRadius: '4px' borderRadius: '4px'
}, },
confirm: { confirm: {
color: '#3F7ED2', color: '#3F7ED2',
padding: '2px 5px', padding: '2px 5px',
background: 'rgba(240, 248, 255, 1)', background: 'rgba(240, 248, 255, 1)',
borderRadius: '4px' borderRadius: '4px'
}, },
success: { success: {
color: '#00B37A', color: '#00B37A',
padding: '2px 5px', padding: '2px 5px',
background: 'rgba(235,247,242,1)', background: 'rgba(235,247,242,1)',
borderRadius: '4px' borderRadius: '4px'
}, },
warn: { warn: {
color: '#E63F3B', color: '#E63F3B',
padding: '2px 5px', padding: '2px 5px',
background: 'rgba(255,235,230,1)', background: 'rgba(255,235,230,1)',
borderRadius: '4px' borderRadius: '4px'
} },
} error: {
\ No newline at end of file color: '#ff0404',
padding: '2px 5px',
background: 'rgba(247,235,235,1)',
borderRadius: '4px'
}
}
...@@ -174,7 +174,8 @@ const OrderList: React.FC<ListProps> = (props) => { ...@@ -174,7 +174,8 @@ const OrderList: React.FC<ListProps> = (props) => {
render: (text: any, reconds: any) => { render: (text: any, reconds: any) => {
let component: ReactNode = null let component: ReactNode = null
if (text == 3) { if (text == 3) {
component = <><span style={statuStyle.success}>不接受物流单</span></> //外部状态1-待提交2-待确认3-不接受物流单4-接受物流单
component = <><span style={statuStyle.error}>不接受物流单</span></>
} else if (text == 4) { } else if (text == 4) {
component = <><span style={statuStyle.warn}>接受物流单</span></> component = <><span style={statuStyle.warn}>接受物流单</span></>
} else if (text == 2) { } else if (text == 2) {
...@@ -194,7 +195,7 @@ const OrderList: React.FC<ListProps> = (props) => { ...@@ -194,7 +195,7 @@ const OrderList: React.FC<ListProps> = (props) => {
<> <>
{ {
(record.status === 1 || record.status === 4) && (record.status === 1 || record.status === 3) &&
<Button type="link" onClick={() => toEdit(record.id)}>编辑</Button> <Button type="link" onClick={() => toEdit(record.id)}>编辑</Button>
} }
......
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