|
@@ -1,6 +1,7 @@
|
|
|
import { Row, Col } from 'antd'
|
|
import { Row, Col } from 'antd'
|
|
|
import React, { useMemo } from 'react'
|
|
import React, { useMemo } from 'react'
|
|
|
import EditableForm from '@/components/EditableForm'
|
|
import EditableForm from '@/components/EditableForm'
|
|
|
|
|
+import { useModel } from 'umi'
|
|
|
import ChangeCompanyInput, {
|
|
import ChangeCompanyInput, {
|
|
|
ChangeCompMap
|
|
ChangeCompMap
|
|
|
} from '@/pages/Customer/Company/components/ChangeCompany'
|
|
} from '@/pages/Customer/Company/components/ChangeCompany'
|
|
@@ -8,9 +9,12 @@ import ChangeCompanyInput, {
|
|
|
import Step from './Step/index'
|
|
import Step from './Step/index'
|
|
|
|
|
|
|
|
const Form = props => {
|
|
const Form = props => {
|
|
|
|
|
+ const { initialState } = useModel('@@initialState')
|
|
|
const { business, groupStatus, updateKey } = props
|
|
const { business, groupStatus, updateKey } = props
|
|
|
|
|
|
|
|
const isEnd = useMemo(() => {
|
|
const isEnd = useMemo(() => {
|
|
|
|
|
+ const { staffId } = initialState.currentUser || {}
|
|
|
|
|
+ if (business.staffId !== staffId) return true
|
|
|
return groupStatus.findIndex(item => item.endProcess && item.selected) !== -1
|
|
return groupStatus.findIndex(item => item.endProcess && item.selected) !== -1
|
|
|
}, [groupStatus, business.businessStatusId])
|
|
}, [groupStatus, business.businessStatusId])
|
|
|
|
|
|