businessCategory.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. import React from 'react';
  2. import ReactDom from 'react-dom';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import '../content.less';
  7. import { Form,Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload,Popconfirm,TimePicker } from 'antd';
  8. import {categoryState} from '../../../dataDic.js';
  9. import {getCategoryState} from '../../../tools.js';
  10. const BusinessCategory=Form.create()(React.createClass({
  11. //搜索功能和初始列表加载
  12. loadData(pageNo, apiUrl) {
  13. this.state.data = [];
  14. this.setState({
  15. loading: true,
  16. ispage:pageNo,
  17. });
  18. let nameText=this.state.SuperArr;
  19. let superText=(this.state.superId)?nameText[parseInt(this.state.superId)].id:"";
  20. $.ajax({
  21. method: "post",
  22. dataType: "json",
  23. crossDomain: false,
  24. url: globalConfig.context + '/api/admin/Varieties/vtList',
  25. data: {
  26. pageNo: pageNo || 1,
  27. pageSize: this.state.pagination.pageSize,
  28. cname:this.state.cname, //品类名称
  29. superId:superText,//上级品类编号
  30. layer:this.state.layer,//组织层级
  31. status:this.state.status,//品类状态
  32. },
  33. success: function (data) {
  34. let theArr = [];
  35. if (!data.data || !data.data.list) {
  36. if (data.error && data.error.length) {
  37. message.warning(data.error[0].message);
  38. };
  39. } else {
  40. for (let i = 0; i < data.data.list.length; i++) {
  41. let thisdata = data.data.list[i];
  42. theArr.push({
  43. key: i,
  44. id: thisdata.id,//品类ID
  45. cid: thisdata.cid,//品类编号
  46. cname: thisdata.cname,//品类名称
  47. layer: thisdata.layer,//品类层级
  48. superName: thisdata.superName,//上级品类
  49. status: thisdata.status,//上级品类状态
  50. });
  51. };
  52. this.state.pagination.current = data.data.pageNo;
  53. this.state.pagination.total = data.data.totalCount;
  54. };
  55. this.setState({
  56. dataSource: theArr,
  57. pagination: this.state.pagination
  58. });
  59. }.bind(this),
  60. }).always(function () {
  61. this.setState({
  62. loading: false
  63. });
  64. }.bind(this));
  65. },
  66. getInitialState() {
  67. return {
  68. searchMore: true,
  69. selectedRowKeys: [],
  70. selectedRows: [],
  71. loading: false,
  72. pagination: {
  73. defaultCurrent: 1,
  74. defaultPageSize: 10,
  75. showQuickJumper: true,
  76. pageSize: 10,
  77. onChange: function (page) {
  78. this.loadData(page);
  79. }.bind(this),
  80. showTotal: function (total) {
  81. return '共' + total + '条数据';
  82. }
  83. },
  84. columns: [
  85. {
  86. title: '品类编号',
  87. dataIndex: 'cid',
  88. key: 'cid',
  89. }, {
  90. title: '品类名称',
  91. dataIndex: 'cname',
  92. key: 'cname',
  93. }, {
  94. title: '品类层级',
  95. dataIndex: 'layer',
  96. key: 'layer',
  97. //render: text => { return getAchievementCategory(text); }
  98. }, {
  99. title: '上级品类',
  100. dataIndex: 'superName',
  101. key: 'superName',
  102. },{
  103. title: '品类状态',
  104. dataIndex: 'status',
  105. key: 'status',
  106. render: text => { return getCategoryState(text) }
  107. }
  108. ],
  109. dataSource: [],
  110. };
  111. },
  112. componentWillMount() {
  113. this.selectSuperId();
  114. },
  115. //获取上级品类
  116. selectSuperId() {
  117. this.state.data = []
  118. $.ajax({
  119. method: "get",
  120. dataType: "json",
  121. crossDomain: false,
  122. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  123. data:{
  124. flag:1,
  125. },
  126. success: function (data) {
  127. let theArr = [];
  128. let thedata=data.data;
  129. if (!thedata) {
  130. if (data.error && data.error.length) {
  131. message.warning(data.error[0].message);
  132. };
  133. thedata = {};
  134. };
  135. var contactIds=[];
  136. //for (let item in data.data) {
  137. for(var i=0;i<data.data.length;i++){
  138. let theData = data.data[i];
  139. theArr.push(
  140. <Select.Option value={i.toString()} key={theData.cname}>{theData.cname}</Select.Option>
  141. );
  142. };
  143. this.setState({
  144. SuperArr:thedata,
  145. contactsOption: theArr,
  146. orderStatusOptions:data.data,
  147. });
  148. }.bind(this),
  149. }).always(function () {
  150. this.loadData(this.state.ispage);
  151. this.setState({
  152. loading: false
  153. });
  154. }.bind(this));
  155. },
  156. //编辑部门,保存
  157. edithandleSubmit(e){
  158. e.preventDefault();
  159. //上级组织字典
  160. let nameText=this.state.SuperArr
  161. let superText=this.state.editSuperName;
  162. let superIdText=this.state.editSuperId;
  163. let superOne=this.state.editDataSource[0].editSuperName;
  164. let isStatus=this.state.editStatus;
  165. if(isStatus==1){
  166. if(confirm('是否要停用该品类?')){
  167. if(!(superOne==superText)){
  168. let changeSuper=nameText[parseInt(this.state.editSuperName)].id;
  169. if(confirm('上级品类已修改,是否保存?')){
  170. $.ajax({
  171. method: "post",
  172. dataType: "json",
  173. crossDomain: false,
  174. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  175. data:{
  176. id:this.state.editId,//品类ID
  177. cname:this.state.editName,//品类名称
  178. superId:changeSuper,//上级品类
  179. status:this.state.editStatus,//品类状态
  180. }
  181. }).done(function (data) {
  182. this.setState({
  183. loading: false
  184. });
  185. if (!data.error.length) {
  186. message.success('保存成功!');
  187. this.edithandleCancel();
  188. this.selectSuperId();
  189. } else {
  190. message.warning(data.error[0].message);
  191. }
  192. }.bind(this));
  193. return false
  194. }
  195. }else {
  196. $.ajax({
  197. method: "post",
  198. dataType: "json",
  199. crossDomain: false,
  200. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  201. data:{
  202. id:this.state.editId,//品类ID
  203. cname:this.state.editName,//品类名称
  204. superId:superIdText,//上级品类
  205. status:this.state.editStatus,//品类状态
  206. }
  207. }).done(function (data) {
  208. this.setState({
  209. loading: false
  210. });
  211. if (!data.error.length) {
  212. message.success('保存成功!');
  213. this.edithandleCancel();
  214. this.selectSuperId();
  215. } else {
  216. message.warning(data.error[0].message);
  217. }
  218. }.bind(this));
  219. }
  220. }
  221. }else{
  222. if(!(superOne==superText)){
  223. let changeSuper=nameText[parseInt(this.state.editSuperName)].id;
  224. if(confirm('上级组织已修改,是否保存?')){
  225. $.ajax({
  226. method: "post",
  227. dataType: "json",
  228. crossDomain: false,
  229. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  230. data:{
  231. id:this.state.editId,//品类ID
  232. cname:this.state.editName,//品类名称
  233. superId:changeSuper,//上级品类
  234. status:this.state.editStatus,//品类状态
  235. }
  236. }).done(function (data) {
  237. this.setState({
  238. loading: false
  239. });
  240. if (!data.error.length) {
  241. message.success('保存成功!');
  242. this.edithandleCancel();
  243. this.selectSuperId();
  244. } else {
  245. message.warning(data.error[0].message);
  246. }
  247. }.bind(this));
  248. return false
  249. }
  250. }else {
  251. $.ajax({
  252. method: "post",
  253. dataType: "json",
  254. crossDomain: false,
  255. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  256. data:{
  257. id:this.state.editId,//品类ID
  258. cname:this.state.editName,//品类名称
  259. superId:superIdText,//上级品类
  260. status:this.state.editStatus,//品类状态
  261. }
  262. }).done(function (data) {
  263. this.setState({
  264. loading: false
  265. });
  266. if (!data.error.length) {
  267. message.success('保存成功!');
  268. this.edithandleCancel();
  269. this.selectSuperId();
  270. } else {
  271. message.warning(data.error[0].message);
  272. }
  273. }.bind(this));
  274. }
  275. }
  276. },
  277. //整行点击
  278. tableRowClick(record, index) {
  279. this.selectSuperId();
  280. this.state.RowData = record;
  281. this.setState({
  282. editvisible: true,
  283. selectedRowKeys:[],
  284. rowId:record.businessId,
  285. });
  286. $.ajax({
  287. method: "get",
  288. dataType: "json",
  289. crossDomain: false,
  290. url: globalConfig.context +"/api/admin/Varieties/detailVarieties" ,
  291. data: {
  292. id: record.id
  293. },
  294. success: function (data) {
  295. let theArr = [];
  296. let thisdata = data.data;
  297. if (!data) {
  298. if (data.error && data.error.length) {
  299. message.warning(data.error[0].message);
  300. };
  301. } else {
  302. theArr.push({
  303. editId: thisdata.id,//每一条记录的ID
  304. editName:thisdata.cname,//品类名称
  305. editStatus:thisdata.status,//品类状态
  306. editSuperName:thisdata.superName,//上级品类
  307. editlayer:thisdata.layer,//品类层级
  308. editCid: thisdata.cid,//品类编号
  309. editCreateName:thisdata.createName,//创建人
  310. editTime:thisdata.createTimeFormattedDate,//创建时间
  311. });
  312. };
  313. this.setState({
  314. editId: thisdata.id,//每一条记录的ID
  315. editName:thisdata.cname,//品类名称
  316. editStatus:thisdata.status,//品类状态
  317. editSuperName:thisdata.superName,//上级品类
  318. editSuperId:thisdata.superId,//上级品类
  319. editlayer:thisdata.layer,//品类层级
  320. editCid: thisdata.cid,//品类编号
  321. editCreateName:thisdata.createName,//创建人
  322. editTime:thisdata.createTimeFormattedDate,//创建时间
  323. editDataSource: theArr,
  324. });
  325. }.bind(this),
  326. }).always(function () {
  327. this.setState({
  328. loading: false
  329. });
  330. }.bind(this));
  331. },
  332. //新增一个品类,保存
  333. addhandleSubmit(e){
  334. e.preventDefault();
  335. if(!this.state.categoryName){
  336. message.warning('请输入品类名称');
  337. return false;
  338. }
  339. if(!this.state.upCategory){
  340. message.warning('请选择上级品类');
  341. return false;
  342. }
  343. this.props.form.validateFields((err, values) => {
  344. if (!err) {
  345. this.setState({
  346. loading: true
  347. });
  348. //上级组织字典
  349. let nameText=this.state.SuperArr;
  350. let superText=nameText[parseInt(this.state.upCategory)].id;
  351. $.ajax({
  352. method: "get",
  353. dataType: "json",
  354. crossDomain: false,
  355. url:globalConfig.context + '/api/admin/Varieties/addVarieties',
  356. data:{
  357. cname:this.state.categoryName,//组织名称
  358. superId:superText,//上级组织
  359. }
  360. }).done(function (data) {
  361. this.setState({
  362. loading: false
  363. });
  364. if (!data.error.length) {
  365. message.success('新增品类成功!');
  366. this.handleCancel();
  367. this.selectSuperId();
  368. } else {
  369. message.warning(data.error[0].message);
  370. }
  371. }.bind(this));
  372. }
  373. });
  374. },
  375. //整行删除
  376. delectRow() {
  377. let deletedIds = '';
  378. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  379. let rowItem = this.state.selectedRows[idx];
  380. if (rowItem.id) {
  381. deletedIds=rowItem.id;
  382. };
  383. };
  384. this.setState({
  385. selectedRowKeys: [],
  386. loading: deletedIds.length > 0
  387. });
  388. $.ajax({
  389. method: "get",
  390. dataType: "json",
  391. crossDomain: false,
  392. url: globalConfig.context + "/api/admin/Varieties/deleteState",
  393. data: {
  394. id: deletedIds
  395. }
  396. }).done(function (data) {
  397. if (!data.error.length) {
  398. message.success('删除成功!');
  399. this.setState({
  400. loading: false,
  401. });
  402. } else {
  403. message.warning(data.error[0].message);
  404. };
  405. this.selectSuperId();
  406. }.bind(this));
  407. },
  408. //整行停用
  409. blockRow() {
  410. let deletedIds = '';
  411. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  412. let rowItem = this.state.selectedRows[idx];
  413. if (rowItem.id) {
  414. deletedIds=rowItem.id;
  415. };
  416. };
  417. this.setState({
  418. selectedRowKeys: [],
  419. loading: deletedIds.length > 0
  420. });
  421. $.ajax({
  422. method: "get",
  423. dataType: "json",
  424. crossDomain: false,
  425. url: globalConfig.context + "/api/admin/Varieties/updateStatus",
  426. data: {
  427. id: deletedIds
  428. }
  429. }).done(function (data) {
  430. if (!data.error.length) {
  431. message.success('该品类已成功停用!');
  432. this.setState({
  433. loading: false,
  434. });
  435. } else {
  436. message.warning(data.error[0].message);
  437. };
  438. this.selectSuperId();
  439. }.bind(this));
  440. },
  441. addClick() {
  442. this.state.RowData = {};
  443. this.setState({
  444. visible: true
  445. });
  446. },
  447. editClick() {
  448. this.state.RowData = {};
  449. this.setState({
  450. editvisible: true
  451. });
  452. },
  453. handleCancel() {
  454. this.setState({ visible: false })
  455. },
  456. edithandleCancel() {
  457. this.setState({ editvisible: false })
  458. },
  459. search() {
  460. this.loadData();
  461. },
  462. reset() {
  463. this.state.cname = '';//品类名称清零
  464. this.state.layer = undefined;//品类层级清零
  465. this.state.status = undefined;//品类状态清零
  466. this.state.superId = undefined;//上级品类清零
  467. this.loadData();
  468. },
  469. searchSwitch() {
  470. this.setState({
  471. searchMore: !this.state.searchMore
  472. });
  473. },
  474. render() {
  475. const FormItem = Form.Item
  476. const rowSelection = {
  477. selectedRowKeys: this.state.selectedRowKeys,
  478. onChange: (selectedRowKeys, selectedRows) => {
  479. this.setState({
  480. selectedRows: selectedRows.slice(-1),
  481. selectedRowKeys: selectedRowKeys.slice(-1)
  482. });
  483. }
  484. };
  485. const formItemLayout = {
  486. labelCol: { span: 8 },
  487. wrapperCol: { span: 14 },
  488. };
  489. const { getFieldDecorator } = this.props.form;
  490. const hasSelected = this.state.selectedRowKeys.length > 0;
  491. const { RangePicker } = DatePicker;
  492. return (
  493. <div className="user-content" >
  494. <div className="content-title">
  495. <div className="user-search">
  496. <Input placeholder="业务品类名称" style={{width:'150px',marginRight:'10px',marginBottom:'10px'}}
  497. value={this.state.cname}
  498. onChange={(e) => { this.setState({ cname: e.target.value }); }} />
  499. <Select placeholder="上级品类"
  500. style={{ width:'200px',marginRight:'10px' }}
  501. value={this.state.superId}
  502. onChange={(e) => { this.setState({ superId: e }) }} notFoundContent="未获取到上级品类列表">
  503. {this.state.contactsOption}
  504. </Select>
  505. <Button type="primary" onClick={this.search} style={{marginRight:'10px'}}>搜索</Button>
  506. <Button onClick={this.reset} style={{marginRight:'10px'}}>重置</Button>
  507. <Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
  508. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
  509. disabled={!hasSelected}
  510. >删除<Icon type="minus" />
  511. </Button>
  512. </Popconfirm>
  513. <Popconfirm title="是否停用?" onConfirm={this.blockRow} okText="是" cancelText="否">
  514. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
  515. disabled={!hasSelected}
  516. >停用<Icon type="minus" />
  517. </Button>
  518. </Popconfirm>
  519. <span style={{marginRight:'20px'}}>更多搜索 <Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  520. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {display: 'inline-block'}}>
  521. <Select placeholder="品类层级"
  522. style={{ width:'150px',marginRight:'10px' }}
  523. value={this.state.layer}
  524. onChange={(e) => { this.setState({ layer: e }) }}>
  525. <Select.Option value="1" >一级</Select.Option>
  526. <Select.Option value="2" >二级</Select.Option>
  527. <Select.Option value="3" >三级</Select.Option>
  528. <Select.Option value="4" >四级</Select.Option>
  529. <Select.Option value="5" >五级</Select.Option>
  530. <Select.Option value="6" >六级</Select.Option>
  531. </Select>
  532. <Select placeholder="品类状态"
  533. style={{width:'150px',marginRight:'50px'}}
  534. value={this.state.status}
  535. onChange={(e) => { this.setState({ status: e }) }}>
  536. <Select.Option value="0" >正常</Select.Option>
  537. <Select.Option value="1" >停用</Select.Option>
  538. </Select>
  539. </div>
  540. <Button type="primary" className="addButton" onClick={this.addClick} style={{float:'right',marginRight:'200px'}}>新增品类<Icon type="plus" /></Button>
  541. </div>
  542. <div className="patent-table">
  543. <Spin spinning={this.state.loading}>
  544. <Table columns={this.state.columns}
  545. dataSource={this.state.dataSource}
  546. rowSelection={rowSelection}
  547. pagination={this.state.pagination}
  548. onRowClick={this.tableRowClick} />
  549. </Spin>
  550. </div>
  551. <div className="patent-desc">
  552. <Modal maskClosable={false} visible={this.state.visible}
  553. onOk={this.checkPatentProcess} onCancel={this.handleCancel}
  554. width='400px'
  555. title='新增品类'
  556. footer=''
  557. className="admin-desc-content">
  558. <Form horizontal onSubmit={this.addhandleSubmit} id="demand-form">
  559. <Spin spinning={this.state.loading}>
  560. <div className="clearfix">
  561. <FormItem
  562. labelCol={{ span: 7 }}
  563. wrapperCol={{ span: 12 }}
  564. label="品类名称" >
  565. <Input placeholder="品类名称" value={this.state.categoryName} style={{width:'94%'}}
  566. onChange={(e)=>{this.setState({categoryName:e.target.value})}} required="required"/>
  567. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  568. </FormItem>
  569. </div>
  570. <div className="clearfix">
  571. <FormItem
  572. labelCol={{ span: 7 }}
  573. wrapperCol={{ span: 12 }}
  574. label="上级品类"
  575. >
  576. <Select placeholder="请选择上级品类" value={this.state.upCategory} onChange={(e)=>{this.setState({upCategory:e})}}
  577. notFoundContent="未获取到上级品类列表" style={{width:'94%'}} required="required">
  578. {this.state.contactsOption}
  579. </Select>
  580. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  581. </FormItem>
  582. </div>
  583. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  584. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  585. <Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'50px'}}>取消</Button>
  586. </FormItem>
  587. </Spin>
  588. </Form >
  589. </Modal>
  590. </div>
  591. <div className="patent-desc">
  592. <Modal maskClosable={false} visible={this.state.editvisible}
  593. onOk={this.checkPatentProcess} onCancel={this.edithandleCancel}
  594. width='600px'
  595. title='编辑品类'
  596. footer=''
  597. className="admin-desc-content">
  598. <Form horizontal onSubmit={this.edithandleSubmit} id="demand-form">
  599. <Spin spinning={this.state.loading}>
  600. <div className="clearfix">
  601. <FormItem
  602. labelCol={{ span: 7 }}
  603. wrapperCol={{ span: 12 }}
  604. label="品类名称" >
  605. <Input placeholder="组织名称" value={this.state.editName}
  606. onChange={(e)=>{this.setState({editName:e.target.value})}}/>
  607. </FormItem>
  608. </div>
  609. <div className="clearfix">
  610. <FormItem
  611. labelCol={{ span: 7 }}
  612. wrapperCol={{ span: 12 }}
  613. label="品类状态"
  614. >
  615. <Select placeholder="品类状态" value={this.state.editStatus}
  616. onChange={(e)=>{this.setState({editStatus:e})}}>
  617. {
  618. categoryState.map(function (item) {
  619. return <Select.Option key={item.value} >{item.key}</Select.Option>
  620. })
  621. }
  622. </Select>
  623. </FormItem>
  624. </div>
  625. <div className="clearfix">
  626. <FormItem
  627. labelCol={{ span: 7 }}
  628. wrapperCol={{ span: 12 }}
  629. label="上级品类"
  630. >
  631. <Select placeholder="请选择上级组织" value={this.state.editSuperName} onChange={(e)=>{this.setState({editSuperName:e})}}
  632. notFoundContent="未获取到上级组织列表">
  633. {this.state.contactsOption}
  634. </Select>
  635. </FormItem>
  636. </div>
  637. <div className="clearfix">
  638. <FormItem
  639. labelCol={{ span: 7 }}
  640. wrapperCol={{ span: 12 }}
  641. label="品类层级"
  642. >
  643. <span>{this.state.editlayer}</span>
  644. </FormItem>
  645. </div>
  646. <div className="clearfix">
  647. <FormItem
  648. labelCol={{ span: 7 }}
  649. wrapperCol={{ span: 12 }}
  650. label="品类编号"
  651. >
  652. <span>{this.state.editCid}</span>
  653. </FormItem>
  654. </div>
  655. <div className="clearfix" >
  656. <FormItem
  657. labelCol={{ span: 7 }}
  658. wrapperCol={{ span: 12 }}
  659. label="创建人"
  660. >
  661. <span>{this.state.editCreateName}</span>
  662. </FormItem>
  663. </div>
  664. <div className="clearfix">
  665. <FormItem
  666. labelCol={{ span: 7 }}
  667. wrapperCol={{ span: 12 }}
  668. label="创建时间"
  669. >
  670. <span>{this.state.editTime}</span>
  671. </FormItem>
  672. </div>
  673. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  674. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  675. <Button className="set-submit" type="ghost" onClick={this.edithandleCancel} style={{marginLeft:'100px'}}>取消</Button>
  676. </FormItem>
  677. </Spin>
  678. </Form >
  679. </Modal>
  680. </div>
  681. </div>
  682. </div>
  683. );
  684. }
  685. }));
  686. export default BusinessCategory;