patentPayment.jsx 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  1. import React from 'react';
  2. import { Radio, Icon, Button, AutoComplete,Cascader,Input, Select, Spin, Popconfirm, Table, Switch, message, DatePicker, Upload, Form ,Modal,Tabs} from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import TechAchievementDesc from '@/manageCenter/achievement/crmAchievement.jsx';
  7. import { citySelect, provinceList ,areaSelect} from '@/NewDicProvinceList';
  8. import { socialAttribute, industry, auditStatusL, lvl, currentMember ,slcRedit,dataGrade,cityArr,patentTypeList} from '@/dataDic.js';
  9. import {
  10. getSocialAttribute,
  11. beforeUploadFile,
  12. splitUrl,
  13. getSlcRedit,
  14. getDataGrade,
  15. getAchievementCategory,
  16. getTechAuditStatus,
  17. getboutique,
  18. getPatentType,
  19. getcityArr,
  20. getPatentTypeva,
  21. ShowModal
  22. } from "@/tools.js";
  23. import './customer.less';
  24. import ShowModalDiv from "@/showModal.jsx";
  25. const Option = AutoComplete.Option;
  26. //图片组件
  27. const PicturesWall = React.createClass({
  28. getInitialState() {
  29. return {
  30. previewVisible: false,
  31. previewImage: '',
  32. fileList: this.props.pictureUrl,
  33. }
  34. },
  35. getDefaultProps(){
  36. return{
  37. changeClick:this.modifyChange
  38. }
  39. },
  40. handleCancel() {
  41. this.setState({ previewVisible: false })
  42. },
  43. handlePreview(file) {
  44. this.setState({
  45. previewImage: file.url || file.thumbUrl,
  46. previewVisible: true,
  47. });
  48. },
  49. handleChange(info) {
  50. let fileList = info.fileList;
  51. this.setState({ fileList });
  52. this.props.fileList(fileList);
  53. },
  54. componentWillReceiveProps(nextProps) {
  55. this.state.fileList = nextProps.pictureUrl;
  56. },
  57. render() {
  58. const { previewVisible, previewImage, fileList } = this.state;
  59. const uploadButton = (
  60. <div>
  61. <Icon type="plus" />
  62. <div className="ant-upload-text">点击上传</div>
  63. </div>
  64. );
  65. return (
  66. <div style={{display:"inline-block"}}>
  67. <Upload
  68. beforeUpload={beforeUploadFile}
  69. action={globalConfig.context + "/api/admin/patentNew/uploadFile"}
  70. data={{ 'sign': '' }}
  71. listType="picture-card"
  72. fileList={fileList}
  73. onPreview={this.handlePreview}
  74. onChange={this.handleChange} >
  75. {fileList.length >= 18 ? null : uploadButton}
  76. </Upload>
  77. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  78. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  79. </Modal>
  80. </div>
  81. );
  82. }
  83. });
  84. const PatentPayment = Form.create()(React.createClass({
  85. departmentList() {
  86. this.setState({
  87. loading: true
  88. });
  89. $.ajax({
  90. method: "get",
  91. dataType: "json",
  92. crossDomain: false,
  93. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  94. data: {},
  95. success: function(data) {
  96. let thedata = data.data;
  97. let theArr=[];
  98. if(!thedata) {
  99. if(data.error && data.error.length) {
  100. message.warning(data.error[0].message);
  101. };
  102. }else{
  103. thedata.map(function(item,index){
  104. theArr.push({
  105. key:index,
  106. name:item.name,
  107. id:item.id,
  108. })
  109. })
  110. }
  111. this.setState({
  112. departmentArr:theArr,
  113. })
  114. }.bind(this),
  115. }).always(function() {
  116. this.setState({
  117. loading: false
  118. });
  119. }.bind(this));
  120. },
  121. loadData(pageNo){
  122. this.setState({
  123. loading: true
  124. }),
  125. $.ajax({
  126. method: "get",
  127. dataType: "json",
  128. crossDomain: false,
  129. url: globalConfig.context + '/api/admin/patentNew/selectPatentNew',
  130. data: {
  131. pageNo: pageNo || 1,
  132. pageSize: this.state.pagination.pageSize,
  133. status:this.state.statusSearch,
  134. name:this.state.nameSearch,
  135. aname:this.state.anameSearch,
  136. patentNo:this.state.patentNoSearch,
  137. departmentId:this.state.departmentSearch,
  138. startDate:this.state.timesArr[0],
  139. endDate:this.state.timesArr[1],
  140. type:this.state.typeSearch,
  141. },
  142. success:function (data) {
  143. ShowModal(this);
  144. let theArr = [];
  145. if(!data.data) {
  146. if(data.error && data.error.length) {
  147. message.warning(data.error[0].message);
  148. };
  149. } else {
  150. for(let i = 0; i < data.data.list.length; i++) {
  151. let thisdata = data.data.list[i];
  152. theArr.push({
  153. id:thisdata.id,
  154. province:thisdata.province,
  155. status:thisdata.status,
  156. patentNo:thisdata.patentNo,
  157. name:thisdata.name,
  158. type:thisdata.type,
  159. applyDates:thisdata.applyDates,
  160. authorizationDates:thisdata.authorizationDates,
  161. patentAmount:thisdata.patentAmount,
  162. applicant:thisdata.applicant,
  163. contactMobile:thisdata.contactMobile,
  164. email:thisdata.email,
  165. certificateUrl:thisdata.certificateUrl,
  166. aname:thisdata.aname,
  167. depName:thisdata.depName,
  168. });
  169. };
  170. this.state.pagination.current = data.data.pageNo;
  171. this.state.pagination.total = data.data.totalCount;
  172. };
  173. if(!data.data.list.length) {
  174. this.state.pagination.current = 0
  175. this.state.pagination.total = 0
  176. }
  177. this.setState({
  178. pageNo: pageNo,
  179. dataSource: theArr,
  180. pagination: this.state.pagination,
  181. });
  182. }.bind(this)
  183. }).always(function() {
  184. this.setState({
  185. loading: false
  186. });
  187. }.bind(this));
  188. },
  189. getInitialState(){
  190. return {
  191. loading:false,
  192. visible:false,
  193. orgCodeUrl:[],
  194. fileList:[],
  195. departmentArr:[],
  196. timesArr:[],
  197. pagination: {
  198. defaultCurrent: 1,
  199. defaultPageSize: 10,
  200. showQuickJumper: true,
  201. pageSize: 10,
  202. onChange: function(page) {
  203. this.loadData(page);
  204. }.bind(this),
  205. showTotal: function(total) {
  206. return '共' + total + '条数据';
  207. }
  208. },
  209. dataSource:[],
  210. columns:[{
  211. title: '专利号',
  212. dataIndex: 'patentNo',
  213. key: 'patentNo'
  214. },{
  215. title: '专利名称',
  216. dataIndex: 'name',
  217. key: 'name'
  218. },{
  219. title: '专利类型',
  220. dataIndex: 'type',
  221. key: 'type',
  222. render:text=>{
  223. return getPatentType(text)
  224. }
  225. },{
  226. title: '申请日期',
  227. dataIndex: 'applyDates',
  228. key: 'applyDates'
  229. },{
  230. title: '授权日期',
  231. dataIndex: 'authorizationDates',
  232. key: 'authorizationDates'
  233. },{
  234. title: '费用',
  235. dataIndex: 'patentAmount',
  236. key: 'patentAmount'
  237. },{
  238. title: '授权公司',
  239. dataIndex: 'applicant',
  240. key: 'applicant'
  241. },{
  242. title: '录入人',
  243. dataIndex: 'aname',
  244. key: 'aname'
  245. },{
  246. title: '录入公司',
  247. dataIndex: 'depName',
  248. key: 'depName'
  249. },{
  250. title: '联系电话',
  251. dataIndex: 'contactMobile',
  252. key: 'contactMobile'
  253. },{
  254. title: '电子邮箱',
  255. dataIndex: 'email',
  256. key: 'email'
  257. },{
  258. title: '状态',
  259. dataIndex: 'status',
  260. key: 'status',
  261. render:text=>{
  262. if (text === 1) {
  263. return '已提醒'
  264. }else{
  265. return '待提醒'
  266. }
  267. }
  268. }]
  269. }
  270. },
  271. componentWillMount(){
  272. this.loadData()
  273. this.departmentList()
  274. let data=localStorage.getItem('newData');
  275. if(data!='{}'&&data){
  276. var newData = JSON.parse(data);
  277. this.tableRowClick(newData);
  278. };
  279. },
  280. new(){
  281. this.reset();
  282. this.setState({
  283. visible:true
  284. })
  285. },
  286. visitCancel(){
  287. this.state.fileList = [];
  288. this.setState({
  289. visible:false
  290. })
  291. },
  292. onSure(){
  293. let theorgCodeUrl = [];
  294. if (this.state.orgCodeUrl.length) {
  295. let picArr = [];
  296. this.state.orgCodeUrl.map(function (item) {
  297. if ( item.response && item.response.data && item.response.data.length ){
  298. picArr.push(item.response.data);
  299. }
  300. });
  301. theorgCodeUrl = picArr.join(",");
  302. };
  303. console.log(typeof theorgCodeUrl)
  304. if (!this.state.patentNo) {
  305. message.warning('专利号不能为空')
  306. return
  307. }
  308. if (!this.state.patentName) {
  309. message.warning('专利名称不能为空')
  310. return
  311. }
  312. if(this.state.patentType === ''){
  313. message.warning('专利类型不能为空');
  314. return
  315. }
  316. if(this.state.email === ''){
  317. message.warning('电子邮箱不能为空');
  318. return
  319. }
  320. $.ajax({
  321. method: "POST",
  322. dataType: "json",
  323. crossDomain: false,
  324. url: globalConfig.context +'/api/admin/patentNew/addPatentNew' ,
  325. data: {
  326. patentNo:this.state.patentNo,
  327. name:this.state.patentName,
  328. type:this.state.patentType,
  329. applyDates:this.state.appDate,
  330. authorizationDates:this.state.authDate,
  331. applicant:this.state.proposer,
  332. province:this.state.province,
  333. contactMobile:this.state.contactPhone,
  334. email:this.state.email,
  335. certificateUrl:theorgCodeUrl.length?theorgCodeUrl:'',
  336. }
  337. }).done(function(data) {
  338. this.setState({
  339. loading: false
  340. });
  341. if(!data.error.length) {
  342. message.success('保存成功!');
  343. this.onCal()
  344. this.loadData()
  345. } else {
  346. message.warning(data.error[0].message);
  347. }
  348. }.bind(this));
  349. },
  350. tableRowClick(record,index){
  351. this.state.RowData = record
  352. this.setState({
  353. avisible:true,
  354. patentNo:record.patentNo,
  355. patentName:record.name,
  356. province:record.province,
  357. status:record.status,
  358. patentType:record.type,
  359. appDate:record.applyDates,
  360. authDate:record.authorizationDates,
  361. proposer:record.applicant,
  362. contactPhone:record.contactMobile,
  363. email:record.email,
  364. certificateUrl:record.certificateUrl,
  365. orgCodeUrl: record.certificateUrl ? splitUrl(record.certificateUrl, ',', globalConfig.avatarHost + '/upload') : [],
  366. })
  367. localStorage.setItem('newData','{}');
  368. },
  369. xiugai(record){
  370. let theorgCodeUrl = [];
  371. if (this.state.orgCodeUrl.length) {
  372. let picArr = [];
  373. this.state.orgCodeUrl.map(function (item) {
  374. if ( item.response && item.response.data && item.response.data.length ){
  375. picArr.push(item.response.data);
  376. }
  377. });
  378. theorgCodeUrl = picArr.join(",");
  379. };
  380. console.log(typeof this.state.patentType)
  381. if (!this.state.patentNo) {
  382. message.warning('专利号不能为空')
  383. return
  384. }
  385. if (!this.state.patentName) {
  386. message.warning('专利名称不能为空')
  387. return
  388. }
  389. if(this.state.patentType === ''){
  390. message.warning('专利类型不能为空');
  391. return
  392. }
  393. $.ajax({
  394. method: "POST",
  395. dataType: "json",
  396. crossDomain: false,
  397. url: globalConfig.context +'/api/admin/patentNew/updatePatentNew' ,
  398. data: {
  399. id:record.id,
  400. patentNo:this.state.patentNo,
  401. name:this.state.patentName,
  402. type:this.state.patentType,
  403. applyDates:this.state.appDate,
  404. authorizationDates:this.state.authDate,
  405. applicant:this.state.proposer,
  406. province:this.state.province,
  407. contactMobile:this.state.contactPhone,
  408. email:this.state.email,
  409. status:this.state.status,
  410. certificateUrl:theorgCodeUrl.length?theorgCodeUrl:'',
  411. },
  412. success: function (data) {
  413. }.bind(this),
  414. }).done(function(data) {
  415. this.setState({
  416. loading: false
  417. });
  418. if(!data.error.length) {
  419. message.success('修改成功!');
  420. this.avisitCancel()
  421. this.loadData(this.state.pageNo)
  422. } else {
  423. message.warning(data.error[0].message);
  424. }
  425. }.bind(this));
  426. },
  427. baocunxiugai(){
  428. this.xiugai(this.state.RowData)
  429. },
  430. avisitCancel(){
  431. this.setState({
  432. avisible:false
  433. })
  434. },
  435. reset(){
  436. this.setState({
  437. patentNo:'',
  438. patentName:'',
  439. patentType:undefined,
  440. appDate:undefined,
  441. authDate:undefined,
  442. orgCodeUrl:'',
  443. proposer:'',
  444. province:undefined,
  445. contactPhone:'',
  446. email:''
  447. })
  448. },
  449. searchReset(){
  450. this.setState({
  451. statusSearch:undefined,
  452. nameSearch:undefined,
  453. anameSearch:undefined,
  454. patentNoSearch:undefined,
  455. departmentSearch:undefined,
  456. typeSearch:undefined,
  457. timesArr:[],
  458. },()=>{
  459. this.loadData()
  460. })
  461. },
  462. search(){
  463. this.loadData()
  464. },
  465. onCal(){
  466. this.setState({
  467. visible:false
  468. })
  469. },
  470. getOrgCodeUrl(e) {
  471. this.setState({ orgCodeUrl: e });
  472. },
  473. render(){
  474. const theData = this.state.RowData || {};
  475. const FormItem = Form.Item;
  476. const formItemLayout = {
  477. labelCol: { span: 8 },
  478. wrapperCol: { span: 14 },
  479. };
  480. const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
  481. return (
  482. <div className="user-content">
  483. <ShowModalDiv ShowModal={this.state.showModal} />
  484. <div className="content-title">
  485. <span style={{ fontSize: "16px" }}>客户专利提醒</span>
  486. <div className="user-search">
  487. <Select
  488. value={this.state.typeSearch}
  489. placeholder="请选择专利类型"
  490. onChange={e => {
  491. this.setState({
  492. typeSearch: e
  493. });
  494. }}
  495. style={{ width: "140px" }}
  496. >
  497. <Option value={1}>实用新型</Option>
  498. <Option value={2}>外观设计</Option>
  499. <Option value={3}>发明</Option>
  500. </Select>
  501. <Input
  502. value={this.state.nameSearch}
  503. placeholder="请输入授权公司"
  504. onChange={e => {
  505. this.setState({
  506. nameSearch: e.target.value
  507. });
  508. }}
  509. />
  510. <Select
  511. value={this.state.departmentSearch}
  512. placeholder="请选择录入公司"
  513. onChange={e => {
  514. this.setState({
  515. departmentSearch: e
  516. });
  517. }}
  518. style={{ width: "140px" }}
  519. >
  520. {this.state.departmentArr.map(e => {
  521. return <Option value={e.id}>{e.name}</Option>;
  522. })}
  523. </Select>
  524. <Input
  525. value={this.state.anameSearch}
  526. placeholder="请输入录入人"
  527. onChange={e => {
  528. this.setState({
  529. anameSearch: e.target.value
  530. });
  531. }}
  532. />
  533. <Select
  534. value={this.state.statusSearch}
  535. placeholder="请选择状态"
  536. onChange={e => {
  537. this.setState({
  538. statusSearch: e
  539. });
  540. }}
  541. style={{ width: "140px" }}
  542. >
  543. <Option value={0}>正常</Option>
  544. <Option value={1}>提醒中</Option>
  545. </Select>
  546. <Input
  547. value={this.state.patentNoSearch}
  548. placeholder="请输入专利号"
  549. onChange={e => {
  550. this.setState({
  551. patentNoSearch: e.target.value
  552. });
  553. }}
  554. />
  555. <Button
  556. type="primary"
  557. onClick={this.search}
  558. style={{ marginLeft: "10px" }}
  559. >
  560. 搜索
  561. </Button>
  562. <Button
  563. type="primary"
  564. onClick={this.searchReset}
  565. style={{ marginLeft: "10px" }}
  566. >
  567. 重置
  568. </Button>
  569. <span>
  570. 更多搜索
  571. <Switch
  572. onChange={mark => {
  573. this.setState({ mark: mark });
  574. }}
  575. />
  576. </span>
  577. <Button
  578. type="primary"
  579. onClick={this.new}
  580. style={{ marginRight: "10px", float: "right" }}
  581. >
  582. 新建
  583. </Button>
  584. {/*<Button onClick={this.reset}>导出</Button>*/}
  585. </div>
  586. {this.state.mark ? (
  587. <div className="user-search" style={{ paddingTop: "10px" }}>
  588. <span style={{ fontSize: "14px" }}>请选择申请时间:</span>
  589. <RangePicker
  590. value={[
  591. this.state.timesArr[0]
  592. ? moment(this.state.timesArr[0])
  593. : null,
  594. this.state.timesArr[1] ? moment(this.state.timesArr[1]) : null
  595. ]}
  596. onChange={(e, f) => {
  597. this.setState({
  598. timesArr: f
  599. });
  600. }}
  601. style={{ marginTop: "0", marginLeft: "10px" }}
  602. />
  603. </div>
  604. ) : (
  605. ""
  606. )}
  607. <div className="patent-table">
  608. <Spin spinning={this.state.loading}>
  609. <Table
  610. columns={this.state.columns}
  611. dataSource={this.state.dataSource}
  612. pagination={this.state.pagination}
  613. onRowClick={this.tableRowClick}
  614. size="small"
  615. bordered
  616. />
  617. </Spin>
  618. </div>
  619. <Modal
  620. maskClosable={false}
  621. visible={this.state.avisible}
  622. onCancel={this.avisitCancel}
  623. width="800px"
  624. title="修改详情"
  625. footer=""
  626. className="admin-desc-content"
  627. >
  628. <div className="clearfix">
  629. <FormItem
  630. className="half-item"
  631. {...formItemLayout}
  632. label={
  633. <span>
  634. <strong style={{ color: "#f00" }}>*</strong>专利号
  635. </span>
  636. }
  637. >
  638. {
  639. <Input
  640. placeholder="请输入专利号"
  641. value={this.state.patentNo}
  642. onChange={e => {
  643. this.setState({ patentNo: e.target.value });
  644. }}
  645. style={{ width: "240px" }}
  646. />
  647. }
  648. </FormItem>
  649. <FormItem
  650. className="half-item"
  651. {...formItemLayout}
  652. label={
  653. <span>
  654. <strong style={{ color: "#f00" }}>*</strong>专利名称
  655. </span>
  656. }
  657. >
  658. {
  659. <Input
  660. placeholder="请输入专利名称"
  661. value={this.state.patentName}
  662. onChange={e => {
  663. this.setState({ patentName: e.target.value });
  664. }}
  665. style={{ width: "240px" }}
  666. />
  667. }
  668. </FormItem>
  669. <FormItem
  670. className="half-item"
  671. {...formItemLayout}
  672. label="专利类型"
  673. >
  674. {
  675. <Select
  676. placeholder="请选择专利类型"
  677. style={{ width: "240px" }}
  678. value={getPatentType(this.state.patentType)}
  679. onChange={e => {
  680. this.setState({ patentType: e });
  681. }}
  682. >
  683. {patentTypeList.map(function(item) {
  684. return (
  685. <Select.Option key={item.value}>
  686. {item.key}
  687. </Select.Option>
  688. );
  689. })}
  690. </Select>
  691. }
  692. </FormItem>
  693. <FormItem
  694. className="half-item"
  695. {...formItemLayout}
  696. label="申请日期"
  697. >
  698. <DatePicker
  699. style={{ marginTop: "2px", width: "240px", height: "32px" }}
  700. showTime
  701. format="YYYY-MM-DD"
  702. onOk={e => {}}
  703. value={this.state.appDate ? moment(this.state.appDate) : null}
  704. onChange={(data, dataString) => {
  705. this.setState({ appDate: dataString });
  706. }}
  707. />
  708. </FormItem>
  709. <FormItem
  710. className="half-item"
  711. {...formItemLayout}
  712. label="授权日期"
  713. >
  714. <DatePicker
  715. style={{ marginTop: "2px", width: "240px", height: "32px" }}
  716. showTime
  717. format="YYYY-MM-DD"
  718. onOk={e => {}}
  719. value={
  720. this.state.authDate ? moment(this.state.authDate) : null
  721. }
  722. onChange={(data, dataString) => {
  723. this.setState({ authDate: dataString });
  724. }}
  725. />
  726. </FormItem>
  727. <FormItem className="half-item" {...formItemLayout} label="费用">
  728. <span>{theData.patentAmount}</span>
  729. </FormItem>
  730. <div className="clearfix">
  731. <FormItem
  732. labelCol={{ span: 4 }}
  733. wrapperCol={{ span: 18 }}
  734. label="合同扫描件"
  735. >
  736. <PicturesWall
  737. fileList={this.getOrgCodeUrl}
  738. pictureUrl={this.state.orgCodeUrl}
  739. />
  740. <p>图片建议:要清晰。</p>
  741. </FormItem>
  742. </div>
  743. <FormItem
  744. className="half-item"
  745. {...formItemLayout}
  746. label="申请人"
  747. >
  748. {
  749. <Input
  750. placeholder="请输入申请人/公司"
  751. value={this.state.proposer}
  752. onChange={e => {
  753. this.setState({ proposer: e.target.value });
  754. }}
  755. style={{ width: "240px" }}
  756. />
  757. }
  758. </FormItem>
  759. <FormItem className="half-item" {...formItemLayout} label="省份">
  760. <Select
  761. placeholder="请选择省份"
  762. style={{ width: "240px" }}
  763. value={getcityArr(this.state.province)}
  764. onChange={e => {
  765. this.setState({ province: e });
  766. }}
  767. >
  768. {cityArr.map(function(item) {
  769. return (
  770. <Select.Option key={item.value}>{item.key}</Select.Option>
  771. );
  772. })}
  773. </Select>
  774. </FormItem>
  775. <FormItem
  776. className="half-item"
  777. {...formItemLayout}
  778. label="联系电话"
  779. >
  780. {
  781. <Input
  782. placeholder="请输入联系手机"
  783. value={this.state.contactPhone}
  784. onChange={e => {
  785. this.setState({ contactPhone: e.target.value });
  786. }}
  787. style={{ width: "240px" }}
  788. />
  789. }
  790. </FormItem>
  791. <FormItem
  792. className="half-item"
  793. {...formItemLayout}
  794. label={
  795. <span>
  796. <strong style={{ color: "#f00" }}>*</strong>电子邮箱
  797. </span>
  798. }
  799. >
  800. {
  801. <Input
  802. placeholder="请输入电子邮箱"
  803. value={this.state.email}
  804. onChange={e => {
  805. this.setState({ email: e.target.value });
  806. }}
  807. style={{ width: "240px" }}
  808. />
  809. }
  810. </FormItem>
  811. <FormItem
  812. className="half-item"
  813. {...formItemLayout}
  814. label={"状态"}
  815. >
  816. <span>{this.state.status ? "已提醒" : "待提醒"}</span>
  817. </FormItem>
  818. </div>
  819. <div style={{ overflow: "hidden" }}>
  820. <Button style={{ float: "right" }} onClick={this.avisitCancel}>
  821. 取消
  822. </Button>
  823. <Button
  824. type="primary"
  825. style={{ float: "right", marginRight: "10px" }}
  826. onClick={this.baocunxiugai}
  827. >
  828. 保存
  829. </Button>
  830. </div>
  831. </Modal>
  832. <Modal
  833. maskClosable={false}
  834. visible={this.state.visible}
  835. onOk={this.visitOk}
  836. onCancel={this.visitCancel}
  837. width="1000px"
  838. title="专利资料"
  839. footer=""
  840. className="admin-desc-content"
  841. >
  842. <div className="clearfix">
  843. <FormItem
  844. className="half-item"
  845. {...formItemLayout}
  846. label={
  847. <span>
  848. <strong style={{ color: "#f00" }}>*</strong>专利号
  849. </span>
  850. }
  851. >
  852. {
  853. <Input
  854. placeholder="请输入专利号"
  855. value={this.state.patentNo}
  856. onChange={e => {
  857. this.setState({ patentNo: e.target.value });
  858. }}
  859. style={{ width: "240px" }}
  860. />
  861. }
  862. </FormItem>
  863. <FormItem
  864. className="half-item"
  865. {...formItemLayout}
  866. label={
  867. <span>
  868. <strong style={{ color: "#f00" }}>*</strong>专利名称
  869. </span>
  870. }
  871. >
  872. {
  873. <Input
  874. placeholder="请输入专利名称"
  875. value={this.state.patentName}
  876. onChange={e => {
  877. this.setState({ patentName: e.target.value });
  878. }}
  879. style={{ width: "240px" }}
  880. />
  881. }
  882. </FormItem>
  883. <FormItem
  884. className="half-item"
  885. {...formItemLayout}
  886. label="申请日期"
  887. >
  888. <DatePicker
  889. style={{ marginTop: "2px", width: "240px", height: "32px" }}
  890. showTime
  891. format="YYYY-MM-DD"
  892. onOk={e => {}}
  893. value={this.state.appDate ? moment(this.state.appDate) : null}
  894. onChange={(data, dataString) => {
  895. this.setState({ appDate: dataString });
  896. }}
  897. />
  898. </FormItem>
  899. <FormItem
  900. className="half-item"
  901. {...formItemLayout}
  902. label={
  903. <span>
  904. <strong style={{ color: "#f00" }}>*</strong>专利类型
  905. </span>
  906. }
  907. >
  908. {
  909. <Select
  910. placeholder="请选择专利类型"
  911. style={{ width: "240px" }}
  912. value={this.state.patentType}
  913. onChange={e => {
  914. this.setState({ patentType: e });
  915. }}
  916. >
  917. {patentTypeList.map(function(item) {
  918. return (
  919. <Select.Option key={item.value}>
  920. {item.key}
  921. </Select.Option>
  922. );
  923. })}
  924. </Select>
  925. }
  926. </FormItem>
  927. <FormItem
  928. className="half-item"
  929. {...formItemLayout}
  930. label="授权日期"
  931. >
  932. <DatePicker
  933. style={{ marginTop: "2px", width: "240px", height: "32px" }}
  934. showTime
  935. format="YYYY-MM-DD"
  936. onOk={e => {}}
  937. value={
  938. this.state.authDate ? moment(this.state.authDate) : null
  939. }
  940. onChange={(data, dataString) => {
  941. this.setState({ authDate: dataString });
  942. }}
  943. />
  944. </FormItem>
  945. <div className="clearfix">
  946. <FormItem
  947. labelCol={{ span: 4 }}
  948. wrapperCol={{ span: 18 }}
  949. label="合同扫描件"
  950. >
  951. <PicturesWall
  952. fileList={this.getOrgCodeUrl}
  953. pictureUrl={this.state.orgCodeUrl}
  954. />
  955. <p>图片建议:要清晰。</p>
  956. </FormItem>
  957. </div>
  958. <div>
  959. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  960. 申请人资料
  961. </span>
  962. </div>
  963. <FormItem
  964. className="half-item"
  965. {...formItemLayout}
  966. label="申请人/公司"
  967. >
  968. {
  969. <Input
  970. placeholder="请输入申请人/公司"
  971. value={this.state.proposer}
  972. onChange={e => {
  973. this.setState({ proposer: e.target.value });
  974. }}
  975. style={{ width: "240px" }}
  976. />
  977. }
  978. </FormItem>
  979. <FormItem className="half-item" {...formItemLayout} label="省份">
  980. <Select
  981. placeholder="请选择省份"
  982. style={{ width: "240px" }}
  983. value={this.state.province}
  984. onChange={e => {
  985. this.setState({ province: e });
  986. }}
  987. >
  988. {cityArr.map(function(item) {
  989. return (
  990. <Select.Option key={item.value}>{item.key}</Select.Option>
  991. );
  992. })}
  993. </Select>
  994. </FormItem>
  995. <FormItem
  996. className="half-item"
  997. {...formItemLayout}
  998. label="联系手机"
  999. >
  1000. {
  1001. <Input
  1002. placeholder="请输入联系手机"
  1003. value={this.state.contactPhone}
  1004. onChange={e => {
  1005. this.setState({ contactPhone: e.target.value });
  1006. }}
  1007. style={{ width: "240px" }}
  1008. />
  1009. }
  1010. </FormItem>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label={
  1015. <span>
  1016. <strong style={{ color: "#f00" }}>*</strong>电子邮箱
  1017. </span>
  1018. }
  1019. >
  1020. {
  1021. <Input
  1022. placeholder="请输入电子邮箱"
  1023. value={this.state.email}
  1024. onChange={e => {
  1025. this.setState({ email: e.target.value });
  1026. }}
  1027. style={{ width: "240px" }}
  1028. />
  1029. }
  1030. </FormItem>
  1031. </div>
  1032. <div style={{ overflow: "hidden" }}>
  1033. <Button style={{ float: "right" }} onClick={this.onCal}>
  1034. 取消
  1035. </Button>
  1036. <Button
  1037. type="primary"
  1038. style={{ float: "right", marginRight: "10px" }}
  1039. onClick={this.onSure}
  1040. >
  1041. 保存
  1042. </Button>
  1043. </div>
  1044. </Modal>
  1045. </div>
  1046. </div>
  1047. );
  1048. }
  1049. }))
  1050. export default PatentPayment;