projectOrderDetaile.jsx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. import React from 'react';
  2. import { Icon, Table, Modal, message, Spin, Input, Select, Button, Form ,Upload,Popconfirm,AutoComplete} from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import '../userMangagement.less';
  6. import {getApprovedState,getPaymentState,getOrderState,getProjectState,getOrderChannel,getOrderType,getTransactionProject,getTransactionChannel} from '../../../../tools.js';
  7. import ProjectOperation from "../../../../common/projectOperation";
  8. const MySettlementDetaile = Form.create()(React.createClass({
  9. loadData(record) {
  10. this.state.data = [];
  11. this.setState({
  12. loading: true
  13. });
  14. $.ajax({
  15. method: "get",
  16. dataType: "json",
  17. crossDomain: false,
  18. url: globalConfig.context + '/api/admin/order/getOrderCommodity',
  19. data: {
  20. orderNo:record?record.orderNo:this.props.datauser.orderNo
  21. },
  22. success: function (data) {
  23. let theArr = [];
  24. if (!data.data) {
  25. if (data.error && data.error.length) {
  26. message.warning(data.error[0].message);
  27. };
  28. } else {
  29. for (let i = 0; i < data.data.length; i++) {
  30. let thisdata = data.data[i];
  31. theArr.push({
  32. key: i,
  33. id:thisdata.id,
  34. orderNo:thisdata.orderNo,
  35. commodityName:thisdata.commodityName,
  36. commodityType:thisdata.commodityType,
  37. commodityMode:thisdata.commodityMode,
  38. commodityQuantity:thisdata.commodityQuantity,
  39. commodityPrice:thisdata.commodityPrice,
  40. discountPrice:thisdata.discountPrice,
  41. commodityFirstPayment:thisdata.commodityFirstPayment,
  42. createTimes:thisdata.createTimes,
  43. discountFirstPayment:thisdata.discountFirstPayment,
  44. remarks:thisdata.remarks,
  45. });
  46. };
  47. }
  48. this.setState({
  49. dataSource: theArr,
  50. });
  51. }.bind(this),
  52. }).always(function () {
  53. this.setState({
  54. loading: false
  55. });
  56. }.bind(this));
  57. },
  58. getInitialState() {
  59. return {
  60. loading: false,
  61. visible: false,
  62. lookState:true,
  63. orgCodeUrl:[],
  64. lookflowList:[],
  65. checkedKeys: [],
  66. columns: [
  67. {
  68. title: '业务项目名称',
  69. dataIndex: 'commodityName',
  70. key: 'commodityName'
  71. }, {
  72. title: '项目类别',
  73. dataIndex: 'commodityType',
  74. key: 'commodityType',
  75. render:(text)=>{
  76. return (getOrderType(text))
  77. }
  78. },{
  79. title: '项目数量',
  80. dataIndex: 'commodityQuantity',
  81. key: 'commodityQuantity'
  82. }, {
  83. title: '服务市价(万元)',
  84. dataIndex: 'commodityPrice',
  85. key: 'commodityPrice'
  86. }, {
  87. title: '实签价格(万元)',
  88. dataIndex: 'discountPrice',
  89. key: 'discountPrice'
  90. }, {
  91. title: '下单时间',
  92. dataIndex: 'createTimes',
  93. key: 'createTimes'
  94. }, {
  95. title: '项目说明',
  96. dataIndex: 'remarks',
  97. key: 'remarks',
  98. render:(text)=>{
  99. return (text&&text.length>8?text.substr(0,8)+'…':text)
  100. }
  101. }
  102. ],
  103. userList:[
  104. {
  105. title: '用户编号',
  106. dataIndex: 'userNo',
  107. key: 'userNo'
  108. }, {
  109. title: '用户姓名',
  110. dataIndex: 'name',
  111. key: 'name'
  112. },{
  113. title: '部门机构',
  114. dataIndex: 'departmentName',
  115. key: 'departmentName'
  116. }, {
  117. title: '职务',
  118. dataIndex: 'position',
  119. key: 'position'
  120. },{
  121. title: '联系手机',
  122. dataIndex: 'mobile',
  123. key: 'mobile'
  124. }, {
  125. title: '操作',
  126. dataIndex: 'abc',
  127. key: 'abc',
  128. render:(text,record,index)=>{
  129. return (
  130. <Popconfirm title={'您确认指定【'+record.departmentName+'-'+record.name+'】为项目负责人?'} onConfirm={(e)=>{this.confirmSelect(record)}} okText="确认" cancelText="取消">
  131. <Button style={{marginRight:'5px'}} type="primary">选定</Button>
  132. </Popconfirm>
  133. )
  134. }
  135. }
  136. ],
  137. flowList:[
  138. {
  139. title: '平台流水号',
  140. dataIndex: 'billNo',
  141. key: 'billNo',
  142. }, {
  143. title: '平台流水时间',
  144. dataIndex: 'createTime',
  145. key: 'createTime'
  146. }, {
  147. title: '流水金额(万元)',
  148. dataIndex: 'transactionAmount',
  149. key: 'transactionAmount'
  150. },{
  151. title: '付款人名称',
  152. dataIndex: 'payerName',
  153. key: 'payerName'
  154. }, {
  155. title: '收款人名称',
  156. dataIndex: 'payeeName',
  157. key: 'payeeName'
  158. },
  159. {
  160. title: '流水科目',
  161. dataIndex: 'transactionSubject',
  162. key: 'transactionSubject',
  163. render:(text)=>{return getTransactionProject(text) }
  164. }, {
  165. title: '流水渠道',
  166. dataIndex: 'transactionChannel',
  167. key: 'transactionChannel',
  168. render:(text)=>{return getTransactionChannel(text) }
  169. },{
  170. title: '财务流水号',
  171. dataIndex: 'financialPayNo',
  172. key: 'financialPayNo',
  173. }, {
  174. title: '财务流水时间',
  175. dataIndex: 'financialPayTime',
  176. key: 'financialPayTime',
  177. }, {
  178. title: '流水确认',
  179. dataIndex: 'confirmSign',
  180. key: 'confirmSign',
  181. render:(text)=>{return text?'已确认':'待确认' }
  182. },{
  183. title: '确认时间',
  184. dataIndex: 'confirmTime',
  185. key: 'confirmTime',
  186. }
  187. ],
  188. contractList:[
  189. {
  190. title: '姓名',
  191. dataIndex: 'name',
  192. key: 'name'
  193. }, {
  194. title: '部门',
  195. dataIndex: 'depatrment',
  196. key: 'depatrment'
  197. },{
  198. title: '联系方式',
  199. dataIndex: 'mobile',
  200. key: 'mobile'
  201. },{
  202. title: '是否为主要联系人',
  203. dataIndex: 'major',
  204. key: 'major',
  205. render:(text) => {
  206. return text?'是':"否"
  207. }
  208. }, {
  209. title: '职务',
  210. dataIndex: 'position',
  211. key: 'position'
  212. },{
  213. title: '微信',
  214. dataIndex: 'wechat',
  215. key: 'wechat'
  216. },{
  217. title: 'QQ',
  218. dataIndex: 'qq',
  219. key: 'qq'
  220. },
  221. ],
  222. };
  223. },
  224. seeContract(){
  225. this.contract();
  226. this.setState({
  227. orderVisible:true
  228. })
  229. },
  230. orderCancel(){
  231. this.setState({
  232. orderVisible:false
  233. })
  234. },
  235. //查看联系人
  236. contract(){
  237. $.ajax({
  238. method: "get",
  239. dataType: "json",
  240. crossDomain: false,
  241. url: globalConfig.context + '/api/admin/customer/findAllContacts',
  242. data: {
  243. uid: this.state.buyerId
  244. },
  245. success: function (data) {
  246. let thisData = data.data;
  247. if (!thisData) {
  248. if (data.error && data.error.length) {
  249. message.warning(data.error[0].message);
  250. };
  251. thisData = {};
  252. };
  253. this.setState({
  254. contractArr:thisData,
  255. });
  256. }.bind(this),
  257. }).always(function () {
  258. this.setState({
  259. loading: false
  260. });
  261. }.bind(this));
  262. },
  263. //查看基本详情基本信息
  264. loaduser(record){
  265. if(record){
  266. this.state.orderList=[]
  267. $.ajax({
  268. method: "get",
  269. dataType: "json",
  270. crossDomain: false,
  271. url: globalConfig.context + '/api/admin/order/getServiceOrderDetail',
  272. data: {
  273. orderNo: record
  274. },
  275. success: function (data) {
  276. let thisData = data.data;
  277. if (!thisData) {
  278. if (data.error && data.error.length) {
  279. message.warning(data.error[0].message);
  280. };
  281. thisData = {};
  282. };
  283. this.setState({
  284. id:thisData.id,
  285. buyerId:thisData.buyerId,
  286. orderList:thisData,
  287. orderAmount:thisData.orderAmount,
  288. firstPayment:thisData.firstPayment,
  289. signTotalAmount:thisData.signTotalAmount,
  290. signFirstPayment:thisData.signFirstPayment,
  291. approval:thisData.approval==0?thisData.approval.toString():thisData.approval,
  292. orderRemarks:thisData.orderRemarks,
  293. orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],
  294. //签单
  295. orderNo:thisData.orderNo,//订单编号
  296. buyerName:thisData.buyerName,
  297. });
  298. }.bind(this),
  299. }).always(function () {
  300. this.setState({
  301. loading: false
  302. });
  303. }.bind(this));
  304. }
  305. },
  306. handleOk(e) {
  307. this.setState({
  308. visible: false,
  309. });
  310. this.props.closeDesc(false, true);
  311. },
  312. handleCancel(e) {
  313. this.setState({
  314. visible: false,
  315. });
  316. this.props.closeDesc(false);
  317. },
  318. lookflow(){
  319. this.setState({
  320. loading: true,
  321. lookVisible:true,
  322. })
  323. this.state.lookSource=[];
  324. $.ajax({
  325. method: "get",
  326. dataType: "json",
  327. crossDomain: false,
  328. url: globalConfig.context +'/api/admin/order/getBillByOrderNo',
  329. data: {
  330. orderNo:this.props.datauser.orderNo,
  331. },
  332. success: function (data) {
  333. let theArr = [];
  334. if (!data.data) {
  335. if (data.error && data.error.length) {
  336. message.warning(data.error[0].message);
  337. };
  338. } else {
  339. for (let i = 0; i < data.data.length; i++) {
  340. let thisdata = data.data[i];
  341. theArr.push({
  342. key: i,
  343. billNo: thisdata.billNo,
  344. transactionAmount:thisdata.transactionAmount,
  345. createTime:thisdata.createTime,
  346. payerName:thisdata.payerName,
  347. payeeName:thisdata.payeeName,
  348. transactionSubject:thisdata.transactionSubject,
  349. transactionChannel:thisdata.transactionChannel,
  350. financialPayNo:thisdata.financialPayNo,
  351. financialPayTime:thisdata.financialPayTime,
  352. orderNo:thisdata.orderNo,
  353. departmentName:thisdata.departmentName,
  354. salesmanName:thisdata.salesmanName,
  355. financeName:thisdata.financeName,
  356. confirmSign:thisdata.confirmSign,
  357. deleteSign:thisdata.deleteSign,
  358. confirmTime:thisdata.confirmTime
  359. });
  360. };
  361. };
  362. this.setState({
  363. lookflowList: theArr,
  364. });
  365. }.bind(this),
  366. }).always(function () {
  367. this.setState({
  368. loading: false
  369. });
  370. }.bind(this));
  371. },
  372. lookCancel(){
  373. this.setState({
  374. lookVisible:false
  375. })
  376. },
  377. tableRowClick(record, index) {
  378. this.setState({
  379. editFw:record,
  380. projectOperationVisible:true,
  381. });
  382. },
  383. /*
  384. * 选择负责人
  385. */
  386. //转交
  387. confirmDelet(index){
  388. this.setState({
  389. showDesc:false,
  390. distributionVisible:true
  391. });
  392. this.departmentList()
  393. },
  394. distributionCancel(){
  395. this.setState({
  396. distributionVisible:false
  397. })
  398. },
  399. //分配对象列表
  400. contactList(){
  401. $.ajax({
  402. method: "get",
  403. dataType: "json",
  404. crossDomain: false,
  405. url: globalConfig.context + '/api/admin/superviser/adminList',
  406. data: {
  407. pageNo: 1,
  408. pageSize: 99,
  409. departmentId:this.state.departmenttList,
  410. name:this.state.financeNameSearch,
  411. },
  412. success: function (data) {
  413. let theArr = [];
  414. if (!data.data) {
  415. if (data.error && data.error.length) {
  416. message.warning(data.error[0].message);
  417. };
  418. } else {
  419. for (let i = 0; i < data.data.list.length; i++) {
  420. let thisdata = data.data.list[i];
  421. theArr.push({
  422. key: i,
  423. id: thisdata.id,
  424. userNo: thisdata.userNo,
  425. name:thisdata.name,
  426. departmentName:thisdata.departmentName,
  427. departmentId:thisdata.departmentId,
  428. position:thisdata.position,
  429. mobile:thisdata.mobile,
  430. });
  431. };
  432. };
  433. this.setState({
  434. distributionList: theArr,
  435. });
  436. }.bind(this),
  437. }).always(function () {
  438. this.setState({
  439. loading: false
  440. });
  441. }.bind(this));
  442. },
  443. //选定对象
  444. confirmSelect(record){
  445. this.setState({
  446. loading: true
  447. });
  448. $.ajax({
  449. method: "POST",
  450. dataType: "json",
  451. crossDomain: false,
  452. url: globalConfig.context + "/api/admin/order/transferOrder",
  453. data: {
  454. orderNo:this.state.orderNo,
  455. aid:record.id,
  456. targetType:2
  457. }
  458. }).done(function (data) {
  459. if (!data.error.length) {
  460. message.success('转交成功!');
  461. this.setState({
  462. loading: false,
  463. });
  464. this.distributionCancel();
  465. this.loaduser(this.state.orderNo);
  466. } else {
  467. message.warning(data.error[0].message);
  468. };
  469. }.bind(this));
  470. },
  471. //部门
  472. departmentList() {
  473. this.setState({
  474. loading: true
  475. });
  476. $.ajax({
  477. method: "get",
  478. dataType: "json",
  479. crossDomain: false,
  480. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  481. data: {
  482. },
  483. success: function(data) {
  484. let thedata = data.data;
  485. let theArr=[];
  486. if(!thedata) {
  487. if(data.error && data.error.length) {
  488. message.warning(data.error[0].message);
  489. };
  490. thedata = {};
  491. }else{
  492. thedata.map(function(item,index){
  493. theArr.push({
  494. key:index,
  495. name:item.name,
  496. id:item.id,
  497. })
  498. })
  499. }
  500. this.setState({
  501. departmentArr:theArr,
  502. })
  503. }.bind(this),
  504. }).always(function() {
  505. this.setState({
  506. loading: false
  507. });
  508. }.bind(this));
  509. },
  510. searchOrder(){
  511. this.contactList();
  512. },
  513. resetOrder(){
  514. this.state.departmenttList=undefined;
  515. this.state.financeNameSearch='';
  516. this.setState({
  517. distributionList:[]
  518. });
  519. },
  520. componentWillMount() {
  521. },
  522. componentWillReceiveProps(nextProps) { //props改变时触发
  523. this.state.visible = nextProps.showDesc;
  524. if(nextProps.userDetaile && nextProps.showDesc ) {
  525. this.loaduser(nextProps.datauser.orderNo);
  526. this.loadData(nextProps.datauser);
  527. }
  528. },
  529. render() {
  530. const FormItem = Form.Item;
  531. let departmentArr = this.state.departmentArr || [];
  532. const formItemLayout = {
  533. labelCol: { span: 8 },
  534. wrapperCol: { span: 14 },
  535. };
  536. const orderDetaiel=this.state.orderList || [];
  537. return(
  538. <div>
  539. <Modal maskClosable={false} visible={this.state.visible}
  540. onOk={this.handleOk} onCancel={this.handleCancel}
  541. width='1000px'
  542. title='订单详情'
  543. footer=''
  544. className="admin-desc-content">
  545. <Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} >
  546. <Spin spinning={this.state.loading}>
  547. <div className="clearfix">
  548. <div className="clearfix">
  549. <FormItem className="half-item"
  550. {...formItemLayout}
  551. label="订单编号" >
  552. <span>{orderDetaiel.orderNo}</span>
  553. </FormItem>
  554. <FormItem className="half-item"
  555. {...formItemLayout}
  556. label="下单时间" >
  557. <span>{orderDetaiel.createTime}</span>
  558. </FormItem>
  559. <FormItem className="half-item"
  560. {...formItemLayout}
  561. label="客户名称" >
  562. <span>{orderDetaiel.buyerName}</span>
  563. <Button onClick={this.seeContract} style={{float:'right',fontSize:'12px'}}>查看联系人</Button>
  564. </FormItem>
  565. <FormItem className="half-item"
  566. {...formItemLayout}
  567. label="订单类型" >
  568. <span>{getOrderType(orderDetaiel.orderType)}</span>
  569. </FormItem>
  570. <FormItem className="half-item"
  571. {...formItemLayout}
  572. label="订单渠道" >
  573. <span>{getOrderChannel(orderDetaiel.orderChannel)}</span>
  574. </FormItem>
  575. <FormItem className="half-item"
  576. {...formItemLayout}
  577. label="订单状态" >
  578. <span>{getOrderState(orderDetaiel.orderStatus)}</span>
  579. </FormItem>
  580. <FormItem className="half-item"
  581. {...formItemLayout}
  582. label="已收款项" >
  583. <span>{orderDetaiel.actuallyTotalAmount+'万元'}</span>
  584. </FormItem>
  585. <FormItem className="half-item"
  586. {...formItemLayout}
  587. label="结算状态" >
  588. <span>{getPaymentState(orderDetaiel.liquidationStatus)}</span>
  589. </FormItem>
  590. <div className='clearfix'>
  591. <FormItem className="half-item"
  592. {...formItemLayout}
  593. label="实签订单金额" >
  594. <span>{orderDetaiel.signTotalAmount+'万元'}</span>
  595. </FormItem>
  596. <FormItem className="half-item"
  597. {...formItemLayout}
  598. label="实签首款金额" >
  599. <span>{orderDetaiel.signFirstPayment+'万元'}</span>
  600. </FormItem>
  601. <FormItem className="half-item"
  602. {...formItemLayout}
  603. label="特批立项" >
  604. <span>{getApprovedState(orderDetaiel.approval)}</span>
  605. </FormItem>
  606. <FormItem className="half-item"
  607. {...formItemLayout}
  608. label="合同编号" >
  609. <span>{orderDetaiel.contractNo}</span>
  610. </FormItem>
  611. <div className='clearfix'>
  612. <FormItem
  613. labelCol={{ span: 4 }}
  614. wrapperCol={{ span: 16 }}
  615. label="订单留言" >
  616. <span>{orderDetaiel.orderRemarks}</span>
  617. </FormItem>
  618. </div>
  619. </div>
  620. </div>
  621. <div className='clearfix'>
  622. <FormItem className="half-item"
  623. {...formItemLayout}
  624. label="订单负责人" >
  625. <span>{orderDetaiel.salesmanName}</span>
  626. </FormItem>
  627. <FormItem className="half-item"
  628. {...formItemLayout}
  629. label="业务品类" >
  630. <span>{orderDetaiel.projectType}</span>
  631. </FormItem>
  632. </div>
  633. <div className='clearfix'>
  634. <FormItem className="half-item"
  635. {...formItemLayout}
  636. label="意向时间" >
  637. <span>{orderDetaiel.createTime}</span>
  638. </FormItem>
  639. <FormItem className="half-item"
  640. {...formItemLayout}
  641. label="签单时间" >
  642. <span>{orderDetaiel.signTime}</span>
  643. </FormItem>
  644. <FormItem className="half-item"
  645. {...formItemLayout}
  646. label="财务负责人" >
  647. <span>{orderDetaiel.financeName}</span>
  648. <Button onClick={this.lookflow} style={{float:'right'}}>查看流水</Button>
  649. </FormItem>
  650. <FormItem className="half-item"
  651. {...formItemLayout}
  652. label="项目负责人" >
  653. <span>{orderDetaiel.technicianName}</span>
  654. {!orderDetaiel.technicianName?<Button onClick={this.confirmDelet} style={{float:'right'}}>选择负责人</Button>:''}
  655. </FormItem>
  656. <FormItem className="half-item"
  657. {...formItemLayout}
  658. label="立项时间" >
  659. <span>{orderDetaiel.setUpTime}</span>
  660. </FormItem>
  661. <FormItem className="half-item"
  662. {...formItemLayout}
  663. label="项目状态" >
  664. <span>{getProjectState(orderDetaiel.projectStage)}</span>
  665. </FormItem>
  666. </div>
  667. <div>
  668. <span style={{marginLeft:'50px',fontSize:'20px'}}>业务项目</span>
  669. </div>
  670. <div className="patent-table">
  671. <Spin spinning={this.state.loading}>
  672. <Table columns={this.state.columns}
  673. dataSource={this.state.dataSource}
  674. pagination={false}
  675. onRowClick={this.tableRowClick}
  676. />
  677. </Spin>
  678. </div>
  679. </div>
  680. </Spin>
  681. </Form >
  682. </Modal>
  683. {this.state.projectOperationVisible ? <ProjectOperation
  684. readOnly={true}
  685. orderNo={this.state.orderNo}
  686. visible={this.state.projectOperationVisible}
  687. dataInfor={this.state.editFw}
  688. onCancel={()=>{
  689. this.setState({
  690. projectOperationVisible: false,
  691. editFw:{},
  692. });
  693. }}
  694. /> : null}
  695. <Modal maskClosable={false} visible={this.state.lookVisible}
  696. onOk={this.lookCancel} onCancel={this.lookCancel}
  697. width='1300px'
  698. title= '查看流水'
  699. footer=''
  700. className="admin-desc-content">
  701. <Form layout="horizontal" id="demand-form">
  702. <Spin spinning={this.state.loading}>
  703. <div className="clearfix">
  704. <Table columns={this.state.flowList}
  705. dataSource={this.state.lookflowList}
  706. pagination={false}
  707. />
  708. </div>
  709. </Spin>
  710. </Form >
  711. </Modal>
  712. <Modal maskClosable={false} visible={this.state.distributionVisible}
  713. onOk={this.distributionCancel} onCancel={this.distributionCancel}
  714. width='800px'
  715. title='请选择'
  716. footer=''
  717. className="admin-desc-content">
  718. <Form layout="horizontal" onSubmit={this.handleSubmit} id="demand-form" style={{paddingBottom:'40px'}} >
  719. <Spin spinning={this.state.loading}>
  720. <div>
  721. <Select placeholder="订单部门"
  722. style={{ width: 150 ,marginRight:'10px',marginLeft:'10px'}}
  723. value={this.state.departmenttList}
  724. onChange={(e) => { this.setState({ departmenttList: e }) }}>
  725. {
  726. departmentArr.map(function (item) {
  727. return <Select.Option key={item.id} >{item.name}</Select.Option>
  728. })
  729. }
  730. </Select>
  731. <Input placeholder="项目负责人" style={{width:'150px',marginLeft:'10px'}}
  732. value={this.state.financeNameSearch}
  733. onChange={(e) => { this.setState({ financeNameSearch: e.target.value }); }} />
  734. <Button type="primary" onClick={this.searchOrder} style={{marginLeft:'10px',marginRight:'10px'}}>搜索</Button>
  735. <Button onClick={this.resetOrder}>重置</Button>
  736. </div>
  737. <div className="patent-table" style={{marginTop:'10px'}}>
  738. <Spin spinning={this.state.loading}>
  739. <Table columns={this.state.userList}
  740. dataSource={this.state.distributionList}
  741. pagination={false}
  742. />
  743. </Spin>
  744. </div>
  745. </Spin>
  746. </Form>
  747. </Modal>
  748. <Modal maskClosable={false} visible={this.state.orderVisible}
  749. onOk={this.orderCancel} onCancel={this.orderCancel}
  750. width='800px'
  751. title='查看联系人'
  752. footer=''
  753. className="admin-desc-content">
  754. <Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} >
  755. <Spin spinning={this.state.loading}>
  756. <div className="patent-table" style={{marginTop:'10px'}}>
  757. <Spin spinning={this.state.loading}>
  758. <Table columns={this.state.contractList}
  759. dataSource={this.state.contractArr}
  760. pagination={false}
  761. />
  762. </Spin>
  763. </div>
  764. </Spin>
  765. </Form>
  766. </Modal>
  767. </div>
  768. )
  769. }
  770. }));
  771. export default MySettlementDetaile;