| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464 | 
							- import React from 'react';
 
- import $ from 'jquery/src/ajax';
 
- import '../content.less';
 
- import { citySelect,areaSelect,provinceSelect} from '../../../NewDicProvinceListAll';
 
- import { Form,Radio, Icon, Button, Input,Tabs, Select, Spin, Table, Switch, message, DatePicker, Modal,Popconfirm,Cascader } from 'antd';
 
- import {conditionOrganization,gameState} from '../../../dataDic.js';
 
- import {getCategoryState,getGameState,splitUrl,getprovince} from '../../../tools.js';
 
- import ImgList from "../../../common/imgList";
 
- import {ChooseList} from "../../order/orderNew/chooseList";
 
- const TabPane = Tabs.TabPane;
 
- //图片组件
 
- const PicturesWall = React.createClass({
 
-     getInitialState() {
 
-         return {
 
-             previewVisible: false,
 
-             previewImage: '',
 
-             fileList: [],
 
-         }
 
-     },
 
-     handleCancel() {
 
-         this.setState({ previewVisible: false })
 
-     },
 
-     handlePreview(file) {
 
-         this.setState({
 
-             previewImage: file.url || file.thumbUrl,
 
-             previewVisible: true,
 
-         });
 
-     },
 
-     handleChange(info) {
 
-         let fileList = info.fileList;
 
-         this.setState({ fileList });
 
-         this.props.fileList(fileList);
 
-     },
 
-     componentWillReceiveProps(nextProps) {
 
-         this.state.fileList = nextProps.pictureUrl;
 
-     },
 
-     render() {
 
-         const { previewVisible, previewImage, fileList } = this.state;
 
-         const uploadButton = (
 
-             <div>
 
-                 <Icon type="plus" />
 
-                 <div className="ant-upload-text">点击上传</div>
 
-             </div>
 
-         );
 
-         return (
 
-             <div style={{display:"inline-block"}}>
 
-                 <ImgList
 
-                     domId={this.props.domId}
 
-                     uploadConfig={{
 
-                         action:globalConfig.context + "/api/admin/ProjectSize/uploadPicture",
 
-                         data:{ 'sign': this.props.pictureSign },
 
-                         multiple:true,
 
-                         listType:"picture-card",
 
-                     }}
 
-                     onChange={(infor)=>{
 
-                         this.handleChange(infor)
 
-                     }}
 
-                     fileList={fileList}
 
-                 />
 
-             </div>
 
-         );
 
-     }
 
- });
 
- //主体
 
