Commit ba047d1f authored by Bill's avatar Bill

fix: 修复结算单据请款单跳转链接

parent d4e7f1b7
......@@ -180,10 +180,10 @@ const BalancedRoute = {
hideInMenu: true,
},
{
path: '/memberCenter/balance/accountsPayable/settlementList/orderDetail',
path: '/memberCenter/balance/accountsReceivable/settlementList/orderDetail',
name: 'orderDetail',
icon: 'smile',
component: '@/pages/balance/accountsPayable/settlementList/orderDetail',
component: '@/pages/balance/accountsReceivable/settlementList/orderDetail',
hideInMenu: true,
},
// 应收账款管理 -> 开票管理
......
......@@ -45,3 +45,25 @@ export const SCORE_BENEFINCIARY = 5;
* 平台积分结算-付款方查看凭证 ,这是平台后台
*/
export const SCORE_PAYER = 6;
/**
* 结算单据类型-结算生产通知单
*/
export const PRODUCT_NOTICE_SETTLEMENT_DETAIL = 1;
/**
* 结算单据类型-物流单 logisticsDetail
*/
export const LOGISTICS_DETAIL = 2;
/**
* 结算单据类型-订单详情
*/
export const ORDER_DETAIL = 3
/**
* 结算单据类型-合同请款单
*/
export const CONTRACT_FUND_BILL = 6
import EyePreview from '@/components/EyePreview';
import StatusTag from '../components/StatusTag';
import { TO_BE_RECONCILED, TO_BE_PAY, TO_BE_COLLECTED, COMPLETED } from '../common/constants';
import { TO_BE_RECONCILED, TO_BE_PAY, TO_BE_COLLECTED, COMPLETED, PRODUCT_NOTICE_SETTLEMENT_DETAIL, LOGISTICS_DETAIL, ORDER_DETAIL, CONTRACT_FUND_BILL } from '../common/constants';
import { priceFormat } from '@/utils/numberFomat'
// import StatusTag from '@/components/StatusTag';
......@@ -11,10 +11,10 @@ import moment from 'moment';
type BalanceInfoType = { id: number, settlementId: number, roleId: number }
const format = "YYYY-MM-DD HH:mm:ss"
const URL_MAP = {
1: "productNoticeSettlementDetail",
2: "logisticsDetail",
3: "orderDetail",
4: '',
[PRODUCT_NOTICE_SETTLEMENT_DETAIL]: "productNoticeSettlementDetail",
[LOGISTICS_DETAIL]: "logisticsDetail",
[ORDER_DETAIL]: "orderDetail",
[CONTRACT_FUND_BILL]: '',
}
function useFetchColumns(mode: 'payable' | 'receiveable') {
......@@ -123,8 +123,8 @@ function useFetchColumns(mode: 'payable' | 'receiveable') {
const prefix = mode === 'payable' ? `/memberCenter/balance/accountsPayable/settlementList/` : '/memberCenter/balance/accountsReceivable/settlementList/';
const url = URL_MAP[record.orderType];
let fullUrl = `${prefix}${url}?id=${record.id}`;
if(record.orderType === 4) {
fullUrl = `/memberCenter/contract/funds/bill/details?applyId=${record.id}`;
if(record.orderType === CONTRACT_FUND_BILL) {
fullUrl = `/memberCenter/contract/funds/bill/details?applyId=${record.orderId}`;
}
return (
<EyePreview url={fullUrl} >
......
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