| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246 | 
							- import React, { Component } from "react";
 
- import { View, Input, Button, Text, Picker, RadioGroup, Label, Radio } from "@tarojs/components";
 
- import Taro, { getCurrentInstance } from "@tarojs/taro";
 
- import { getProvince } from '../../utils/tools/index'
 
- import {
 
-   AtSearchBar,
 
-   AtTextarea,
 
-   AtModal,
 
-   AtModalHeader,
 
-   AtModalContent,
 
-   AtModalAction,
 
-   AtInput,
 
-   AtButton,
 
-   AtInputNumber
 
- } from "taro-ui";
 
- import Skeleton from "taro-skeleton";
 
- import {
 
-   queryByUidAll,
 
-   updateUser,
 
-   addOneContact,
 
-   findCustomerContacts,
 
-   updateMainContact,
 
-   limitUser,
 
-   getBusinessProjectByName,
 
-   addProject,
 
-   queryProjectList,
 
-   delProject
 
- } from "../../utils/servers/servers";
 
- import "./index.less";
 
- import "taro-ui/dist/style/components/textarea.scss";
 
- import "taro-ui/dist/style/components/modal.scss";
 
- import "taro-ui/dist/style/components/timeline.scss";
 
- import "taro-ui/dist/style/components/calendar.scss";
 
- import "taro-ui/dist/style/components/input.scss";
 
- import "taro-ui/dist/style/components/search-bar.scss";
 
- import MessageNoticebar from "../../components/common/messageNoticebar";
 
- import { industry, channelTypeList, yearList, addressList } from '../../utils/tools/config';
 
- import { getChannel } from "../../utils/tools";
 
- import Superior from "../../components/common/superior";
 
- import CheckboxPicker from "../../components/common/CheckboxPicker";
 
- import AddressPicker from "../../components/common/addressPicker"
 
- import InteractList from "./components/InteractList";
 
- import CustomerProjectSelect from '../../components/common/CustomerProjectSelect';
 
- import address from '../../utils/tools/city.js'
 