- const BusinessProject=Form.create()(React.createClass({
 
- 	//搜索功能和初始列表加载
 
- 	loadData(pageNo, apiUrl) {
 
-         this.state.data = [];
 
-         this.setState({
 
-             loading: true,
 
-             ispage:pageNo,
 
-         });
 
-         let nameText=this.state.SuperArr;
 
- 		let superText=(this.state.cid)?nameText[parseInt(this.state.cid)].id:"";
 
-         let isCountry='';
 
-         let pro='';
 
-         let city='';
 
-         let dis='';
 
-        	if(this.state.ressSearch==undefined){
 
-        	}else{
 
-        		switch(parseInt(this.state.ressSearch.length)){
 
-        		case 1:pro=this.state.ressSearch[0];break;
 
-        		case 2:pro=this.state.ressSearch[0];city=this.state.ressSearch[1];break;
 
-        		case 3:pro=this.state.ressSearch[0];city=this.state.ressSearch[1];dis=this.state.ressSearch[2];break;
 
-        		}
 
-        	}
 
-         if(pro===0){
 
-        		isCountry=1;
 
-        		pro='';
 
-        	}
 
-         $.ajax({
 
-           method: "post",
 
-           dataType: "json",
 
-           crossDomain: false,
 
-           url: globalConfig.context + "/api/admin/ProjectSize/listProject",
 
-           data: {
 
-             pageNo: pageNo || 1,
 
-             pageSize: this.state.pagination.pageSize,
 
-             bname: this.state.bname, //项目名称
 
-             cid: superText, //品类名称
 
-             country: isCountry, //是否全国
 
-             province: pro, //省
 
-             city: city, //市
 
-             district: dis, //区
 
-             activityFlag: this.state.activityFlag, //活动生效标识
 
-             status: this.state.status, //项目状态
 
-             type: this.state.type,
 
-           },
 
-           success: function (data) {
 
-             let theArr = [];
 
-             if (!data.data || !data.data.list) {
 
-               if (data.error && data.error.length) {
 
-                 message.warning(data.error[0].message);
 
-               }
 
-             } else {
 
-               for (let i = 0; i < data.data.list.length; i++) {
 
-                 let thisdata = data.data.list[i];
 
-                 let ProvinceCity = [];
 
-                 let isCountry = "";
 
-                 if (thisdata.country == 1) {
 
-                   isCountry = "全国";
 
-                 } else {
 
-                   if (thisdata.city == null || thisdata.city == "") {
 
-                     isCountry += getprovince(parseInt(thisdata.province));
 
-                   } else if (
 
-                     thisdata.district == null ||
 
-                     thisdata.district == ""
 
-                   ) {
 
-                     isCountry += getprovince(parseInt(thisdata.province)) + "-";
 
-                     isCountry += getprovince(parseInt(thisdata.city));
 
-                   } else {
 
-                     isCountry += getprovince(parseInt(thisdata.province)) + "-";
 
-                     isCountry += getprovince(parseInt(thisdata.city)) + "-";
 
-                     isCountry += getprovince(parseInt(thisdata.district));
 
-                   }
 
-                 }
 
-                 theArr.push({
 
-                   key: i,
 
-                   id: thisdata.id, //业务名称
 
-                   bname: thisdata.bname, //业务名称
 
-                   cname: thisdata.cname, //业务品类
 
-                   area: isCountry ? isCountry : ProvinceCity,
 
-                   price: thisdata.price, //市场价
 
-                   offset: thisdata.offset, //最低折扣
 
-                   memberPrice: thisdata.memberPrice, //会员价
 
-                   activityPrice: thisdata.activityPrice, //活动价
 
-                   activityFlag: thisdata.activityFlag, //活动生效标识
 
-                   status: thisdata.status, //项目状态
 
-                   type: thisdata.type,
 
-                   arrProvinceCity: ProvinceCity,
 
-                 });
 
-               }
 
-               this.state.pagination.current = data.data.pageNo;
 
-               this.state.pagination.total = data.data.totalCount;
 
-             }
 
-             this.setState({
 
-               dataSource: theArr,
 
-               pagination: this.state.pagination,
 
-             });
 
-           }.bind(this),
 
-         }).always(
 
-           function () {
 
-             this.setState({
 
-               loading: false,
 
-             });
 
-           }.bind(this)
 
-         );
 
-     },
 
-     //项目规格列表
 
-     formatLoadData(pageNo, apiUrl){
 
-     	this.state.data = [];
 
-         this.setState({
 
-             loading: true,
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + '/api/admin/ProjectSize/listProjectSize',
 
-             data: {
 
-             	pageNo: pageNo || 1,
 
-                 pageSize: this.state.formatPagination.pageSize,
 
-                 pid:this.state.editId,
 
-             },
 
-             success: function (data) {
 
-                 let theArr = [];
 
-                 if (!data.data || !data.data.list) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     };
 
-                 } else {
 
-                     for (let i = 0; i < data.data.list.length; i++) {
 
-                     	let thisdata = data.data.list[i];
 
-                         theArr.push({
 
-                             key: i,
 
-                             formatId:thisdata.id,//规格ID
 
-                             formatPname: thisdata.pname,//规格名称
 
-                             formatBname: thisdata.bname,//项目品类
 
-                             formatPrice: thisdata.price,//市场价
 
-                             formatOffset: thisdata.offset,//最低折扣
 
-                             formatActivityPrice: thisdata.activityPrice,//活动价
 
-                             formatActivityFlag:thisdata.activityFlag,//活动生效标识
 
-                             formatMemberPrice:thisdata.memberPrice,//会员价
 
-                             formatStatus:thisdata.status,//会员价
 
-                         });
 
-                     };
 
-                     this.state.formatPagination.current = data.data.pageNo;
 
-                     this.state.formatPagination.total = data.data.totalCount;
 
-                 };
 
-                 this.setState({
 
-                     formatDataSource: theArr,
 
-                     formatPagination: this.state.formatPagination
 
-                 });
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     getInitialState() {
 
-         return {
 
-           searchMore: true,
 
-           selectedRowKeys: [],
 
-           selectedRows: [],
 
-           loading: false,
 
-           orgCodeUrl: [],
 
-           companyLogoUrl: [],
 
-           pagination: {
 
-             defaultCurrent: 1,
 
-             defaultPageSize: 10,
 
-             showQuickJumper: true,
 
-             pageSize: 10,
 
-             onChange: function (page) {
 
-               this.loadData(page);
 
-             }.bind(this),
 
-             showTotal: function (total) {
 
-               return "共" + total + "条数据";
 
-             },
 
-           },
 
-           formatPagination: {
 
-             defaultCurrent: 1,
 
-             defaultPageSize: 10,
 
-             showQuickJumper: true,
 
-             pageSize: 10,
 
-             onChange: function (page) {
 
-               this.loadData(page);
 
-             }.bind(this),
 
-             showTotal: function (total) {
 
-               return "共" + total + "条数据";
 
-             },
 
-           },
 
-           ContactsLists: [
 
-             {
 
-               title: "业务项目名称",
 
-               dataIndex: "formatBname",
 
-               key: "formatBname",
 
-             },
 
-             {
 
-               title: "规格名称",
 
-               dataIndex: "formatPname",
 
-               key: "formatPname",
 
-             },
 
-             {
 
-               title: "市场价",
 
-               dataIndex: "formatPrice",
 
-               key: "formatPrice",
 
-             },
 
-             {
 
-               title: "最低折扣",
 
-               dataIndex: "formatOffset",
 
-               key: "formatOffset",
 
-             },
 
-             {
 
-               title: "会员价",
 
-               dataIndex: "formatMemberPrice",
 
-               key: "formatMemberPrice",
 
-             },
 
-             {
 
-               title: "活动价",
 
-               dataIndex: "formatActivityPrice",
 
-               key: "formatActivityPrice",
 
-             },
 
-             {
 
-               title: "活动生效标识",
 
-               dataIndex: "formatActivityFlag",
 
-               key: "formatActivityFlag",
 
-               render: (text) => {
 
-                 return getGameState(text);
 
-               },
 
-             },
 
-             {
 
-               title: "状态",
 
-               dataIndex: "formatStatus",
 
-               key: "formatStatus",
 
-               render: (text) => {
 
-                 return getCategoryState(text.toString());
 
-               },
 
-             },
 
-           ],
 
-           formatDataSource: [],
 
-           columns: [
 
-             {
 
-               title: "项目名称",
 
-               dataIndex: "bname",
 
-               key: "bname",
 
-             },
 
-             {
 
-               title: "业务品类",
 
-               dataIndex: "cname",
 
-               key: "cname",
 
-             },
 
-             {
 
-               title: "业务地区",
 
-               dataIndex: "area",
 
-               key: "area",
 
-               //                  render: text => { return getprovince(text); }
 
-             },
 
-             {
 
-               title: "市场价",
 
-               dataIndex: "price",
 
-               key: "price",
 
-             },
 
-             {
 
-               title: "最低折扣",
 
-               dataIndex: "offset",
 
-               key: "offset",
 
-             },
 
-             {
 
-               title: "会员价",
 
-               dataIndex: "memberPrice",
 
-               key: "memberPrice",
 
-             },
 
-             {
 
-               title: "活动价",
 
-               dataIndex: "activityPrice",
 
-               key: "activityPrice",
 
-             },
 
-             {
 
-               title: "活动生效标识",
 
-               dataIndex: "activityFlag",
 
-               key: "activityFlag",
 
-               render: (text) => {
 
-                 return getGameState(text);
 
-               },
 
-             },
 
-             {
 
-               title: "业务状态",
 
-               dataIndex: "status",
 
-               key: "status",
 
-               render: (text) => {
 
-                 return getCategoryState(text);
 
-               },
 
-             },
 
-             {
 
-               title: "项目分类",
 
-               dataIndex: "type",
 
-               key: "type",
 
-               render: (text, record) => {
 
-                 if (record.type == 0) {
 
- 				    return "通用";
 
-                 } else if (record.type == 1) {
 
- 				    return "专利";
 
- 				} else if (record.type == 2) {
 
- 				    return "软著";
 
- 				} else if (record.type == 3) {
 
-                     return "审计";
 
-                 }else if(record.type == 4) {
 
-                     return "双软"
 
-                 }else if(record.type == 5) {
 
-                     return "高新"
 
-                 }else if(record.type == 6) {
 
-                     return "商标"
 
-                 }
 
-               },
 
-             },
 
-           ],
 
-           dataSource: [],
 
-         };
 
-     },
 
-     componentWillMount() {
 
-        this.selectSuperId();
 
-     },
 
-     //获取上级品类
 
-     selectSuperId() {
 
-     	this.state.data = []
 
-          $.ajax({
 
-                 method: "get",
 
-                 dataType: "json",
 
-                 crossDomain: false,
 
-                 url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
 
-                 data:{
 
-                   flag:0,
 
-                 },
 
-                 success: function (data) {
 
-                 		let theArr = [];
 
- 					    let thedata=data.data;
 
- 					    if (!thedata) {
 
- 		                    if (data.error && data.error.length) {
 
- 		                        message.warning(data.error[0].message);
 
- 		                    };
 
- 		                    thedata = {};
 
- 		              };
 
- 					    var contactIds=[];
 
- 				        	for(var i=0;i<data.data.length;i++){
 
- 		                    let theData = data.data[i];
 
- 		                    theArr.push(
 
- 		                        <Select.Option value={i.toString()} key={theData.cname}>{theData.cname}</Select.Option>
 
- 		                    );
 
- 		                };
 
- 						this.setState({
 
- 							SuperArr:thedata,
 
- 		                    contactsOption: theArr,
 
- 		                    orderStatusOptions:data.data,
 
- 	                    });
 
- 	                    console.log(theArr);
 
- 					}.bind(this),
 
- 				}).always(function () {
 
- 				this.loadData(this.state.ispage);
 
- 	            this.setState({
 
- 	                loading: false
 
- 	            });
 
- 	        }.bind(this));
 
- 	},
 
- 	//编辑部门,保存
 
-     edithandleSubmit(e){
 
-     	e.preventDefault();
 
-     	let offsetText;
 
-     	if(this.state.editOffset){
 
-     		if(this.state.editOffset>10||this.state.editOffset<0){
 
-     		message.warning('最低折扣请输入0到10之间的数字');
 
-     		return false;
 
-     		}else{
 
-     			offsetText=this.state.editOffset;
 
-     		}
 
-     	}
 
-     	this.props.form.validateFields((err, values) => {
 
- 			let theorgCodeUrl = [];
 
- 			if(this.state.orgCodeUrl.length) {
 
- 				let picArr = [];
 
- 				this.state.orgCodeUrl.map(function(item) {
 
- 					if ( item.response && item.response.data && item.response.data.length ){
 
- 						picArr.push(item.response.data);
 
- 					}
 
- 				});
 
- 				theorgCodeUrl = picArr.join(",");
 
- 			};
 
- 			let thecompanyLogoUrl = [];
 
- 			if(this.state.companyLogoUrl.length) {
 
- 				let picArr = [];
 
- 				this.state.companyLogoUrl.map(function(item) {
 
- 					if ( item.response && item.response.data && item.response.data.length ){
 
- 						picArr.push(item.response.data);
 
- 					}
 
- 				});
 
- 				thecompanyLogoUrl = picArr.join(",");
 
- 			};
 
- 			if(!err) {
 
- 				this.setState({
 
- 					loading: true
 
- 				});
 
- 				let nameText=this.state.SuperArr
 
- 				// let num = 0
 
- 				// nameText.forEach((item,index) => {
 
- 				// 	if(item.cname == this.state.editCname) {
 
- 				// 		num = index
 
- 				// 	}
 
- 				// })
 
- 				// let superText=(this.state.editCname.length==1)?nameText[parseInt(this.state.editCname)].id:this.state.editCid;
 
- 				// let superText=nameText[parseInt(this.state.editCname)].id
 
-                 let arr = nameText.filter((v,k)=>v.cname === this.state.editCname || String(k) === this.state.editCname)
 
- 				let superText=arr.length ? arr[0].id:"";
 
- 				let isCountry=0;
 
- 		    	let pro='';
 
- 		        let city='';
 
- 		        let dis='';
 
- 		        if(this.state.ProvinceCity==undefined||this.state.ProvinceCity.length==0){
 
- 		       		message.warning('请选择项目有效范围');
 
- 		       		this.setState({
 
- 		                loading: false
 
- 		            });
 
- 		    		return false;
 
- 		       	}else{
 
- 		       		switch(parseInt(this.state.ProvinceCity.length)){
 
- 		       		case 1:pro=this.state.ProvinceCity[0];break;
 
- 		       		case 2:pro=this.state.ProvinceCity[0];city=this.state.ProvinceCity[1];break;
 
- 		       		case 3:pro=this.state.ProvinceCity[0];city=this.state.ProvinceCity[1];dis=this.state.ProvinceCity[2];break;
 
- 		       		}
 
- 		       	}
 
- 		    	if(pro==0){
 
- 		    		isCountry=1;
 
- 		    		pro='';
 
- 		    	}
 
- 		        $.ajax({
 
- 		            method: "post",
 
- 		            dataType: "json",
 
- 		            crossDomain: false,
 
- 		            url:globalConfig.context + '/api/admin/ProjectSize/updateProject',
 
- 		            data:{
 
- 		            	id:this.state.editId,//项目ID
 
- 		            	cid:superText,//项目业务品类
 
- 		            	bname:this.state.editName,//业务项目名称
 
- 		            	price:this.state.editPrice,//市场价
 
- 		            	firstPayment:this.state.firstPayment,//首付金额
 
- 		            	offset:offsetText,//最低折扣
 
- 		            	activityPrice:this.state.editActivityPrice,//活动价
 
- 		            	activityFlag:this.state.editActivityFlag,//活动生效标识
 
- 		            	memberPrice:this.state.editMemberPrice,//项目ID
 
- 						status:this.state.editStatus,//项目状态
 
- 						type: this.state.typeStatus,//项目分类
 
- 		            	country:isCountry,//是否全国
 
- 		            	province:pro?pro:'',//省
 
- 		            	city:city?city:'',//市
 
- 		            	district:dis?dis:'',//区
 
- 		            	minLogo:theorgCodeUrl,
 
- 		            	maxLogo:thecompanyLogoUrl,
 
- 		            	introduce:this.state.editIntroduce,//项目介绍
 
- 		            	projectUrl:this.state.editProjectUrl,//项目地址
 
- 		            	valueEffect:this.state.editValueEffect,//项目价值及作用
 
- 		            	clientSize:this.state.editClientSize,//项目基本条件
 
- 		            	boutique:this.state.editBoutique,
 
- 		            }
 
- 		        }).done(function (data) {
 
- 		            this.setState({
 
- 		                loading: false
 
- 		            });
 
- 		            if (!data.error.length) {
 
- 		                message.success('保存成功!');
 
- 		                this.edithandleCancel();
 
- 		                this.selectSuperId();
 
- 		            } else {
 
- 		                message.warning(data.error[0].message);
 
- 		            }
 
- 		        }.bind(this));
 
- 			}
 
- 		})
 
-     },
 
-     //规格列表整行点击
 
-     formatTableRowClick(record, index){
 
-     	this.editformatClick();
 
-     	this.state.RowData = record;
 
-         this.setState({
 
-             selectedRowKeys:[],
 
-             formatId:record.formatId,//规格名称
 
-         	formatPname:record.formatPname,//规格名称
 
-         	formatPrice:record.formatPrice,//市场价
 
-         	formatOffset:record.formatOffset,//最低折扣
 
-         	formatActivityPrice:record.formatActivityPrice,//活动价
 
-         	formatActivityFlag:record.formatActivityFlag,//活动生效标识
 
-         	formatMemberPrice:record.formatMemberPrice,//会员价
 
-         	formatStatus:record.formatStatus.toString(),//项目状态
 
-         });
 
-     },
 
-     //项目列表整行点击
 
-     tableRowClick(record, index) {
 
-     	this.selectSuperId();
 
-         this.state.RowData = record;
 
-         this.setState({
 
-         	callnub:'1',
 
-             editvisible: true,
 
-             selectedRowKeys:[],
 
-         	rowId:record.businessId,
 
-         });
 
-          $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context +"/api/admin/ProjectSize/orgProject" ,
 
-             data: {
 
-                id: record.id
 
-             },
 
-             success: function (data) {
 
-                 let theArr = [];
 
-                 let ProvinceCity=[];
 
-                 let thisdata = data.data;
 
-                 if (!data) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     };
 
-                 } else {
 
-                 	if(thisdata.country==1){
 
-                 		ProvinceCity.push(0);
 
-                 	}else{
 
-                 		ProvinceCity.push(parseInt(thisdata.province));
 
- 	                	ProvinceCity.push(parseInt(thisdata.city));
 
- 	                	ProvinceCity.push(parseInt(thisdata.district));
 
-                 	}
 
- 					let str = ""
 
- 					if(thisdata.type == 0) {
 
- 						str = "通用"
 
- 					}else if(thisdata.type == 1) {
 
- 						str = "专利"
 
- 					}else if(thisdata.type == 2) {
 
- 						str = "软著"
 
- 					}else if(thisdata.type == 3) {
 
-                         str = "审计"
 
-                     }else if(thisdata.type == 4) {
 
-                         str = "双软"
 
-                     }else if(thisdata.type == 5) {
 
-                         str = "高新"
 
-                     }else if(thisdata.type == 6) {
 
-                         str = "商标"
 
-                     }
 
-                     theArr.push({
 
-                          editId: thisdata.id,//每一条记录的ID
 
-                          editName:thisdata.bname,//项目名称
 
-                          editCname: thisdata.cname,//项目分类
 
-                          editCid: thisdata.cid,//项目分类
 
-                          editCountry: thisdata.country,//是否全国
 
-                          editProvince: thisdata.province,//省
 
-                          editCity: thisdata.city,//市
 
-                          editDistrict: thisdata.district,//区
 
-                          editPrice: thisdata.price,//市场价
 
-                          firstPayment:thisdata.firstPayment,//首付金额
 
-                          editActivityPrice: thisdata.activityPrice,//活动价
 
-                          editOffset: thisdata.offset,//最低折扣
 
-                          editMemberPrice: thisdata.memberPrice,//会员价
 
-                          editActivityFlag:thisdata.activityFlag,//活动生效标识
 
- 						 editStatus:thisdata.status,//品类状态
 
- 						 typeStr: str,
 
- 						 typeStatus: thisdata.type,
 
-                          editCreateId:thisdata.createName,//创建人
 
-                          editTime:thisdata.createTimeFormattedDate,//创建时间
 
-                          editIntroduce:thisdata.introduce,//服务内容
 
-                          editProjectUrl:thisdata.projectUrl,//项目地址
 
-                          editValueEffect:thisdata.valueEffect,//价值及作用
 
-                          editClientSize:thisdata.clientSize,//基本条件
 
-                          editBoutique:thisdata.boutique,//是否精品
 
-                          orgCodeUrl: thisdata.minLogo ? splitUrl(thisdata.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
 
- 						 cditCompanyLogoUrl: thisdata.maxLogo ? splitUrl(thisdata.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
 
-                     });
 
- 				};
 
-                 //0 正常 1专利 2软著 3审计 4双软 5高新 6商标
 
- 				let str = ""
 
- 					if(thisdata.type == 0) {
 
- 						str = "通用"
 
- 					}else if(thisdata.type == 1) {
 
- 						str = "专利"
 
- 					}else if(thisdata.type == 2) {
 
- 						str = "软著"
 
- 					}else if(thisdata.type == 3) {
 
-                         str = "审计"
 
-                     }else if(thisdata.type == 4) {
 
-                         str = "双软"
 
-                     }else if(thisdata.type == 5) {
 
-                         str = "高新"
 
-                     }else if(thisdata.type == 6) {
 
-                         str = "商标"
 
-                     }
 
-                 this.setState({
 
-                   editId: thisdata.id, //每一条记录的ID
 
-                   editName: thisdata.bname, //项目名称
 
-                   editCname: thisdata.cname, //项目分类
 
-                   editCid: thisdata.cid, //项目分类
 
-                   editCountry: thisdata.country, //是否全国
 
-                   editProvince: thisdata.province, //省
 
-                   editCity: thisdata.city, //市
 
-                   editDistrict: thisdata.district, //区
 
-                   editPrice: thisdata.price, //市场价
 
-                   firstPayment: thisdata.firstPayment,
 
-                   editActivityPrice: thisdata.activityPrice, //活动价
 
-                   editOffset: thisdata.offset, //最低折扣
 
-                   editMemberPrice: thisdata.memberPrice, //会员价
 
-                   editActivityFlag: thisdata.activityFlag, //活动生效标识
 
-                   editStatus: thisdata.status, //品类状态
 
-                   typeStr: str,
 
-                   typeStatus: thisdata.type,
 
-                   editCreateId: thisdata.createName, //创建人
 
-                   editTime: thisdata.createTimeFormattedDate, //创建时间
 
-                   editIntroduce: thisdata.introduce, //服务内容
 
-                   editProjectUrl: thisdata.projectUrl, //项目地址
 
-                   editValueEffect: thisdata.valueEffect, //价值及作用
 
-                   editClientSize: thisdata.clientSize, //基本条件
 
-                   editBoutique: thisdata.boutique, //是否精品
 
-                   orgCodeUrl: thisdata.minLogo
 
-                     ? splitUrl(
 
-                         thisdata.minLogo,
 
-                         ",",
 
-                         globalConfig.avatarHost + "/upload"
 
-                       )
 
-                     : [],
 
-                   companyLogoUrl: thisdata.maxLogo
 
-                     ? splitUrl(
 
-                         thisdata.maxLogo,
 
-                         ",",
 
-                         globalConfig.avatarHost + "/upload"
 
-                       )
 
-                     : [],
 
-                   editDataSource: theArr,
 
-                   ProvinceCity: ProvinceCity
 
-                 });
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     //左侧图片地址
 
-     getOrgCodeUrl(e) {
 
- 		this.setState({ orgCodeUrl: e });
 
- 	},
 
- 	//右侧图片地址
 
- 	getCompanyLogoUrl(e) {
 
- 		this.setState({ companyLogoUrl: e });
 
- 	},
 
-     //编辑一个规格,保存
 
-     editformathandleSubmit(e){
 
-     	e.preventDefault();
 
-     	let offsetText;
 
-     	if(this.state.formatOffset){
 
-     		if(this.state.formatOffset>10||this.state.formatOffset<0){
 
-     		message.warning('最低折扣请输入0到10之间的数字');
 
-     		return false;
 
-     		}else{
 
-     			offsetText=this.state.formatOffset;
 
-     		}
 
-     	}
 
-     	this.props.form.validateFields((err, values) => {
 
-             if (!err) {
 
-                 this.setState({
 
-                     loading: true
 
-                 });
 
-                 $.ajax({
 
-                     method: "post",
 
-                     dataType: "json",
 
-                     crossDomain: false,
 
-                     url:globalConfig.context + '/api/admin/ProjectSize/orgProjectSize',
 
-                     data:{
 
-                     	id:this.state.formatId,//项目ID
 
-                     	pname:this.state.formatPname,//规格名称
 
-                     	price:this.state.formatPrice,//市场价
 
-                     	offset:offsetText,//最低折扣
 
-                     	activityPrice:this.state.formatActivityPrice,//活动价
 
-                     	activityFlag:this.state.formatActivityFlag,//活动生效标识
 
-                     	memberPrice:this.state.formatMemberPrice,//会员价
 
-                     	status:this.state.formatStatus,//项目状态
 
-                     	}
 
-                 }).done(function (data) {
 
-                     this.setState({
 
-                         loading: false
 
-                     });
 
-                     if (!data.error.length) {
 
-                         message.success('修改规格成功!');
 
-                         this.formatLoadData();
 
-                         this.editformathandleCancel();
 
-                     } else {
 
-                         message.warning(data.error[0].message);
 
-                     }
 
-                 }.bind(this));
 
-             }
 
-         });
 
-     },
 
-     //新增一个规格,保存
 
-     formathandleSubmit(e){
 
-     	e.preventDefault();
 
-     	let offsetText;
 
-     	if(this.state.formatOffset){
 
-     		if(this.state.formatOffset>10||this.state.formatOffset<0){
 
-     		message.warning('最低折扣请输入0到10之间的数字');
 
-     		return false;
 
-     		}else{
 
-     			offsetText=this.state.formatOffset;
 
-     		}
 
-     	}
 
-     	this.props.form.validateFields((err, values) => {
 
-             if (!err) {
 
-                 this.setState({
 
-                     loading: true
 
-                 });
 
-                 $.ajax({
 
-                     method: "post",
 
-                     dataType: "json",
 
-                     crossDomain: false,
 
-                     url:globalConfig.context + '/api/admin/ProjectSize/addProjectSize',
 
-                     data:{
 
-                     	pid:this.state.editId,//项目ID
 
-                     	pname:this.state.formatPname,//规格名称
 
-                     	price:this.state.formatPrice,//市场价
 
-                     	offset:offsetText,//最低折扣
 
-                     	activityPrice:this.state.formatActivityPrice,//活动价
 
-                     	activityFlag:this.state.formatActivityFlag,//活动生效标识
 
-                     	memberPrice:this.state.formatMemberPrice,//会员价
 
-                     	status:this.state.formatStatus,//项目状态
 
-                     	}
 
-                 }).done(function (data) {
 
-                     this.setState({
 
-                         loading: false
 
-                     });
 
-                     if (!data.error.length) {
 
-                         message.success('新增规格成功!');
 
-                         this.formathandleCancel();
 
-                         this.formatLoadData();
 
-                     } else {
 
-                         message.warning(data.error[0].message);
 
-                     }
 
-                 }.bind(this));
 
-             }
 
-         });
 
-     },
 
-     //新增一个项目,保存
 
-     addhandleSubmit(e){
 
-     	e.preventDefault();
 
-     	if(!this.state.categoryName){
 
-     		message.warning('请输入项目名称');
 
-     		return false;
 
-     	}
 
-     	if(!this.state.addCid){
 
-     		message.warning('请选择项目品类');
 
-     		return false;
 
-     	}
 
-     	let isCountry=0;
 
-     	let pro='';
 
-         let city='';
 
-         let dis='';
 
-        	if(this.state.ProvinceCity==undefined){
 
-        		message.warning('请选择项目有效范围');
 
-     		return false;
 
-        	}else{
 
-        		switch(parseInt(this.state.ProvinceCity.length)){
 
-        		case 1:pro=this.state.ProvinceCity[0];break;
 
-        		case 2:pro=this.state.ProvinceCity[0];city=this.state.ProvinceCity[1];break;
 
-        		case 3:pro=this.state.ProvinceCity[0];city=this.state.ProvinceCity[1];dis=this.state.ProvinceCity[2];break;
 
-        		}
 
-        	}
 
-        	if(pro==0){
 
-        		isCountry=1;
 
-        		pro='';
 
-        	}
 
- 		this.props.form.validateFields((err, values) => {
 
-             if (!err) {
 
-                 this.setState({
 
-                     loading: true
 
-                 });
 
-                 //上级组织字典
 
-                 let nameText=this.state.SuperArr;
 
-                 let superText=nameText[parseInt(this.state.addCid)].id;
 
-                 $.ajax({
 
-                     method: "post",
 
-                     dataType: "json",
 
-                     crossDomain: false,
 
-                     url:globalConfig.context + '/api/admin/ProjectSize/addProject',
 
-                     data:{
 
-                     	bname:this.state.categoryName,//项目名称
 
-                     	cid:superText,//品类类ID
 
-                     	boutique:this.state.boutique?this.state.boutique:'0',
 
-                     	country:isCountry,//是否全国
 
-                     	province:pro,//省
 
-                     	city:city,//市
 
-                     	district:dis,//区
 
-                     	}
 
-                 }).done(function (data) {
 
-                     this.setState({
 
-                         loading: false
 
-                     });
 
-                     if (!data.error.length) {
 
-                         message.success('新增项目成功!');
 
-                         this.handleCancel();
 
-                         this.selectSuperId();
 
-                     } else {
 
-                         message.warning(data.error[0].message);
 
-                     }
 
-                 }.bind(this));
 
-             }
 
-         });
 
-     },
 
-     //项目整行删除
 
-     delectRow() {
 
-         let deletedIds = '';
 
-         for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 
-             let rowItem = this.state.selectedRows[idx];
 
-             if (rowItem.id) {
 
-                 deletedIds=rowItem.id;
 
-             };
 
-         };
 
-         this.setState({
 
-             selectedRowKeys: [],
 
-             loading: deletedIds.length > 0
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/ProjectSize/deleteProject",
 
-             data: {
 
-                 id:deletedIds
 
-             }
 
-         }).done(function (data) {
 
-             if (!data.error.length) {
 
-                 message.success('删除成功!');
 
-                 this.setState({
 
-                     loading: false,
 
-                 });
 
-             } else {
 
-                 message.warning(data.error[0].message);
 
-             };
 
-             this.selectSuperId();
 
-         }.bind(this));
 
-     },
 
-     //项目整行停用
 
-     blockRow() {
 
-         let deletedIds = '';
 
-         for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 
-             let rowItem = this.state.selectedRows[idx];
 
-             if (rowItem.id) {
 
-                 deletedIds=rowItem.id;
 
-             };
 
-         };
 
-         this.setState({
 
-             selectedRowKeys: [],
 
-             loading: deletedIds.length > 0
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/ProjectSize/stopProject",
 
-             data: {
 
-                 id:deletedIds
 
-             }
 
-         }).done(function (data) {
 
-             if (!data.error.length) {
 
-                 message.success('该项目已成功停用!');
 
-                 this.setState({
 
-                     loading: false,
 
-                 });
 
-             } else {
 
-                 message.warning(data.error[0].message);
 
-             };
 
-             this.selectSuperId();
 
-         }.bind(this));
 
-     },
 
-     //规格整行删除
 
-     delectRowSize() {
 
-         let deletedIds = '';
 
-         for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 
-             let rowItem = this.state.selectedRows[idx];
 
-             if (rowItem.formatId) {
 
-                 deletedIds=rowItem.formatId;
 
-             };
 
-         };
 
-         this.setState({
 
-             selectedRowKeys: [],
 
-             loading: deletedIds.length > 0
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/ProjectSize/deleteProjectSize",
 
-             data: {
 
-                 id: deletedIds
 
-             }
 
-         }).done(function (data) {
 
-             if (!data.error.length) {
 
-                 message.success('删除成功!');
 
-                 this.setState({
 
-                     loading: false,
 
-                 });
 
-             } else {
 
-                 message.warning(data.error[0].message);
 
-             };
 
-             this.formatLoadData();
 
-         }.bind(this));
 
-     },
 
-     //规格整行停用
 
-     blockRowSize() {
 
-         let deletedIds = '';
 
-         for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 
-             let rowItem = this.state.selectedRows[idx];
 
-             if (rowItem.formatId) {
 
-                 deletedIds=rowItem.formatId;
 
-             };
 
-         };
 
-         this.setState({
 
-             selectedRowKeys: [],
 
-             loading: deletedIds.length > 0
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/ProjectSize/stopProjectSize",
 
-             data: {
 
-                 id: deletedIds
 
-             }
 
-         }).done(function (data) {
 
-             if (!data.error.length) {
 
-                 message.success('该项目已成功停用!');
 
-                 this.setState({
 
-                     loading: false,
 
-                 });
 
-             } else {
 
-                 message.warning(data.error[0].message);
 
-             };
 
-             this.formatLoadData();
 
-         }.bind(this));
 
-     },
 
-     addClick() {
 
-         this.state.RowData = {};
 
-         this.setState({
 
-             visible: true
 
-         });
 
-         this.addReset();
 
-     },
 
-     editClick(e) {
 
-         this.state.RowData = {};
 
-         this.setState({
 
-             editvisible: true
 
-         });
 
-     },
 
-     formatClick(e) {
 
-     	this.formatReset();
 
-         this.state.RowData = {};
 
-         this.setState({
 
-             formatvisible: true
 
-         });
 
-     },
 
-     editformatClick(e) {
 
-         this.state.RowData = {};
 
-         this.setState({
 
-             editformatvisible: true
 
-         });
 
-     },
 
-    	handleCancel() {
 
-         this.setState({ visible: false })
 
-     },
 
-     edithandleCancel(e) {
 
-         this.setState({
 
-         	editvisible: false
 
-         });
 
-     },
 
-     formathandleCancel(e) {
 
-         this.setState({
 
-         	formatvisible: false
 
-         });
 
-     },
 
-     editformathandleCancel(e) {
 
-         this.setState({
 
-         	editformatvisible: false
 
-         });
 
-     },
 
-     search() {
 
-         this.loadData();
 
-     },
 
-     //搜索部分的清零
 
-     reset() {
 
-         this.state.bname = '';//项目名称清零
 
-         this.state.cid = undefined;//品类名称清零
 
-         this.state.ressSearch= undefined;//省市区清零
 
-         this.state.activityFlag = undefined;//活动生效清零
 
- 		this.state.status = undefined;//项目状态清零
 
- 		this.state.type = undefined;//项目分类清零
 
-         this.loadData();
 
-     },
 
-     //新增部分的清零
 
-     addReset(){
 
-     	this.state.categoryName='';//项目名称清零
 
-     	this.state.ProvinceCity=undefined;
 
-     	this.state.addCid=undefined;
 
-     	this.state.boutique='';
 
-     },
 
-     //规格新增清零
 
-     formatReset() {
 
-         this.state.formatPname = '';//规格名称清零
 
-         this.state.formatPrice = '';//市场价清零
 
-         this.state.formatOffset = '';//最低折扣清零
 
-         this.state.formatActivityPrice = '';//活动价清零
 
-         this.state.formatMemberPrice = '';//会员价清零
 
-         this.state.formatActivityFlag = undefined;//活动生效标识清零
 
-         this.state.formatStatus= undefined;//项目状态清零
 
-         this.formatLoadData();
 
-     },
 
-     //详情tab切换数据处理
 
- 	callback(e) {
 
- 		this.setState({
 
- 			callnub: e,
 
- 		})
 
- 		if(e == 1) {
 
- 		}
 
- 		if(e == 2) {
 
- 			this.formatLoadData();
 
- 		}
 
- 	},
 
-     //更多搜索的显示与否
 
-     searchSwitch() {
 
-         this.setState({
 
-             searchMore: !this.state.searchMore
 
-         });
 
-     },
 
-     changeList(arr) {
 
-         const newArr = [];
 
-         this.state.columns.forEach(item => {
 
-             arr.forEach(val => {
 
-                 if (val === item.title) {
 
-                     newArr.push(item);
 
-                 }
 
-             });
 
-         });
 
-         this.setState({
 
-             changeList: newArr
 
-         });
 
-     },
 
-     render() {
 
-     	const FormItem = Form.Item
 
-         const rowSelection = {
 
-             selectedRowKeys: this.state.selectedRowKeys,
 
-             onChange: (selectedRowKeys, selectedRows) => {
 
-                 this.setState({
 
-                     selectedRows: selectedRows.slice(-1),
 
-                     selectedRowKeys: selectedRowKeys.slice(-1)
 
-                 });
 
-             }
 
-         };
 
-          const formItemLayout = {
 
-             labelCol: { span: 8 },
 
-             wrapperCol: { span: 14 },
 
-        };
 
-        	const { getFieldDecorator } = this.props.form;
 
-         const hasSelected = this.state.selectedRowKeys.length > 0;
 
-         const { RangePicker } = DatePicker;
 
-         return (
 
-           <div className="user-content">
 
-             <div className="content-title">
 
-               <Tabs
 
-                 defaultActiveKey="1"
 
-                 className="test"
 
-               >
 
-                 <TabPane tab="搜索" key="1">
 
-                   <div className="user-search">
 
-                     <Input
 
-                       placeholder="业务项目名称"
 
-                       style={{
 
-                         width: "150px",
 
-                         marginRight: "10px",
 
-                         marginBottom: "10px",
 
-                         marginLeft: 10,
 
-                       }}
 
-                       value={this.state.bname}
 
-                       onChange={(e) => {
 
-                         this.setState({ bname: e.target.value });
 
-                       }}
 
-                     />
 
-                     <Select
 
-                       placeholder="业务品类"
 
-                       style={{ width: "200px", marginRight: "10px" }}
 
-                       value={this.state.cid}
 
-                       onChange={(e) => {
 
-                         this.setState({ cid: e });
 
-                       }}
 
-                       notFoundContent="未获取到上级品类列表"
 
-                     >
 
-                       {this.state.contactsOption}
 
-                     </Select>
 
-                     <Button
 
-                       type="primary"
 
-                       onClick={this.search}
 
-                       style={{ marginRight: "10px" }}
 
-                     >
 
-                       搜索
 
-                     </Button>
 
-                     <Button
 
-                       onClick={this.reset}
 
-                       style={{ marginRight: "10px" }}
 
-                     >
 
-                       重置
 
-                     </Button>
 
-                     <Popconfirm
 
-                       title="是否删除?"
 
-                       onConfirm={this.delectRow}
 
-                       okText="是"
 
-                       cancelText="否"
 
-                     >
 
-                       <Button
 
-                         style={{
 
-                           background: "#ea0862",
 
-                           border: "none",
 
-                           color: "#fff",
 
-                           marginRight: "10px",
 
-                           marginLeft: "10px",
 
-                         }}
 
-                         disabled={!hasSelected}
 
-                       >
 
-                         删除
 
-                         <Icon type="minus" />
 
-                       </Button>
 
-                     </Popconfirm>
 
-                     <Popconfirm
 
-                       title="是否停用?"
 
-                       onConfirm={this.blockRow}
 
-                       okText="是"
 
-                       cancelText="否"
 
-                     >
 
-                       <Button
 
-                         style={{
 
-                           background: "#ea0862",
 
-                           border: "none",
 
-                           color: "#fff",
 
-                           marginRight: "10px",
 
-                           marginLeft: "10px",
 
-                           display: "none",
 
-                         }}
 
-                         disabled={!hasSelected}
 
-                       >
 
-                         停用
 
-                         <Icon type="minus" />
 
-                       </Button>
 
-                     </Popconfirm>
 
-                     <span style={{ marginRight: "20px" }}>
 
-                       更多搜索{" "}
 
-                       <Switch
 
-                         defaultChecked={false}
 
-                         onChange={this.searchSwitch}
 
-                       />
 
-                     </span>
 
-                     <div
 
-                       className="search-more"
 
-                       style={
 
-                         this.state.searchMore
 
-                           ? { display: "none" }
 
-                           : { display: "block" }
 
-                       }
 
-                     >
 
-                       <span
 
-                         style={{
 
-                           marginRight: "10px",
 
-                           marginBottom: "10px",
 
-                           marginLeft: 10,
 
-                         }}
 
-                       >
 
-                         <Cascader
 
-                           options={provinceSelect()}
 
-                           value={this.state.ressSearch}
 
-                           placeholder="选择省份"
 
-                           onChange={(e, pre) => {
 
-                             this.setState({ ressSearch: e });
 
-                           }}
 
-                         />
 
-                       </span>
 
-                       <span
 
-                         style={{ marginRight: "10px", marginBottom: "10px" }}
 
-                       >
 
-                         <Cascader
 
-                           options={citySelect()}
 
-                           value={this.state.ressSearch}
 
-                           placeholder="选择城市"
 
-                           onChange={(e, pre) => {
 
-                             this.setState({ ressSearch: e });
 
-                           }}
 
-                         />
 
-                       </span>
 
-                       <span style={{ marginRight: "10px" }}>
 
-                         <Cascader
 
-                           options={areaSelect()}
 
-                           value={this.state.ressSearch}
 
-                           placeholder="选择地区"
 
-                           onChange={(e, pre) => {
 
-                             this.setState({ ressSearch: e });
 
-                           }}
 
-                         />
 
-                       </span>
 
-                       <Select
 
-                         placeholder="活动生效标识"
 
-                         style={{
 
-                           width: "150px",
 
-                           marginRight: "10px",
 
-                           marginBottom: "10px",
 
-                         }}
 
-                         value={this.state.activityFlag}
 
-                         onChange={(e) => {
 
-                           this.setState({ activityFlag: e });
 
-                         }}
 
-                       >
 
-                         <Select.Option value="0">有效</Select.Option>
 
-                         <Select.Option value="1">无效</Select.Option>
 
-                       </Select>
 
-                       <Select
 
-                         placeholder="项目状态"
 
-                         style={{ width: "150px", marginRight: "10px" }}
 
-                         value={this.state.status}
 
-                         onChange={(e) => {
 
-                           this.setState({ status: e });
 
-                         }}
 
-                       >
 
-                         <Select.Option value="0">正常</Select.Option>
 
-                         <Select.Option value="1">停用</Select.Option>
 
-                       </Select>
 
-                       <Select
 
-                         placeholder="项目分类"
 
-                         style={{ width: "150px", marginRight: "10px" }}
 
-                         value={this.state.type}
 
-                         onChange={(e) => {
 
-                           this.setState({ type: e });
 
-                         }}
 
-                       >
 
-                         <Select.Option value="0">通用</Select.Option>
 
-                         <Select.Option value="1">专利</Select.Option>
 
-                         <Select.Option value="2">软著</Select.Option>
 
-                         <Select.Option value="3">审计</Select.Option>
 
-                         <Select.Option value="4">双软</Select.Option>
 
-                         <Select.Option value="5">高新</Select.Option>
 
-                         <Select.Option value="6">商标</Select.Option>
 
-                       </Select>
 
-                     </div>
 
-                   </div>
 
-                 </TabPane>
 
-                 <TabPane tab="新增项目" key="2">
 
-                   <Button
 
-                     type="primary"
 
-                     className="addButton"
 
-                     onClick={this.addClick}
 
-                     style={{
 
-                       float: "left",
 
-                       marginRight: "50px",
 
-                       marginLeft: 10,
 
-                       marginBottom: 10,
 
-                     }}
 
-                   >
 
-                     新增项目
 
-                     <Icon type="plus" />
 
-                   </Button>
 
-                 </TabPane>
 
-                 <TabPane tab="更改表格显示数据" key="3">
 
-                   <div style={{ marginLeft: 10 }}>
 
-                       <ChooseList
 
-                           columns={this.state.columns}
 
-                           changeFn={this.changeList}
 
-                           changeList={this.state.changeList}
 
-                           top={55}
 
-                           margin={11}
 
-                       />
 
-                   </div>
 
-                 </TabPane>
 
-               </Tabs>
 
-               <div className="patent-table">
 
-                 <Spin spinning={this.state.loading}>
 
-                   <Table
 
-                     size="middle"
 
-                     columns={
 
-                       this.state.changeList
 
-                           ? this.state.changeList
 
-                           : this.state.columns
 
-                     }
 
-                     dataSource={this.state.dataSource}
 
-                     rowSelection={rowSelection}
 
-                     pagination={this.state.pagination}
 
-                     onRowClick={this.tableRowClick}
 
-                     current={this.state.aa}
 
-                   />
 
-                 </Spin>
 
-               </div>
 
-               <div className="patent-desc">
 
-                 <Modal
 
-                   maskClosable={false}
 
-                   visible={this.state.visible}
 
-                   onOk={this.checkPatentProcess}
 
-                   onCancel={this.handleCancel}
 
-                   width="400px"
 
-                   title="新增业务项目"
 
-                   footer=""
 
-                   className="admin-desc-content"
 
-                 >
 
-                   <Form
 
-                     horizontal
 
-                     onSubmit={this.addhandleSubmit}
 
-                     id="demand-form"
 
-                   >
 
-                     <Spin spinning={this.state.loading}>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="业务项目名称"
 
-                         >
 
-                           <Input
 
-                             size='default'
 
-                             placeholder="业务项目名称"
 
-                             value={this.state.categoryName}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({ categoryName: e.target.value });
 
-                             }}
 
-                             required="required"
 
-                           />
 
-                           <span
 
-                             className="mandatory"
 
-                             style={{ color: "red", marginLeft: "5px" }}
 
-                           >
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="业务品类"
 
-                         >
 
-                           <Select
 
-                               size='default'
 
-                             placeholder="请选择业务品类"
 
-                             value={this.state.addCid}
 
-                             onChange={(e) => {
 
-                               this.setState({ addCid: e });
 
-                             }}
 
-                             notFoundContent="未获取到业务品类列表"
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             required="required"
 
-                           >
 
-                             {this.state.contactsOption}
 
-                           </Select>
 
-                           <span
 
-                             className="mandatory"
 
-                             style={{ color: "red", marginLeft: "5px" }}
 
-                           >
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="是否精品"
 
-                         >
 
-                           <Radio.Group
 
-                               size='default'
 
-                             value={this.state.boutique}
 
-                               style={{marginBottom:'5px'}}
 
-                             onChange={(e) => {
 
-                               this.setState({ boutique: e.target.value });
 
-                             }}
 
-                           >
 
-                             <Radio value={1}>精品</Radio>
 
-                             <Radio value={0}>非精品</Radio>
 
-                           </Radio.Group>
 
-                         </FormItem>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="省"
 
-                         >
 
-                           <Cascader
 
-                               size='default'
 
-                             options={provinceSelect()}
 
-                             value={this.state.ProvinceCity}
 
-                             placeholder="选择省"
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e, pre) => {
 
-                               this.setState({ ProvinceCity: e });
 
-                             }}
 
-                           />
 
-                           <span style={{ color: "red", marginLeft: "5px" }}>
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="省-市"
 
-                         >
 
-                           <Cascader
 
-                               size='default'
 
-                             options={citySelect()}
 
-                             value={this.state.ProvinceCity}
 
-                             placeholder="选择市"
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e, pre) => {
 
-                               this.setState({ ProvinceCity: e });
 
-                             }}
 
