sichuan.jsx 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. import React from 'react';
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Select,
  7. Spin,
  8. Checkbox,
  9. Cascader,
  10. Table,
  11. Form,
  12. Switch,
  13. message,
  14. DatePicker,
  15. Modal,
  16. Row,
  17. Col,
  18. InputNumber, Tabs,
  19. } from 'antd';
  20. import { citySelect, provinceList ,areaSelect} from '@/NewDicProvinceList';
  21. import {demandProfile} from '../../../dataDic.js';
  22. import ajax from 'jquery/src/ajax/xhr.js';
  23. import $ from 'jquery/src/ajax';
  24. //import axios from 'axios';
  25. import 'antd/dist/antd.css';
  26. const FormItem = Form.Item;
  27. import './sichuan.css';
  28. import {ChooseList} from "../../order/orderNew/chooseList";
  29. const { TextArea } = Input;
  30. const CheckboxGroup = Checkbox.Group;
  31. const TabPane = Tabs.TabPane;
  32. class Achievement extends React.Component {
  33. loadData(pageNo) {
  34. this.setState({
  35. page: pageNo,
  36. loading: true
  37. });
  38. $.ajax({
  39. method: "get",
  40. dataType: "json",
  41. crossDomain: false,
  42. url: globalConfig.context + "/open/api/demandList",
  43. data: {
  44. pageNo: pageNo || 1,
  45. pageSize: this.state.pagination.pageSize,
  46. type:0,
  47. orgName:this.state.seachName,//企业名称
  48. name:this.state.seachNames,//需求名称
  49. reserveButtUnit:this.state.seachReserveButtUnit,//对接单位
  50. },
  51. success: function (data) {
  52. let theArr = [];
  53. if (!data.data || !data.data.list) {
  54. if (data.error && data.error.length) {
  55. message.warning(data.error[0].message);
  56. };
  57. } else {
  58. for (let i = 0; i < data.data.list.length; i++) {
  59. let thisdata = data.data.list[i];
  60. theArr.push({
  61. key: i,
  62. id: thisdata.id,//需求编号
  63. name: thisdata.name,//需求名称
  64. industry: thisdata.industry,//行业
  65. reserveButtUnit:thisdata.reserveButtUnit,//对接单位
  66. orgName:thisdata.orgName,//企业名称
  67. });
  68. };
  69. this.state.pagination.current = data.data.pageNo;
  70. this.state.pagination.total = data.data.totalCount;
  71. };
  72. this.setState({
  73. dataSource: theArr,
  74. pagination: this.state.pagination
  75. });
  76. }.bind(this),
  77. }).always(function () {
  78. this.setState({
  79. loading: false
  80. });
  81. }.bind(this));
  82. }
  83. constructor(props) {
  84. super(props);
  85. this.state = {
  86. loading:false,
  87. publishPages: [],
  88. nature:'',
  89. visible: false,
  90. pagination: {
  91. defaultCurrent: 1,
  92. defaultPageSize: 10,
  93. showQuickJumper: true,
  94. pageSize: 10,
  95. onChange: function(page) {
  96. this.loadData(page);
  97. }.bind(this),
  98. showTotal: function(total) {
  99. return '共' + total + '条数据';
  100. }
  101. },
  102. columns: [
  103. {
  104. title: '需求名称',
  105. dataIndex: 'name',
  106. key: 'name'
  107. },
  108. {
  109. title: '行业领域',
  110. dataIndex: 'industry',
  111. key: 'industry'
  112. },
  113. {
  114. title: '企业名称',
  115. dataIndex: 'orgName',
  116. key: 'orgName'
  117. },
  118. {
  119. title: '拟对接单位',
  120. dataIndex: 'reserveButtUnit',
  121. key: 'reserveButtUnit'
  122. },
  123. {
  124. title: '操作',
  125. dataIndex: 'caozuo',
  126. key: 'caozuo',
  127. render: (text, recard) => {
  128. return (
  129. <div className="btnRight">
  130. <Button
  131. type="danger"
  132. onClick={(e) => {
  133. e.stopPropagation();
  134. this.delectRow(recard);
  135. }}
  136. >
  137. 删除
  138. </Button>
  139. </div>
  140. );
  141. }
  142. }
  143. ]
  144. };
  145. this.changeList = this.changeList.bind(this);
  146. }
  147. //删除
  148. delectRow(recard) {
  149. $.ajax({
  150. method: "get",
  151. dataType: "json",
  152. crossDomain: false,
  153. url: globalConfig.context + "/open/api/delectDemand",
  154. data: {
  155. id:recard.id
  156. },
  157. success: function (data) {
  158. if (!data.error.length) {
  159. message.success('删除成功!');
  160. this.setState({
  161. loading: false,
  162. });
  163. this.loadData();
  164. } else {
  165. message.warning(data.error[0].message);
  166. };
  167. }.bind(this),
  168. }).always(function () {
  169. this.setState({
  170. loading: false
  171. });
  172. }.bind(this));
  173. }
  174. details(recard){
  175. this.state({
  176. loading:true
  177. })
  178. }
  179. add() {
  180. this.setState({
  181. id:"",
  182. uid: '',
  183. visible: true,
  184. addState: true,
  185. name: '',
  186. introduce: '',
  187. industry: '',
  188. summary: [],
  189. ownerName: '',
  190. reserveButtMode: '',
  191. patentNumber: '',
  192. transferPrice: '',
  193. telephone: '',
  194. cname: ''
  195. });
  196. }
  197. search() {
  198. this.loadData(1);
  199. }
  200. reset() {
  201. this.state.seachName = '';
  202. this.state.seachNames = '';
  203. this.state.seachReserveButtUnit = '';
  204. this.loadData(1);
  205. }
  206. tableRowClick(record, index) {
  207. this.setState({
  208. visible: true,
  209. addState: false,
  210. id:record.id,
  211. });
  212. $.ajax({
  213. method: "get",
  214. dataType: "json",
  215. crossDomain: false,
  216. url: globalConfig.context + "/open/api/demandDetails",
  217. data: {
  218. id: record.id,//需求名称
  219. }
  220. }).done(function (data) {
  221. if (!data.error.length) {
  222. let thisData=data.data;
  223. let ProvinceCityArr = [];
  224. let ProvinceS =thisData.province? parseInt(thisData.province):""; //省
  225. let citys = thisData.city?parseInt(thisData.city):"";//市
  226. ProvinceCityArr.push(ProvinceS, citys);
  227. this.setState({
  228. id:thisData.id,
  229. name: thisData.name,//需求名称
  230. industry:(thisData.industry||thisData.industry==0)?thisData.industry.toString():undefined,//行业
  231. investmentCost: thisData.investmentCost,//经费投入
  232. reserveButtUnit: thisData.reserveButtUnit,//拟对接单位
  233. reserveButtMode: (thisData.reserveButtMode||thisData.reserveButtMode==0)?thisData.reserveButtMode.toString():undefined,//拟对接方式
  234. reserveSolveMode:(thisData.reserveSolveMode||thisData.reserveSolveMode==0)?thisData.reserveSolveMode.toString():undefined ,//拟解决方式
  235. publisherName: thisData.publisherName,//联系人
  236. telephone: thisData.telephone,//联系方式
  237. summary: thisData.summary?thisData.summary.split(","):[],//需求项目概况this.state.shehui?this.state.shehui.join(","):undefined
  238. introduce: thisData.introduce,//需求内容
  239. Pname: thisData.pname,//企业名称
  240. nature: thisData.nature,//企业特质
  241. feature: thisData.feature,//企业特征
  242. ProvinceCity:ProvinceCityArr[0]!=null?ProvinceCityArr:undefined,//地区
  243. zipCode: thisData.zipCode,//邮政编码
  244. legalPerson: thisData.legalPerson,//法人名称
  245. website: thisData.website,//企业网址
  246. email: thisData.email,//企业邮箱
  247. pintroduce:thisData.pintroduce,//企业简介
  248. });
  249. } else {
  250. message.warning(data.error[0].message);
  251. };
  252. this.setState({
  253. loading: false,
  254. });
  255. }.bind(this));
  256. }
  257. handleOk() {
  258. this.handleSubmit();
  259. }
  260. handleCancel() {
  261. this.resets();
  262. this.setState({
  263. visible: false
  264. });
  265. }
  266. handleSubmit() {
  267. this.setState({
  268. loading: true
  269. });
  270. if(!this.state.name){
  271. message.warning("需求名称必须填写");
  272. this.setState({
  273. loading: false
  274. });
  275. return;
  276. }
  277. // console.log(this.state.ProvinceCity);
  278. if(!this.state.ProvinceCity||this.state.ProvinceCity.length==0||this.state.ProvinceCity[0]==""){
  279. message.warning("地区必须选择");
  280. this.setState({
  281. loading: false
  282. });
  283. return;
  284. }
  285. $.ajax({
  286. method: "POST",
  287. dataType: "json",
  288. crossDomain: false,
  289. url: globalConfig.context +( this.state.addState?"/open/api/addDemand":"/open/api/updateDemand"),
  290. data: {
  291. id:this.state.id,//需求ID
  292. name: this.state.name,//需求名称
  293. type:0,//需求类型
  294. industry:this.state.industry,//行业
  295. investmentCost: this.state.investmentCost,//经费投入
  296. reserveButtUnit: this.state.reserveButtUnit,//拟对接单位
  297. reserveButtMode: this.state.reserveButtMode,//拟对接方式
  298. reserveSolveMode: this.state.reserveSolveMode,//拟解决方式
  299. publisherName: this.state.publisherName,//联系人
  300. telephone: this.state.telephone,//联系方式
  301. summary: this.state.summary?this.state.summary.join(","):undefined,//需求项目概况this.state.shehui?this.state.shehui.join(","):undefined
  302. introduce: this.state.introduce,//需求内容
  303. pname: this.state.Pname,//企业名称
  304. nature: this.state.nature,//企业特质
  305. feature: this.state.feature,//企业特征
  306. province: this.state.ProvinceCity?this.state.ProvinceCity[0]:"",//省
  307. city: this.state.ProvinceCity?this.state.ProvinceCity[1]:"",//市
  308. zipCode: this.state.zipCode,//邮政编码
  309. legalPerson: this.state.legalPerson,//法人名称
  310. website: this.state.website,//企业网址
  311. email: this.state.email,//企业邮箱
  312. pintroduce: this.state.pintroduce,//企业简介
  313. }
  314. }).done(function (data) {
  315. if (!data.error.length) {
  316. message.success(this.state.addState?'新建成功!':"修改成功!");
  317. this.setState({
  318. visible: false,
  319. });
  320. this.loadData();
  321. this.resets();
  322. } else {
  323. message.warning(data.error[0].message);
  324. };
  325. this.setState({
  326. loading: false,
  327. });
  328. }.bind(this));
  329. }
  330. resets(){
  331. this.state.name = '',//需求名称
  332. this.state.industry = undefined,//行业
  333. this.state.investmentCost = '',//经费投入
  334. this.state.reserveButtUnit = '',//拟对接单位
  335. this.state.reserveButtMode = '',//拟对接方式
  336. this.state.reserveSolveMode = '',//拟解决方式
  337. this.state.publisherName = '',//联系人
  338. this.state.telephone = '',//联系方式
  339. this.state.summary = '',
  340. this.state.introduce = '',//需求内容
  341. this.state.Pname = '',//企业名称
  342. this.state.nature = undefined,//企业特质
  343. this.state.feature = '',//企业特征
  344. this.state.ProvinceCity =undefined,//省
  345. this.state.zipCode = '',//邮政编码
  346. this.state.legalPerson = '',//法人名称
  347. this.state.website = '',//企业网址
  348. this.state.email = '',//企业邮箱
  349. this.state.pintroduce = ''//企业简介
  350. }
  351. componentWillMount() {
  352. this.loadData(1);
  353. }
  354. changeList(arr) {
  355. const newArr = [];
  356. this.state.columns.forEach(item => {
  357. arr.forEach(val => {
  358. if (val === item.title) {
  359. newArr.push(item);
  360. }
  361. });
  362. });
  363. this.setState({
  364. changeList: newArr
  365. });
  366. }
  367. render() {
  368. const url="https://api.qrserver.com/v1/create-qr-code/?data=http://"+window.location.host+"/open/demandDetails?id="+this.state.id+"&size=100x100"
  369. const rowSelection = {
  370. selectedRowKeys: this.state.selectedRowKeys,
  371. onChange: (selectedRowKeys, selectedRows) => {
  372. this.setState({
  373. selectedRows: selectedRows.slice(-1),
  374. selectedRowKeys: selectedRowKeys.slice(-1)
  375. });
  376. }
  377. };
  378. const formItemLayout = {
  379. labelCol: { span: 6 },
  380. wrapperCol: { span: 12 }
  381. };
  382. return (
  383. <div className="user-content">
  384. <div className="content-title">
  385. <span className="title">四川科技需求</span>
  386. <div className="patent-addNew">
  387. <Button type="primary" onClick={this.add.bind(this)}>
  388. 发布需求<Icon type="plus" />
  389. </Button>
  390. </div>
  391. </div>
  392. <Tabs defaultActiveKey="1" className="test">
  393. <TabPane tab="搜索" key="1">
  394. <div className="user-search">
  395. <Input
  396. placeholder="需求名称"
  397. value={this.state.seachNames}
  398. className="searchInp"
  399. onChange={(e) => {
  400. this.setState({ seachNames: e.target.value });
  401. }}
  402. style={{ width: 120 }}
  403. />
  404. <Input
  405. placeholder="企业名称"
  406. value={this.state.seachName}
  407. className="searchInp"
  408. onChange={(e) => {
  409. this.setState({ seachName: e.target.value });
  410. }}
  411. style={{ width: 120 }}
  412. />
  413. <Input
  414. placeholder="对接单位"
  415. value={this.state.seachReserveButtUnit}
  416. onChange={(e) => {
  417. this.setState({ seachReserveButtUnit: e.target.value });
  418. }}
  419. style={{ width: 120 }}
  420. />
  421. <Button type="primary" onClick={this.search.bind(this)} className="interval">
  422. 搜索
  423. </Button>
  424. <Button onClick={this.reset.bind(this)} className="interval">
  425. 重置
  426. </Button>
  427. </div>
  428. </TabPane>
  429. <TabPane tab="更改表格显示数据" key="2">
  430. <div style={{ marginLeft: 10 }}>
  431. <ChooseList
  432. columns={this.state.columns}
  433. changeFn={this.changeList}
  434. changeList={this.state.changeList}
  435. top={55}
  436. margin={11}
  437. />
  438. </div>
  439. </TabPane>
  440. </Tabs>
  441. <div className="patent-table">
  442. <Spin spinning={this.state.loading}>
  443. <Table
  444. columns={
  445. this.state.changeList
  446. ? this.state.changeList
  447. : this.state.columns
  448. }
  449. style={{
  450. cursor: 'pointer',
  451. }}
  452. dataSource={this.state.dataSource}
  453. rowSelection={rowSelection}
  454. pagination={this.state.pagination}
  455. onRowClick={this.tableRowClick.bind(this)}
  456. />
  457. </Spin>
  458. </div>
  459. <Modal
  460. title={this.state.addState ? '新建需求' : '需求详情'}
  461. visible={this.state.visible}
  462. width="1200px"
  463. onOk={this.handleOk.bind(this)}
  464. onCancel={this.handleCancel.bind(this)}
  465. okText="保存"
  466. cancelText="取消"
  467. >
  468. <Form layout="horizontal" id="demand-form">
  469. <Spin spinning={this.state.loading}>
  470. <div className="clearfix">
  471. <div className="clearfix">
  472. <FormItem
  473. className="half-item"
  474. {...formItemLayout}
  475. label={
  476. <span>
  477. <strong style={{ color: '#f00' }}>*</strong>需求名称
  478. </span>
  479. }
  480. >
  481. <Input
  482. placeholder="需求名称"
  483. value={this.state.name}
  484. onChange={(e) => {
  485. this.setState({ name: e.target.value });
  486. }}
  487. />
  488. </FormItem>
  489. <FormItem className="half-item" {...formItemLayout} label="行业领域">
  490. <Select
  491. value={this.state.industry}
  492. onChange={(e) => {
  493. this.setState({ industry: e });
  494. }}
  495. placeholder="请选择"
  496. >
  497. <Select.Option value="1">先进制造与自动化</Select.Option>
  498. <Select.Option value="2">电子信息技术</Select.Option>
  499. <Select.Option value="3">新材料技术</Select.Option>
  500. <Select.Option value="4">生物与新药</Select.Option>
  501. <Select.Option value="5">资源与环境</Select.Option>
  502. <Select.Option value="6">新能源</Select.Option>
  503. </Select>
  504. </FormItem>
  505. <FormItem className="half-item" {...formItemLayout} label="经费投入计划">
  506. <Input
  507. placeholder="经费投入计划"
  508. value={this.state.investmentCost}
  509. onChange={(e) => {
  510. this.setState({ investmentCost: e.target.value });
  511. }}
  512. />
  513. </FormItem>
  514. <FormItem className="half-item" {...formItemLayout} label="拟对接单位">
  515. <Input
  516. placeholder="拟对接单位"
  517. value={this.state.reserveButtUnit}
  518. onChange={(e) => {
  519. this.setState({ reserveButtUnit: e.target.value });
  520. }}
  521. />
  522. </FormItem>
  523. <FormItem className="half-item" {...formItemLayout} label="拟对接方式">
  524. <Select
  525. value={this.state.reserveButtMode}
  526. onChange={(e) => {
  527. this.setState({ reserveButtMode: e });
  528. }}
  529. placeholder="请选择对接方式"
  530. >
  531. <Select.Option value="0">直接对接</Select.Option>
  532. <Select.Option value="1">技术合作</Select.Option>
  533. </Select>
  534. </FormItem>
  535. <FormItem className="half-item" {...formItemLayout} label="拟合作方式">
  536. <Select
  537. value={this.state.reserveSolveMode}
  538. onChange={(e) => {
  539. this.setState({ reserveSolveMode: e });
  540. }}
  541. placeholder="请选择解决方式"
  542. >
  543. <Select.Option value="0">技术转让</Select.Option>
  544. <Select.Option value="1">技术入股</Select.Option>
  545. <Select.Option value="2">合作实施</Select.Option>
  546. <Select.Option value="3">委托开发</Select.Option>
  547. </Select>
  548. </FormItem>
  549. <FormItem className="half-item" {...formItemLayout} label="项目负责人">
  550. <Input
  551. placeholder="项目负责人"
  552. value={this.state.publisherName}
  553. onChange={(e) => {
  554. this.setState({ publisherName: e.target.value });
  555. }}
  556. />
  557. </FormItem>
  558. <FormItem className="half-item" {...formItemLayout} label="联系电话">
  559. <Input
  560. placeholder="联系电话"
  561. value={this.state.telephone}
  562. onChange={(e) => {
  563. this.setState({ telephone: e.target.value });
  564. }}
  565. />
  566. </FormItem>
  567. </div>
  568. <FormItem
  569. labelCol={{ span: 3 }}
  570. wrapperCol={{ span: 18 }}
  571. label="需求项目概况"
  572. >
  573. <CheckboxGroup options={demandProfile} value={this.state.summary} onChange={(e)=>{this.setState({summary:e})}} />
  574. </FormItem>
  575. <div className="clearfix">
  576. <FormItem
  577. labelCol={{ span: 3 }}
  578. wrapperCol={{ span: 18 }}
  579. label={
  580. <span>
  581. <strong style={{ color: '#f00' }}>*</strong>需求内容
  582. </span>
  583. }
  584. style={{ margin: '10px 0px' }}
  585. >
  586. <TextArea
  587. autosize={{ minRows: 4, maxRows: 10 }}
  588. placeholder="输入需求内容"
  589. value={this.state.introduce}
  590. onChange={(e) => {
  591. this.setState({ introduce: e.target.value });
  592. }}
  593. />
  594. </FormItem>
  595. </div>
  596. <Row>
  597. <Col span={8} style={{ fontSize: 18 }}>
  598. 技术成果企业情况
  599. </Col>
  600. </Row>
  601. <div className="clearfix">
  602. <FormItem
  603. className="half-item"
  604. {...formItemLayout}
  605. label={
  606. <span>
  607. <strong style={{ color: '#f00' }}>*</strong>企业名称
  608. </span>
  609. }
  610. >
  611. <Input
  612. placeholder="企业名称"
  613. value={this.state.Pname}
  614. onChange={(e) => {
  615. this.setState({ Pname: e.target.value });
  616. }}
  617. />
  618. </FormItem>
  619. <FormItem className="half-item" {...formItemLayout} label="单位性质">
  620. <Select
  621. value={this.state.nature}
  622. onChange={(e) => {
  623. this.setState({ nature: e });
  624. }}
  625. placeholder="请选择单位性质"
  626. >
  627. <Select.Option value="1">国家行政企业</Select.Option>
  628. <Select.Option value="2">公私合作企业</Select.Option>
  629. <Select.Option value="3">中外合资企业</Select.Option>
  630. <Select.Option value="4">社会组织机构</Select.Option>
  631. <Select.Option value="5">国际组织机构</Select.Option>
  632. <Select.Option value="6">外资企业</Select.Option>
  633. <Select.Option value="7">私营企业</Select.Option>
  634. <Select.Option value="8">集体企业</Select.Option>
  635. <Select.Option value="9">国防军事企业</Select.Option>
  636. </Select>
  637. </FormItem>
  638. <FormItem className="half-item" {...formItemLayout} label="企业特征">
  639. <Input
  640. placeholder="企业特征"
  641. value={this.state.feature}
  642. onChange={(e) => {
  643. this.setState({ feature: e.target.value });
  644. }}
  645. />
  646. </FormItem>
  647. <FormItem className="half-item"
  648. {...formItemLayout}
  649. label={
  650. <span>
  651. <strong style={{ color: '#f00' }}>*</strong>企业所在地
  652. </span>
  653. }
  654. >
  655. <Cascader options={citySelect()} value={this.state.ProvinceCity} placeholder="选择城市"
  656. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  657. </FormItem>
  658. <FormItem className="half-item" {...formItemLayout} label="邮政编码">
  659. <Input
  660. placeholder="邮政编码"
  661. value={this.state.zipCode}
  662. onChange={(e) => {
  663. this.setState({ zipCode: e.target.value });
  664. }}
  665. />
  666. </FormItem>
  667. <FormItem className="half-item" {...formItemLayout} label="法定代表人">
  668. <Input
  669. placeholder="法定代表人"
  670. value={this.state.legalPerson}
  671. onChange={(e) => {
  672. this.setState({ legalPerson: e.target.value });
  673. }}
  674. />
  675. </FormItem>
  676. <FormItem className="half-item" {...formItemLayout} label="企业网址">
  677. <Input
  678. placeholder="企业网址"
  679. value={this.state.website}
  680. onChange={(e) => {
  681. this.setState({ website: e.target.value });
  682. }}
  683. />
  684. </FormItem>
  685. <FormItem className="half-item" {...formItemLayout} label="E-Mail">
  686. <Input
  687. placeholder="E-Mail"
  688. value={this.state.email}
  689. onChange={(e) => {
  690. this.setState({ email: e.target.value });
  691. }}
  692. />
  693. </FormItem>
  694. </div>
  695. <div className="clearfix">
  696. <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 19 }} label="企业简介">
  697. <Input type="textarea" rows={4} placeholder="企业简介" value={this.state.pintroduce}
  698. onChange={(e) => { this.setState({ pintroduce: e.target.value }) }} style={{width:'95%'}}/>
  699. </FormItem>
  700. </div>
  701. {!this.state.addState&&<div className="clearfix" style={{marginTop:"10px"}}>
  702. <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 19 }} label="二维码">
  703. <img src={url} style={{width:"100px",height:"100px"}}/>
  704. </FormItem>
  705. </div>
  706. }
  707. </div>
  708. </Spin>
  709. </Form>
  710. </Modal>
  711. </div>
  712. );
  713. }
  714. }
  715. export default Achievement;