- class CustomerProfile extends Component {
 
-   $instance = getCurrentInstance();
 
-   constructor(props) {
 
-     super(props);
 
-     this.state = {
 
-       upType: -1,
 
-       isOpened: false,
 
-       dtails: {},
 
-       projectList: [],
 
-       info: {},
 
-       sector: {},
 
-       isAdd: false,
 
-       obj: {},
 
-       userList: [],
 
-       allProjectList: [],
 
-       options: [],
 
-       checkProject: [],
 
-       checkOptions: [],
 
-       isSuperior: false,
 
-       channe: {},
 
-       isMask: false,
 
-       addressPickerShow: false,
 
-       region: [],
 
-       customItem: [],
 
-       multiplePickerShow: false,
 
-       multiplePickerTitle: '',
 
-       multiplePickerType: '',
 
-       multiplePickerOptions: [],
 
-       multiplePickerCheckedList: [],
 
-       addItemShow: false,
 
-       addItemType: '',
 
-       addItemTitle: '',
 
-       addItemInputVal: '',
 
-       interactShow: false,
 
-       interactShowType: '',
 
-       interactTitle: '',
 
-       interactList: [],
 
-       checkCompShow: false,
 
-       checkCompList: [],
 
-       currAddress: [],
 
-       pageIsReadonly: false
 
-     };
 
-     this.queryByUidAll = this.queryByUidAll.bind(this);
 
-     this.update = this.update.bind(this);
 
-     this.add = this.add.bind(this);
 
-     this.getUserList = this.getUserList.bind(this);
 
-     this.getBusinessProjectByName = this.getBusinessProjectByName.bind(this);
 
-     this.onSearchChange = this.onSearchChange.bind(this);
 
-     this.handleOpenMultiplePicker = this.handleOpenMultiplePicker.bind(this);
 
-     this.handleMultipleConfirm = this.handleMultipleConfirm.bind(this);
 
-     this.handleAddItemSave = this.handleAddItemSave.bind(this);
 
-     this.handleCloseAddItemDialog = this.handleCloseAddItemDialog.bind(this);
 
-   }
 
-   componentDidMount() {
 
-     this.setState({
 
-       isMask: false
 
-     })
 
-     this.queryByUidAll();
 
-     this.getProjectList();
 
-     if (!this.isLogin()) {
 
-       Taro.setStorageSync('currentPage', `/pages/customerProfile/index?id=${this.$instance.router.params.id}`)
 
-     }
 
-     let paramReadonly = this.$instance.router.params.readonly;
 
-     this.setState({ pageIsReadonly: paramReadonly ? Boolean(paramReadonly) : false });
 
-   }
 
-   addCommas(num) {
 
-     let newNum = num.toString().replace(/,/g, '');
 
-     if (num.toString().length > 1) {
 
-       newNum = newNum.toString().replace(/^0+/, '');
 
-     }
 
-     return newNum.replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
 
-   }
 
-   openAddressPicker() {
 
-     const { dtails } = this.state;
 
-     let currAddress = [];
 
-     if (dtails.locationProvince && dtails.locationCity && dtails.locationArea) {
 
-       let provIdx = 0, cityIdx = 0, areaIdx = 0;
 
-       addressList.map((provItem, idx1) => {
 
-         if (provItem.id == dtails.locationProvince) {
 
-           provIdx = idx1;
 
-           provItem.cityList.map((cityItem, idx2) => {
 
-             if (cityItem.id == dtails.locationCity) {
 
-               cityIdx = idx2;
 
-               cityItem.areaList.map((areaItem, idx3) => {
 
-                 if (areaItem.id == dtails.locationArea) {
 
-                   areaIdx = idx3;
 
-                 }
 
-               })
 
-             }
 
-           })
 
-         }
 
-       })
 
-       currAddress = [provIdx, cityIdx, areaIdx];
 
-     }
 
-     this.setState({ addressPickerShow: true, currAddress })
 
-   }
 
-   toggleAddressPicker(e) {
 
-     if (!Object.keys(e).length) {
 
-       this.setState({ addressPickerShow: false });
 
-       return;
 
-     }
 
-     const addressIds = getProvince(e.province, e.city, e.area);
 
-     const { dtails } = this.state;
 
-     dtails.locationProvince = addressIds[0];
 
-     dtails.locationProvinceName = e.province;
 
-     dtails.locationCity = addressIds[1];
 
-     dtails.locationCityName = e.city;
 
-     dtails.locationArea = addressIds[2];
 
-     dtails.locationAreaName = e.area;
 
-     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) {
 
-     let multiplePickerOptions = [];
 
-     let multiplePickerTitle = '';
 
-     let multiplePickerCheckedList = [];
 
-     const { dtails, info } = this.state;
 
-     switch (type) {
 
-       case 'industry':
 
-         // 企业所属行业
 
-         multiplePickerOptions = industry;
 
-         multiplePickerCheckedList = !!dtails.industry ? dtails.industry.toString().split(',') : [];
 
-         multiplePickerTitle = '请选择企业所属行业';
 
-         break;
 
-       case 'externalInvestIndustry':
 
-         // 对外投资控股的行业
 
-         multiplePickerOptions = industry;
 
-         multiplePickerCheckedList = !!dtails.externalInvestIndustry ? dtails.externalInvestIndustry.toString().split(',') : [];
 
-         multiplePickerTitle = '请选择对外投资控股的行业';
 
-         break;
 
-       case 'examineStatusOther':
 
-         // 复审年份
 
-         multiplePickerOptions = yearList;
 
-         multiplePickerCheckedList = info.examineStatusOther ? info.examineStatusOther.split(',') : [];
 
-         multiplePickerTitle = '请选择年份';
 
-         break;
 
-       case 'buyStatusOther':
 
-         // 复购/复审年份
 
-         multiplePickerOptions = yearList;
 
-         multiplePickerCheckedList = info.buyStatusOther ? info.buyStatusOther.split(',') : [];
 
-         multiplePickerTitle = '请选择年份';
 
-         break;
 
-       default:
 
-         break;
 
-     }
 
-     this.setState({
 
-       multiplePickerShow: true,
 
-       multiplePickerType: type,
 
-       multiplePickerTitle,
 
-       multiplePickerOptions,
 
-       multiplePickerCheckedList: multiplePickerCheckedList.map(item => Number(item))
 
-     })
 
-   }
 
-   handleMultipleConfirm(selectedIds, selectedLabels) {
 
-     const { multiplePickerType, dtails, info } = this.state;
 
-     switch (multiplePickerType) {
 
-       case "industry":
 
-         // 企业所属行业
 
-         dtails.industry = selectedIds.join(',');
 
-         dtails.industryName = selectedLabels.join(',');
 
-         this.setState({ dtails })
 
-         break;
 
-       case "externalInvestIndustry":
 
-         // 对外投资控股的行业
 
-         dtails.externalInvestIndustry = selectedIds.join(',');
 
-         dtails.externalInvestIndustryName = selectedLabels.join(',');
 
-         this.setState({ dtails })
 
-         break;
 
-       case 'examineStatusOther':
 
-         info.examineStatusOther = selectedIds.join(',');
 
-         this.setState({ info });
 
-         break;
 
-       case 'buyStatusOther':
 
-         info.buyStatusOther = selectedIds.join(',');
 
-         this.setState({ info });
 
-         break;
 
-       default:
 
-         break;
 
-     }
 
-   }
 
-   bindRegionChange(e) {
 
-     this.setState({
 
-       region: e.detail.value
 
-     })
 
-   }
 
-   isLogin() {
 
-     return !!Taro.getStorageSync('userInfor');
 
-   }
 
-   onShareAppMessage() {
 
-     this.limitUser();
 
-     return {
 
-       title: "客户档案",
 
-       path: "/pages/customerProfile/index?id=" + this.$instance.router.params.id,
 
-     };
 
-   }
 
-   // 客户档案详情
 
-   queryByUidAll(updateType) {
 
-     queryByUidAll(
 
-       this.$instance.router.params.notRequired,
 
-       { id: this.$instance.router.params.id, }
 
-     )
 
-       .then((v) => {
 
-         if (v.error.length === 0) {
 
-           if (updateType === 'updateContact') {
 
-             // 只更新面谈联系信息
 
-             this.setState({ dtails: { ...this.state.dtails, contactList: v.data.contactList } });
 
-             return;
 
-           }
 
-           let dtailsData = {
 
-             ...v.data,
 
-             companyCount: this.addCommas(v.data.companyCount || 0),
 
-             socialSecurityCount: this.addCommas(v.data.socialSecurityCount || 0),
 
-             externalInvestCount: this.addCommas(v.data.externalInvestCount || 0),
 
-             financialRevenue: this.addCommas(v.data.financialRevenue || 0),
 
-             financialTax: this.addCommas(v.data.financialTax || 0),
 
-             financialProperty: this.addCommas(v.data.financialProperty || 0),
 
-             financialRd: this.addCommas(v.data.financialRd || 0),
 
-             enterpriseCount: this.addCommas(v.data.enterpriseCount || 0),
 
-             earlyCommunication: '',
 
-             customerDemand: '',
 
-             interviewIdeas: '',
 
-             interviewPurpose: '',
 
-             interviewRecommend: '',
 
-             interviewFeedback: '',
 
-             followUpPlan: ''
 
-           }
 
-           let patentCount = this.countZlNum(dtailsData);
 
-           this.setState({
 
-             dtails: { ...dtailsData, patentCount }
 
-           })
 
-         } else {
 
-           setTimeout(() => {
 
-             Taro.navigateBack({
 
-               delta: 1
 
-             })
 
-           }, 1800);
 
-           Taro.showToast({
 
-             title: v.error[0].message,
 
-             icon: "none",
 
-             duration: 1800,
 
-           });
 
-         }
 
-       })
 
-       .catch((err) => {
 
-         Taro.showToast({ title: "系统错误,请稍后再试", icon: "none" });
 
-       });
 
-   }
 
-   validParams(params) {
 
-     const { dtails } = this.state;
 
-     let flag = true;
 
-     let message = '';
 
-     if (dtails.newChannel == 1) {
 
-       // 渠道客户
 
-       if (!params.channelType) {
 
-         flag = false;
 
-         message = '请选择渠道性质';
 
-       } else if (!params.enterpriseCount) {
 
-         flag = false;
 
-         message = '请输入渠道所覆盖企业数';
 
-       } else if (!params.channelIndicators) {
 
-         flag = false;
 
-         message = '请输入渠道考核指标';
 
-       }
 
-     } else {
 
-       if (!params.locationProvince) {
 
-         message = '请选择企业所在地省市区';
 
-         flag = false;
 
-       } else if (!params.industry) {
 
-         message = '请选择企业所属行业';
 
-         flag = false;
 
-       } else if (!params.businessScope) {
 
-         message = '主营产品不能为空';
 
-         flag = false;
 
-       } else if (params.companyCount === '' || params.companyCount === undefined || params.companyCount === null) {
 
-         message = '请输入母/子公司数';
 
-         flag = false;
 
-       } else if (params.socialSecurityCount === '' || params.socialSecurityCount === undefined || params.socialSecurityCount === null) {
 
-         message = '请输入社保人数,并且不能为0';
 
-         flag = false;
 
-       } else if (!Number(params.financialRevenue)) {
 
-         message = '请输入营收数据,并且不能为0';
 
-         flag = false;
 
-       } else if (!Number(params.financialTax)) {
 
-         message = '请输入税收数据,并且不能为0';
 
-         flag = false;
 
-       } else if (!Number(params.financialProperty)) {
 
-         message = '请输入资产数据,并且不能为0';
 
-         flag = false;
 
-       } else if (!Number(params.financialRd)) {
 
-         message = '请输入研发费用,并且不能为0';
 
-         flag = false;
 
-       }
 
-     }
 
-     return { flag, message };
 
-   }
 
-   onSaveAllData() {
 
-     const { dtails } = this.state;
 
-     let params = {
 
-       id: dtails.id,
 
-       uid: dtails.uid,
 
-       locationProvince: dtails.locationProvince,
 
-       locationProvinceName: dtails.locationProvinceName,
 
-       locationCity: dtails.locationCity,
 
-       locationCityName: dtails.locationCityName,
 
-       locationArea: dtails.locationArea,
 
-       locationAreaName: dtails.locationAreaName,
 
-       type: 0, // 1、更新档案和面谈,0、只更新档案
 
-     };
 
-     if (dtails.newChannel == 1) {
 
-       // 渠道客户
 
-       params = {
 
-         ...params,
 
-         channelType: dtails.channelType,
 
-         enterpriseCount: dtails.enterpriseCount.replace(/,/g, ''),
 
-         channelIndicators: dtails.channelIndicators,
 
-       };
 
-     } else {
 
-       params = {
 
-         ...params,
 
-         industry: dtails.industry,
 
-         industryName: dtails.industryName,
 
-         //     earlyCommunication: dtails.earlyCommunication,
 
-         //     customerDemand: dtails.customerDemand,
 
-         //     interviewIdeas: dtails.interviewIdeas,
 
-         //     interviewPurpose: dtails.interviewPurpose,
 
-         //     interviewRecommend: dtails.interviewRecommend,
 
-         //     interviewFeedback: dtails.interviewFeedback,
 
-         //     followUpPlan: dtails.followUpPlan,
 
-         patentCount: dtails.patentCount,
 
-         inventionPatentCount: dtails.inventionPatentCount,
 
-         utilityModelCount: dtails.utilityModelCount,
 
-         appearancePatentCount: dtails.appearancePatentCount,
 
-         softwareWorksCount: dtails.softwareWorksCount,
 
-         otherCount: dtails.otherCount,
 
-         //     financialData: dtails.financialData,
 
-         companyCount: dtails.companyCount.replace(/,/g, ''),
 
-         socialSecurityCount: dtails.socialSecurityCount.replace(/,/g, ''),
 
-         externalInvestCount: dtails.externalInvestCount.replace(/,/g, ''),
 
-         externalInvestIndustry: dtails.externalInvestIndustry,
 
-         externalInvestIndustryName: dtails.externalInvestIndustryName,
 
-         externalInvestId: dtails.externalInvestId,
 
-         externalInvestName: dtails.externalInvestName,
 
-         financialRevenue: dtails.financialRevenue.replace(/,/g, ''),
 
-         financialTax: dtails.financialTax.replace(/,/g, ''),
 
-         financialProperty: dtails.financialProperty.replace(/,/g, ''),
 
-         financialRd: dtails.financialRd.replace(/,/g, ''),
 
-         standard: dtails.standard,
 
-         businessScope: dtails.businessScope,
 
-       };
 
-     }
 
-     for (let key in params) {
 
-       if (params[key] === undefined || params[key] === 'undefined' || params[key] === null || params[key] === 'null') {
 
-         delete params[key];
 
-       }
 
-     }
 
-     const { flag, message } = this.validParams(params);
 
-     if (!flag) {
 
-       Taro.showToast({
 
-         title: message,
 
-         icon: "none",
 
-       });
 
-       return;
 
-     }
 
-     updateUser(params).then((v) => {
 
-       if (v.error.length === 0) {
 
-         Taro.showToast({
 
-           title: "修改成功",
 
-         });
 
-         setTimeout(() => {
 
-           //表示回到上一页面
 
-           Taro.navigateBack({
 
-             delta: 1
 
-           });
 
-         }, 1000)
 
-       } else {
 
-         Taro.showToast({
 
-           title: v.error[0].message,
 
-           icon: "none",
 
-         });
 
-       }
 
-     })
 
-   }
 
-   // 计算专利总数
 
-   countZlNum({ inventionPatentCount, utilityModelCount, appearancePatentCount, softwareWorksCount, otherCount }) {
 
-     let count = 0;
 
-     if (inventionPatentCount && !isNaN(inventionPatentCount)) {
 
-       count += Number(inventionPatentCount);
 
-     }
 
-     if (utilityModelCount && !isNaN(utilityModelCount)) {
 
-       count += Number(utilityModelCount);
 
-     }
 
-     if (appearancePatentCount && !isNaN(appearancePatentCount)) {
 
-       count += Number(appearancePatentCount);
 
-     }
 
-     if (softwareWorksCount && !isNaN(softwareWorksCount)) {
 
-       count += Number(softwareWorksCount);
 
-     }
 
-     if (otherCount && !isNaN(otherCount)) {
 
-       count += Number(otherCount);
 
-     }
 
-     return count;
 
-   }
 
-   // 修改客户档案
 
-   update() {
 
-     // const { upType, info } = this.state
 
-     // console.log(info)
 
-     // let tipList = [
 
-     //   { key: "inventionPatentCount", value: "请填写发明专利数" },
 
-     //   { key: "utilityModelCount", value: "请填写实用新型数" },
 
-     //   { key: "appearancePatentCount", value: "请填写外观专利数" },
 
-     //   { key: "softwareWorksCount", value: "请填写软著数" },
 
-     //   { key: "otherCount", value: "请填写其他数量" },
 
-     //   { key: "financialData", value: "请填写财务数据" },
 
-     //   { key: "earlyCommunication", value: "请填写前期沟通" },
 
-     //   { key: "interviewIdeas", value: "请填写面谈思路及目的" },
 
-     //   { key: "interviewDistribution", value: "请填写主要面谈人及分工" },
 
-     //   { key: "enterpriseCount", value: "请填写覆盖企业数" },
 
-     //   { key: "channelIndicators", value: "请填写渠道考核指标" },
 
-     // ]
 
-     // if (!info.id) {
 
-     //   delete info.id
 
-     // }
 
-     // for (let i in info) {
 
-     //   if (!info[i] && info[i] !== 0) {
 
-     //     for (var j = 0; j < tipList.length; j++) {
 
-     //       if (tipList[j].key == i) {
 
-     //         Taro.showToast({
 
-     //           title: tipList[j].value,
 
-     //           icon: "none",
 
-     //         });
 
-     //       }
 
-     //     }
 
-     //     return
 
-     //   } else if (info[i] == 0) {
 
-     //     if (i == "channelType") {
 
-     //       Taro.showToast({
 
-     //         title: "请选择渠道类型",
 
-     //         icon: "none",
 
-     //       });
 
-     //       return
 
-     //     }
 
-     //   }
 
-     //   if ((i == "financialData" || i == "earlyCommunication" || i == "interviewIdeas" || i == "interviewDistribution")
 
-     //     && info[i].length < 20) {
 
-     //     Taro.showToast({
 
-     //       title: "至少20字以上",
 
-     //       icon: "none",
 
-     //     });
 
-     //     return
 
-     //   }
 
-     // }
 
-     // updateUserDate(upType, info).then((v) => {
 
-     //   if (v.error.length === 0) {
 
-     //     Taro.showToast({
 
-     //       title: "修改成功",
 
-     //     });
 
-     //     this.setState({
 
-     //       isOpened: false
 
-     //     })
 
-     //     this.queryByUidAll()
 
-     //   } else {
 
-     //     Taro.showToast({
 
-     //       title: v.error[0].message,
 
-     //       icon: "none",
 
-     //     });
 
-     //   }
 
-     // }).catch(() => {
 
-     // })
 
-     if (this.state.upType == 5) {
 
-       this.postAddProject();
 
-     } else {
 
-       if (this.state.upType == 1) {
 
-         // 计算专利
 
-         let patentCount = this.countZlNum(this.state.info);
 
-         this.setState({ isOpened: false, dtails: { ...this.state.dtails, ...this.state.info, patentCount } })
 
-       } else {
 
-         this.setState({ isOpened: false, dtails: { ...this.state.dtails, ...this.state.info } })
 
-       }
 
-     }
 
-   }
 
-   postAddProject() {
 
-     const { checkProject, dtails, info } = this.state;
 
-     const params = { uid: dtails.uid };
 
-     if (!checkProject.length) {
 
-       Taro.showToast({
 
-         title: "请选择要添加的项目",
 
-         icon: "none",
 
-       });
 
-       return;
 
-     } else {
 
-       params.pid = checkProject[0].id;
 
-       if (checkProject[0].cSort == 9) {
 
-         if (!info.examineStatus) {
 
-           Taro.showToast({
 
-             title: "请选择审核状态",
 
-             icon: "none",
 
-           });
 
-           return;
 
-         } else if (info.examineStatus == 2 && !info.examineStatusOther) {
 
-           Taro.showToast({
 
-             title: "请选择复审年份",
 
-             icon: "none",
 
-           });
 
-           return;
 
-         } else if (info.examineStatus == 2 && info.examineStatusOther.split(',').length > 1) {
 
-           Taro.showToast({
 
-             title: "复审年份只能选择一个",
 
-             icon: "none",
 
-           });
 
-           return;
 
-         } else {
 
-           params.examineStatus = info.examineStatus;
 
-           params.examineStatusOther = info.examineStatus == 2 ? info.examineStatusOther : '';
 
-         }
 
-       } else if (checkProject[0].cSort == 6) {
 
-         if (!info.buyStatus) {
 
-           Taro.showToast({
 
-             title: "请选择复购状态",
 
-             icon: "none",
 
-           });
 
-           return;
 
-         } else if (info.buyStatus == 2 && !info.buyStatusOther) {
 
-           Taro.showToast({
 
-             title: "请选择复购/复审年份",
 
-             icon: "none",
 
-           });
 
-           return;
 
-         } else {
 
-           params.buyStatus = info.buyStatus;
 
-           params.buyStatusOther = info.buyStatus == 2 ? info.buyStatusOther : '';
 
-         }
 
-       }
 
-     }
 
-     addProject(params).then(res => {
 
-       if (res.error.length == 0) {
 
-         Taro.showToast({
 
-           title: "项目新增成功!",
 
-         });
 
-         this.setState({ isOpened: false, checkProject: [] })
 
-         this.getProjectList();
 
-       } else {
 
-         Taro.showToast({
 
-           title: v.error[0].message,
 
-           icon: "none"
 
-         });
 
-       }
 
-     })
 
-   }
 
-   /**
 
-    * 获取项目列表
 
-    * @param {*} uid 客户编号
 
-    */
 
-   getProjectList(uid) {
 
-     const params = { uid: this.$instance.router.params.id, pageNo: 1, pageSize: 9999 }
 
-     queryProjectList(params).then(res => {
 
-       if (!res.error.length) {
 
-         this.setState({ projectList: res.data.list });
 
-       }
 
-     })
 
-   }
 
-   handleDelProject(data) {
 
-     delProject(data.id, data).then(res => {
 
-       if (!res.error.length) {
 
-         Taro.showToast({
 
-           title: "删除成功!",
 
-         });
 
-         this.getProjectList();
 
-       } else {
 
-         Taro.showToast({
 
-           title: v.error[0].message,
 
-           icon: "none"
 
-         });
 
-       }
 
-     })
 
-   }
 
-   // 新建联系人
 
-   add() {
 
-     let data = this.state.obj
 
-     for (let i in data) {
 
-       if (!data[i] && data[i] !== 0) {
 
-         Taro.showToast({
 
-           title: "请完善信息",
 
-           icon: "none",
 
-         });
 
-         return
 
-       } else if ('name,position,department'.indexOf(i) > -1) {
 
-         if (!data[i].match(/^[\D].*[\u4e00-\u9fff]+$/)) {
 
-           let keyObjName = {
 
-             name: "姓名",
 
-             position: "职位",
 
-             department: "部门"
 
-           };
 
-           Taro.showToast({
 
-             title: `请输入正确的${keyObjName[i]},不能以数字开头,且至少包含一个汉字`,
 
-             icon: "none",
 
-           });
 
-           return
 
-         }
 
-       } else if (i == "mobile") {
 
-         if (!(/^1[3-9]\d{9}$/.test(data[i]))) {
 
-           Taro.showToast({
 
-             title: "请输入正确地手机号",
 
-             icon: "none",
 
-           });
 
-           return
 
-         }
 
-       }
 
-     }
 
-     data.major = 1
 
-     addOneContact(data).then((v) => {
 
-       if (v.error.length === 0) {
 
-         Taro.showToast({
 
-           title: "添加成功",
 
-         });
 
-         this.setState({
 
-           isAdd: false
 
-         })
 
-         this.queryByUidAll('updateContact')
 
-       } else {
 
-         Taro.showToast({
 
-           title: v.error[0].message,
 
-           icon: "none",
 
-         });
 
-       }
 
-     }).catch(() => {
 
-     })
 
-   }
 
-   // 项目列表
 
-   getBusinessProjectByName(val) {
 
-     getBusinessProjectByName({
 
-       businessName: val || "",
 
-     })
 
-       .then((v) => {
 
-         if (v.error.length === 0) {
 
-           let theArr = [];
 
-           if (v.data.length > 0) {
 
-             for (let i = 0; i < v.data.length; i++) {
 
-               let thisdata = v.data[i];
 
-               theArr.push({
 
-                 value: thisdata.id,
 
-                 label: thisdata.bname,
 
-               });
 
-             };
 
-           }
 
-           this.setState({
 
-             allProjectList: v.data,
 
-             options: theArr
 
-           })
 
-         } else {
 
-           Taro.showToast({ title: v.error[0].message, icon: "none" });
 
-         }
 
-       })
 
-       .catch((err) => {
 
-         Taro.showToast({ title: "系统错误,请稍后再试", icon: "none" });
 
-       });
 
-   }
 
-   onSearchChange(value) {
 
-     this.setState({
 
-       value,
 
-     });
 
-   }
 
-   getUserList() {
 
-     findCustomerContacts({
 
-       uid: this.$instance.router.params.id,
 
-     })
 
-       .then((v) => {
 
-         if (v.error.length === 0) {
 
-           this.setState({
 
-             userList: v.data || []
 
-           })
 
-         } else {
 
-           Taro.showToast({ title: v.error[0].message, icon: "none" });
 
-         }
 
-       })
 
-       .catch((err) => {
 
-         Taro.showToast({ title: "系统错误,请稍后再试", icon: "none" });
 
-       });
 
-   }
 
-   updateMainContact(id) {
 
-     updateMainContact({
 
-       uid: this.$instance.router.params.id,
 
-       ocbId: id,
 
-     }).then((v) => {
 
-       if (v.error.length === 0) {
 
-         Taro.showToast({
 
-           title: "设置成功",
 
-         });
 
-         this.getUserList()
 
-       } else {
 
-         Taro.showToast({
 
-           title: v.error[0].message,
 
-           icon: "none",
 
-         });
 
-       }
 
-     }).catch(() => {
 
-     })
 
-   }
 
-   limitUser() {
 
-     limitUser({
 
-       uid: this.$instance.router.params.id,
 
-       // hours: 1,
 
-     }).then((v) => {
 
-       if (v.error.length === 0) {
 
-       } else {
 
-         Taro.showToast({
 
-           title: v.error[0].message,
 
-           icon: "none",
 
-         });
 
-       }
 
-     }).catch(() => {
 
-     })
 
-   }
 
-   addItemDialog(type) {
 
-     let title;
 
-     switch (type) {
 
-       case 'externalInvestName':
 
-         // 对外投资控股的企业名称
 
-         title = '添加对外投资控股的企业名称';
 
-         break;
 
-       default:
 
-         break;
 
-     }
 
-     this.setState({ addItemShow: true, addItemType: type, addItemTitle: title });
 
-   }
 
-   handleCloseAddItemDialog() {
 
-     this.setState({ addItemShow: false, addItemType: '', addItemInputVal: '' });
 
-   }
 
-   handleAddItemSave() {
 
-     switch (this.state.addItemType) {
 
-       case 'externalInvestName':
 
-         const { dtails } = this.state;
 
-         let externalInvestName = dtails.externalInvestName || '';
 
-         let externalInvestNameArr = externalInvestName.split(',').filter(item => !!item);
 
-         externalInvestNameArr.push(this.state.addItemInputVal);
 
-         dtails.externalInvestName = externalInvestNameArr.join(',');
 
-         this.setState({ dtails }, () => {
 
-           this.handleCloseAddItemDialog();
 
-         });
 
-         break;
 
-       default:
 
-         break;
 
-     }
 
-   }
 
-   openInteractHis(type) {
 
-     let interactTitle;
 
-     let interactList = this.state.dtails.interviewList;
 
-     switch (type) {
 
-       case 'earlyCommunication':
 
-         interactTitle = '客户的难处历史记录';
 
-         break;
 
-       case 'customerDemand':
 
-         interactTitle = '客户的需求历史记录';
 
-         break;
 
-       case 'interviewIdeas':
 
-         interactTitle = '面谈思路历史记录';
 
-         break;
 
-       case 'interviewPurpose':
 
-         interactTitle = '面谈达成的目的历史记录';
 
-         break;
 
-       case 'interviewRecommend':
 
-         interactTitle = '经理/上级面谈建议历史记录';
 
-         break;
 
-       case 'interviewFeedback':
 
-         interactTitle = '面谈后反馈历史记录';
 
-         interactList = interactList.slice(1, interactList.length);
 
-         break;
 
-       case 'followUpPlan':
 
-         interactTitle = '后续跟进计划历史记录';
 
-         interactList = interactList.slice(1, interactList.length);
 
-         break;
 
-       default:
 
-         break;
 
-     }
 
-     this.setState({
 
-       interactShow: true,
 
-       interactShowType: type,
 
-       interactTitle,
 
-       interactList
 
-     });
 
-   }
 
-   renderProjectItemName(data) {
 
-     let name = data.name;
 
-     if (!!data.buyStatus) {
 
-       // 会员项目
 
-       if (data.buyStatus == 1) {
 
-         name = name + `(新购)`;
 
-       } else if (data.buyStatus == 2) {
 
-         name = name + `(复购${data.buyStatusOther})`;
 
-       }
 
-     } else if (!!data.examineStatus) {
 
-       // 高新项目
 
-       if (data.examineStatus == 1) {
 
-         name = name + `(初次审核)`;
 
-       } else if (data.examineStatus == 2) {
 
-         name = name + `(${data.examineStatusOther}年复审)`;
 
-       }
 
-     }
 
-     return name;
 
-   }
 
-   render() {
 
-     const { dtails, upType, info, obj, userList } = this.state;
 
-     return (
 
-       <View className="customerProfile">
 
-         <MessageNoticebar />
 
-         <View
 
-           className="titleContent"
 
-         >
 
-           {Object.keys(dtails).length === 0 ? (
 
-             <Skeleton
 
-               title
 
-               row={3}
 
-               animateName="elastic"
 
-               avatarShape="square"
 
-               loading
 
-             />
 
-           ) : (
 
-               <View className="content">
 
-                 <View className="name">
 
-                   <Text style={{ width: "80%" }}>
 
-                     <Text className="bod">{dtails.nickname}  </Text>
 
-                     <Text style={{ fontSize: "12px", color: ["red", "green"][dtails.signBills] }}>{["未签单", "已签单"][dtails.signBills]}</Text>
 
-                   </Text>
 
-                   {dtails.myUser == 1 && <Button className="share" plain type='primary' open-type="share">分享</Button>}
 
-                   {/* <View className="share">分享</View> */}
 
-                 </View>
 
-                 <View className="button">
 
-                   <View className="but"
 
-                     onClick={e => {
 
-                       e.stopPropagation()
 
-                       this.setState({
 
-                         isSuperior: true
 
-                       })
 
-                     }}
 
-                   >上级指导</View>
 
-                   {
 
-                     this.state.isSuperior &&
 
-                     <Superior
 
-                       id={dtails.uid}
 
-                       userNames={dtails.nickname}
 
-                       isOpinion={this.state.isSuperior}
 
-                       isFill={dtails.myUser == 0}
 
-                       onClose={() => {
 
-                         this.setState({
 
-                           isSuperior: false
 
-                         })
 
-                       }}
 
-                     />
 
-                   }
 
-                   <View className="but"
 
-                     onClick={e => {
 
-                       e.stopPropagation()
 
-                       Taro.navigateTo({
 
-                         url: "/pages/situation/index?id=" + this.$instance.router.params.id + "¬Required=" + this.$instance.router.params.notRequired,
 
-                       });
 
-                     }}
 
-                   >公出记录</View>
 
-                 </View>
 
-                 <View className="row">
 
-                   <View className="code">{dtails.orgCode}</View>
 
-                   <View className="time">{dtails.createTime}</View>
 
-                 </View>
 
-                 {
 
-                   dtails.newChannel == 1
 
-                     ?
 
-                     <View className="valueContent">
 
-                       <View className="title" style={{margin: "14rpx 0 18rpx;"}}>渠道档案</View>
 
-                       <View className="item">
 
-                         <View className="item-title">企业所在地省市区:</View>
 
-                         <View className="item-value">
 
-                           { this.state.pageIsReadonly ? (
 
-                             <View>{dtails.locationProvince ? `${dtails.locationProvinceName}-${dtails.locationCityName}-${dtails.locationAreaName}` : ''}</View>
 
-                           ) : (
 
-                             <View className="link" onClick={() => this.openAddressPicker()}>
 
-                             {dtails.locationProvince ? `${dtails.locationProvinceName}-${dtails.locationCityName}-${dtails.locationAreaName}` : '请选择'}
 
-                             </View>
 
-                           ) }
 
-                           
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">
 
-                           渠道类别:
 
-                       </View>
 
-                         <View className="item-value" style={{ display: 'flex', alignItems: 'center' }}>
 
-                           { this.state.pageIsReadonly ? (
 
-                             <View>{ getChannel(dtails.channelType) }</View>
 
-                           ) : (
 
-                             <Picker
 
-                               value={dtails.channelType}
 
-                               range={channelTypeList}
 
-                               rangeKey='title'
 
-                               mode='selector'
 
-                               onChange={(e) => {
 
-                                 const { dtails } = this.state;
 
-                                 dtails.channelType = e.detail.value;
 
-                                 this.setState({ dtails })
 
-                               }}>
 
-                               <View className="link">
 
-                                 {!getChannel(dtails.channelType) ? "请选择" : getChannel(dtails.channelType)}
 
-                               </View>
 
-                             </Picker>
 
-                           ) }
 
-                           
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">
 
-                           渠道企业数:
 
-                       </View>
 
-                         <View className="item-value">
 
-                           <AtInput
 
-                             min={0}
 
-                             value={dtails.enterpriseCount}
 
-                             name='companyCount'
 
-                             type='number'
 
-                             placeholder='请输入数量'
 
-                             size='mini'
 
-                             onChange={value => {
 
-                               dtails.enterpriseCount = this.addCommas(value);
 
-                               this.setState({ dtails })
 
-                             }}
 
-                             cursor={-1}
 
-                             disabled={this.state.pageIsReadonly}
 
-                           />
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">渠道考核指标:</View>
 
-                         <View className="item-value">
 
-                           <AtTextarea
 
-                             value={dtails.channelIndicators || ''}
 
-                             onChange={e => {
 
-                               this.setState({
 
-                                 dtails: Object.assign(dtails, {
 
-                                   channelIndicators: e,
 
-                                 }),
 
-                               })
 
-                             }}
 
-                             maxLength={200}
 
-                             placeholder='请填写渠道考核指标~'
 
-                             disabled={this.state.pageIsReadonly}
 
-                           />
 
-                         </View>
 
-                       </View>
 
-                       <View style={{fontWeight: 600, color: "red"}}>
 
-                         <Text>首次面谈时间:</Text>
 
-                         { dtails.interviewList.length ? (
 
-                           <Text>{ dtails.interviewList[dtails.interviewList.length - 1].createTime }</Text>
 
-                         ) : (
 
-                           <Text>暂无面谈记录</Text>
 
-                         ) }
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">
 
-                           主要面谈联系信息:
 
-                           {
 
-                             !this.state.pageIsReadonly && dtails.myUser == 1 &&
 
-                             <View className="tbuttom"
 
-                               onClick={e => {
 
-                                 e.stopPropagation()
 
-                                 this.getUserList();
 
-                                 this.setState({
 
-                                   isAdd: true,
 
-                                   obj: {
 
-                                     uid: this.$instance.router.params.id,
 
-                                     name: "",
 
-                                     position: "",
 
-                                     department: "",
 
-                                     mobile: "",
 
-                                   }
 
-                                 })
 
-                               }}
 
-                             >
 
-                               新增
 
-                             </View>
 
-                           }
 
-                         </View>
 
-                         <View className="item-value">
 
-                           {
 
-                             !!dtails.contactList && dtails.contactList.map((v, k) =>
 
-                               <View className="val" key={k}>{v.name}  {v.position}  {v.department}  {v.mobile}</View>
 
-                             )
 
-                           }
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">
 
-                           已面谈项目:
 
-                         </View>
 
-                         <View className="item-value">
 
-                           {
 
-                             this.state.projectList.map(item => {
 
-                               return <View style={{ display: 'flex', alignItems: 'center' }}>
 
-                                 <Text style={{ fontSize: '30rpx' }} style={{ marginRight: '10rpx' }}>
 
-                                   {this.renderProjectItemName(item)}
 
-                                 </Text>
 
-                                 {/* <AtIcon value="close" size='15' color="#f00" onClick={() => {this.handleDelProject(item)}} /> */}
 
-                               </View>
 
-                             })
 
-                           }
 
-                         </View>
 
-                       </View>
 
-                     </View>
 
-                     :
 
-                     <View className="valueContent">
 
-                       <View className="title" style={{margin: "14rpx 0 18rpx;"}}>企业档案表</View>
 
-                       <View className="item">
 
-                         <View className="item-title">企业所在地省市区:</View>
 
-                         <View className="item-value">
 
-                           { this.state.pageIsReadonly ? (
 
-                             <View>
 
-                               {dtails.locationProvince ? `${dtails.locationProvinceName}-${dtails.locationCityName}-${dtails.locationAreaName}` : ''}
 
-                             </View>
 
-                           ) : (
 
-                             <View className="link" onClick={() => this.openAddressPicker()}>
 
-                               {dtails.locationProvince ? `${dtails.locationProvinceName}-${dtails.locationCityName}-${dtails.locationAreaName}` : '请选择'}
 
-                             </View>
 
-                           ) }
 
-                           
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">企业所属行业:</View>
 
-                         <View className="item-value">
 
-                           { this.state.pageIsReadonly ? (
 
-                             <View>{ this.state.dtails.industryName }</View>
 
-                           ) : (
 
-                             <View className="link" onClick={() => this.handleOpenMultiplePicker('industry')}>
 
-                               {this.state.dtails.industryName || '请选择'}
 
-                             </View>
 
-                           )}
 
-                           
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">主营产品:</View>
 
-                         <View className="item-value">
 
-                           <AtInput
 
-                             value={dtails.businessScope}
 
-                             name='businessScope'
 
-                             placeholder='请用,符号隔开关键字'
 
-                             size='mini'
 
-                             onChange={value => {
 
-                               dtails.businessScope = value;
 
-                               this.setState({ dtails })
 
-                             }}
 
-                             cursor={-1}
 
-                             disabled={this.state.pageIsReadonly}
 
-                           />
 
-                         </View>
 
-                       </View>
 
-                       <View className="item flex">
 
-                         <View className="item-title">母/子公司数:</View>
 
-                         <View className="item-value">
 
-                         <View style={{width: '260rpx'}}>
 
-                           <AtInput
 
-                             min={0}
 
-                             value={dtails.companyCount}
 
-                             name='companyCount'
 
-                             type='number'
 
-                             placeholder='请输入数量'
 
-                             size='mini'
 
-                             onChange={value => {
 
-                               dtails.companyCount = this.addCommas(value);
 
-                               this.setState({ dtails })
 
-                             }}
 
-                             cursor={-1}
 
-                             disabled={this.state.pageIsReadonly}
 
-                           />
 
-                         </View>
 
-                         </View>
 
-                       </View>
 
-                       <View className="item flex">
 
-                         <View className="item-title">社保人数:</View>
 
-                         <View className="item-value">
 
-                         <View style={{width: '260rpx'}}>
 
-                           <AtInput
 
-                             min={0}
 
-                             value={dtails.socialSecurityCount}
 
-                             name='socialSecurityCount'
 
-                             type='number'
 
-                             placeholder='请输入数量'
 
-                             size='mini'
 
-                             onChange={value => {
 
-                               dtails.socialSecurityCount = this.addCommas(value);
 
-                               this.setState({ dtails })
 
-                             }}
 
-                             cursor={-1}
 
-                             disabled={this.state.pageIsReadonly}
 
-                           />
 
-                         </View>
 
-                         </View>
 
-                       </View>
 
-                       <View className="item flex">
 
-                         <View className="item-title">对外投资控股的企业数:</View>
 
-                         <View className="item-value">
 
-                         <View style={{width: '260rpx'}}>
 
-                           <AtInput
 
-                             min={0}
 
-                             value={dtails.externalInvestCount}
 
-                             name='externalInvestCount'
 
-                             type='number'
 
-                             placeholder='请输入数量'
 
-                             size='mini'
 
-                             onChange={value => {
 
-                               dtails.externalInvestCount = this.addCommas(value);
 
-                               this.setState({ dtails })
 
-                             }}
 
-                             cursor={-1}
 
-                             disabled={this.state.pageIsReadonly}
 
-                           />
 
-                         </View>
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">对外投资控股的行业:</View>
 
-                         <View className="item-value">
 
-                           { this.state.pageIsReadonly ? (
 
-                             <View>{ dtails.externalInvestIndustryName }</View>
 
-                           ) : (
 
-                             <View className="link" onClick={() => this.handleOpenMultiplePicker('externalInvestIndustry')}>
 
-                             { dtails.externalInvestIndustryName || '请选择' }
 
-                             </View>
 
-                           ) }
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">对外投资控股的企业名称:</View>
 
-                         <View className="item-value">
 
-                           { this.state.pageIsReadonly ? (
 
-                             <View>{ dtails.externalInvestName }</View>
 
-                           ) : (
 
-                             <View className="link" onClick={() => this.handleSelComp()}>
 
-                             {dtails.externalInvestName || '请选择'}
 
-                             </View>
 
-                           ) }
 
-                          
 
-                         </View>
 
-                       </View>
 
-                       <View style={{fontWeight: 600, color: "red"}}>
 
-                         <Text>首次面谈时间:</Text>
 
-                         { dtails.interviewList.length ? (
 
-                           <Text>{ dtails.interviewList[dtails.interviewList.length - 1].createTime }</Text>
 
-                         ) : (
 
-                           <Text>暂无面谈记录</Text>
 
-                         ) }
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">
 
-                           主要面谈联系信息:
 
-                           {
 
-                             !this.state.pageIsReadonly && dtails.myUser == 1 &&
 
-                             <View className="tbuttom"
 
-                               onClick={e => {
 
-                                 e.stopPropagation()
 
-                                 this.getUserList();
 
-                                 this.setState({
 
-                                   isAdd: true,
 
-                                   obj: {
 
-                                     uid: this.$instance.router.params.id,
 
-                                     name: "",
 
-                                     position: "",
 
-                                     department: "",
 
-                                     mobile: "",
 
-                                   }
 
-                                 })
 
-                               }}
 
-                             >
 
-                               新增
 
-                             </View>
 
-                           }
 
-                         </View>
 
-                         <View className="item-value">
 
-                           {
 
-                             !!dtails.contactList && dtails.contactList.map((v, k) =>
 
-                               <View className="val" key={k}>
 
-                                 {v.name}  {v.position}  {v.department}  {v.mobile}
 
-                                 {this.state.isMask && <View className="mask"></View>}
 
-                               </View>
 
-                             )
 
-                           }
 
-                         </View>
 
-                       </View>
 
-                       <View className="item">
 
-                         <View className="item-title">已面谈项目:</View>
 
-                         <View className="item-value">
 
-                           {
 
-                             this.state.projectList.map(item => {
 
-                               return <View style={{ display: 'flex', alignItems: 'center' }}>
 
-                                 <Text style={{ fontSize: '30rpx' }} style={{ marginRight: '10rpx' }}>
 
-                                   {this.renderProjectItemName(item)}
 
-                                 </Text>
 
-                                 {/* <AtIcon value="close" size='15' color="#f00" onClick={() => {this.handleDelProject(item)}} /> */}
 
-                               </View>
 
-                             })
 
-                           }
 
-                         </View>
 
-                       </View>
 
-                       <View style={{ marginTop: '40rpx' }}>
 
-                         <View className="title">企业情况</View>
 
-                         <View className="tit" style={{ margin: '32rpx 0 20rpx;'}}>
 
-                         <Text>
 
-                             1.知识产权情况
 
-                             <Text className="txt">(专利信息、标准、专利、软著)</Text>
 
-                           </Text>
 
-                           {
 
-                             !this.state.pageIsReadonly && dtails.myUser == 1 &&
 
-                             <View className="up"
 
-                               onClick={e => {
 
-                                 e.stopPropagation()
 
-                                 this.setState({
 
-                                   upType: 1,
 
-                                   isOpened: true,
 
-                                   info: {
 
-                                     uid: this.$instance.router.params.id,
 
-                                     id: dtails.id,
 
-                                     inventionPatentCount: dtails.inventionPatentCount || 0,
 
-                                     utilityModelCount: dtails.utilityModelCount || 0,
 
-                                     appearancePatentCount: dtails.appearancePatentCount || 0,
 
-                                     softwareWorksCount: dtails.softwareWorksCount || 0,
 
-                                     otherCount: dtails.otherCount || 0,
 
-                                   }
 
-                                 })
 
-                               }}
 
-                             >修改</View>
 
-                           }
 
-                         </View>
 
-                         <View className="val">
 
-                           专利 <Text className="num">{dtails.patentCount || 0}</Text>   
 
-                             其中发明专利 <Text className="num">{dtails.inventionPatentCount || 0}</Text>   
 
-                             实用新型 <Text className="num">{dtails.utilityModelCount || 0}</Text>   
 
-                             外观设计 <Text className="num">{dtails.appearancePatentCount || 0}</Text>   
 
-                             软著 <Text className="num">{dtails.softwareWorksCount || 0}</Text>   
 
-                             标准 <Text className="num">{dtails.standard == 1 ? '有' : '无'}</Text>   
 
-                             其他类型 <Text className="num">{dtails.otherCount || 0}</Text>   
 
-                         </View>
 
-                         <View className="tit" style={{ margin: '32rpx 0 20rpx;'}}>2.财务数据</View>
 
-                         <View className="item flex">
 
-                           <View className="item-title">营收(万元):</View>
 
-                           <View className="item-value">
 
-                           <View style={{width: '260rpx'}}>
 
-                             <AtInput
 
-                               min={0}
 
-                               value={dtails.financialRevenue}
 
-                               name='financialRevenue'
 
-                               type='number'
 
-                               placeholder='请输入数量'
 
-                               size='mini'
 
-                               onChange={value => {
 
-                                 dtails.financialRevenue = this.addCommas(value);
 
-                                 this.setState({ dtails })
 
-                               }}
 
-                               cursor={-1}
 
-                               disabled={this.state.pageIsReadonly}
 
-                             />
 
-                           </View>
 
-                           </View>
 
-                         </View>
 
-                         <View className="item flex">
 
-                           <View className="item-title">税收(万元):</View>
 
-                           <View className="item-value">
 
-                           <View style={{width: '260rpx'}}>
 
-                             <AtInput
 
-                               min={0}
 
-                               value={dtails.financialTax}
 
-                               name='financialTax'
 
-                               type='number'
 
-                               placeholder='请输入数量'
 
-                               size='mini'
 
-                               onChange={value => {
 
-                                 dtails.financialTax = this.addCommas(value);
 
-                                 this.setState({ dtails })
 
-                               }}
 
-                               cursor={-1}
 
-                               disabled={this.state.pageIsReadonly}
 
-                             />
 
-                           </View>
 
-                           </View>
 
-                         </View>
 
-                         <View className="item flex">
 
-                           <View className="item-title">资产(万元):</View>
 
-                           <View className="item-value">
 
-                           <View style={{width: '260rpx'}}>
 
-                             <AtInput
 
-                               min={0}
 
-                               value={dtails.financialProperty}
 
-                               name='financialProperty'
 
-                               type='number'
 
-                               placeholder='请输入数量'
 
-                               size='mini'
 
-                               onChange={value => {
 
-                                 dtails.financialProperty = this.addCommas(value);
 
-                                 this.setState({ dtails })
 
-                               }}
 
-                               cursor={-1}
 
-                               disabled={this.state.pageIsReadonly}
 
-                             />
 
-                           </View>
 
-                           </View>
 
-                         </View>
 
-                         
 
-                         <View className="item flex">
 
-                           <View className="item-title">研发费用(万元):</View>
 
-                           <View className="item-value">
 
-                           <View style={{width: '260rpx'}}>
 
-                             <AtInput
 
-                               min={0}
 
-                               value={dtails.financialRd}
 
-                               name='financialRd'
 
-                               type='number'
 
-                               placeholder='请输入数量'
 
-                               size='mini'
 
-                               onChange={value => {
 
-                                 dtails.financialRd = this.addCommas(value);
 
-                                 this.setState({ dtails })
 
-                               }}
 
-                               cursor={-1}
 
-                               disabled={this.state.pageIsReadonly}
 
-                             />
 
-                           </View>
 
-                           </View>
 
-                         </View>
 
-                       </View>
 
-                     </View>
 
-                 }
 
-                 {
 
-                   !this.state.pageIsReadonly && (
 
-                     <View style={{ marginTop: '24rpx' }}>
 
-                       <AtButton type="primary" onClick={this.onSaveAllData.bind(this)}>保存</AtButton>
 
-                     </View>
 
-                   )
 
-                 }
 
-                 
 
-                 {/* {
 
-                 dtails.newChannel == 1
 
-                   ?
 
-                   <View className="two">
 
-                     <View className="title">面谈前渠道情况</View>
 
-                     <View className="tit">
 
-                       <Text>
 
-                         面谈项目
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.getBusinessProjectByName("")
 
-                             this.setState({
 
-                               upType: 5,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 intendedProject: dtails.intendedProject,
 
-                               },
 
-                               checkOptions: !!dtails.intendedProject ? dtails.intendedProject.split(",") : []
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">{dtails.intendedProject || "无"}</View>
 
-                     <View className="tit">
 
-                       <Text>
 
-                         面谈思路及目的
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.setState({
 
-                               upType: 4,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 id: dtails.id,
 
-                                 interviewIdeas: dtails.interviewIdeas,
 
-                               }
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">{dtails.interviewIdeas || "无"}</View>
 
-                     <View className="tit">
 
-                       <Text>
 
-                         我方主要面谈人及分工
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.setState({
 
-                               upType: 6,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 id: dtails.id,
 
-                                 interviewDistribution: dtails.interviewDistribution,
 
-                               }
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">{dtails.interviewDistribution || "无"}</View>
 
-                   </View>
 
-                   :
 
-                   <View className="two">
 
-                       
 
-                     <View className="title">面谈企业情况</View>
 
-                     <AtInput
 
-                         name='mzgssl'
 
-                         title='母/子公司数'
 
-                         type='number'
 
-                         placeholder='请输入数量'
 
-                     />
 
-                      <AtInput
 
-                         name='sbrs'
 
-                         title=''
 
-                         type='number'
 
-                         placeholder='请输入数量'
 
-                         size='mini'
 
-                     />
 
-                     <AtInput
 
-                         name='qyes'
 
-                         title='对外投资控股的企业数'
 
-                         type='number'
 
-                         placeholder='请输入数量'
 
-                     />
 
-                     <View className="tit">
 
-                       <Text>
 
-                         知识产权情况
 
-                         <Text className="txt">(专利信息、标准、专利、软著)</Text>
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.setState({
 
-                               upType: 1,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 id: dtails.id,
 
-                                 inventionPatentCount: dtails.inventionPatentCount || 0,
 
-                                 utilityModelCount: dtails.utilityModelCount || 0,
 
-                                 appearancePatentCount: dtails.appearancePatentCount || 0,
 
-                                 softwareWorksCount: dtails.softwareWorksCount || 0,
 
-                                 otherCount: dtails.otherCount || 0,
 
-                               }
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">
 
-                       专利 <Text className="num">{dtails.patentCount || 0}</Text>   
 
-                       其中发明专利 <Text className="num">{dtails.inventionPatentCount || 0}</Text>   
 
-                       实用新型 <Text className="num">{dtails.utilityModelCount || 0}</Text>   
 
-                       外观设计 <Text className="num">{dtails.appearancePatentCount || 0}</Text>   
 
-                       软著 <Text className="num">{dtails.softwareWorksCount || 0}</Text>   
 
-                       标准 <Text className="num">{'有'}</Text>   
 
-                       其他类型 <Text className="num">{dtails.otherCount || 0}</Text>   
 
-                     </View>
 
-                     <View className="tit">
 
-                       <Text>
 
-                         财务数据
 
-                         <Text className="txt">(包括营收、税收、资产、研发费用等)</Text>
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.setState({
 
-                               upType: 2,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 id: dtails.id,
 
-                                 financialData: dtails.financialData,
 
-                               }
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">{dtails.financialData || "无"}</View>
 
-                     <View className="tit">
 
-                       <Text>
 
-                         前期沟通
 
-                         <Text className="txt">(客户的难处、需求)</Text>
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.setState({
 
-                               upType: 3,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 id: dtails.id,
 
-                                 earlyCommunication: dtails.earlyCommunication,
 
-                               }
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">{dtails.earlyCommunication || "无"}</View>
 
-                     <View className="tit">
 
-                       <Text>
 
-                         面谈思路及目的
 
-                       </Text>
 
-                       {
 
-                         dtails.myUser == 1 &&
 
-                         <View className="up"
 
-                           onClick={e => {
 
-                             e.stopPropagation()
 
-                             this.setState({
 
-                               upType: 4,
 
-                               isOpened: true,
 
-                               info: {
 
-                                 uid: this.$instance.router.params.id,
 
-                                 id: dtails.id,
 
-                                 interviewIdeas: dtails.interviewIdeas,
 
-                               }
 
-                             })
 
-                           }}
 
-                         >修改</View>
 
-                       }
 
-                     </View>
 
-                     <View className="val">{dtails.interviewIdeas || "无"}</View>
 
-                   </View>
 
-               } */}
 
-               </View>
 
-             )}
 
-         </View>
 
-         <AtModal
 
-           isOpened={this.state.isOpened}
 
-           onClose={() => {
 
-             this.setState({
 
-               isOpened: false,
 
-               checkProject: [],
 
-               checkOptions: []
 
-             })
 
-           }}
 
-         >
 
-           <AtModalHeader>信息修改</AtModalHeader>
 
-           <AtModalContent>
 
-             {
 
-               upType == 0 &&
 
-               <View>
 
-                 <View className='selectTitle'>企业行业</View>
 
-                 <Picker
 
-                   value={this.state.sector.id}
 
-                   range={industry} rangeKey='title' mode='selector'
 
-                   onChange={(e) => {
 
-                     this.setState({
 
-                       sector: industry[e.detail.value],
 
-                       info: Object.assign(info, {
 
-                         industry: industry[e.detail.value].id,
 
-                       })
 
-                     })
 
-                   }}>
 
-                   <View style={{ marginBottom: "10px", color: !this.state.sector.title && "#CCCCCC" }}>
 
-                     {!this.state.sector.title ? "请选择" : this.state.sector.title}
 
-                   </View>
 
-                 </Picker>
 
-                 <View className='selectTitle'>企业主营产品/服务</View>
 
-                 <Input
 
-                   // name='value'
 
-                   // title='企业主营产品/服务'
 
-                   type='text'
 
-                   placeholder='请用,符号隔开关键字'
 
-                   value={info.businessScope}
 
-                   onInput={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         businessScope: e.detail.value,
 
-                       })
 
-                     })
 
-                   }}
 