-                           />
 
-                           <span style={{ color: "red", marginLeft: "5px" }}>
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="省-市-区"
 
-                         >
 
-                           <Cascader
 
-                               size='default'
 
-                             options={areaSelect()}
 
-                             value={this.state.ProvinceCity}
 
-                             placeholder="选择区"
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e, pre) => {
 
-                               this.setState({ ProvinceCity: e });
 
-                             }}
 
-                           />
 
-                           <span style={{ color: "red", marginLeft: "5px" }}>
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                       </div>
 
-                       <FormItem wrapperCol={{ span: 12, offset: 7 }}>
 
-                         <Button
 
-                           className="set-submit"
 
-                           type="primary"
 
-                           htmlType="submit"
 
-                         >
 
-                           保存
 
-                         </Button>
 
-                         <Button
 
-                           className="set-submit"
 
-                           type="ghost"
 
-                           onClick={this.handleCancel}
 
-                           style={{ marginLeft: "15px" }}
 
-                         >
 
-                           取消
 
-                         </Button>
 
-                       </FormItem>
 
-                     </Spin>
 
-                   </Form>
 
-                 </Modal>
 
-               </div>
 
-               <div className="patent-desc">
 
-                 <Modal
 
-                   maskClosable={false}
 
-                   visible={this.state.formatvisible}
 
