Commit 43eab8d0 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents cc3554c8 b34ae61c
registry="http://npm.shushangyun.com" registry = "https://registry.npmjs.org/"
# registry = "https://registry.npmjs.org/" @linkseeks:registry="http://npm.shushangyun.com"
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
'balance.accountsReceivable.invoice.exportBtn':'Export', 'balance.accountsReceivable.invoice.exportBtn':'Export',
'balance.accountsReceivable.invoice.invoiceCreate.title':'Issuing an invoice', 'balance.accountsReceivable.invoice.invoiceCreate.title':'Issuing an invoice',
'balance.accountsReceivable.invoice.schema.orderNo':'Search order number', 'balance.accountsReceivable.invoice.schema.orderNo':'Search Doc number',
'balance.accountsReceivable.invoice.schema.orderAbstract':'Document Summary', 'balance.accountsReceivable.invoice.schema.orderAbstract':'Document Summary',
'balance.accountsReceivable.invoice.schema.orderStartTime':'Order time (start time)', 'balance.accountsReceivable.invoice.schema.orderStartTime':'Order time (start time)',
'balance.accountsReceivable.invoice.schema.orderEndTime':'Order time (end time)', 'balance.accountsReceivable.invoice.schema.orderEndTime':'Order time (end time)',
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
'balance.accountsReceivable.invoice.exportBtn': '내보내기', 'balance.accountsReceivable.invoice.exportBtn': '내보내기',
'balance.accountsReceivable.invoice.invoiceCreate.title': '영수증을 발급하다', 'balance.accountsReceivable.invoice.invoiceCreate.title': '영수증을 발급하다',
'balance.accountsReceivable.invoice.schema.orderNo': '주문 번호 검색', 'balance.accountsReceivable.invoice.schema.orderNo': '영수증 번호 검색',
'balance.accountsReceivable.invoice.schema.orderAbstract': '증빙서류 요약', 'balance.accountsReceivable.invoice.schema.orderAbstract': '증빙서류 요약',
'balance.accountsReceivable.invoice.schema.orderStartTime': '주문 시간(시작 시간)', 'balance.accountsReceivable.invoice.schema.orderStartTime': '주문 시간(시작 시간)',
'balance.accountsReceivable.invoice.schema.orderEndTime': '주문 시간(종료 시간)', 'balance.accountsReceivable.invoice.schema.orderEndTime': '주문 시간(종료 시간)',
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
'balance.accountsReceivable.invoice.exportBtn': '导出', 'balance.accountsReceivable.invoice.exportBtn': '导出',
'balance.accountsReceivable.invoice.invoiceCreate.title': '开具发票', 'balance.accountsReceivable.invoice.invoiceCreate.title': '开具发票',
'balance.accountsReceivable.invoice.schema.orderNo': '搜索订单号', 'balance.accountsReceivable.invoice.schema.orderNo': '搜索单据号',
'balance.accountsReceivable.invoice.schema.orderAbstract': '单据摘要', 'balance.accountsReceivable.invoice.schema.orderAbstract': '单据摘要',
'balance.accountsReceivable.invoice.schema.orderStartTime': '下单时间(开始时间)', 'balance.accountsReceivable.invoice.schema.orderStartTime': '下单时间(开始时间)',
'balance.accountsReceivable.invoice.schema.orderEndTime': '下单时间(结束时间)', 'balance.accountsReceivable.invoice.schema.orderEndTime': '下单时间(结束时间)',
......
...@@ -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;
} }
......
...@@ -14,12 +14,12 @@ import { ColumnsType } from 'antd/lib/table'; ...@@ -14,12 +14,12 @@ import { ColumnsType } from 'antd/lib/table';
import { getIntl } from 'umi'; import { getIntl } from 'umi';
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 KEY_MAP_TEXT = { const KEY_MAP_TEXT = {
[TO_BE_RECONCILED]: intl.formatMessage({id: 'balance.querenduizhangwancheng'}), [TO_BE_RECONCILED]: intl.formatMessage({id: 'balance.querenduizhangwancheng'}),
...@@ -85,22 +85,22 @@ function useHandleSettlementList() { ...@@ -85,22 +85,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/accountsReceivable/settlementList/'; // const prefix = '/memberCenter/balance/accountsReceivable/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:
...@@ -111,9 +111,6 @@ function useHandleSettlementList() { ...@@ -111,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;
} }
......
...@@ -53,6 +53,30 @@ export const schema: ISchema = { ...@@ -53,6 +53,30 @@ export const schema: ISchema = {
} }
} }
}, },
/** 预计付款时间 */
// "[startTime, endTime]": {
// type: 'object',
// "x-component": 'RangePicker',
// 'x-component-props': {
// allowClear: true,
// placeholder: [intl.formatMessage({id: 'balance.accountsReceivable.settlementList.schema.schema.startTime'}), intl.formatMessage({id: 'balance.accountsReceivable.settlementList.schema.schema.endTime'})],
// style: {
// minWidth: "320px"
// }
// }
// },
/** 实际付款时间 */
// "[startTime, endTime]": {
// type: 'object',
// "x-component": 'RangePicker',
// 'x-component-props': {
// allowClear: true,
// placeholder: [intl.formatMessage({id: 'balance.accountsReceivable.settlementList.schema.schema.startTime'}), intl.formatMessage({id: 'balance.accountsReceivable.settlementList.schema.schema.endTime'})],
// style: {
// minWidth: "320px"
// }
// }
// },
status: { status: {
type: 'string', type: 'string',
enum: [], enum: [],
......
...@@ -6,6 +6,7 @@ import { Modal } from 'antd'; ...@@ -6,6 +6,7 @@ import { Modal } from 'antd';
import { useIntl} from 'umi' import { useIntl} from 'umi'
import Color from './color'; import Color from './color';
import { changeProps, SelectedInfoType, STATE_PROPS, useSelector } from '@linkseeks/design-react'; import { changeProps, SelectedInfoType, STATE_PROPS, useSelector } from '@linkseeks/design-react';
import { usePageStatus } from '@/hooks/usePageStatus';
interface Iprops { interface Iprops {
extra?: React.ReactNode, extra?: React.ReactNode,
...@@ -18,6 +19,7 @@ type SettingPanelType = { ...@@ -18,6 +19,7 @@ type SettingPanelType = {
const Toolbar: React.FC<Iprops> = (props: Iprops) => { const Toolbar: React.FC<Iprops> = (props: Iprops) => {
const { pageConfig } = useSelector<SettingPanelType, STATE_PROPS>(['pageConfig']); const { pageConfig } = useSelector<SettingPanelType, STATE_PROPS>(['pageConfig']);
const { id } = usePageStatus();
const color = pageConfig?.[0]?.props?.backgroundColor; const color = pageConfig?.[0]?.props?.backgroundColor;
const intl = useIntl(); const intl = useIntl();
...@@ -26,7 +28,8 @@ const Toolbar: React.FC<Iprops> = (props: Iprops) => { ...@@ -26,7 +28,8 @@ const Toolbar: React.FC<Iprops> = (props: Iprops) => {
Modal.confirm({ Modal.confirm({
title: intl.formatMessage({ id: 'activityPage.confirmLeaveDecoratePage' }), title: intl.formatMessage({ id: 'activityPage.confirmLeaveDecoratePage' }),
onOk: () => { onOk: () => {
history.goBack() // history.goBack()
history.push(`/memberCenter/marketingAbility/activityPages/management/edit?id=${id}`)
}, },
}) })
}; };
......
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