-                 />
 
-               </View>
 
-             }
 
-             {
 
-               upType == 1 &&
 
-               <View>
 
-                 <AtInput
 
-                   name='inventionPatentCount'
 
-                   title='发明专利'
 
-                   type='number'
 
-                   value={info.inventionPatentCount}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         inventionPatentCount: e,
 
-                       })
 
-                     })
 
-                   }}
 
-                   cursor={-1}
 
-                 />
 
-                 <AtInput
 
-                   name='utilityModelCount'
 
-                   title='实用新型'
 
-                   type='number'
 
-                   value={info.utilityModelCount}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         utilityModelCount: e,
 
-                       })
 
-                     })
 
-                   }}
 
-                   cursor={-1}
 
-                 />
 
-                 <AtInput
 
-                   name='appearancePatentCount'
 
-                   title='外观专利'
 
-                   type='number'
 
-                   value={info.appearancePatentCount}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         appearancePatentCount: e,
 
-                       })
 
-                     })
 
-                   }}
 
-                   cursor={-1}
 
-                 />
 
-                 <AtInput
 
-                   name='softwareWorksCount'
 
-                   title='软著'
 
-                   type='number'
 
-                   value={info.softwareWorksCount}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         softwareWorksCount: e,
 
-                       })
 
-                     })
 
