|
|
@@ -50,6 +50,14 @@ const ContanctForm = props => {
|
|
|
}
|
|
|
}, [])
|
|
|
|
|
|
+ const defaultCompanyValue = {
|
|
|
+ districtIds: client.districtIds,
|
|
|
+ address: client.address,
|
|
|
+ ride: client.ride,
|
|
|
+ stay: client.stay,
|
|
|
+ landmarks: client.landmarks
|
|
|
+ }
|
|
|
+
|
|
|
const columns = useMemo(() => {
|
|
|
const pColumns = [
|
|
|
{
|
|
|
@@ -67,7 +75,9 @@ const ContanctForm = props => {
|
|
|
dataIndex: 'companyName',
|
|
|
label: '单位名称',
|
|
|
editCellType: 'custom',
|
|
|
- customCell: <ChangeCompanyInput dataSource={changeCopInputData} />,
|
|
|
+ customCell: (
|
|
|
+ <ChangeCompanyInput dataSource={changeCopInputData} defaultValue={defaultCompanyValue} />
|
|
|
+ ),
|
|
|
span: 24
|
|
|
},
|
|
|
{
|
|
|
@@ -175,7 +185,8 @@ const ContanctForm = props => {
|
|
|
tagType={TagTypeEnum.PERSONTAG}
|
|
|
tagColumn={TagDataTypeEnum.CLIENT}
|
|
|
checkCallBack={refreshClient}
|
|
|
- modeType={LabelModeType.column}>
|
|
|
+ modeType={LabelModeType.column}
|
|
|
+ >
|
|
|
<Add theme="filled" size="20" fill="#868e96" className="cursor-pointer" />
|
|
|
</PersonLabel>
|
|
|
</div>
|
|
|
@@ -202,7 +213,8 @@ const ContanctForm = props => {
|
|
|
tagType={TagTypeEnum.TEAMTAG}
|
|
|
tagColumn={TagDataTypeEnum.CLIENT}
|
|
|
checkCallBack={refreshClient}
|
|
|
- modeType={LabelModeType.column}>
|
|
|
+ modeType={LabelModeType.column}
|
|
|
+ >
|
|
|
<Add theme="filled" size="20" fill="#868e96" className="cursor-pointer" />
|
|
|
</PersonLabel>
|
|
|
</div>
|