Commit 39ed1795 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 采购能力翻译

parent 76a81346
......@@ -10,7 +10,7 @@ import BASE_CONFIG from '../../../../../../../config/base.config.json'
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus';
import { omit } from '@/utils'
import { postContractContractSignSaleSignContractCreate } from '@/services/ContractV2Api'
import { useIntl } from 'umi';
import { getIntl } from 'umi';
const shopInfo = BASE_CONFIG.web.shopInfo
......@@ -26,7 +26,7 @@ const { pageStatus } = usePageStatus()
// 公开招标方式 发布商城弹窗
const PublicBidModal: React.FC<PublicBidModalProps> = (props) => {
const intl = useIntl();
const intl = getIntl();
const { currentRef, pageAction, ...restProps } = props
const { data } = useContext(BidDetailContext)
......
......@@ -17,7 +17,7 @@ import { searchBrandOptionEffect, searchCustomerCategoryOptionEffect } from '../
import { treeReduction } from '@/utils'
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus'
import { getProductCustomerGetCustomerCategoryTree, getProductGoodsGetGoodsList, getProductSelectGetSelectBrand, getProductSelectGetSelectCnUnit } from '@/services/ProductV2Api'
import { useIntl } from 'umi'
import { getIntl } from 'umi'
export interface RelevanceGoodDrawerProps {
type?: 'radio' | 'checkbox',
......@@ -42,7 +42,7 @@ export const RelevanceGoodDrawer: React.FC<RelevanceGoodDrawerProps> = ({
...restProps
}) => {
const intl = useIntl();
const intl = getIntl();
const cacheRef = useRef({
categorys: [],
......
......@@ -2,9 +2,9 @@ import React from 'react'
import moment from 'moment'
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus'
import { BidInStateTexts, BidOutStateTexts } from '@/constants/procurement'
import { useIntl } from 'umi';
import { getIntl } from 'umi';
const intl = useIntl();
const intl = getIntl();
/** 时间转时间戳 */
export const dataChangeUnix = (t) => moment(t).valueOf()
......
......@@ -6,7 +6,7 @@ import ProductTableCell, { ProductEditableRow } from '../components/productTable
import { useModalTable } from './useModalTable';
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus';
import { EyeOutlined, PlusOutlined } from '@ant-design/icons';
import { useIntl } from 'umi';
import { getIntl } from 'umi';
const { pageStatus } = usePageStatus()
......@@ -19,7 +19,7 @@ let orderModel = null;
*/
export const useMaterialTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActions, goodRef: any, drawerSchemaAction: ISchemaFormActions | ISchemaFormAsyncActions) => {
const { visible, setVisible, rowSelection, rowSelectionCtl } = useModalTable({type: 'checkbox'})
const intl = useIntl();
const intl = getIntl();
orderModel = ctx.getFieldValue('orderModel')
const handleDelete = (record) => {
......
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