Commit f27a592b authored by 张子雨's avatar 张子雨

feat: 合同列表时间展示问题

parent 51590935
/* eslint-disable no-console */
import * as Sentry from '@sentry/react';
import localStorage from '@/utils/localStorage';
// process.env.SENTRY_ENV !== 'test' 加上测试环境不会报错
if (process.env.NODE_ENV === 'production' && process.env.SENTRY_ENV !== 'test') {
if (process.env.NODE_ENV === 'production') {
try {
Sentry.init({
dsn: 'https://b3f60c62e1234e26a5b851b9f26fba07@sentry.q-gp.com/34',
......
......@@ -362,6 +362,7 @@ class BusinessInfo extends Component {
<Checkbox.Group
options={businessModel}
onChange={e => this.onChangeBusinessModel(e)}
disabled={+mainCategoryId === carID}
/>,
)}
</FormItem>
......
......@@ -38,6 +38,25 @@ const ContractView = () => {
key: 'signDate',
align: 'center',
hideInSearch: true,
render: (val, data) => {
if (val?.length) {
let date = '';
val.forEach((item, index) => {
if (item && item.toString().length === 1) {
item = `0${item}`;
}
if ([0, 1].includes(index)) {
date += `${item}-`;
} else if ([3, 4].includes(index)) {
date += `${item}:`;
} else {
date += `${item} `;
}
});
return date;
}
return '-';
},
},
{
title: '合同状态',
......
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