Commit f32f274b authored by 卢均锐's avatar 卢均锐

fix: 修改结算单跳转链接

parent 8f6c4a9b
...@@ -17,12 +17,12 @@ import { message } from 'antd'; ...@@ -17,12 +17,12 @@ import { message } from 'antd';
import { getAuth } from '@/utils/auth'; import { getAuth } from '@/utils/auth';
const intl = getIntl(); const intl = getIntl();
const format = "YYYY-MM-DD HH:mm:ss" const format = "YYYY-MM-DD HH:mm:ss"
const URL_MAP = { // const URL_MAP = {
[PRODUCT_NOTICE_SETTLEMENT_DETAIL]: "productNoticeSettlementDetail", // [PRODUCT_NOTICE_SETTLEMENT_DETAIL]: "productNoticeSettlementDetail",
[LOGISTICS_DETAIL]: "logisticsDetail", // [LOGISTICS_DETAIL]: "logisticsDetail",
[ORDER_DETAIL]: "orderDetail", // [ORDER_DETAIL]: "orderDetail",
[CONTRACT_FUND_BILL]: '', // [CONTRACT_FUND_BILL]: '',
} // }
const STATUS_COLOR = ["default", "warning", "primary", "danger", "success"]; const STATUS_COLOR = ["default", "warning", "primary", "danger", "success"];
...@@ -149,22 +149,22 @@ function useHandleSettlementList() { ...@@ -149,22 +149,22 @@ function useHandleSettlementList() {
title: intl.formatMessage({id: 'balance.jiesuandanhao'}), title: intl.formatMessage({id: 'balance.jiesuandanhao'}),
dataIndex: 'settlementNo', dataIndex: 'settlementNo',
render: (text, record) => { render: (text, record) => {
const prefix = `/memberCenter/balance/accountsPayable/settlementList/` ; // const prefix = `/memberCenter/balance/accountsPayable/settlementList/` ;
const url = URL_MAP[record.orderType]; // const url = URL_MAP[record.orderType];
let fullUrl = `${prefix}${url}?id=${record.id}`; let fullUrl = ``;
switch (record.orderType) { switch (record.orderType) {
// 生产单 // 生产单
case 1: case 1:
fullUrl = `/memberCenter/balance/accountsPayable/settlementList/productNoticeSettlementDetail?id=${record.orderId}`; fullUrl = `/memberCenter/balance/accountsPayable/settlementList/productNoticeSettlementDetail?id=${record.id}`;
break; break;
// 物流单 // 物流单
case 2: case 2:
fullUrl = `/memberCenter/balance/accountsPayable/settlementList/logisticsDetail?id=${record.orderId}`; fullUrl = `/memberCenter/balance/accountsPayable/settlementList/logisticsDetail?id=${record.id}`;
break; break;
// 订单 // 订单
case 3: case 3:
case 4: case 4:
fullUrl = `/memberCenter/tranactionAbility/saleOrder/orderList/preview?orderNo=${record.orderNo}`; fullUrl = `/memberCenter/balance/accountsPayable/settlementList/orderDetail?id=${record.id}`;
break; break;
// 退货 // 退货
case 5: case 5:
...@@ -175,9 +175,6 @@ function useHandleSettlementList() { ...@@ -175,9 +175,6 @@ function useHandleSettlementList() {
case 7: case 7:
fullUrl = `/memberCenter/balance/businessRequestFunds/search/preview?id=${record.orderId}&no=${record.orderNo}`; fullUrl = `/memberCenter/balance/businessRequestFunds/search/preview?id=${record.orderId}&no=${record.orderNo}`;
break; break;
// case 7:
// window.open(`/memberCenter/balance/businessReconciliation/search/preview?id=${record.dataId}&no=${record.orderNo}`)
// break;
default: default:
break; break;
} }
......
...@@ -100,7 +100,6 @@ function useHandleSettlementList() { ...@@ -100,7 +100,6 @@ function useHandleSettlementList() {
// 订单 // 订单
case 3: case 3:
case 4: case 4:
// fullUrl = `/memberCenter/tranactionAbility/saleOrder/orderList/preview?orderNo=${record.orderNo}`;
fullUrl = `/memberCenter/balance/accountsPayable/settlementList/orderDetail?id=${record.id}` fullUrl = `/memberCenter/balance/accountsPayable/settlementList/orderDetail?id=${record.id}`
break; break;
// 退货 // 退货
...@@ -112,9 +111,6 @@ function useHandleSettlementList() { ...@@ -112,9 +111,6 @@ function useHandleSettlementList() {
case 7: case 7:
fullUrl = `/memberCenter/balance/businessRequestFundsCollaboration/search/preview?id=${record.orderId}&no=${record.orderNo}`; fullUrl = `/memberCenter/balance/businessRequestFundsCollaboration/search/preview?id=${record.orderId}&no=${record.orderNo}`;
break; break;
// case 7:
// window.open(`/memberCenter/balance/businessReconciliation/search/preview?id=${record.dataId}&no=${record.orderNo}`)
// break;
default: default:
break; break;
} }
......
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