|
@@ -5,18 +5,14 @@ import $ from 'jquery/src/ajax';
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
import './myClient.less';
|
|
import './myClient.less';
|
|
import QueryCustomer from './identityAuditsOne.jsx';
|
|
import QueryCustomer from './identityAuditsOne.jsx';
|
|
-import { citySelect, provinceList, areaSelect } from '../../../NewDicProvinceList';
|
|
|
|
|
|
+import { citySelect, provinceList, areaSelect } from '../../../areaList';
|
|
|
|
+import {getProvinceList} from '../../../addressList';
|
|
const { Column, ColumnGroup } = Table;
|
|
const { Column, ColumnGroup } = Table;
|
|
const TabPane = Tabs.TabPane;
|
|
const TabPane = Tabs.TabPane;
|
|
const monthFormat = 'YYYY/MM';
|
|
const monthFormat = 'YYYY/MM';
|
|
import CustomerDetail from './myClientDesc.jsx';
|
|
import CustomerDetail from './myClientDesc.jsx';
|
|
import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
|
|
import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
|
|
import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
|
|
import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
//图片组件
|
|
//图片组件
|
|
const PicturesWalls = React.createClass({
|
|
const PicturesWalls = React.createClass({
|
|
getInitialState() {
|
|
getInitialState() {
|
|
@@ -667,10 +663,16 @@ const PublicCustomer = Form.create()(React.createClass({
|
|
}.bind(this));
|
|
}.bind(this));
|
|
},
|
|
},
|
|
componentWillMount() {
|
|
componentWillMount() {
|
|
-
|
|
|
|
|
|
+ let areaArr= getProvinceList();
|
|
|
|
+ let Citys=citySelect(areaArr);
|
|
|
|
+ let Areas=areaSelect(areaArr);
|
|
|
|
+ this.setState({
|
|
|
|
+ City: Citys,
|
|
|
|
+ Area: Areas
|
|
|
|
+ });
|
|
//城市
|
|
//城市
|
|
let Province = [];
|
|
let Province = [];
|
|
- provinceList.map(function(item) {
|
|
|
|
|
|
+ areaArr.map(function(item) {
|
|
var id = String(item.id)
|
|
var id = String(item.id)
|
|
Province.push(
|
|
Province.push(
|
|
<Select.Option value={id} key={item.name}>{item.name}</Select.Option>
|
|
<Select.Option value={id} key={item.name}>{item.name}</Select.Option>
|
|
@@ -1367,7 +1369,7 @@ const PublicCustomer = Form.create()(React.createClass({
|
|
{this.state.Provinces}
|
|
{this.state.Provinces}
|
|
</Select>
|
|
</Select>
|
|
<span style={{marginRight:'10px'}}>
|
|
<span style={{marginRight:'10px'}}>
|
|
- <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
|
|
|
|
|
|
+ <Cascader options={this.state.City} value={this.state.addressSearch} placeholder="选择城市"
|
|
onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
|
|
onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
|
|
</span>
|
|
</span>
|
|
<span style={{marginRight:'10px'}}>客户类型:</span>
|
|
<span style={{marginRight:'10px'}}>客户类型:</span>
|
|
@@ -1531,7 +1533,7 @@ const PublicCustomer = Form.create()(React.createClass({
|
|
wrapperCol={{ span: 18 }}
|
|
wrapperCol={{ span: 18 }}
|
|
label="省-市-区"
|
|
label="省-市-区"
|
|
>
|
|
>
|
|
- <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
|
|
|
|
|
|
+ <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
<span style={{color:'red',marginLeft:'15px'}}>*</span>
|
|
<span style={{color:'red',marginLeft:'15px'}}>*</span>
|
|
</FormItem>
|
|
</FormItem>
|