|
@@ -42,6 +42,7 @@ import Superior from "../../components/common/superior";
|
|
import CheckboxPicker from "../../components/common/CheckboxPicker";
|
|
import CheckboxPicker from "../../components/common/CheckboxPicker";
|
|
import AddressPicker from "../../components/common/addressPicker"
|
|
import AddressPicker from "../../components/common/addressPicker"
|
|
import InteractList from "./components/InteractList";
|
|
import InteractList from "./components/InteractList";
|
|
|
|
+import CustomerProjectSelect from '../../components/common/CustomerProjectSelect';
|
|
|
|
|
|
class CustomerProfile extends Component {
|
|
class CustomerProfile extends Component {
|
|
$instance = getCurrentInstance();
|
|
$instance = getCurrentInstance();
|
|
@@ -83,7 +84,10 @@ class CustomerProfile extends Component {
|
|
interactShow: false,
|
|
interactShow: false,
|
|
interactShowType: '',
|
|
interactShowType: '',
|
|
interactTitle: '',
|
|
interactTitle: '',
|
|
- interactList: []
|
|
+ interactList: [],
|
|
|
|
+
|
|
|
|
+ checkCompShow: false,
|
|
|
|
+ checkCompList: []
|
|
};
|
|
};
|
|
this.queryByUidAll = this.queryByUidAll.bind(this);
|
|
this.queryByUidAll = this.queryByUidAll.bind(this);
|
|
this.update = this.update.bind(this);
|
|
this.update = this.update.bind(this);
|
|
@@ -124,6 +128,25 @@ class CustomerProfile extends Component {
|
|
this.setState({ dtails, addressPickerShow: false });
|
|
this.setState({ dtails, addressPickerShow: false });
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ handleSelComp() {
|
|
|
|
+ const { dtails } = this.state;
|
|
|
|
+ let externalInvestList = [];
|
|
|
|
+ if (dtails.externalInvestName) {
|
|
|
|
+ let externalInvestNameList = dtails.externalInvestName.split(',');
|
|
|
|
+ let externalInvestIdList = dtails.externalInvestId.split(',');
|
|
|
|
+ externalInvestList = externalInvestNameList.map((name, idx) => {
|
|
|
|
+ return { id: externalInvestIdList[idx] || 0, name }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.setState({ checkCompShow: true, checkCompList: externalInvestList });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ handleCheckCompConfirm(data) {
|
|
|
|
+ let externalInvestId = data.map(item => item.id).join(',');
|
|
|
|
+ let externalInvestName = data.map(item => item.name).join(',');
|
|
|
|
+ this.setState({ dtails: { ...this.state.dtails, externalInvestId, externalInvestName } });
|
|
|
|
+ }
|
|
|
|
+
|
|
handleOpenMultiplePicker(type) {
|
|
handleOpenMultiplePicker(type) {
|
|
let multiplePickerOptions = [];
|
|
let multiplePickerOptions = [];
|
|
let multiplePickerTitle = '';
|
|
let multiplePickerTitle = '';
|
|
@@ -342,12 +365,6 @@ class CustomerProfile extends Component {
|
|
channelIndicators: dtails.channelIndicators,
|
|
channelIndicators: dtails.channelIndicators,
|
|
};
|
|
};
|
|
} else {
|
|
} else {
|
|
- let externalInvestIdArr = [];
|
|
|
|
- if (!!dtails.externalInvestName) {
|
|
|
|
- externalInvestIdArr = dtails.externalInvestName.split('、').map(() => {
|
|
|
|
- return '0';
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
params = {
|
|
params = {
|
|
...params,
|
|
...params,
|
|
industry: dtails.industry,
|
|
industry: dtails.industry,
|
|
@@ -371,7 +388,7 @@ class CustomerProfile extends Component {
|
|
externalInvestCount: dtails.externalInvestCount,
|
|
externalInvestCount: dtails.externalInvestCount,
|
|
externalInvestIndustry: dtails.externalInvestIndustry,
|
|
externalInvestIndustry: dtails.externalInvestIndustry,
|
|
externalInvestIndustryName: dtails.externalInvestIndustryName,
|
|
externalInvestIndustryName: dtails.externalInvestIndustryName,
|
|
- externalInvestId: externalInvestIdArr.join(','),
|
|
+ externalInvestId: dtails.externalInvestId,
|
|
externalInvestName: dtails.externalInvestName,
|
|
externalInvestName: dtails.externalInvestName,
|
|
financialRevenue: dtails.financialRevenue,
|
|
financialRevenue: dtails.financialRevenue,
|
|
financialTax: dtails.financialTax,
|
|
financialTax: dtails.financialTax,
|
|
@@ -1134,9 +1151,9 @@ class CustomerProfile extends Component {
|
|
|
|
|
|
<View className="val" style={{display: 'flex'}}>
|
|
<View className="val" style={{display: 'flex'}}>
|
|
对外投资控股的企业名称:
|
|
对外投资控股的企业名称:
|
|
- <View className="link" onClick={() => this.addItemDialog('externalInvestName')}>
|
|
+ <View className="link" onClick={() => this.handleSelComp()}>
|
|
- { this.state.dtails.externalInvestName || '点击新增' }
|
|
+ {dtails.externalInvestName || '请选择'}
|
|
- </View>
|
|
+ </View>
|
|
</View>
|
|
</View>
|
|
|
|
|
|
<View className="tit">
|
|
<View className="tit">
|
|
@@ -2080,6 +2097,14 @@ class CustomerProfile extends Component {
|
|
onHandleToggleShow={this.toggleAddressPicker.bind(this)}
|
|
onHandleToggleShow={this.toggleAddressPicker.bind(this)}
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
+ <CustomerProjectSelect
|
|
|
|
+ isOpened={this.state.checkCompShow}
|
|
|
|
+ title="选择对外关联的控股企业"
|
|
|
|
+ checkedList={this.state.checkCompList}
|
|
|
|
+ onClose={() => { this.setState({ checkCompShow: false, checkCompList: [] }) }}
|
|
|
|
+ onConfirm={this.handleCheckCompConfirm.bind(this)}
|
|
|
|
+ />
|
|
|
|
+
|
|
</View>
|
|
</View>
|
|
);
|
|
);
|
|
}
|
|
}
|