businessProject.jsx 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. import React from 'react';
  2. import $ from 'jquery/src/ajax';
  3. import 'react-quill/dist/quill.bubble.css';
  4. import {
  5. Form,
  6. Icon,
  7. Button,
  8. Input,
  9. Select,
  10. Spin,
  11. Table,
  12. message,
  13. DatePicker,
  14. Modal,
  15. Upload,
  16. Popconfirm,
  17. Cascader,
  18. InputNumber,
  19. Radio
  20. } from 'antd';
  21. import { getGameState, splitUrl, getprovince } from '@/tools.js';
  22. //图片组件
  23. const PicturesWall = React.createClass({
  24. getInitialState() {
  25. return {
  26. previewVisible: false,
  27. previewImage: '',
  28. fileList: []
  29. };
  30. },
  31. handleCancel() {
  32. this.setState({ previewVisible: false });
  33. },
  34. handlePreview(file) {
  35. this.setState({
  36. previewImage: file.url || file.thumbUrl,
  37. previewVisible: true
  38. });
  39. },
  40. handleChange(info) {
  41. let fileList = info.fileList;
  42. this.setState({ fileList });
  43. this.props.fileList(fileList);
  44. },
  45. componentWillReceiveProps(nextProps) {
  46. this.state.fileList = nextProps.pictureUrl;
  47. },
  48. render() {
  49. const { previewVisible, previewImage, fileList } = this.state;
  50. const uploadButton = (
  51. <div>
  52. <Icon type="plus" />
  53. <div className="ant-upload-text">点击上传</div>
  54. </div>
  55. );
  56. return (
  57. <div style={{ display: 'inline-block' }}>
  58. <Upload
  59. action={globalConfig.context + '/api/admin/jtBusiness/project/uploadPicture'}
  60. data={{ sign: 'jt_project_picture' }}
  61. listType="picture-card"
  62. fileList={fileList}
  63. onPreview={this.handlePreview}
  64. onChange={this.handleChange}
  65. >
  66. {fileList.length >= 1 ? null : uploadButton}
  67. </Upload>
  68. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  69. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  70. </Modal>
  71. </div>
  72. );
  73. }
  74. });
  75. //主体
  76. const BusinessProject = Form.create()(
  77. React.createClass({
  78. loadData(pageNo) {
  79. this.state.data = [];
  80. this.setState({
  81. loading: true,
  82. page: pageNo
  83. });
  84. $.ajax({
  85. method: 'get',
  86. dataType: 'json',
  87. crossDomain: false,
  88. url: globalConfig.context + '/portal/service/jtProject/list',
  89. data: {
  90. pageNo: pageNo || 1,
  91. pageSize: this.state.pagination.pageSize,
  92. topId: this.state.typeSearch? this.state.typeSearch[0]:'',
  93. secondId:this.state.typeSearch?this.state.typeSearch[1]:'',
  94. name: this.state.nameSearch,
  95. privateProject: 1,
  96. auditStatus:1
  97. },
  98. success: function(data) {
  99. let theArr = [];
  100. if (!data.data || !data.data.list) {
  101. if (data.error && data.error.length) {
  102. message.warning(data.error[0].message);
  103. }
  104. } else {
  105. for (let i = 0; i < data.data.list.length; i++) {
  106. let thisdata = data.data.list[i],
  107. ProvinceCityArr = [],
  108. cname = '',
  109. superName = '',
  110. ProvinceS = thisdata.province, //getprovince
  111. citys = thisdata.city,
  112. Areas = thisdata.area;
  113. ProvinceCityArr.push(ProvinceS, citys, Areas);
  114. this.state.categoryList.map((item) => {
  115. if (thisdata.categoryId == item.id) {
  116. cname = item.name;
  117. superName = item.superName;
  118. }
  119. });
  120. theArr.push({
  121. key: i,
  122. id: thisdata.id, //业务名称
  123. name: thisdata.name, //业务名称
  124. categoryId: thisdata.categoryId, //业务品类
  125. number: thisdata.number,
  126. price: thisdata.price, //市场价
  127. superName: superName,
  128. cname: cname,
  129. companyName:thisdata.companyName,
  130. city: thisdata.city,
  131. activityPrice: thisdata.activityPrice ? thisdata.activityPrice : '', //最低折扣
  132. memberPrice: thisdata.memberPrice ? thisdata.memberPrice : '', //会员价
  133. offset: thisdata.offset ? thisdata.offset : '',
  134. activityPrice: thisdata.activityPrice ? thisdata.activityPrice : '', //活动价
  135. activityFlag: thisdata.activityFlag, //活动生效标识
  136. status: thisdata.status, //项目状态
  137. province: thisdata.province,
  138. introduce: thisdata.introduce,
  139. createTime: thisdata.createTime ? new Date(thisdata.createTime).toLocaleString() : '',
  140. value: thisdata.value,
  141. applyConditions: thisdata.applyConditions
  142. });
  143. }
  144. this.state.pagination.current = data.data.pageNo;
  145. this.state.pagination.total = data.data.totalCount;
  146. }
  147. this.setState({
  148. dataSource: theArr,
  149. pagination: this.state.pagination
  150. });
  151. }.bind(this)
  152. }).always(
  153. function() {
  154. this.setState({
  155. loading: false
  156. });
  157. }.bind(this)
  158. );
  159. },
  160. getInitialState() {
  161. return {
  162. searchMore: true,
  163. selectedRowKeys: [],
  164. selectedRows: [],
  165. loading: false,
  166. orgCodeUrl: [],
  167. typeSearch:[],
  168. companyLogoUrl: [],
  169. pagination: {
  170. defaultCurrent: 1,
  171. defaultPageSize: 10,
  172. showQuickJumper: true,
  173. pageSize: 10,
  174. onChange: function(page) {
  175. this.loadData(page);
  176. this.setState({
  177. selectedRowKeys: []
  178. });
  179. }.bind(this),
  180. showTotal: function(total) {
  181. return '共' + total + '条数据';
  182. }
  183. },
  184. columns: [
  185. {
  186. title: '项目名称',
  187. dataIndex: 'name',
  188. key: 'bname'
  189. },
  190. {
  191. title: '发布人账户昵称',
  192. dataIndex: 'companyName',
  193. key: 'companyName'
  194. },
  195. {
  196. title: '品类名称',
  197. dataIndex: 'cname',
  198. key: 'cname',
  199. render:(text,recard)=>{
  200. let ids =recard.categoryId,categoryList =this.state.categoryList,txt='' ;
  201. categoryList.map(item=>{
  202. if(item.children){
  203. (item.children).map(atem=>{
  204. if(atem.value==ids){
  205. txt= atem.label
  206. }
  207. })
  208. }
  209. })
  210. return txt;
  211. }
  212. },
  213. {
  214. title: '上级品类',
  215. dataIndex: 'superName',
  216. key: 'superName',
  217. render:(text,recard)=>{
  218. let ids =recard.categoryId,categoryList =this.state.categoryList,txt='' ;
  219. categoryList.map(item=>{
  220. if(item.children){
  221. (item.children).map(atem=>{
  222. if(atem.value==ids){
  223. txt= item.label
  224. }
  225. })
  226. }
  227. })
  228. return txt;
  229. }
  230. },
  231. {
  232. title: '业务地区',
  233. dataIndex: 'area',
  234. key: 'area',
  235. render: (text, rocard) => {
  236. return (
  237. <div>
  238. {rocard.province != 0 ? (
  239. <span>{getprovince(rocard.province) + '-' + getprovince(rocard.city)}</span>
  240. ) : (
  241. '全国'
  242. )}
  243. </div>
  244. );
  245. }
  246. },
  247. {
  248. title: '市场价(万元)',
  249. dataIndex: 'price',
  250. key: 'price'
  251. },
  252. {
  253. title: '最低折扣',
  254. dataIndex: 'offset',
  255. key: 'offset'
  256. },
  257. {
  258. title: '会员价(万元)',
  259. dataIndex: 'memberPrice',
  260. key: 'memberPrice'
  261. },
  262. {
  263. title: '活动价(万元)',
  264. dataIndex: 'activityPrice',
  265. key: 'activityPrice'
  266. },
  267. {
  268. title: '活动生效标识',
  269. dataIndex: 'activityFlag',
  270. key: 'activityFlag',
  271. render: (text) => {
  272. return getGameState(text);
  273. }
  274. },
  275. {
  276. title: '审核',
  277. dataIndex: 'caozuo',
  278. key: 'caozuo',
  279. render: (text, recard) => {
  280. return (
  281. <div className="btnRight">
  282. <Button
  283. type="primary"
  284. onClick={(e) => {
  285. e.stopPropagation();
  286. this.tableRowClick(recard);
  287. }}
  288. >
  289. 审核
  290. </Button>
  291. </div>
  292. );
  293. }
  294. }
  295. ],
  296. dataSource: []
  297. };
  298. },
  299. //业务品类列表获取
  300. topLevel() {
  301. $.ajax({
  302. method: 'get',
  303. dataType: 'json',
  304. crossDomain: false,
  305. url: globalConfig.context + '/portal/service/jtBusiness/getCategoryList',
  306. data: {
  307. },
  308. success: function(data) {
  309. let theArr = [],thisdata=data.data;
  310. if (!data.data) {
  311. if (data.error && data.error.length) {
  312. message.warning(data.error[0].message);
  313. }
  314. } else {
  315. thisdata.map((item,index) => {
  316. theArr.push({
  317. 'value':item.topLevelId,
  318. 'label':item.topLevel,
  319. 'children':[]
  320. })
  321. if (item.children) {
  322. item.children.map(atem => {
  323. (theArr[index].children).push({
  324. 'value':atem.id,
  325. 'label':atem.name
  326. })
  327. })
  328. }
  329. })
  330. }
  331. this.setState({
  332. categoryList: theArr,
  333. });
  334. this.loadData();
  335. }.bind(this)
  336. }).always(
  337. function() {
  338. this.setState({
  339. loading: false
  340. });
  341. }.bind(this)
  342. );
  343. },
  344. componentWillMount() {
  345. this.topLevel();
  346. },
  347. detailes(recard) {
  348. this.setState({
  349. loading:true
  350. });
  351. $.ajax({
  352. method: 'get',
  353. dataType: 'json',
  354. crossDomain: false,
  355. url: globalConfig.context + '/api/user/jtBusiness/project/detail',
  356. data: {
  357. id: recard.id
  358. },
  359. success: function(data) {
  360. let thisData = data.data;
  361. if (!thisData) {
  362. if (data.error && data.error.length) {
  363. message.warning(data.error[0].message);
  364. }
  365. thisData = {};
  366. }
  367. let categoryList = this.state.categoryList,name='';
  368. categoryList.map(item=>{
  369. if((item.children).length){
  370. (item.children).map(atem=>{
  371. if(atem.value==thisData.categoryId){
  372. name=item.label+'/'+atem.label;
  373. return;
  374. }
  375. })
  376. }
  377. });
  378. document.querySelector('.txt').innerHTML='';
  379. let eleDiv = document.createElement('div');
  380. eleDiv.innerHTML=thisData.introduce;
  381. document.querySelector('.txt').append(eleDiv);
  382. this.setState({
  383. id: thisData.id,
  384. data: thisData,
  385. name: name,
  386. createTime: thisData.createTime ? new Date(thisData.createTime).toLocaleString() : '',
  387. auditStatus: thisData.auditStatus,
  388. orgCodeUrl: thisData.minImgUrl
  389. ? splitUrl(thisData.minImgUrl, ',', globalConfig.avatarHost + '/upload')
  390. : [],
  391. companyLogoUrl: thisData.maxImgUrl
  392. ? splitUrl(thisData.maxImgUrl, ',', globalConfig.avatarHost + '/upload')
  393. : []
  394. });
  395. }.bind(this)
  396. }).always(
  397. function() {
  398. this.setState({
  399. loading: false
  400. });
  401. }.bind(this)
  402. );
  403. },
  404. //项目列表整行点击
  405. tableRowClick(record, index) {
  406. this.state.RowData = record;
  407. this.setState({
  408. editvisible: true
  409. });
  410. this.detailes(record);
  411. },
  412. edithandleCancel(e) {
  413. this.setState({
  414. editvisible: false
  415. });
  416. },
  417. //审核通过/拒绝
  418. updateFun(index){
  419. this.setState({
  420. loading:true
  421. })
  422. $.ajax({
  423. method: "post",
  424. dataType: "JSON",
  425. crossDomain: false,
  426. url: globalConfig.context + '/api/admin/jtBusiness/project/audit',
  427. data: {
  428. id: this.state.id,
  429. auditResult:index,
  430. auditInfo:this.state.refuseValue
  431. }
  432. }).done(function (data) {
  433. if (!data.error.length) {
  434. message.success('操作成功!');
  435. this.setState({
  436. loading: false,
  437. editvisible:false
  438. });
  439. if(this.state.pagination.total%10==1){
  440. this.loadData((this.state.page)-1);
  441. }else{
  442. this.loadData(this.state.page);
  443. }
  444. } else {
  445. message.warning(data.error[0].message);
  446. };
  447. }.bind(this));
  448. },
  449. //审核拒绝
  450. refuse(){
  451. this.setState({
  452. refuseValue:'',
  453. refuseVisible:true
  454. })
  455. },
  456. refuseOk(){
  457. if(!this.state.refuseValue){
  458. message.warning('请填写拒绝原因。')
  459. return;
  460. }
  461. this.setState({
  462. refuseVisible:false
  463. })
  464. this.updateFun(1)
  465. },
  466. refuseCancel(){
  467. this.setState({
  468. refuseValue:'',
  469. refuseVisible:false
  470. })
  471. },
  472. search() {
  473. this.loadData();
  474. },
  475. //搜索部分的清零
  476. reset() {
  477. this.state.nameSearch = ''; //项目名称清零
  478. this.state.typeSearch = undefined; //品类名称清零
  479. this.state.ressSearch = undefined; //省市区清零
  480. this.state.activityFlag = undefined; //活动生效清零
  481. this.state.status = undefined; //项目状态清零
  482. this.loadData();
  483. },
  484. //更多搜索的显示与否
  485. searchSwitch() {
  486. this.setState({
  487. searchMore: !this.state.searchMore
  488. });
  489. },
  490. render() {
  491. const FormItem = Form.Item;
  492. const rowSelection = {
  493. selectedRowKeys: this.state.selectedRowKeys,
  494. onChange: (selectedRowKeys, selectedRows) => {
  495. this.setState({
  496. selectedRows: selectedRows.slice(-1),
  497. selectedRowKeys: selectedRowKeys.slice(-1)
  498. });
  499. }
  500. };
  501. const theData = this.state.data || {};
  502. return (
  503. <div className="user-content">
  504. <div className="content-title">
  505. <span>项目业务审核</span>
  506. <div className="user-search">
  507. <Input
  508. placeholder="业务项目名称"
  509. style={{ width: '150px', marginRight: '10px', marginBottom: '10px' }}
  510. value={this.state.nameSearch}
  511. onChange={(e) => {
  512. this.setState({ nameSearch: e.target.value });
  513. }}
  514. />
  515. <Cascader placeholder='业务项目品类'
  516. options={this.state.categoryList}
  517. style={{width:200,marginRight:10}}
  518. value={this.state.typeSearch} onChange={(e)=>{this.setState({typeSearch:e})}}/>
  519. <Button type="primary" onClick={this.search} style={{ marginRight: '10px' }}>
  520. 搜索
  521. </Button>
  522. <Button onClick={this.reset} style={{ marginRight: '10px' }}>
  523. 重置
  524. </Button>
  525. </div>
  526. <div className="patent-table">
  527. <Spin spinning={this.state.loading}>
  528. <Table
  529. columns={this.state.columns}
  530. dataSource={this.state.dataSource}
  531. rowSelection={rowSelection}
  532. pagination={this.state.pagination}
  533. />
  534. </Spin>
  535. </div>
  536. <div className="patent-desc">
  537. <Modal
  538. className="customeDetails"
  539. title="业务项目"
  540. width="1000px"
  541. visible={this.state.editvisible}
  542. onOk={this.edithandleCancel}
  543. onCancel={this.edithandleCancel}
  544. footer=""
  545. >
  546. <Form layout="horizontal" onSubmit={this.edithandleSubmit} id="demand-form">
  547. <Spin spinning={this.state.loading}>
  548. <div className="clearfix">
  549. <FormItem
  550. className="half-item"
  551. labelCol={{ span: 8 }}
  552. wrapperCol={{ span: 12 }}
  553. label="项目名称"
  554. >
  555. <span>{theData.name}</span>
  556. </FormItem>
  557. <FormItem
  558. className="half-item"
  559. labelCol={{ span: 8 }}
  560. wrapperCol={{ span: 12 }}
  561. label="业务品类"
  562. >
  563. <span>{this.state.name}</span>
  564. </FormItem>
  565. </div>
  566. <div className="clearfix">
  567. <FormItem
  568. className="half-item"
  569. labelCol={{ span: 8 }}
  570. wrapperCol={{ span: 12 }}
  571. label="省份"
  572. >
  573. <span>
  574. {theData.province != '0' ? getprovince(theData.province) : '全国'}
  575. </span>
  576. </FormItem>
  577. <FormItem
  578. className="half-item"
  579. labelCol={{ span: 8 }}
  580. wrapperCol={{ span: 12 }}
  581. label="热点"
  582. >
  583. <span>{theData.isHot=='1' ? '是' :theData.isHot=='0'?'否':''}</span>
  584. </FormItem>
  585. </div>
  586. <div className="clearfix">
  587. <FormItem
  588. className="half-item"
  589. labelCol={{ span: 8 }}
  590. wrapperCol={{ span: 12 }}
  591. label="市场价"
  592. >
  593. <span>{theData.price?theData.price+' 万元':''}</span>
  594. </FormItem>
  595. <FormItem
  596. className="half-item"
  597. labelCol={{ span: 8 }}
  598. wrapperCol={{ span: 12 }}
  599. label="活动价"
  600. >
  601. <span>{theData.activityPrice?theData.activityPrice+' 万元':''}</span>
  602. </FormItem>
  603. <FormItem
  604. className="half-item"
  605. labelCol={{ span: 8 }}
  606. wrapperCol={{ span: 12 }}
  607. label="最低折扣"
  608. >
  609. <span>{theData.offset?theData.offset+' 万元':''}</span>
  610. </FormItem>
  611. <FormItem
  612. className="half-item"
  613. labelCol={{ span: 8 }}
  614. wrapperCol={{ span: 12 }}
  615. label="会员价"
  616. >
  617. <span>{theData.memberPrice?theData.memberPrice+' 万元':''}</span>
  618. </FormItem>
  619. <FormItem
  620. className="half-item"
  621. labelCol={{ span: 8 }}
  622. wrapperCol={{ span: 12 }}
  623. label="活动生效"
  624. >
  625. <span>{theData.activityFlag =='1'? '有效' : theData.activityFlag =='0'?'无效':''}</span>
  626. </FormItem>
  627. <FormItem
  628. className="half-item"
  629. labelCol={{ span: 8 }}
  630. wrapperCol={{ span: 12 }}
  631. label="创建时间"
  632. >
  633. <span>{this.state.createTime}</span>
  634. </FormItem>
  635. </div>
  636. <div className="clearfix">
  637. <FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 12 }} label="项目营销说明">
  638. <span>{theData.advertisement}</span>
  639. </FormItem>
  640. </div>
  641. <div className="clearfix">
  642. <FormItem
  643. labelCol={{ span: 4 }}
  644. wrapperCol={{ span: 12 }}
  645. label="业务项目价值及作用"
  646. >
  647. <span>{theData.value}</span>
  648. </FormItem>
  649. </div>
  650. <div className="clearfix">
  651. <FormItem
  652. labelCol={{ span: 4 }}
  653. wrapperCol={{ span: 12 }}
  654. label="业务项目客户基本条件"
  655. >
  656. <span>{theData.applyConditions}</span>
  657. </FormItem>
  658. </div>
  659. <div className="clearfix">
  660. <FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 18 }} label="业务项目服务内容">
  661. <div className="ql-editor">
  662. <div className="txt"></div>
  663. </div>
  664. </FormItem>
  665. </div>
  666. <div className="clearfix pictures">
  667. <FormItem
  668. className="half-item"
  669. labelCol={{ span: 8 }}
  670. wrapperCol={{ span: 10 }}
  671. label="业务项目图标(小)"
  672. >
  673. <Upload
  674. className="demandDetailShow-upload"
  675. listType="picture-card"
  676. fileList={this.state.orgCodeUrl}
  677. onPreview={(file) => {
  678. this.setState({
  679. previewImage: file.url || file.thumbUrl,
  680. previewVisible: true
  681. });
  682. }}
  683. />
  684. <Modal
  685. maskClosable={false}
  686. footer={null}
  687. visible={this.state.previewVisible}
  688. onCancel={() => {
  689. this.setState({ previewVisible: false });
  690. }}
  691. >
  692. <img
  693. alt=""
  694. style={{ width: '100%' }}
  695. src={this.state.previewImage || ''}
  696. />
  697. </Modal>
  698. </FormItem>
  699. <FormItem
  700. className="half-item"
  701. labelCol={{ span: 8 }}
  702. wrapperCol={{ span: 12 }}
  703. label="业务项目图标(大)"
  704. >
  705. <Upload
  706. className="demandDetailShow-upload"
  707. listType="picture-card"
  708. fileList={this.state.companyLogoUrl}
  709. onPreview={(file) => {
  710. this.setState({
  711. previewImage: file.url || file.thumbUrl,
  712. previewVisible: true
  713. });
  714. }}
  715. />
  716. <Modal
  717. maskClosable={false}
  718. footer={null}
  719. visible={this.state.previewVisible}
  720. onCancel={() => {
  721. this.setState({ previewVisible: false });
  722. }}
  723. >
  724. <img
  725. alt=""
  726. style={{ width: '100%' }}
  727. src={this.state.previewImage || ''}
  728. />
  729. </Modal>
  730. </FormItem>
  731. <div className="clearfix">
  732. <FormItem wrapperCol={{ span: 12, offset: 3 }}>
  733. <Button
  734. className="set-submit"
  735. type="primary"
  736. onClick={(e) => {
  737. this.updateFun(0);
  738. }}
  739. >
  740. 审核通过
  741. </Button>
  742. <Button
  743. type="danger"
  744. style={{ marginRight: 20 }}
  745. onClick={(e) => {
  746. this.refuse();
  747. }}
  748. >
  749. 审核拒绝
  750. </Button>
  751. <Button
  752. className="set-submit"
  753. type="ghost"
  754. onClick={this.edithandleCancel}
  755. >
  756. 取消
  757. </Button>
  758. </FormItem>
  759. </div>
  760. </div>
  761. </Spin>
  762. </Form>
  763. </Modal>
  764. </div>
  765. </div>
  766. <Modal
  767. title="审核拒绝"
  768. visible={this.state.refuseVisible}
  769. onOk={this.refuseOk}
  770. onCancel={this.refuseCancel}
  771. >
  772. <div>
  773. <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="拒绝原因">
  774. <Input type="textarea" rows={4} value={this.state.refuseValue} placeholder="输入拒绝原因" onChange={(e)=>{this.setState({refuseValue:e.target.value})}}/>
  775. </FormItem>
  776. </div>
  777. </Modal>
  778. </div>
  779. );
  780. }
  781. })
  782. );
  783. export default BusinessProject;