-                   onOk={this.checkPatentProcess}
 
-                   onCancel={this.formathandleCancel}
 
-                   width="400px"
 
-                   title="新增项目规格"
 
-                   footer=""
 
-                   className="admin-desc-content"
 
-                 >
 
-                   <Form
 
-                     horizontal
 
-                     onSubmit={this.formathandleSubmit}
 
-                     id="demand-form"
 
-                   >
 
-                     <Spin spinning={this.state.loading}>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="项目名称"
 
-                         >
 
-                           <span style={{ width: "94%",marginBottom:'5px' }}>
 
-                             {this.state.editName}
 
-                           </span>
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="规格名称"
 
-                         >
 
-                           <Input
 
-                             size='default'
 
-                             placeholder="规格名称"
 
-                             value={this.state.formatPname}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatPname: e.target.value });
 
-                             }}
 
-                             required="required"
 
-                           />
 
-                           <span
 
-                             className="mandatory"
 
-                             style={{ color: "red", marginLeft: "5px" }}
 
-                           >
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="市场价"
 
-                         >
 
-                           <Input
 
-                             size='default'
 
-                             placeholder="市场价"
 
-                             value={this.state.formatPrice}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatPrice: e.target.value });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="活动价"
 
-                         >
 
-                           <Input
 
-                             size='default'
 
