|
|
@@ -8,7 +8,7 @@ import ChangeCompanyInput, {
|
|
|
import Step from './Step/index'
|
|
|
|
|
|
const Form = props => {
|
|
|
- const { business, groupStatus, updateKey, isOwner } = props
|
|
|
+ const { updatePayload, business, groupStatus, isOwner } = props
|
|
|
|
|
|
const isEnd = useMemo(() => {
|
|
|
return groupStatus.findIndex(item => item.endProcess && item.selected) !== -1
|
|
|
@@ -19,16 +19,9 @@ const Form = props => {
|
|
|
customerId: business.customerId,
|
|
|
targetName: business.name,
|
|
|
dataId: business.id,
|
|
|
- actionPayload: ChangeCompMap.BUSINESS.key,
|
|
|
title: ChangeCompMap.BUSINESS.title
|
|
|
}
|
|
|
|
|
|
- // const changeStaffOpt = {
|
|
|
- // responsibleId: business.responsibleId,
|
|
|
- // dataId: business.id,
|
|
|
- // actionPayload: ChangeCompMap.BUSINESS.key,
|
|
|
- // text: business.responsible
|
|
|
- // }
|
|
|
const columns = [
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
|
@@ -40,7 +33,11 @@ const Form = props => {
|
|
|
label: '单位名称',
|
|
|
editCellType: 'custom',
|
|
|
customCell: (
|
|
|
- <ChangeCompanyInput dataSource={changeCopInputData} editable={!isOwner ? false : !isEnd} />
|
|
|
+ <ChangeCompanyInput
|
|
|
+ actionPayload={updatePayload}
|
|
|
+ dataSource={changeCopInputData}
|
|
|
+ editable={!isOwner ? false : !isEnd}
|
|
|
+ />
|
|
|
),
|
|
|
span: 24
|
|
|
},
|
|
|
@@ -94,7 +91,7 @@ const Form = props => {
|
|
|
dataSource={business}
|
|
|
columns={columns}
|
|
|
tartgetUrl="/business/update"
|
|
|
- type={updateKey}
|
|
|
+ type={updatePayload}
|
|
|
editable={!isOwner ? false : !isEnd}
|
|
|
/>
|
|
|
</div>
|