Commit ad00a837 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修复执行明细点订单号跳转

parent 4dd1c415
...@@ -166,7 +166,13 @@ const DetialLayout = () => { ...@@ -166,7 +166,13 @@ const DetialLayout = () => {
{ {
title: '单据号', title: '单据号',
key: 'orderId', key: 'orderId',
dataIndex: 'orderId' dataIndex: 'orderId',
render: (_text, _r) => (
<>
{_r.recordType === 1 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=${_r.skuId}`)}>{_r.skuId}</Button>}
{_r.recordType === 2 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`)}>{_r.orderNo}</Button>}
</>
)
}, },
{ {
title: '单据类型', title: '单据类型',
...@@ -373,7 +379,7 @@ const DetialLayout = () => { ...@@ -373,7 +379,7 @@ const DetialLayout = () => {
'[startTime,endTime]': { '[startTime,endTime]': {
type: 'daterange', type: 'daterange',
'x-component-props': { 'x-component-props': {
placeholder: [`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian' })}`, `${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian' })}`], placeholder: [`${intl.formatMessage({ id: 'paltformSign.theStartTime' })}`, `${intl.formatMessage({ id: 'paltformSign.theEndOfTime' })}`],
allowClear: true, allowClear: true,
style: { style: {
width: 240, width: 240,
......
...@@ -164,7 +164,13 @@ const DetialLayout = () => { ...@@ -164,7 +164,13 @@ const DetialLayout = () => {
{ {
title: '单据号', title: '单据号',
key: 'orderId', key: 'orderId',
dataIndex: 'orderId' dataIndex: 'orderId',
render: (_text, _r) => (
<>
{_r.recordType === 1 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=${_r.skuId}`)}>{_r.skuId}</Button>}
{_r.recordType === 2 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`)}>{_r.orderNo}</Button>}
</>
)
}, },
{ {
title: '单据类型', title: '单据类型',
...@@ -179,7 +185,7 @@ const DetialLayout = () => { ...@@ -179,7 +185,7 @@ const DetialLayout = () => {
{ {
title: '客户名称', title: '客户名称',
key: 'memberName', key: 'memberName',
dataIndex: 'memberName' dataIndex: 'memberName',
}, },
{ {
title: '单据时间', title: '单据时间',
...@@ -371,7 +377,7 @@ const DetialLayout = () => { ...@@ -371,7 +377,7 @@ const DetialLayout = () => {
'[startTime,endTime]': { '[startTime,endTime]': {
type: 'daterange', type: 'daterange',
'x-component-props': { 'x-component-props': {
placeholder: [`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian' })}`, `${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian' })}`], placeholder: [`${intl.formatMessage({ id: 'paltformSign.theStartTime' })}`, `${intl.formatMessage({ id: 'paltformSign.theEndOfTime' })}`],
allowClear: true, allowClear: true,
style: { style: {
width: 240, width: 240,
......
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