-                             placeholder="活动价"
 
-                             value={this.state.formatActivityPrice}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({
 
-                                 formatActivityPrice: e.target.value,
 
-                               });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="最低折扣"
 
-                         >
 
-                           <Input
 
-                             size='default'
 
-                             placeholder="最低折扣"
 
-                             value={this.state.formatOffset}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatOffset: e.target.value });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="会员价"
 
-                         >
 
-                           <Input
 
-                             size='default'
 
-                             placeholder="会员价"
 
-                             value={this.state.formatMemberPrice}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({
 
-                                 formatMemberPrice: e.target.value,
 
-                               });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="活动生效"
 
-                         >
 
-                           <Select
 
-                             size='default'
 
-                             placeholder="活动生效"
 
-                             value={this.state.formatActivityFlag}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatActivityFlag: e });
 
-                             }}
 
-                           >
 
-                             {gameState.map(function (item) {
 
-                               return (
 
-                                 <Select.Option key={item.value}>
 
-                                   {item.key}
 
-                                 </Select.Option>
 
-                               );
 
-                             })}
 
-                           </Select>
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="项目状态"
 
-                         >
 
-                           <Select
 
-                             size='default'
 
-                             placeholder="项目状态"
 
-                             value={this.state.formatStatus}
 
-                             style={{ width: "94%",marginBottom:'5px' }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatStatus: e });
 