-                   }}
 
-                   cursor={-1}
 
-                 />
 
-                 <View style={{ display: 'flex', margin: '12rpx 0' }}>
 
-                   <Text style={{ fontSize: '32rpx', marginRight: '16rpx', width: '172rpx' }}>标准</Text>
 
-                   <RadioGroup title="标准" onChange={e => {
 
-                     dtails.standard = Number(e.target.value);
 
-                     this.setState({ dtails });
 
-                   }}>
 
-                     <Label className='radio-list__label'>
 
-                       <Radio className='radio-list__radio' value={1} checked={dtails.standard == 1}>有</Radio>
 
-                     </Label>
 
-                     <Label className='radio-list__label'>
 
-                       <Radio className='radio-list__radio' value={0} checked={!dtails.standard}>无</Radio>
 
-                     </Label>
 
-                   </RadioGroup>
 
-                 </View>
 
-                 <AtInput
 
-                   name='otherCount'
 
-                   title='其他'
 
-                   type='number'
 
-                   value={dtails.otherCount}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(dtails, {
 
-                         otherCount: e,
 
-                       })
 
-                     })
 
-                   }}
 
-                   cursor={-1}
 
-                 />
 
-               </View>
 
-             }
 
-             {
 
-               upType == 2 &&
 
-               <View>
 
-                 <View className='selectTitle'>财务数据</View>
 
-                 <AtTextarea
 
-                   value={info.financialData || ""}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         financialData: e,
 
-                       }),
 
