Commit 88e5f45e authored by shenshaokai's avatar shenshaokai

fix: 修复物料页面进去报错问题

parent 50c399b3
// jinfa0618 token
// jinfa1102 token 沿用518的
module.exports = [
{ name: 'LogisticsV2', token: '9d00f667e5f1ec2342134a3f1ecb27bc0e5b3cdaa46e4518d9cb04a2815f5baf', categoryIds: [0], }, // 物流能力v2
{ name: 'ProductV2', token: '3969a1870a57283277f8f906de4378dbe6c78591a8f46856c6647a49cab674cd', categoryIds: [0], }, // 商品服务V2
......@@ -18,5 +18,4 @@ module.exports = [
{ name: 'AfterServiceV2', token: '9726648495299eae8b8f7ce291c64124cc36173fa5089684ac63fcd1ba1cff62', categoryIds: [0], }, // 售后能力V2
{ name: 'ManageV2', token: '986ed1501673515ce3cd47f952ae89f75f1ee51f5ec8c66fd96b2d3cb0222c14', categoryIds: [0] }, // 平台后台v2
{ name: 'RuleEngineV2', token: 'ea0e2af9e48bfa0af5019baf4148da2dba5a397708b72f8b7cd31eb7380734bb', categoryIds: [0] }, // 规则引擎服务
]
......@@ -71,7 +71,7 @@ const fileTypeEnum = [
]
const MaterialAdd: React.FC<IProps> = (props: any) => {
const intl = useIntl();
const { id, lastTypeParams } = usePageStatus();
const { location: { state, query }, match } = props;
......@@ -104,7 +104,7 @@ const MaterialAdd: React.FC<IProps> = (props: any) => {
RequisRef.current.setVisible(true)
}
const RequisitionerBtn = <div className='connectBtn' onClick={handleOrder}><LinkOutlined style={{ marginRight: 4 }} />{intl.formatMessage({ id: 'purchaseRequisition.xuanze', defaultMessage: '选择' })}</div>
useEffect(() => {
if (query?.type === 'sourceData') {
formActions.setFieldState('sourceListCard', (state) => {
......@@ -660,6 +660,7 @@ const MaterialAdd: React.FC<IProps> = (props: any) => {
handleSearchUnit,
// className={styles.startText}
startText: <span>发货地</span>,
Requisitioner:Boolean(isedtails)?'':RequisitionerBtn,
limitDecimalPoint,
handleVendor,
fileTypeEnum
......@@ -782,7 +783,7 @@ const MaterialAdd: React.FC<IProps> = (props: any) => {
getProductCustomerGetCustomerCategoryById({ id: categoryId })
.then((data) => {
const { customerAttributeList } = data.data;
if (customerAttributeList?.length === 0) {
if (customerAttributeList?.length === 0) {
setHasProperties(false);
return;
}
......
......@@ -161,7 +161,7 @@ export const getSchema = (schema: ISchema | null): ISchema => {
showSearch: true,
filterOption: (input, option) => (option!.children as unknown as string).includes(input),
},
description: `{{desc()}}`
description: `{{brandDesc()}}`
},
category: {
title: intl.formatMessage({ id: 'material.category', defaultMessage: '品类' }),
......@@ -338,7 +338,7 @@ export const getSchema = (schema: ISchema | null): ISchema => {
}
},
},
},
images: {
type: 'object',
......
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