-                             }}
 
-                           >
 
-                             {conditionOrganization.map(function (item) {
 
-                               return (
 
-                                 <Select.Option key={item.value}>
 
-                                   {item.key}
 
-                                 </Select.Option>
 
-                               );
 
-                             })}
 
-                           </Select>
 
-                         </FormItem>
 
-                       </div>
 
-                       <FormItem wrapperCol={{ span: 12, offset: 7 }}>
 
-                         <Button
 
-                           className="set-submit"
 
-                           type="primary"
 
-                           htmlType="submit"
 
-                         >
 
-                           保存
 
-                         </Button>
 
-                         <Button
 
-                           className="set-submit"
 
-                           type="ghost"
 
-                           onClick={this.formathandleCancel}
 
-                           style={{ marginLeft: "15px" }}
 
-                         >
 
-                           取消
 
-                         </Button>
 
-                       </FormItem>
 
-                     </Spin>
 
-                   </Form>
 
-                 </Modal>
 
-               </div>
 
-               <div className="patent-desc">
 
-                 <Modal
 
-                   maskClosable={false}
 
-                   visible={this.state.editformatvisible}
 
-                   onOk={this.checkPatentProcess}
 
-                   onCancel={this.editformathandleCancel}
 
-                   width="400px"
 
-                   title="编辑项目规格"
 
