update
This commit is contained in:
parent
dde90fb97b
commit
4b17ea4c90
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ant-design-pro",
|
"name": "ant-design-pro",
|
||||||
"version": "4.5.71",
|
"version": "4.5.73",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "An out-of-box UI solution for enterprise applications",
|
"description": "An out-of-box UI solution for enterprise applications",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -159,16 +159,6 @@ const Login: React.FC<LoginProps> = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
function successCallback(position: { coords: { latitude: any; longitude: any; }; }) {
|
|
||||||
const latitude = position.coords.latitude;
|
|
||||||
const longitude = position.coords.longitude;
|
|
||||||
}
|
|
||||||
|
|
||||||
function errorCallback(error) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function getBrowserVersion() {
|
function getBrowserVersion() {
|
||||||
const userAgent: string = navigator.userAgent;
|
const userAgent: string = navigator.userAgent;
|
||||||
let version: any = "";
|
let version: any = "";
|
||||||
|
|||||||
@ -2916,13 +2916,20 @@ const compareList: React.FC<{
|
|||||||
}}>
|
}}>
|
||||||
重新申请
|
重新申请
|
||||||
</Button> :
|
</Button> :
|
||||||
compareCurrent?.PEND_STATE === 0 ?
|
// pend_state 为 0 是原先的按钮判断 后面 是添加 当前如果是12月份 12月份还没过完 不让它进行 发起结算的操作
|
||||||
|
compareCurrent?.PEND_STATE === 0 && moment().format('YYYY/MM') !== compareCurrent?.STATISTICS_MONTH ?
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="确认提交结算?"
|
title="确认提交结算?"
|
||||||
onConfirm={async () => {
|
onConfirm={async () => {
|
||||||
console.log('compareCurrent', compareCurrent);
|
console.log('compareCurrent', compareCurrent);
|
||||||
console.log('lastMonthIsOverlastMonthIsOverlastMonthIsOver', lastMonthIsOver);
|
console.log('lastMonthIsOverlastMonthIsOverlastMonthIsOver', lastMonthIsOver);
|
||||||
console.log('MonthSettlementRefMonthSettlementRefMonthSettlementRef', MonthSettlementRef);
|
console.log('MonthSettlementRefMonthSettlementRefMonthSettlementRef', MonthSettlementRef);
|
||||||
|
|
||||||
|
// if (moment().format('YYYY/MM') === compareCurrent?.STATISTICS_MONTH) {
|
||||||
|
// message.error('未到结算日期,无法发起结算!')
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
|
||||||
if (lastMonthIsOver) {
|
if (lastMonthIsOver) {
|
||||||
// 是否显示下面四项为0的时候的询问框
|
// 是否显示下面四项为0的时候的询问框
|
||||||
let showNotice: any = false
|
let showNotice: any = false
|
||||||
|
|||||||
@ -2816,7 +2816,8 @@ const YearExamineDetailTable = ({ parentRow, currentApprovalstate, onRef, setIsS
|
|||||||
{/* 判断当期项目 是不是最后一期 是最后一期的话 就显示 历史期的数据 */}
|
{/* 判断当期项目 是不是最后一期 是最后一期的话 就显示 历史期的数据 */}
|
||||||
{/* <HistoricalProjects parentRow={parentRow} /> */}
|
{/* <HistoricalProjects parentRow={parentRow} /> */}
|
||||||
{
|
{
|
||||||
parentRow?.PROJECT_ENDDATE && parentRow?.ENDDATE && moment(parentRow?.PROJECT_ENDDATE).format('YYYY-MM-DD') === moment(parentRow?.ENDDATE).format('YYYY-MM-DD') && parentRow?.BUSINESSAPPROVAL_ID > 0 ?
|
// parentRow?.PROJECT_ENDDATE && parentRow?.ENDDATE && moment(parentRow?.PROJECT_ENDDATE).format('YYYY-MM-DD') === moment(parentRow?.ENDDATE).format('YYYY-MM-DD') && parentRow?.BUSINESSAPPROVAL_ID > 0 ?
|
||||||
|
parentRow?.ProjectExit ?
|
||||||
<HistoricalProjects parentRow={parentRow} pageType={'search'} /> : ""
|
<HistoricalProjects parentRow={parentRow} pageType={'search'} /> : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -561,7 +561,8 @@ const AfterSettlement = ({ parentRow, dataRef, onShow, setIsFinishCalibration, o
|
|||||||
</>
|
</>
|
||||||
|
|
||||||
{
|
{
|
||||||
parentRow?.PROJECT_ENDDATE && parentRow?.ENDDATE && moment(parentRow?.PROJECT_ENDDATE).format('YYYY-MM-DD') === moment(parentRow?.ENDDATE).format('YYYY-MM-DD') ?
|
// parentRow?.PROJECT_ENDDATE && parentRow?.ENDDATE && moment(parentRow?.PROJECT_ENDDATE).format('YYYY-MM-DD') === moment(parentRow?.ENDDATE).format('YYYY-MM-DD') ?
|
||||||
|
parentRow?.ProjectExit ?
|
||||||
<HistoricalProjects parentRow={parentRow} onRef={HistoricalProjectsRef} pageType={'edit'} />
|
<HistoricalProjects parentRow={parentRow} onRef={HistoricalProjectsRef} pageType={'edit'} />
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,8 @@ const settlementAccount: React.FC<{ currentUser: CurrentUser }> = (props) => {
|
|||||||
}
|
}
|
||||||
return record?.BUSINESSPROJECT_NAME ? indexStr > 0 ? <span>
|
return record?.BUSINESSPROJECT_NAME ? indexStr > 0 ? <span>
|
||||||
{
|
{
|
||||||
new Date(record?.PROJECT_ENDDATE).getTime() < new Date().getTime() ?
|
// new Date(record?.PROJECT_ENDDATE).getTime() < new Date().getTime() ?
|
||||||
|
record?.ProjectExit ?
|
||||||
<Tooltip title={record?.PROJECT_ENDDATE}>
|
<Tooltip title={record?.PROJECT_ENDDATE}>
|
||||||
<span style={{ marginLeft: '4px', color: '#faad14' }}>【退场项目】</span>
|
<span style={{ marginLeft: '4px', color: '#faad14' }}>【退场项目】</span>
|
||||||
</Tooltip> :
|
</Tooltip> :
|
||||||
@ -103,7 +104,8 @@ const settlementAccount: React.FC<{ currentUser: CurrentUser }> = (props) => {
|
|||||||
:
|
:
|
||||||
<span>
|
<span>
|
||||||
{
|
{
|
||||||
new Date(record?.PROJECT_ENDDATE).getTime() < new Date().getTime() ?
|
// new Date(record?.PROJECT_ENDDATE).getTime() < new Date().getTime() ?
|
||||||
|
record?.ProjectExit ?
|
||||||
<Tooltip title={record?.PROJECT_ENDDATE}>
|
<Tooltip title={record?.PROJECT_ENDDATE}>
|
||||||
<span style={{ marginLeft: '4px', color: '#faad14' }}>【退场项目】</span>
|
<span style={{ marginLeft: '4px', color: '#faad14' }}>【退场项目】</span>
|
||||||
</Tooltip> :
|
</Tooltip> :
|
||||||
|
|||||||
@ -212,7 +212,8 @@ export const handleNewPrint = (printName: string, title: string, neckBox?: any,
|
|||||||
// styles 获取页面的样式
|
// styles 获取页面的样式
|
||||||
// tableDom 要打印显示的表格 直接dom元素拿进来(处理好的)
|
// tableDom 要打印显示的表格 直接dom元素拿进来(处理好的)
|
||||||
// footer 打印内容底部的自定义样式 需求不一样 样式也不一样 外面写好样式和标签直接传入
|
// footer 打印内容底部的自定义样式 需求不一样 样式也不一样 外面写好样式和标签直接传入
|
||||||
const printWindow = window.open('', '_blank', 'width=1400,height=800');
|
// const printWindow = window.open('', '_blank', 'width=1400,height=800');
|
||||||
|
const printWindow = window.open('about:blank', '_blank', 'width=1400,height=800');
|
||||||
if (printWindow) {
|
if (printWindow) {
|
||||||
printWindow.document.open();
|
printWindow.document.open();
|
||||||
printWindow.document.write(`
|
printWindow.document.write(`
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// 由 scripts/writeVersion.js 自动生成
|
// 由 scripts/writeVersion.js 自动生成
|
||||||
export const VERSION = "4.5.71";
|
export const VERSION = "4.5.73";
|
||||||
export const GIT_HASH = "51b2e91";
|
export const GIT_HASH = "dde90fb";
|
||||||
export const BUILD_TIME = "2025-11-26T02:50:02.357Z";
|
export const BUILD_TIME = "2025-12-03T10:27:22.507Z";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user