-                     })
 
-                   }}
 
-                   maxLength={200}
 
-                   placeholder='请填写财务数据~'
 
-                 />
 
-               </View>
 
-             }
 
-             {
 
-               upType == 3 &&
 
-               <View>
 
-                 <View className='selectTitle'>前期沟通</View>
 
-                 <AtTextarea
 
-                   value={info.earlyCommunication || ""}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         earlyCommunication: e,
 
-                       }),
 
-                     })
 
-                   }}
 
-                   maxLength={200}
 
-                   placeholder='请填写前期沟通~'
 
-                 />
 
-               </View>
 
-             }
 
-             {
 
-               upType == 4 &&
 
-               <View>
 
-                 <View className='selectTitle'>面谈思路及目的</View>
 
-                 <AtTextarea
 
-                   value={info.interviewIdeas || ""}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         interviewIdeas: e,
 
-                       }),
 
-                     })
 
-                   }}
 
-                   maxLength={200}
 
-                   placeholder='请填写面谈思路及目的~'
 
-                 />
 
-               </View>
 
-             }
 
-             {
 
-               upType == 5 &&
 
-               <View>
 
-                 <AtSearchBar
 
-                   placeholder="请输入项目名称"
 
-                   showActionButton
 
-                   value={this.state.value}
 
-                   onChange={this.onSearchChange}
 
-                   onActionClick={() => {
 
-                     this.getBusinessProjectByName(this.state.value);
 
-                   }}
 
-                   onClear={() => {
 
-                     this.setState({
 
-                       value: "",
 
-                     }, () => { this.getBusinessProjectByName(this.state.value) });
 
-                   }}
 
-                 />
 
-                 {/* {
 
-                   this.state.checkOptions.length > 0 &&
 
-                   <View className="selproject">
 
-                     已选择:
 
-                     {
 
-                       this.state.checkOptions.map((v, i) =>
 
-                         <View className="selptxt" key={i}
 
-                           onClick={() => {
 
-                             let list = this.state.checkOptions
 
-                             for (var j = 0; j < list.length; j++) {
 
-                               if (list[j] == v) {
 
-                                 list.splice(j, 1)
 
-                                 this.setState({
 
-                                   checkOptions: list,
 
-                                   info: Object.assign(info, {
 
-                                     intendedProject: list.toString(),
 
-                                   }),
 
-                                 })
 
-                               }
 
-                             }
 
-                           }}
 
-                         >{v} <AtIcon className='atIcon' value='close-circle' size='12' color='#fff' /></View>
 
-                       )
 
-                     }
 
-                   </View>
 
-                 } */}
 
-                 {/* <AtCheckbox
 
-                   options={this.state.options}
 
-                   selectedList={this.state.checkOptions}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       checkOptions: e,
 
-                       info: Object.assign(info, {
 
-                         intendedProject: e.toString(),
 
-                       }),
 
-                     })
 
-                   }}
 
-                 /> */}
 
-                 {/* 高新项目 */}
 
-                 {this.state.checkProject.length && this.state.checkProject[0].cSort == 9 ? <View style={{ backgroundColor: '#eee', padding: '20rpx 24rpx', margin: '24rpx' }}>
 
-                   <RadioGroup onChange={e => {
 
-                     const { info } = this.state;
 
-                     info.examineStatus = e.target.value;
 
-                     this.setState({ info });
 
-                   }}>
 
-                     <Label className='radio-list__label'>
 
-                       <Radio className='radio-list__radio' checked={info.examineStatus == 1} value={1}>初次审核</Radio>
 
-                     </Label>
 
-                     <Label className='radio-list__label'>
 
-                       <Radio className='radio-list__radio' checked={info.examineStatus == 2} value={2}>复审</Radio>
 
-                     </Label>
 
-                   </RadioGroup>
 
-                   {this.state.info.examineStatus == 2 && <View>
 
-                     <Text>复审年份:</Text>
 
-                     <Text style={{ textDecoration: 'underline' }} onClick={() => this.handleOpenMultiplePicker('examineStatusOther')}>{info.examineStatusOther || '请选择'}</Text>
 
-                   </View>}
 
-                 </View> : null}
 
-                 {/* 会员项目 */}
 
-                 {this.state.checkProject.length && this.state.checkProject[0].cSort == 6 ? <View style={{ backgroundColor: '#eee', padding: '20rpx 24rpx', margin: '24rpx' }}>
 
-                   <RadioGroup onChange={e => {
 
-                     const { info } = this.state;
 
-                     info.buyStatus = e.target.value;
 
-                     this.setState({ info });
 
-                   }}>
 
-                     <Label className='radio-list__label'>
 
-                       <Radio className='radio-list__radio' checked={info.buyStatus == 1} value={1}>新购</Radio>
 
-                     </Label>
 
-                     <Label className='radio-list__label'>
 
-                       <Radio className='radio-list__radio' checked={info.buyStatus == 2} value={2}>复购/复审</Radio>
 
-                     </Label>
 
-                   </RadioGroup>
 
-                   {this.state.info.buyStatus == 2 && <View>
 
-                     <Text>复购/复审年份:</Text>
 
-                     <Text style={{ textDecoration: 'underline' }} onClick={() => this.handleOpenMultiplePicker('buyStatusOther')}>{info.buyStatusOther || '请选择'}</Text>
 
-                   </View>}
 
-                 </View> : null}
 
-                 {this.state.isOpened && <RadioGroup onChange={e => {
 
-                   let currProject = this.state.allProjectList.find(item => item.id == e.target.value);
 
-                   this.setState({
 
-                     checkOptions: [e.target.value],
 
-                     checkProject: [currProject]
 
-                   });
 
-                 }}>
 
-                   {this.state.options.map((item, i) => {
 
-                     return (
 
-                       <View>
 
-                         <Label className='radio-list__label' for={i} key={i}>
 
-                           <Radio className='radio-list__radio' value={item.value} checked={this.state.checkOptions.indexOf(item.value) > -1}>{item.label}</Radio>
 
-                         </Label>
 
-                       </View>
 
-                     )
 
-                   })}
 
-                 </RadioGroup>}
 
-               </View>
 
-             }
 