-                   footer=""
 
-                   className="admin-desc-content"
 
-                 >
 
-                   <Form
 
-                     horizontal
 
-                     onSubmit={this.editformathandleSubmit}
 
-                     id="demand-form"
 
-                   >
 
-                     <Spin spinning={this.state.loading}>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="规格名称"
 
-                         >
 
-                           <Input
 
-                             placeholder="规格名称"
 
-                             value={this.state.formatPname}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatPname: e.target.value });
 
-                             }}
 
-                             required="required"
 
-                           />
 
-                           <span
 
-                             className="mandatory"
 
-                             style={{ color: "red", marginLeft: "5px" }}
 
-                           >
 
-                             *
 
-                           </span>
 
-                         </FormItem>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="创建人"
 
-                         >
 
-                           <span style={{ width: "94%" }}>
 
-                             {this.state.editCreateId}
 
-                           </span>
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="市场价"
 
-                         >
 
-                           <Input
 
-                             placeholder="市场价"
 
-                             value={this.state.formatPrice}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatPrice: e.target.value });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="活动价"
 
-                         >
 
-                           <Input
 
-                             placeholder="活动价"
 
-                             value={this.state.formatActivityPrice}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({
 
-                                 formatActivityPrice: e.target.value,
 
-                               });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="最低折扣"
 
-                         >
 
-                           <Input
 
-                             placeholder="最低折扣"
 
-                             value={this.state.formatOffset}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatOffset: e.target.value });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="会员价"
 
-                         >
 
-                           <Input
 
-                             placeholder="会员价"
 
-                             value={this.state.formatMemberPrice}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({
 
-                                 formatMemberPrice: e.target.value,
 
-                               });
 
-                             }}
 
-                           />
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="活动生效"
 
-                         >
 
-                           <Select
 
-                             placeholder="活动生效"
 
-                             value={this.state.formatActivityFlag}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatActivityFlag: e });
 
-                             }}
 
-                           >
 
-                             {gameState.map(function (item) {
 
-                               return (
 
-                                 <Select.Option key={item.value}>
 
-                                   {item.key}
 
-                                 </Select.Option>
 
-                               );
 
-                             })}
 
-                           </Select>
 
-                         </FormItem>
 
-                         <FormItem
 
-                           labelCol={{ span: 7 }}
 
-                           wrapperCol={{ span: 12 }}
 
-                           label="项目状态"
 
-                         >
 
-                           <Select
 
-                             placeholder="项目状态"
 
-                             value={this.state.formatStatus}
 
-                             style={{ width: "94%" }}
 
-                             onChange={(e) => {
 
-                               this.setState({ formatStatus: e });
 
-                             }}
 
-                           >
 
-                             {conditionOrganization.map(function (item) {
 
-                               return (
 
-                                 <Select.Option key={item.value}>
 
-                                   {item.key}
 
-                                 </Select.Option>
 
-                               );
 
-                             })}
 
-                           </Select>
 
-                         </FormItem>
 
-                       </div>
 
-                       <FormItem wrapperCol={{ span: 12, offset: 7 }}>
 
-                         <Button
 
-                           className="set-submit"
 
-                           type="primary"
 
-                           htmlType="submit"
 
-                         >
 
-                           保存
 
-                         </Button>
 
-                         <Button
 
-                           className="set-submit"
 
-                           type="ghost"
 
-                           onClick={this.editformathandleCancel}
 
-                           style={{ marginLeft: "15px" }}
 
-                         >
 
-                           取消
 
-                         </Button>
 
-                       </FormItem>
 
-                     </Spin>
 
-                   </Form>
 
-                 </Modal>
 
-               </div>
 
-               <div className="patent-desc">
 
-                 <Modal
 
-                   maskClosable={false}
 
-                   className="customeDetails"
 
-                   title="业务项目"
 
-                   width="1000px"
 
-                   visible={this.state.editvisible}
 
-                   onOk={this.edithandleCancel}
 
-                   onCancel={this.edithandleCancel}
 
-                   footer=""
 
-                 >
 
-                   <Tabs
 
-                     defaultActiveKey="1"
 
-                     onChange={this.callback}
 
-                     activeKey={this.state.callnub}
 
-                   >
 
-                     <TabPane tab="业务项目基本资料" key="1">
 
-                       <Form
 
-                         horizontal
 
-                         onSubmit={this.edithandleSubmit}
 
-                         id="demand-form"
 
-                       >
 
-                         <Spin spinning={this.state.loading}>
 
-                           <div
 
-                             className="clearfix"
 
-                             style={{ paddingLeft: "60px" }}
 
-                           >
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="项目名称"
 
-                             >
 
-                               <Input
 
-                                 placeholder="项目名称"
 
-                                 value={this.state.editName}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({ editName: e.target.value });
 
-                                 }}
 
-                                 required="required"
 
-                               />
 
-                               <span
 
-                                 className="mandatory"
 
-                                 style={{ color: "red", marginLeft: "5px" }}
 
-                               >
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="业务品类"
 
-                             >
 
-                               <Select
 
-                                 placeholder="请选择业务品类"
 
-                                 value={this.state.editCname}
 
-                                 onChange={(e) => {
 
-                                     console.log(e)
 
-                                   this.setState({ editCname: e });
 
-                                 }}
 
-                                 notFoundContent="未获取到业务品类列表"
 
-                                 style={{ width: "94%" }}
 
-                                 required="required"
 
-                               >
 
-                                 {this.state.contactsOption}
 
-                               </Select>
 
-                               <span
 
-                                 className="mandatory"
 
-                                 style={{ color: "red", marginLeft: "5px" }}
 
-                               >
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                           </div>
 
-                           <div
 
-                             className="clearfix"
 
-                             style={{ paddingLeft: "60px" }}
 
-                           >
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="省"
 
-                             >
 
-                               <Cascader
 
-                                 options={provinceSelect()}
 
-                                 value={this.state.ProvinceCity}
 
-                                 placeholder="选择省"
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e, pre) => {
 
-                                   this.setState({ ProvinceCity: e });
 
-                                 }}
 
-                               />
 
-                               <span style={{ color: "red", marginLeft: "5px" }}>
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="省-市"
 
-                             >
 
-                               <Cascader
 
-                                 options={citySelect()}
 
-                                 value={this.state.ProvinceCity}
 
-                                 placeholder="选择市"
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e, pre) => {
 
-                                   this.setState({ ProvinceCity: e });
 
-                                 }}
 
-                               />
 
-                               <span style={{ color: "red", marginLeft: "5px" }}>
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="省-市-区"
 
-                             >
 
-                               <Cascader
 
-                                 options={areaSelect()}
 
-                                 value={this.state.ProvinceCity}
 
-                                 placeholder="选择区"
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e, pre) => {
 
-                                   this.setState({ ProvinceCity: e });
 
-                                 }}
 
-                               />
 
-                               <span style={{ color: "red", marginLeft: "5px" }}>
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="是否精品"
 
-                             >
 
-                               <Radio.Group
 
-                                 value={this.state.editBoutique}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editBoutique: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               >
 
-                                 <Radio value={1}>精品</Radio>
 
-                                 <Radio value={0}>非精品</Radio>
 
-                               </Radio.Group>
 
-                             </FormItem>
 
-                           </div>
 
-                           <div
 
-                             className="clearfix"
 
-                             style={{ paddingLeft: "60px" }}
 
-                           >
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="市场价"
 
-                             >
 
-                               <Input
 
-                                 placeholder="市场价"
 
-                                 value={this.state.editPrice}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({ editPrice: e.target.value });
 
-                                 }}
 
-                                 required="required"
 
-                               />
 
-                               <span style={{ color: "red", marginLeft: "5px" }}>
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="首付金额"
 
-                             >
 
-                               <Input
 
-                                 placeholder="市场价"
 
-                                 value={this.state.firstPayment}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     firstPayment: e.target.value,
 
-                                   });
 
-                                 }}
 
-                                 required="required"
 
-                               />
 
-                               <span style={{ color: "red", marginLeft: "5px" }}>
 
-                                 *
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="活动价"
 
-                             >
 
-                               <Input
 
-                                 placeholder="活动价"
 
-                                 value={this.state.editActivityPrice}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editActivityPrice: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="最低折扣"
 
-                             >
 
-                               <Input
 
