Commit a6e3ea2f authored by 陈万宝's avatar 陈万宝

Merge branch 'feature/20230327_public_takeaway' of...

Merge branch 'feature/20230327_public_takeaway' of http://git.quantgroup.cn/ui/merchant-manage-ui into feature/20230327_public_takeaway
parents 944b0885 ef576999
/* eslint-disable no-console */ /* eslint-disable no-console */
import * as Sentry from '@sentry/react'; import * as Sentry from '@sentry/react';
import localStorage from '@/utils/localStorage'; 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 { try {
Sentry.init({ Sentry.init({
dsn: 'https://b3f60c62e1234e26a5b851b9f26fba07@sentry.q-gp.com/34', dsn: 'https://b3f60c62e1234e26a5b851b9f26fba07@sentry.q-gp.com/34',
......
...@@ -127,10 +127,11 @@ const Takeaway = options => { ...@@ -127,10 +127,11 @@ const Takeaway = options => {
openModal('stock'); openModal('stock');
}; };
// 编辑 // 编辑
const onEdit = ({ spuId }) => { const onEdit = ({ spuId, skuId }) => {
options.handleEdit({ options.handleEdit({
shopId, shopId,
spuId, spuId,
skuId,
}); });
}; };
// 新建商品 // 新建商品
......
...@@ -362,6 +362,7 @@ class BusinessInfo extends Component { ...@@ -362,6 +362,7 @@ class BusinessInfo extends Component {
<Checkbox.Group <Checkbox.Group
options={businessModel} options={businessModel}
onChange={e => this.onChangeBusinessModel(e)} onChange={e => this.onChangeBusinessModel(e)}
disabled={+mainCategoryId === carID}
/>, />,
)} )}
</FormItem> </FormItem>
...@@ -807,7 +808,7 @@ class BusinessInfo extends Component { ...@@ -807,7 +808,7 @@ class BusinessInfo extends Component {
</Col> </Col>
<Col span={5}> <Col span={5}>
<FormItem> <FormItem>
{getFieldDecorator('legalPersonPeriod', { {getFieldDecorator('checked', {
initialValue: businessInfo.checked, initialValue: businessInfo.checked,
})( })(
<Checkbox.Group <Checkbox.Group
......
...@@ -38,6 +38,25 @@ const ContractView = () => { ...@@ -38,6 +38,25 @@ const ContractView = () => {
key: 'signDate', key: 'signDate',
align: 'center', align: 'center',
hideInSearch: true, 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: '合同状态', 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