-             {
 
-               upType == 6 &&
 
-               <View>
 
-                 <View className='selectTitle'>我方主要面谈人及分工</View>
 
-                 <AtTextarea
 
-                   value={info.interviewDistribution || ""}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         interviewDistribution: e,
 
-                       }),
 
-                     })
 
-                   }}
 
-                   maxLength={200}
 
-                   placeholder='请填写我方主要面谈人及分工~'
 
-                 />
 
-               </View>
 
-             }
 
-             {
 
-               upType == 7 &&
 
-               <View>
 
-                 <View className='selectTitle' style={{ height: "30px" }}>
 
-                   渠道类别:
 
-                   <Picker
 
-                     value={this.state.channe.id}
 
-                     range={channelTypeList} rangeKey='title' mode='selector'
 
-                     onChange={(e) => {
 
-                       this.setState({
 
-                         channe: channelTypeList[e.detail.value],
 
-                         info: Object.assign(info, {
 
-                           channelType: channelTypeList[e.detail.value].id,
 
-                         })
 
-                       })
 
-                     }}>
 
-                     <View style={{ marginBottom: "10px", width: "160px", color: !this.state.channe.title && "#CCCCCC" }}>
 
-                       {!this.state.channe.title ? "请选择" : this.state.channe.title}
 
-                     </View>
 
-                   </Picker>
 
-                 </View>
 
-                 <View className='selectTitle' style={{ height: "30px" }}>
 
-                   覆盖企业数:
 
-                   <Input
 
-                     style={{ width: "50%" }}
 
-                     type='number'
 
-                     placeholder='请填写个数'
 
-                     value={info.enterpriseCount}
 
-                     onInput={e => {
 
-                       this.setState({
 
-                         info: Object.assign(info, {
 
-                           enterpriseCount: e.detail.value,
 
-                         })
 
-                       })
 
-                     }}
 
-                   />
 
-                 </View>
 
-                 <View className='selectTitle' >渠道考核指标</View>
 
-                 <AtTextarea
 
-                   value={info.channelIndicators || ""}
 
-                   onChange={e => {
 
-                     this.setState({
 
-                       info: Object.assign(info, {
 
-                         channelIndicators: e,
 
-                       }),
 
-                     })
 
-                   }}
 
-                   maxLength={200}
 
-                   placeholder='请填写渠道考核指标~'
 
-                 />
 
-               </View>
 
-             }
 