-                                 placeholder="最低折扣"
 
-                                 value={this.state.editOffset}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({ editOffset: e.target.value });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="会员价"
 
-                             >
 
-                               <Input
 
-                                 placeholder="会员价"
 
-                                 value={this.state.editMemberPrice}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editMemberPrice: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="活动生效"
 
-                             >
 
-                               <Select
 
-                                 placeholder="活动生效"
 
-                                 value={this.state.editActivityFlag}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({ editActivityFlag: e });
 
-                                 }}
 
-                               >
 
-                                 {gameState.map(function (item) {
 
-                                   return (
 
-                                     <Select.Option key={item.value}>
 
-                                       {item.key}
 
-                                     </Select.Option>
 
-                                   );
 
-                                 })}
 
-                               </Select>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="项目状态"
 
-                             >
 
-                               <Select
 
-                                 placeholder="项目状态"
 
-                                 value={this.state.editStatus}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   this.setState({ editStatus: e });
 
-                                 }}
 
-                               >
 
-                                 {conditionOrganization.map(function (item) {
 
-                                   return (
 
-                                     <Select.Option key={item.value}>
 
-                                       {item.key}
 
-                                     </Select.Option>
 
-                                   );
 
-                                 })}
 
-                               </Select>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="项目分类"
 
-                             >
 
-                               {/*  0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
 
-                               <Select
 
-                                 placeholder="项目分类"
 
-                                 value={this.state.typeStr}
 
-                                 style={{ width: "94%" }}
 
-                                 onChange={(e) => {
 
-                                   let str = "";
 
-                                   if (e == 0) {
 
-                                     str = "通用";
 
-                                   } else if (e == 1) {
 
-                                     str = "专利";
 
-                                   } else if (e == 2) {
 
-                                     str = "软著";
 
-                                   } else if (e == 3) {
 
-                                       str = "审计";
 
-                                   } else if (e == 4) {
 
-                                       str = "双软";
 
-                                   } else if (e == 5) {
 
-                                       str = "高新";
 
-                                   } else if (e == 6) {
 
-                                       str = "商标";
 
-                                   }
 
-                                   this.setState({
 
-                                     typeStatus: e,
 
-                                     typeStr: str,
 
-                                   });
 
-                                 }}
 
-                               >
 
-                                 <Select.Option key={0}>通用</Select.Option>
 
-                                 <Select.Option key={1}>专利</Select.Option>
 
-                                 <Select.Option key={2}>软著</Select.Option>
 
-                                 <Select.Option key={3}>审计</Select.Option>
 
-                                 <Select.Option key={4}>双软</Select.Option>
 
-                                 <Select.Option key={5}>高新</Select.Option>
 
-                                 <Select.Option key={6}>商标</Select.Option>
 
-                               </Select>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="创建人"
 
-                             >
 
-                               <span style={{ width: "94%" }}>
 
-                                 {this.state.editCreateId}
 
-                               </span>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="创建时间"
 
-                             >
 
-                               <span style={{ width: "94%" }}>
 
-                                 {this.state.editTime}
 
-                               </span>
 
-                             </FormItem>
 
-                           </div>
 
-                           <div className="clearfix">
 
-                             <FormItem
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="项目地址"
 
-                             >
 
-                               <Input
 
-                                 type="textarea"
 
-                                 rows={1}
 
-                                 placeholder="业务项目服务内容"
 
-                                 style={{marginBottom:'5px'}}
 
-                                 value={this.state.editProjectUrl}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editProjectUrl: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                           </div>
 
-                           <div className="clearfix">
 
-                             <FormItem
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="业务项目服务内容"
 
-                             >
 
-                               <Input
 
-                                 type="textarea"
 
-                                 rows={4}
 
-                                 placeholder="业务项目服务内容"
 
-                                 style={{marginBottom:'5px'}}
 
-                                 value={this.state.editIntroduce}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editIntroduce: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                           </div>
 
-                           <div className="clearfix">
 
-                             <FormItem
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="业务项目价值及作用"
 
-                             >
 
-                               <Input
 
-                                 type="textarea"
 
-                                 rows={4}
 
-                                 style={{marginBottom:'5px'}}
 
-                                 placeholder="业务项目价值及作用"
 
-                                 value={this.state.editValueEffect}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editValueEffect: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                           </div>
 
-                           <div className="clearfix">
 
-                             <FormItem
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="业务项目客户基本条件"
 
-                             >
 
-                               <Input
 
-                                 type="textarea"
 
-                                 rows={4}
 
-                                 style={{marginBottom:'5px'}}
 
-                                 placeholder="业务项目客户基本条件"
 
-                                 value={this.state.editClientSize}
 
-                                 onChange={(e) => {
 
-                                   this.setState({
 
-                                     editClientSize: e.target.value,
 
-                                   });
 
-                                 }}
 
-                               />
 
-                             </FormItem>
 
-                           </div>
 
-                           <div className="clearfix pictures">
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 8 }}
 
-                               wrapperCol={{ span: 10 }}
 
-                               label="业务项目图标"
 
-                             >
 
-                               <PicturesWall
 
-                                 domId={'businessProject1'}
 
-                                 pictureSign="business_project_min_picture"
 
-                                 fileList={this.getOrgCodeUrl}
 
-                                 pictureUrl={this.state.orgCodeUrl}
 
-                               />
 
-                               <p>图片建议:图片要清晰。(35*35)</p>
 
-                             </FormItem>
 
-                             <FormItem
 
-                               className="half-item"
 
-                               labelCol={{ span: 4 }}
 
-                               wrapperCol={{ span: 12 }}
 
-                               label="业务项目图标"
 
-                             >
 
-                               <PicturesWall
 
-                                 domId={'businessProject2'}
 
-                                 pictureSign="business_project_max_picture"
 
-                                 fileList={this.getCompanyLogoUrl}
 
-                                 pictureUrl={this.state.companyLogoUrl}
 
-                               />
 
-                               <p>图片建议:图片要清晰。(200*200)</p>
 
-                             </FormItem>
 
-                           </div>
 
-                           <Button
 
-                             className="set-submit"
 
-                             type="primary"
 
-                             htmlType="submit"
 
-                             style={{
 
-                               marginLeft: "190px",
 
-                               marginBottom: "20px",
 
-                               marginTop: "110px",
 
-                             }}
 
-                           >
 
-                             保存
 
-                           </Button>
 
-                           <Button
 
-                             className="set-submit"
 
-                             type="ghost"
 
-                             onClick={this.edithandleCancel}
 
-                             style={{
 
-                               marginLeft: "100px",
 
-                               marginBottom: "20px",
 
-                             }}
 
-                           >
 
-                             取消
 
-                           </Button>
 
-                         </Spin>
 
-                       </Form>
 
-                     </TabPane>
 
-                     <TabPane tab="业务项目规格" key="2">
 
-                       <div className="clearfix">
 
-                         <Popconfirm
 
-                           title="是否删除?"
 
-                           onConfirm={this.delectRowSize}
 
-                           okText="是"
 
-                           cancelText="否"
 
-                         >
 
-                           <Button
 
-                             style={{
 
-                               background: "#ea0862",
 
-                               border: "none",
 
-                               color: "#fff",
 
-                               marginRight: "10px",
 
-                               marginLeft: "10px",
 
-                             }}
 
-                             disabled={!hasSelected}
 
-                           >
 
-                             删除
 
-                             <Icon type="minus" />
 
-                           </Button>
 
-                         </Popconfirm>
 
-                         <Popconfirm
 
-                           title="是否停用?"
 
-                           onConfirm={this.blockRowSize}
 
-                           okText="是"
 
-                           cancelText="否"
 
-                         >
 
-                           <Button
 
-                             style={{
 
-                               background: "#ea0862",
 
-                               border: "none",
 
-                               color: "#fff",
 
-                               marginRight: "10px",
 
-                               marginLeft: "10px",
 
-                               display: "none",
 
-                             }}
 
-                             disabled={!hasSelected}
 
-                           >
 
-                             停用
 
-                             <Icon type="minus" />
 
-                           </Button>
 
-                         </Popconfirm>
 
-                         <Button
 
-                           className="ContactsList"
 
-                           type="primary"
 
-                           onClick={this.formatClick}
 
-                           style={{ float: "right", marginBottom: "10px" }}
 
-                         >
 
-                           新增
 
-                         </Button>
 
-                       </div>
 
-                       <div className="clearfix">
 
-                         <Spin spinning={this.state.loading}>
 
-                           <Form
 
-                             horizontal
 
-                             id="demand-form"
 
-                             onSubmit={this.contactSave}
 
-                           >
 
-                             <Table
 
-                               size="middle"
 
-                               pagination={this.state.formatPagination}
 
-                               columns={this.state.ContactsLists}
 
-                               dataSource={this.state.formatDataSource}
 
-                               rowSelection={rowSelection}
 
-                               onRowClick={this.formatTableRowClick}
 
-                             />
 
-                           </Form>
 
-                         </Spin>
 
-                       </div>
 
-                     </TabPane>
 
-                   </Tabs>
 
-                 </Modal>
 
-               </div>
 
-             </div>
 
-           </div>
 
-         );
 
-     }
 
- }));
 
- export default BusinessProject;
 
 
  |