outsourceTaskAssignment.jsx 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import "@/manageCenter/financialManage/distribute/public.less";
  4. import { Button, Form, Input, Select, Spin, Table, message, Modal } from "antd";
  5. import Assign from "@/manageCenter/publicComponent/assign";
  6. import {
  7. getProcessStatus,
  8. getLiquidationStatus,
  9. getApprovedState,
  10. splitUrl,
  11. getProjectStatus,
  12. getboutique,
  13. ShowModal
  14. } from "@/tools";
  15. import ShowModalDiv from "@/showModal.jsx";
  16. const FormItem = Form.Item;
  17. const OutsourceTaskAssignment = React.createClass({
  18. loadData(pageNo) {
  19. this.state.data = [];
  20. this.setState({
  21. page: pageNo,
  22. loading: true
  23. });
  24. $.ajax({
  25. method: "get",
  26. dataType: "json",
  27. crossDomain: false,
  28. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  29. data: {
  30. pageNo: pageNo || 1,
  31. pageSize: this.state.pagination.pageSize,
  32. specially: 1, //经理
  33. name: this.state.nameSearch, //客户名称
  34. orderNo: this.state.orderNoSearch, //订单编号
  35. taskId: this.state.taskNoSearch, //任务编号
  36. depId: this.state.departmenttSearch, //订单部门
  37. taskStatus: this.state.taskStatus, //任务状态
  38. adminName: this.state.adminName, //任务受理人
  39. outsource: 1
  40. },
  41. success: function(data) {
  42. ShowModal(this);
  43. let theArr = [];
  44. if (!data.data || !data.data.list) {
  45. if (data.error && data.error.length) {
  46. message.warning(data.error[0].message);
  47. }
  48. } else {
  49. for (let i = 0; i < data.data.list.length; i++) {
  50. let thisdata = data.data.list[i];
  51. theArr.push({
  52. key: i,
  53. orderNo: thisdata.orderNo, //订单编号
  54. id: thisdata.id, //任务ID
  55. taskName: thisdata.taskName, //名称
  56. cname: thisdata.cname, //项目品类
  57. receiverName: thisdata.receiverName, //受理人
  58. projectStatus: thisdata.projectStatus, //项目状态
  59. taskStatus: thisdata.taskStatus, //任务状态
  60. taskDate: thisdata.taskDate, //分配时间
  61. commodityQuantity: thisdata.commodityQuantity, //数量
  62. userName: thisdata.userName, //用户名
  63. depName: thisdata.depName //部门名称
  64. });
  65. }
  66. }
  67. this.state.pagination.current = data.data.pageNo;
  68. this.state.pagination.total = data.data.totalCount;
  69. if (data.data && data.data.list && !data.data.list.length) {
  70. this.state.pagination.current = 0;
  71. this.state.pagination.total = 0;
  72. }
  73. this.setState({
  74. dataSource: theArr,
  75. pagination: this.state.pagination
  76. });
  77. }.bind(this)
  78. }).always(
  79. function() {
  80. this.setState({
  81. loading: false
  82. });
  83. }.bind(this)
  84. );
  85. },
  86. getInitialState() {
  87. return {
  88. searchMore: true,
  89. assignVisible: false,
  90. releaseDate: [],
  91. roleName: "",
  92. boHuivisible: false,
  93. departmentArr: [],
  94. selectedRowKeys: [],
  95. selectedRows: [],
  96. paginations: false,
  97. loading: false,
  98. pagination: {
  99. defaultCurrent: 1,
  100. defaultPageSize: 10,
  101. showQuickJumper: true,
  102. pageSize: 10,
  103. onChange: function(page) {
  104. this.loadData(page);
  105. }.bind(this),
  106. showTotal: function(total) {
  107. return "共" + total + "条数据";
  108. }
  109. },
  110. columns: [
  111. {
  112. title: "任务编号",
  113. dataIndex: "id",
  114. key: "id"
  115. },
  116. {
  117. title: "任务名称",
  118. dataIndex: "taskName",
  119. key: "taskName"
  120. },
  121. {
  122. title: "订单编号",
  123. dataIndex: "orderNo",
  124. key: "orderNo"
  125. },
  126. {
  127. title: "业务类别",
  128. dataIndex: "cname",
  129. key: "cname"
  130. },
  131. {
  132. title: "客户名称",
  133. dataIndex: "userName",
  134. key: "userName"
  135. },
  136. {
  137. title: "项目状态",
  138. dataIndex: "projectStatus",
  139. key: "projectStatus",
  140. render: text => {
  141. return getProjectStatus(text);
  142. }
  143. },
  144. {
  145. title: "分配时间",
  146. dataIndex: "taskDate",
  147. key: "taskDate"
  148. },
  149. {
  150. title: "任务数量",
  151. dataIndex: "commodityQuantity",
  152. key: "commodityQuantity"
  153. },
  154. {
  155. title: "订单部门",
  156. dataIndex: "depName",
  157. key: "depName"
  158. },
  159. {
  160. title: "操作",
  161. dataIndex: "caozuo",
  162. key: "caouzo",
  163. render: (text, record) => {
  164. return (
  165. <div>
  166. <Button
  167. type="primary"
  168. style={{ margin: "0 10px" }}
  169. onClick={e => {
  170. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  171. }}
  172. >
  173. 转交
  174. </Button>
  175. <Button
  176. type="primary"
  177. style={{ margin: "0 10px" }}
  178. onClick={e => {
  179. e.stopPropagation(), this.evaluate(record, "咨询师");
  180. }}
  181. >
  182. 分配任务
  183. </Button>
  184. </div>
  185. );
  186. }
  187. }
  188. ],
  189. dataSource: [],
  190. searchTime: [],
  191. columnsX: [
  192. {
  193. title: "业务项目名称",
  194. dataIndex: "commodityName",
  195. key: "commodityName"
  196. },
  197. {
  198. title: "项目类别",
  199. dataIndex: "cname",
  200. key: "cname"
  201. },
  202. {
  203. title: "项目数量",
  204. dataIndex: "commodityQuantity",
  205. key: "commodityQuantity"
  206. },
  207. {
  208. title: "金额(万元)",
  209. dataIndex: "commodityPrice",
  210. key: "commodityPrice"
  211. },
  212. {
  213. title: "负责人",
  214. dataIndex: "contacts",
  215. key: "contacts"
  216. },
  217. {
  218. title: "负责人电话",
  219. dataIndex: "contactsMobile",
  220. key: "contactsMobile"
  221. },
  222. {
  223. title: "主要项目",
  224. dataIndex: "main",
  225. key: "main",
  226. render: text => {
  227. return text ? "是" : "否";
  228. }
  229. },
  230. {
  231. title: "项目说明",
  232. dataIndex: "taskComment",
  233. key: "taskComment",
  234. render: text => {
  235. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  236. }
  237. }
  238. ],
  239. dataSourceX: []
  240. };
  241. },
  242. /* 分派 */
  243. evaluate(record, nub) {
  244. this.state.assignData = record;
  245. this.setState(
  246. {
  247. nub
  248. },
  249. () => {
  250. this.setState({
  251. assignVisible: true
  252. });
  253. }
  254. );
  255. },
  256. componentWillMount() {
  257. this.departmentList();
  258. this.loadData();
  259. },
  260. tableRowClick(record) {
  261. this.state.RowData = record;
  262. this.setState({
  263. visible: true
  264. });
  265. this.xiangqing(record.orderNo);
  266. this.xiangmu(record.orderNo);
  267. },
  268. //订单详情
  269. xiangqing(orderNos) {
  270. $.ajax({
  271. method: "get",
  272. dataType: "json",
  273. crossDomain: false,
  274. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  275. data: {
  276. orderNo: orderNos
  277. },
  278. success: function(data) {
  279. if (data.error.length || data.data.list == "") {
  280. if (data.error && data.error.length) {
  281. message.warning(data.error[0].message);
  282. }
  283. } else {
  284. let thisdata = data.data;
  285. this.setState({
  286. orderNo: thisdata.orderNo, //订单编号
  287. contractNo: thisdata.contractNo, //合同编号
  288. userName: thisdata.userName, //客户名称
  289. signDate: thisdata.signDate, //签单时间
  290. processStatus: thisdata.processStatus, //流程状态
  291. liquidationStatus: thisdata.liquidationStatus, //结算状态
  292. contacts: thisdata.contacts, //企业联系人
  293. contactMobile: thisdata.contactMobile, //联系人电话
  294. legalPerson: thisdata.legalPerson, //法人
  295. legalPersonTel: thisdata.legalPersonTel, //法人电话
  296. firstAmount: thisdata.firstAmount, //签单金额
  297. totalAmount: thisdata.totalAmount, //首付金额
  298. approval: thisdata.approval, //特批状态
  299. settlementAmount: thisdata.settlementAmount, //已收款项
  300. orderRemarks: thisdata.orderRemarks, //订单留言
  301. orgCodeUrl: thisdata.contractPictureUrl
  302. ? splitUrl(
  303. thisdata.contractPictureUrl,
  304. ",",
  305. globalConfig.avatarHost + "/upload"
  306. )
  307. : [], //图片地址
  308. salesmanName: thisdata.salesmanName, //营销员名称
  309. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  310. financeName: thisdata.financeName, //财务名称
  311. financeMobile: thisdata.financeMobile, //财务电话
  312. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  313. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  314. nowFinance: thisdata.nowFinance, //财务名称
  315. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  316. depName: thisdata.depName //订单部门
  317. });
  318. }
  319. }.bind(this)
  320. }).always(
  321. function() {
  322. this.setState({
  323. loading: false
  324. });
  325. }.bind(this)
  326. );
  327. },
  328. //项目列表
  329. xiangmu(orderNos) {
  330. $.ajax({
  331. method: "get",
  332. dataType: "json",
  333. crossDomain: false,
  334. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  335. data: {
  336. orderNo: orderNos
  337. },
  338. success: function(data) {
  339. let theArr = [];
  340. if (data.error.length || data.data.list == "") {
  341. if (data.error && data.error.length) {
  342. message.warning(data.error[0].message);
  343. }
  344. } else {
  345. for (let i = 0; i < data.data.length; i++) {
  346. let thisdata = data.data[i];
  347. theArr.push({
  348. key: i,
  349. id: thisdata.id,
  350. orderNo: thisdata.orderNo, //订单编号
  351. commodityId: thisdata.commodityId, //项目ID
  352. commodityName: thisdata.commodityName, //项目名称
  353. cname: thisdata.cname, //项目类别
  354. commodityPrice: thisdata.commodityPrice, //项目价格
  355. commodityQuantity: thisdata.commodityQuantity, //项目数量
  356. main: thisdata.main, //是否为主要任务
  357. taskComment: thisdata.taskComment, //任务说明
  358. contacts: thisdata.contacts, //联系人
  359. contactsMobile: thisdata.contactsMobile, //联系人电话
  360. taskStatus: thisdata.taskStatus //是否分配
  361. });
  362. }
  363. }
  364. this.setState({
  365. dataSourceX: theArr
  366. });
  367. }.bind(this)
  368. }).always(
  369. function() {
  370. this.setState({
  371. loading: false
  372. });
  373. }.bind(this)
  374. );
  375. },
  376. //关闭详情
  377. visitCancel() {
  378. this.setState({
  379. visible: false
  380. });
  381. this.reset();
  382. },
  383. visitOk() {
  384. this.setState({
  385. visible: false
  386. });
  387. this.reset();
  388. },
  389. closeDesc(e, s) {
  390. this.state.showDesc = e;
  391. if (s) {
  392. this.loadData(this.state.page);
  393. }
  394. },
  395. closeAssign(e, s) {
  396. this.state.roleName = "";
  397. this.state.assignVisible = e;
  398. if (s) {
  399. this.loadData(this.state.page);
  400. }
  401. },
  402. nextCancel() {
  403. this.setState({
  404. addnextVisible: false
  405. });
  406. },
  407. //点击打卡项目详情
  408. tableRowClickX(record) {
  409. this.setState({
  410. jid: record.id, //项目ID
  411. kid: record.commodityId, //商品ID
  412. commodityName: record.commodityName, //金额
  413. commodityPrice: record.commodityPrice, //金额
  414. commodityQuantity: record.commodityQuantity, //数量
  415. taskComment: record.taskComment, //备注
  416. main: record.main.toString(), //是否为主要
  417. addnextVisible: true,
  418. addState: 0
  419. });
  420. },
  421. search() {
  422. this.loadData();
  423. },
  424. reset() {
  425. this.state.nameSearch = "";
  426. this.state.releaseDate = [];
  427. this.state.orderNoSearch = "";
  428. this.state.taskNoSearch = "";
  429. this.state.departmenttSearch = undefined;
  430. this.state.distribution = undefined;
  431. this.loadData(this.state.page);
  432. },
  433. searchSwitch() {
  434. this.setState({
  435. searchMore: !this.state.searchMore
  436. });
  437. },
  438. //部门
  439. departmentList() {
  440. this.setState({
  441. loading: true
  442. });
  443. $.ajax({
  444. method: "get",
  445. dataType: "json",
  446. crossDomain: false,
  447. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  448. data: {},
  449. success: function(data) {
  450. let thedata = data.data;
  451. let theArr = [];
  452. if (!thedata) {
  453. if (data.error && data.error.length) {
  454. message.warning(data.error[0].message);
  455. }
  456. thedata = {};
  457. } else {
  458. thedata.map(function(item, index) {
  459. theArr.push({
  460. key: index,
  461. name: item.name,
  462. id: item.id
  463. });
  464. });
  465. }
  466. this.setState({
  467. departmentArr: theArr
  468. });
  469. }.bind(this)
  470. }).always(
  471. function() {
  472. this.setState({
  473. loading: false
  474. });
  475. }.bind(this)
  476. );
  477. },
  478. render() {
  479. const rowSelection = {
  480. selectedRowKeys: this.state.selectedRowKeys,
  481. onChange: (selectedRowKeys, selectedRows) => {
  482. this.setState({
  483. selectedRows: selectedRows.slice(-1),
  484. selectedRowKeys: selectedRowKeys.slice(-1)
  485. });
  486. }
  487. };
  488. const formItemLayout = {
  489. labelCol: { span: 8 },
  490. wrapperCol: { span: 14 }
  491. };
  492. let departmentArr = this.state.departmentArr || [];
  493. return (
  494. <div className="user-content">
  495. <ShowModalDiv ShowModal={this.state.showModal} />
  496. <div className="content-title">
  497. <span>外包任务派单</span>
  498. </div>
  499. <div className="user-search">
  500. <Input
  501. placeholder="客户名称"
  502. value={this.state.nameSearch}
  503. onChange={e => {
  504. this.setState({ nameSearch: e.target.value });
  505. }}
  506. />
  507. <Input
  508. placeholder="订单编号"
  509. value={this.state.orderNoSearch}
  510. onChange={e => {
  511. this.setState({ orderNoSearch: e.target.value });
  512. }}
  513. />
  514. <Input
  515. placeholder="任务编号"
  516. value={this.state.taskNoSearch}
  517. onChange={e => {
  518. this.setState({ taskNoSearch: e.target.value });
  519. }}
  520. />
  521. <Select
  522. placeholder="选择部门"
  523. style={{ width: 150, marginRight: "10px" }}
  524. value={this.state.departmenttSearch}
  525. onChange={e => {
  526. this.setState({ departmenttSearch: e });
  527. }}
  528. >
  529. {departmentArr.map(function(item) {
  530. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  531. })}
  532. </Select>
  533. <Button type="primary" onClick={this.search}>
  534. 搜索
  535. </Button>
  536. <Button onClick={this.reset}>重置</Button>
  537. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  538. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  539. <span>订单时间 :</span>
  540. <RangePicker
  541. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  542. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  543. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  544. </div> */}
  545. </div>
  546. <div className="patent-table">
  547. <Spin spinning={this.state.loading}>
  548. <Table
  549. columns={this.state.columns}
  550. dataSource={this.state.dataSource}
  551. rowSelection={rowSelection}
  552. pagination={this.state.pagination}
  553. onRowClick={this.tableRowClick.bind(this)}
  554. bordered
  555. size="small"
  556. />
  557. </Spin>
  558. </div>
  559. <Assign
  560. title="任务"
  561. selApi={"/api/admin/orderProject/projectDistribution"}
  562. data={this.state.assignData}
  563. showDesc={this.state.assignVisible}
  564. closeDesc={this.closeAssign.bind(this)}
  565. fenpaiData={8}
  566. specially={this.state.nub == "咨询师经理" ? 1 : 0}
  567. roleName={this.state.nub}
  568. requestMethod={"post"}
  569. />
  570. <Modal
  571. className="customeDetails"
  572. footer=""
  573. title="任务详情"
  574. width="900px"
  575. visible={this.state.visible}
  576. onOk={this.visitOk}
  577. onCancel={this.visitCancel}
  578. >
  579. <Form
  580. layout="horizontal"
  581. onSubmit={this.handleSubmit}
  582. id="demand-form"
  583. style={{ paddingBottom: "40px" }}
  584. >
  585. <Spin spinning={this.state.loading}>
  586. <div className="clearfix">
  587. <FormItem
  588. className="half-item"
  589. {...formItemLayout}
  590. label="订单编号"
  591. >
  592. <span>{this.state.orderNo}</span>
  593. </FormItem>
  594. <FormItem
  595. className="half-item"
  596. {...formItemLayout}
  597. label="合同编号"
  598. >
  599. <span>{this.state.contractNo}</span>
  600. </FormItem>
  601. <FormItem
  602. className="half-item"
  603. {...formItemLayout}
  604. label="客户名称"
  605. >
  606. <span>{this.state.userName}</span>
  607. </FormItem>
  608. <FormItem
  609. className="half-item"
  610. {...formItemLayout}
  611. label="合同签订时间"
  612. >
  613. <span>{this.state.signDate}</span>
  614. </FormItem>
  615. <FormItem
  616. className="half-item"
  617. {...formItemLayout}
  618. label="流程状态"
  619. >
  620. <span>{getProcessStatus(this.state.processStatus)}</span>
  621. </FormItem>
  622. <FormItem
  623. className="half-item"
  624. {...formItemLayout}
  625. label="结算状态"
  626. >
  627. <span>
  628. {getLiquidationStatus(this.state.liquidationStatus)}
  629. </span>
  630. </FormItem>
  631. <FormItem
  632. className="half-item"
  633. {...formItemLayout}
  634. label="企业联系人"
  635. >
  636. <span>{this.state.contacts}</span>
  637. </FormItem>
  638. <FormItem
  639. className="half-item"
  640. {...formItemLayout}
  641. label="联系人电话"
  642. >
  643. <span>{this.state.contactMobile}</span>
  644. </FormItem>
  645. <FormItem
  646. className="half-item"
  647. {...formItemLayout}
  648. label="企业法人"
  649. >
  650. <span>{this.state.legalPerson}</span>
  651. </FormItem>
  652. <FormItem
  653. className="half-item"
  654. {...formItemLayout}
  655. label="法人电话"
  656. >
  657. <span>{this.state.legalPersonTel}</span>
  658. </FormItem>
  659. <FormItem
  660. className="half-item"
  661. {...formItemLayout}
  662. label="签单金额(万元)"
  663. >
  664. <span>{this.state.totalAmount}</span>
  665. </FormItem>
  666. <FormItem
  667. className="half-item"
  668. {...formItemLayout}
  669. label="首付金额(万元)"
  670. >
  671. <span>{this.state.firstAmount}</span>
  672. </FormItem>
  673. <FormItem
  674. className="half-item"
  675. {...formItemLayout}
  676. label="特批立项"
  677. >
  678. <span>{getApprovedState(this.state.approval)}</span>
  679. </FormItem>
  680. <FormItem
  681. className="half-item"
  682. {...formItemLayout}
  683. label="已收款项(万元)"
  684. >
  685. <span>{this.state.settlementAmount}</span>
  686. </FormItem>
  687. <div className="clearfix">
  688. <FormItem
  689. labelCol={{ span: 4 }}
  690. wrapperCol={{ span: 16 }}
  691. label="订单留言"
  692. >
  693. <p style={{ width: 500, wordWrap: "break-word" }}>
  694. {this.state.orderRemarks}
  695. </p>
  696. </FormItem>
  697. </div>
  698. <div className="clearfix">
  699. <FormItem
  700. className="half-item"
  701. {...formItemLayout}
  702. label="订单负责人"
  703. >
  704. <span>{this.state.salesmanName}</span>
  705. </FormItem>
  706. <FormItem
  707. className="half-item"
  708. {...formItemLayout}
  709. label="订单负责人电话"
  710. >
  711. <span>{this.state.salesmanMobile}</span>
  712. </FormItem>
  713. <FormItem
  714. className="half-item"
  715. {...formItemLayout}
  716. label="订单部门"
  717. >
  718. <span>{this.state.depName}</span>
  719. </FormItem>
  720. </div>
  721. <div className="clearfix">
  722. <FormItem
  723. className="half-item"
  724. {...formItemLayout}
  725. label="当前财务负责人"
  726. >
  727. <span>{this.state.nowFinance}</span>
  728. </FormItem>
  729. <FormItem
  730. className="half-item"
  731. {...formItemLayout}
  732. label="当前财务负责人电话"
  733. >
  734. <span>{this.state.nowFinanceMobile}</span>
  735. </FormItem>
  736. </div>
  737. <div className="clearfix">
  738. <FormItem
  739. className="half-item"
  740. {...formItemLayout}
  741. style={{ opacity: ".5" }}
  742. label="原订单负责人"
  743. >
  744. <span>{this.state.oldSalesmanName}</span>
  745. </FormItem>
  746. <FormItem
  747. className="half-item"
  748. {...formItemLayout}
  749. style={{ opacity: ".5" }}
  750. label="原订单负责人电话"
  751. >
  752. <span>{this.state.oldSalesmanMobile}</span>
  753. </FormItem>
  754. </div>
  755. <div className="clearfix">
  756. <FormItem
  757. className="half-item"
  758. {...formItemLayout}
  759. style={{ opacity: ".5" }}
  760. label="实际财务操作人"
  761. >
  762. <span>{this.state.financeName}</span>
  763. </FormItem>
  764. <FormItem
  765. className="half-item"
  766. {...formItemLayout}
  767. style={{ opacity: ".5" }}
  768. label="实际财务操作人电话"
  769. >
  770. <span>{this.state.financeMobile}</span>
  771. </FormItem>
  772. </div>
  773. <div>
  774. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  775. 项目业务
  776. </span>
  777. {this.state.processStatus == 0 ? (
  778. <Button
  779. type="primary"
  780. onClick={this.addDetailed}
  781. style={{
  782. float: "right",
  783. marginRight: "50px",
  784. marginBottom: "15px"
  785. }}
  786. >
  787. 添加项目明细
  788. </Button>
  789. ) : (
  790. ""
  791. )}
  792. </div>
  793. <div className="patent-table">
  794. <Spin spinning={this.state.loading}>
  795. <Table
  796. columns={this.state.columnsX}
  797. dataSource={this.state.dataSourceX}
  798. pagination={this.state.paginations}
  799. onRowClick={this.tableRowClickX}
  800. bordered
  801. size="small"
  802. />
  803. </Spin>
  804. </div>
  805. </div>
  806. </Spin>
  807. </Form>
  808. </Modal>
  809. <Modal
  810. maskClosable={false}
  811. visible={this.state.addnextVisible}
  812. onOk={this.nextCancel}
  813. onCancel={this.nextCancel}
  814. width="800px"
  815. title="项目任务详情"
  816. footer=""
  817. className="admin-desc-content"
  818. >
  819. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  820. <Spin spinning={this.state.loading}>
  821. <div className="clearfix">
  822. <FormItem
  823. className="half-item"
  824. {...formItemLayout}
  825. label="项目名称"
  826. >
  827. <span>{this.state.commodityName}</span>
  828. </FormItem>
  829. <FormItem
  830. className="half-item"
  831. {...formItemLayout}
  832. label="项目数量"
  833. >
  834. <span>{this.state.commodityQuantity}</span>
  835. </FormItem>
  836. <FormItem
  837. className="half-item"
  838. {...formItemLayout}
  839. label="金额(万元)"
  840. >
  841. <span>{this.state.commodityPrice}</span>
  842. </FormItem>
  843. <FormItem
  844. className="half-item"
  845. {...formItemLayout}
  846. label="主要项目"
  847. >
  848. <span>{getboutique(this.state.main)}</span>
  849. </FormItem>
  850. <div className="clearfix">
  851. <FormItem
  852. labelCol={{ span: 4 }}
  853. wrapperCol={{ span: 16 }}
  854. label="服务说明"
  855. >
  856. <span>{this.state.taskComment}</span>
  857. </FormItem>
  858. </div>
  859. </div>
  860. </Spin>
  861. </Form>
  862. </Modal>
  863. </div>
  864. );
  865. }
  866. });
  867. export default OutsourceTaskAssignment;