-           </AtModalContent>
 
-           <AtModalAction>
 
-             <Button type='secondary' onClick={() => {
 
-               this.setState({
 
-                 isOpened: false,
 
-                 checkOptions: [],
 
-                 checkProject: []
 
-               })
 
-             }}>取消</Button>
 
-             <Button type='primary' onClick={this.update}>确定修改</Button>
 
-           </AtModalAction>
 
-         </AtModal>
 
-         <AtModal
 
-           isOpened={this.state.isAdd}
 
-           onClose={() => {
 
-             this.setState({
 
-               isAdd: false
 
-             })
 
-           }}
 
-         >
 
-           <AtModalHeader>联系人</AtModalHeader>
 
-           <AtModalContent>
 
-             {
 
-               userList.map((item) =>
 
-                 <View key={item.id} className="additem">
 
-                   <Text className="txt">{item.name || " "}</Text>
 
-                   <Text className="txt">{item.position || " "}</Text>
 
-                   <Text className="txt">{item.department || " "}</Text>
 
-                   <Text className="mobile">{item.mobile || " "}</Text>
 
-                   <View
 
-                     className={item.major == 1 ? "bts" : "bt"}
 
-                     onClick={() => {
 
-                       item.major != 1 && this.updateMainContact(item.id)
 
-                     }}
 
-                   >
 
-                     {item.major == 1 ? "已选" : "选择"}
 
-                   </View>
 
-                 </View>
 
-               )
 
-             }
 
-             <AtInput
 
-               required
 
-               name='name'
 
-               title='姓名'
 
-               type='text'
 
-               placeholder='请填写姓名'
 
-               value={obj.name}
 
-               onChange={e => {
 
-                 this.setState({
 
-                   obj: Object.assign(obj, {
 
-                     name: e,
 
-                   })
 
-                 })
 
-               }}
 
-               cursor={-1}
 
-             />
 
-             <AtInput
 
-               required
 
-               name='position'
 
-               title='职位'
 
-               type='text'
 
-               placeholder='请填写职位'
 
-               value={obj.position}
 
-               onChange={e => {
 
-                 this.setState({
 
-                   obj: Object.assign(obj, {
 
-                     position: e,
 
-                   })
 
-                 })
 
-               }}
 
-               cursor={-1}
 
-             />
 
-             <AtInput
 
-               required
 
-               name='department'
 
-               title='部门'
 
-               type='text'
 
-               placeholder='请填写部门'
 
-               value={obj.department}
 
-               onChange={e => {
 
-                 console.log(e)
 
-                 this.setState({
 
-                   obj: Object.assign(obj, {
 
-                     department: e,
 
-                   })
 
-                 })
 
-               }}
 
-               cursor={-1}
 
-             />
 
-             <AtInput
 
-               required
 
-               name='mobile'
 
-               title='手机'
 
-               type='phone'
 
-               placeholder='请填写手机号'
 
-               value={obj.mobile}
 
-               onChange={e => {
 
-                 this.setState({
 
-                   obj: Object.assign(obj, {
 
-                     mobile: e,
 
-                   })
 
-                 })
 
-               }}
 
-               cursor={-1}
 
-             />
 
-           </AtModalContent>
 
-           <AtModalAction>
 
-             <Button type='secondary'
 
-               onClick={() => {
 
-                 this.setState({
 
-                   isAdd: false,
 
-                 }, () => {
 
-                   this.queryByUidAll('updateContact')
 
-                 })
 
-               }}>取消</Button>
 
-             <Button type='primary' onClick={this.add}>保存</Button>
 
-           </AtModalAction>
 
-         </AtModal>
 
-         <AtModal
 
-           isOpened={this.state.addItemShow}
 
-           onClose={this.handleCloseAddItemDialog}
 
-         >
 
-           <AtModalHeader>新增对外投资控股的企业</AtModalHeader>
 
-           <AtModalContent>
 
-             <AtInput
 
-               required
 
-               name='companyName'
 
-               title='企业名称'
 
-               placeholder='请输入企业名称'
 
-               value={this.state.addItemInputVal}
 
-               onChange={value => this.setState({ addItemInputVal: value })}
 
-               cursor={-1}
 
-             />
 
-           </AtModalContent>
 
-           <AtModalAction>
 
-             <Button type='secondary' onClick={this.handleCloseAddItemDialog}>取消</Button>
 
-             <Button type='primary' onClick={this.handleAddItemSave}>保存</Button>
 
-           </AtModalAction>
 
-         </AtModal>
 
-         {/* 多选框 */}
 
-         <CheckboxPicker
 
-           isOpened={this.state.multiplePickerShow}
 
-           title={this.state.multiplePickerTitle}
 
-           options={this.state.multiplePickerOptions}
 
-           checkedList={this.state.multiplePickerCheckedList}
 
-           onClose={() => { this.setState({ multiplePickerShow: false, multiplePickerCheckedList: [] }) }}
 
-           onConfirm={this.handleMultipleConfirm}
 
-         ></CheckboxPicker>
 
-         {/* 沟通情况历史记录 */}
 
-         <InteractList
 
-           isOpened={this.state.interactShow}
 
-           list={this.state.interactList}
 
-           type={this.state.interactShowType}
 
-           title={this.state.interactTitle}
 
-           onClose={() => {
 
-             this.setState({ interactShow: false })
 
-           }}
 
-         />
 
-         {/* 省市区选择器 */}
 
-         <AddressPicker
 
-           value={this.state.currAddress}
 
-           pickerShow={this.state.addressPickerShow}
 
-           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>
 
-     );
 
-   }
 
- }
 
- export default CustomerProfile;
 
 
  |