changeDetailCwzj.js 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  1. import React, { Component } from "react";
  2. import { Form, Upload, Modal, Button, message, Input, Select, Table, Tooltip } from "antd";
  3. import AgreeButton from "./agreeButton.js";
  4. import Rizhi from "./rizhi.js";
  5. import { getProcessStatusNew, changeColor } from "@/tools.js";
  6. import { shenghePeo } from "@/tools.js";
  7. import { typeList } from '@/dataDic.js'
  8. import $ from "jquery/src/ajax";
  9. import "../../../../../../css/changeDetail.less"
  10. import quxiao from "../../../../../../image/quxiao.png";
  11. import tongguo from "../../../../../../image/tongguo.png";
  12. import ProAndCuiList from "./proAndCuiList.jsx";
  13. import "./xButton.less";
  14. // import ReactToPrint from "react-to-print";
  15. const FormItem = Form.Item;
  16. import Refund from "./refund.js"
  17. import ImgList from "../../../../common/imgList";
  18. import EnterpriseNameChange from "../../../../common/enterpriseNameChange";
  19. import FlowChart from '../../../../common/flowchart'; // 流程图
  20. import SelectReject from '../../../../common/selectreject'; // 驳回位置选择
  21. const { TextArea } = Input;
  22. const formItemLayout = {
  23. labelCol: { span: 8 },
  24. wrapperCol: { span: 14 }
  25. };
  26. const getChangeType = function (e) {
  27. if (e || e == 0) {
  28. let str = e.toString();
  29. let theType = "";
  30. typeList.map(function (item) {
  31. if (item.value == str) {
  32. theType = item.key;
  33. }
  34. });
  35. return theType;
  36. }
  37. };
  38. class Itemlist extends Component {
  39. constructor(props) {
  40. super(props);
  41. }
  42. render() {
  43. let pageData = this.props.pageData;
  44. return (
  45. <div className="clearfix">
  46. <Form.Item
  47. label={pageData.labelA}
  48. {...pageData.formItemLayoutA}
  49. className="half-item"
  50. >
  51. {pageData.labelA === '变更原因' ? <Tooltip placement="topLeft" title={pageData.dataA}>
  52. <div style={{
  53. width: '150px !important',
  54. whiteSpace: 'nowrap',
  55. wordBreak: 'break-all',
  56. overflow: 'hidden',
  57. textOverflow: 'ellipsis',
  58. }}>{pageData.dataA}</div>
  59. </Tooltip> : pageData.dataA}
  60. {pageData.labelA === '客户名称' ? <EnterpriseNameChange
  61. type='journal'
  62. style={{ marginLeft: 10 }}
  63. enterpriseId={this.props.orderUid} /> : null}
  64. {
  65. pageData.labelA === '当前进度' &&
  66. <FlowChart id={this.props.id} />
  67. }
  68. </Form.Item>
  69. <Form.Item
  70. label={pageData.labelB}
  71. {...pageData.formItemLayoutB}
  72. className="half-item"
  73. >
  74. <span>{pageData.dataB}</span>
  75. </Form.Item>
  76. </div>
  77. );
  78. }
  79. }
  80. class ChangeDetail extends Component {
  81. constructor(props) {
  82. super(props);
  83. this.state = {
  84. previewVisible: false,
  85. buttonStatus: true,
  86. dataSource: [],
  87. reason: "",
  88. rejectState: 0,
  89. rotateDeg: 0,
  90. contactList: [],
  91. ContactsLists: [
  92. {
  93. title: "金额(万元)",
  94. dataIndex: "amount",
  95. key: "amount",
  96. render: (text, record) => {
  97. return (
  98. <div>
  99. 实际回收退票(万元)
  100. <Input
  101. value={record.amount}
  102. placeholder="请输入金额(必填项)"
  103. disabled={record.load}
  104. key={record.id}
  105. required="required"
  106. onChange={e => {
  107. record.amount = e.target.value;
  108. this.setState({ contactList: this.state.contactList });
  109. }}
  110. style={{ width: "120px" }}
  111. />
  112. </div>
  113. );
  114. }
  115. },
  116. {
  117. title: "时间",
  118. dataIndex: "createTimes",
  119. key: "createTimes",
  120. render: (text, record) => {
  121. return (
  122. <div>
  123. {/* <DatePicker
  124. showTime
  125. placeholder="请输入退票时间"
  126. onChange={v => {
  127. record.time = v._d;
  128. this.setState({ contactList: this.state.contactList });
  129. }}
  130. onOk={v => {
  131. record.time = v._d;
  132. this.setState({ contactList: this.state.contactList });
  133. console.log(this.state);
  134. }}
  135. /> */}
  136. {record.createTimes}
  137. </div>
  138. );
  139. }
  140. }
  141. // {
  142. // title: "操作",
  143. // dataIndex: "dels",
  144. // key: "dels",
  145. // render: (text, record, index) => {
  146. // return (
  147. // <div style={{ display:
  148. // (this.props.data.processState == 7 ||
  149. // this.props.data.processState == 8) &&
  150. // this.props.data.status == 4
  151. // ? "none"
  152. // : "block"}}>
  153. // <Popconfirm
  154. // title="是否删除?"
  155. // onConfirm={() => {
  156. // this.confirmDelet(record);
  157. // }}
  158. // okText="删除"
  159. // cancelText="不删除"
  160. // >
  161. // <Button
  162. // style={{
  163. // marginRight: "10px",
  164. // color: "#ffffff",
  165. // background: "#f00",
  166. // border: "none"
  167. // }}
  168. // >
  169. // 删除
  170. // </Button>
  171. // </Popconfirm>
  172. // {record.load != true ? (
  173. // <Button
  174. // type="primary"
  175. // onClick={() => {
  176. // this.contactSave(record);
  177. // }}
  178. // >
  179. // 保存
  180. // </Button>
  181. // ) : (
  182. // ""
  183. // )}
  184. // </div>
  185. // );
  186. // }
  187. // }
  188. ]
  189. };
  190. this.getOrgCodeUrl = this.getOrgCodeUrl.bind(this);
  191. this.changeButtonStatus = this.changeButtonStatus.bind(this);
  192. this.downImg = this.downImg.bind(this);
  193. this.upImg = this.upImg.bind(this);
  194. this.rotate = this.rotate.bind(this);
  195. this.moneyOld = this.moneyOld.bind(this);
  196. }
  197. getOrgCodeUrl(e) {
  198. this.setState({
  199. orgCodeUrl: e
  200. });
  201. }
  202. downImg() {
  203. let num = 0;
  204. for (let i = 0; i < this.props.pictureUrl.length; i++) {
  205. if (this.props.pictureUrl[i].url == this.state.previewImage) {
  206. num = i;
  207. }
  208. }
  209. if (num == this.props.pictureUrl.length - 1) {
  210. return message.warning("已经是最后一张了哦");
  211. }
  212. this.state.previewImage = this.props.pictureUrl[num + 1].url;
  213. this.setState({
  214. previewImage: this.state.previewImage,
  215. rotateDeg: 0
  216. });
  217. }
  218. upImg() {
  219. let num = 0;
  220. for (let i = 0; i < this.props.pictureUrl.length; i++) {
  221. if (this.props.pictureUrl[i].url == this.state.previewImage) {
  222. num = i;
  223. }
  224. }
  225. if (num == 0) {
  226. return message.warning("已经是第一张了哦");
  227. }
  228. this.state.previewImage = this.props.pictureUrl[num - 1].url;
  229. this.setState({
  230. previewImage: this.state.previewImage,
  231. rotateDeg: 0
  232. });
  233. }
  234. rotate() {
  235. let rotateDeg = this.state.rotateDeg + 90;
  236. this.setState({
  237. rotateDeg
  238. });
  239. }
  240. moneyOld(str, money) {
  241. if (money) {
  242. return (
  243. <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
  244. {str}(原合同金额{money}万元)
  245. </span>
  246. );
  247. } else {
  248. return <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>{str}</span>;
  249. }
  250. }
  251. componentDidMount() {
  252. window.setTimeout(() => {
  253. const contactList = this.props.contactList;
  254. // console.log("看看props", this.props);
  255. contactList.forEach(item => {
  256. item.load = true;
  257. });
  258. this.setState({
  259. contactList
  260. });
  261. }, 0);
  262. }
  263. // loadDataChange() {
  264. // $.ajax({
  265. // method: "get",
  266. // dataType: "json",
  267. // crossDomain: false,
  268. // url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
  269. // data: {
  270. // changeId: this.props.data.id
  271. // },
  272. // success: function(data) {
  273. // if (data.error.length || data.data.list == "") {
  274. // if (data.error && data.error.length) {
  275. // message.warning(data.error[0].message);
  276. // }
  277. // } else {
  278. // this.setState({
  279. // dataSource: data.data
  280. // });
  281. // }
  282. // }.bind(this)
  283. // });
  284. // }
  285. // componentDidMount() {
  286. // window.setTimeout(() => {
  287. // console.log(this.props);
  288. // },2000)
  289. // }
  290. //同意拒绝按钮的有无
  291. changeButtonStatus() {
  292. this.setState({
  293. buttonStatus: !this.state.buttonStatus
  294. });
  295. }
  296. componentWillReceiveProps(nextProps) {
  297. this.setState({
  298. paymentTimes: nextProps.data.paymentTimes,
  299. paymentAmount: nextProps.data.paymentAmount,
  300. invoiceTimes: nextProps.data.invoiceTimes,
  301. invoiceAmount: nextProps.data.invoiceAmount,
  302. cwCost: nextProps.data.cwCost,
  303. refundableAmount: nextProps.data.refundableAmount,
  304. cwRemarks: nextProps.data.cwRemarks,
  305. contactList: nextProps.contactList,
  306. refundInvoice: nextProps.data.refundInvoice
  307. });
  308. // if (!nextProps.reset) {
  309. // this.reset();
  310. // }
  311. }
  312. onRef(ref) {
  313. this.fun = ref;
  314. }
  315. render() {
  316. const pageData = [
  317. {
  318. labelA: "客户名称",
  319. formItemLayoutA: formItemLayout,
  320. dataA: this.props.data.userName,
  321. labelB: "合同编号",
  322. formItemLayoutB: formItemLayout,
  323. dataB: this.props.data.contractNo
  324. },
  325. {
  326. labelA: "时间",
  327. formItemLayoutA: formItemLayout,
  328. dataA: this.props.data.createTimes,
  329. labelB: "发起人",
  330. formItemLayoutB: formItemLayout,
  331. dataB: this.props.data.applicant
  332. },
  333. {
  334. labelA: "当前进度",
  335. formItemLayoutA: formItemLayout,
  336. // 当前是咨询师以及咨询师经理时使用shenhePeo函数,其他流程正常显示
  337. dataA:
  338. this.props.data.processState == 3 || this.props.data.processState == 4
  339. ? shenghePeo(this.props.data.examineName, this.props.data.processState)
  340. : getProcessStatusNew(
  341. this.props.data.examineName,
  342. this.props.data.processState,
  343. this.props.data.status
  344. ),
  345. labelB: "变更类型",
  346. formItemLayoutB: formItemLayout,
  347. dataB: getChangeType(this.props.data.type)
  348. },
  349. {
  350. labelA: "合同额(万元)",
  351. formItemLayoutA: formItemLayout,
  352. dataA: this.moneyOld(this.props.data.totalAmount, this.props.money),
  353. labelB: "已收款(万元)",
  354. formItemLayoutB: formItemLayout,
  355. dataB: changeColor(this.props.data.settlementAmount)
  356. },
  357. {
  358. labelA: "欠款(万元)",
  359. formItemLayoutA: formItemLayout,
  360. dataA: changeColor(this.props.data.arrears),
  361. labelB: "申请退款(万元)",
  362. formItemLayoutB: formItemLayout,
  363. dataB: changeColor(this.props.data.changeAmount)
  364. },
  365. {
  366. labelA: "首付款(万元)",
  367. formItemLayoutA: formItemLayout,
  368. dataA: changeColor(this.props.data.firstAmount),
  369. },
  370. {
  371. labelA: "变更原因",
  372. formItemLayoutA: formItemLayout,
  373. dataA: this.props.data.remarks
  374. }
  375. ];
  376. const planData = [
  377. {
  378. labelA: "项目进度",
  379. formItemLayoutA: formItemLayout,
  380. dataA: this.props.data.projectState,
  381. onChangeA: value => {
  382. this.setState({
  383. projectState: value
  384. });
  385. },
  386. labelB: "发生成本费用(万元)",
  387. formItemLayoutB: formItemLayout,
  388. dataB: this.props.data.zxsCost,
  389. onChangeB: value => {
  390. this.setState({
  391. zxsCost: value
  392. });
  393. }
  394. },
  395. {
  396. labelA: "备注",
  397. formItemLayoutA: formItemLayout,
  398. dataA: this.props.data.zxsRemarks,
  399. onChangeA: value => {
  400. this.setState({
  401. zxsRemarks: value
  402. });
  403. }
  404. }
  405. ];
  406. const financeData = [
  407. // {
  408. // labelA: "收款时间",
  409. // formItemLayoutA: formItemLayout,
  410. // dataA: this.props.data.paymentTimes,
  411. // labelB: "收款金额(万元)",
  412. // formItemLayoutB: formItemLayout,
  413. // dataB: this.props.data.paymentAmount
  414. // },
  415. // {
  416. // labelA: "开票时间",
  417. // formItemLayoutA: formItemLayout,
  418. // dataA: this.props.data.invoiceTimes,
  419. // labelB: "已开票金额(万元)",
  420. // formItemLayoutB: formItemLayout,
  421. // dataB: this.props.data.invoiceAmount
  422. // },
  423. {
  424. labelA: "发生成本(万元)",
  425. formItemLayoutA: formItemLayout,
  426. dataA: this.props.data.cwCost,
  427. labelB: "应退金额(万元)",
  428. formItemLayoutB: formItemLayout,
  429. dataB: this.props.data.refundableAmount
  430. }
  431. // {
  432. // labelA: "补充资料/备注",
  433. // formItemLayoutA: formItemLayout,
  434. // dataA: this.props.data.cwRemarks
  435. // }
  436. ];
  437. const buttonData = [
  438. {
  439. name: "同意",
  440. title: "理由",
  441. placeholder: "请输入理由",
  442. type: "primary",
  443. status: 2,
  444. onChange: value => {
  445. this.setState({
  446. remarks: value
  447. });
  448. }
  449. },
  450. {
  451. name: "拒绝",
  452. title: "理由",
  453. placeholder: "请输入理由",
  454. type: "danger",
  455. status: 3,
  456. onChange: value => {
  457. this.setState({
  458. remarks: value
  459. });
  460. }
  461. }
  462. ];
  463. const orgCodeUrl = this.props.pictureUrl;
  464. const attachment = this.props.attachment
  465. return (
  466. <div className="clearfix changeDetail">
  467. <div
  468. className="clearfix"
  469. ref={(e) => {
  470. this.refs = e;
  471. }}
  472. >
  473. <div
  474. style={{
  475. borderRadius: "50%",
  476. width: 300,
  477. height: 300,
  478. position: "absolute",
  479. top: 230,
  480. left: 525,
  481. transform: "rotate(-5deg)",
  482. zIndex: 1,
  483. display:
  484. this.props.data.status == 4
  485. ? "block"
  486. : "none",
  487. }}
  488. >
  489. <img src={tongguo} style={{ width: "100%" }} />
  490. </div>
  491. <div
  492. style={{
  493. borderRadius: "50%",
  494. width: 300,
  495. height: 300,
  496. position: "absolute",
  497. top: 284,
  498. left: 586,
  499. transform: "rotate(-5deg)",
  500. zIndex: 1,
  501. display: this.props.data.status == 5 ? "block" : "none",
  502. }}
  503. >
  504. <img src={quxiao} style={{ width: "63%" }} />
  505. </div>
  506. <h2 style={{ textAlign: "center", marginBottom: 10, marginTop: 20 }}>
  507. 合同变更记录
  508. </h2>
  509. {pageData.map((item, index) => {
  510. return <Itemlist key={index} pageData={item} orderUid={this.props.orderUid} id={this.props.id} />;
  511. })}
  512. <Form.Item
  513. label="变更凭证"
  514. labelCol={{ span: 4 }}
  515. wrapperCol={{ span: 18 }}
  516. >
  517. {/*<Upload*/}
  518. {/* className="demandDetailShow-upload"*/}
  519. {/* listType="picture-card"*/}
  520. {/* fileList={orgCodeUrl}*/}
  521. {/* onPreview={(file) => {*/}
  522. {/* this.setState({*/}
  523. {/* previewImage: file.url || file.thumbUrl,*/}
  524. {/* previewVisible: true,*/}
  525. {/* });*/}
  526. {/* }}*/}
  527. {/*/>*/}
  528. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  529. {orgCodeUrl ? <ImgList domId={'changeDetailCwzj' + this.props.id} fileList={orgCodeUrl} /> : <div />}
  530. </div>
  531. <Rizhi changeId={this.props.id} />
  532. </Form.Item>
  533. {
  534. this.props.contractPictureUrl && this.props.contractPictureUrl.length != 0 &&
  535. <div className="clearfix">
  536. <Form.Item
  537. labelCol={{ span: 4 }}
  538. wrapperCol={{ span: 18 }}
  539. label="最新合同"
  540. >
  541. <div style={{ paddingTop: 10 }}>
  542. <ImgList
  543. domId={"zxht"}
  544. fileList={
  545. this.props.contractPictureUrl
  546. }
  547. ItemWidth={"96px"}
  548. />
  549. </div>
  550. </Form.Item>
  551. </div>
  552. }
  553. {/* <h2 style={{ textAlign: "center", marginBottom: 0 }}>变更日志</h2> */}
  554. <ul
  555. style={{
  556. width: "868px",
  557. overflow: "hidden",
  558. paddingLeft: "90px",
  559. paddingTop: "10px",
  560. position: "relative",
  561. bottom: "20px",
  562. }}
  563. >
  564. {/* <span>操作人:</span> */}
  565. {this.props.dataSource.map((item, index) => {
  566. if (item.status == 0) {
  567. item.status = "发起";
  568. } else if (item.status == 1) {
  569. item.status = "审核中";
  570. } else if (item.status == 2) {
  571. item.status = "通过";
  572. } else if (item.status == 3) {
  573. item.status = "驳回";
  574. } else if (item.status == 4) {
  575. item.status = "完成";
  576. } else if (item.status == 5) {
  577. item.status = "撤销";
  578. }
  579. return (
  580. <li
  581. key={index}
  582. style={{
  583. width: "100%",
  584. height: "auto",
  585. wordBreak: "break-all",
  586. marginBottom: "10px",
  587. }}
  588. >
  589. {item.aname + ":" + "【" + item.status + "】" + item.remarks + "(" + item.createTimes + ")"}
  590. </li>
  591. );
  592. })}
  593. </ul>
  594. <ProAndCuiList id={this.props.id} />
  595. {/* 收款情况 */}
  596. <div className="clearfix">
  597. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  598. 收款情况
  599. </h3>
  600. <div style={{ marginLeft: "90px" }}>
  601. <ul>
  602. {(this.props.proceedsData.bill || []).map((item, index) => (
  603. <li key={index}>
  604. {item.payTime +
  605. " " +
  606. item.aName +
  607. " 收款:" +
  608. item.transactionAmount +
  609. "万元"}
  610. </li>
  611. ))}
  612. </ul>
  613. <div>收款总计:{this.props.proceedsTotal}万元</div>
  614. </div>
  615. <br />
  616. <div style={{ marginLeft: "90px" }}>
  617. <ul>
  618. {(this.props.proceedsData.invoice || []).map((item, index) => (
  619. <li key={index}>
  620. {item.createTime + " " + " 开票:" + item.amount + "万元"}
  621. </li>
  622. ))}
  623. </ul>
  624. <div>开票总计:{this.props.invoiceTotal}万元</div>
  625. </div>
  626. <p style={{ marginLeft: "90px", color: "red" }}>
  627. 系统预估 产生成本(万元):
  628. {this.props.data.estimateCost
  629. ? this.props.data.estimateCost
  630. : "0"}{" "}
  631. &nbsp;应退金额(万元):
  632. {this.props.data.estimateRefundable
  633. ? this.props.data.estimateRefundable
  634. : "0"}
  635. </p>
  636. </div>
  637. {/* 当前财务状态 */}
  638. {this.props.data.processState > 6 &&
  639. (this.props.data.status == 1 || this.props.data.status == 3) &&
  640. this.props.processState == this.props.data.processState ? (
  641. // this.state.buttonStatus ? (
  642. <div>
  643. <div style={{ marginBottom: 10 }}>
  644. <div className="clearfix">
  645. <div>
  646. <h3
  647. style={{
  648. marginLeft: 10,
  649. fontWeight: 800,
  650. marginBottom: 10,
  651. }}
  652. >
  653. 当前财务状态(财务填写)
  654. </h3>
  655. {financeData.map((item, index) => {
  656. return <Itemlist key={index} pageData={item} orderUid={this.props.orderUid} id={this.props.id} />;
  657. })}
  658. </div>
  659. </div>
  660. <div
  661. style={{
  662. marginTop: "10px",
  663. display:
  664. this.props.processState == this.props.data.processState
  665. ? "block"
  666. : "none",
  667. }}
  668. >
  669. <Form.Item
  670. label="备注"
  671. labelCol={{ span: 4 }}
  672. wrapperCol={{ span: 14 }}
  673. >
  674. <Input.TextArea
  675. rows={4}
  676. value={this.state.reason}
  677. placeholder="请输入补充资料/备注"
  678. onChange={(e) => {
  679. this.setState({
  680. reason: e.target.value,
  681. });
  682. }}
  683. />
  684. </Form.Item>
  685. </div>
  686. </div>
  687. <div
  688. className="clearfix"
  689. style={{ display: "flex", justifyContent: "space-around" }}
  690. >
  691. {buttonData.map((item, index) => {
  692. return (
  693. <AgreeButton
  694. data={item}
  695. key={index}
  696. backData={this.props.data}
  697. processState={this.props.processState}
  698. visible={this.changeButtonStatus}
  699. ajaxData={this.state}
  700. loadData={this.props.loadData}
  701. reason={this.state.reason}
  702. rejectState={this.state.rejectState}
  703. onCancel={this.props.onCancel}
  704. />
  705. );
  706. })}
  707. </div>
  708. <div style={{ width: 120, float: "left", position: "relative", bottom: "28px", right: "-600px", }}>
  709. <SelectReject
  710. type={this.props.data.type}
  711. processState={this.props.processState}
  712. onSelect={val => {
  713. this.setState({
  714. rejectState: val
  715. })
  716. }}
  717. />
  718. </div>
  719. {/* <Select
  720. defaultValue="0"
  721. style={{
  722. width: 120,
  723. float: "left",
  724. position: "relative",
  725. bottom: "28px",
  726. right: "-600px",
  727. }}
  728. onChange={(val) => {
  729. this.setState({ rejectState: val });
  730. }}
  731. >
  732. <Option
  733. value="0"
  734. style={{
  735. display: this.props.processState >= 2 ? "block" : "none",
  736. }}
  737. >
  738. 营销员
  739. </Option>
  740. <Option
  741. value="1"
  742. style={{
  743. display: this.props.processState >= 3 ? "block" : "none",
  744. }}
  745. >
  746. 营销管理员
  747. </Option>
  748. <Option
  749. value="2"
  750. style={{
  751. display: this.props.processState >= 4 ? "block" : "none",
  752. }}
  753. >
  754. 咨询师
  755. </Option>
  756. <Option
  757. value="3"
  758. style={{
  759. display: this.props.processState >= 5 ? "block" : "none",
  760. }}
  761. >
  762. 咨询师经理
  763. </Option>
  764. <Option
  765. value="4"
  766. style={{
  767. display: this.props.processState >= 6 ? "block" : "none",
  768. }}
  769. >
  770. 咨询师总监
  771. </Option>
  772. <Option
  773. value="5"
  774. style={{
  775. display: this.props.processState >= 7 ? "block" : "none",
  776. }}
  777. >
  778. 财务专员(退单)
  779. </Option>
  780. <Option
  781. value="6"
  782. style={{
  783. display: this.props.processState >= 8 ? "block" : "none",
  784. }}
  785. >
  786. 财务总监
  787. </Option>
  788. <Option
  789. value="7"
  790. style={{
  791. display: this.props.processState >= 9 ? "block" : "none",
  792. }}
  793. >
  794. 总裁
  795. </Option>
  796. </Select> */}
  797. </div>
  798. ) : (
  799. <div>
  800. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  801. 当前财务状态(财务填写)
  802. </h3>
  803. {financeData.map((item, index) => {
  804. return <Itemlist key={index} pageData={item} orderUid={this.props.orderUid} id={this.props.id} />;
  805. })}
  806. </div>
  807. )}
  808. {/* 回收退票 */}
  809. <div
  810. style={{
  811. display:
  812. (this.props.data.processState == 9 ||
  813. this.props.data.processState == 8) &&
  814. (this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6)
  815. ? "block"
  816. : "none",
  817. }}
  818. >
  819. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  820. 回收退票
  821. </h3>
  822. {/* {this.state.processStatus == 0 ? ( */}
  823. <Button
  824. type="primary"
  825. onClick={this.addcontact}
  826. style={{
  827. float: "right",
  828. marginRight: "50px",
  829. marginBottom: "15px",
  830. position: "relative",
  831. zIndex: "999",
  832. display: "none",
  833. }}
  834. >
  835. 添加回收退票
  836. </Button>
  837. {/* ) : (
  838. ""
  839. )} */}
  840. <Table
  841. size="middle"
  842. pagination={false}
  843. bordered
  844. columns={this.state.ContactsLists}
  845. dataSource={this.state.contactList}
  846. />
  847. </div>
  848. {/* 完成审核,上传附件 */}
  849. <div style={{
  850. position: "relative",
  851. display:
  852. (this.props.data.processState == 8 ||
  853. this.props.data.processState == 9) &&
  854. this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6
  855. ? "block"
  856. : "none",
  857. marginTop: 10,
  858. }}
  859. >
  860. <hr
  861. style={{
  862. marginTop: 12,
  863. marginBottom: 10,
  864. backgroundColor: "black",
  865. height: 1,
  866. border: "none",
  867. }}
  868. />
  869. <h3
  870. style={{
  871. marginLeft: 20,
  872. fontWeight: 800,
  873. marginBottom: 10,
  874. display: "inline-block",
  875. }}
  876. >
  877. 完成审核,上传附件{" "}
  878. <span
  879. style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
  880. >
  881. (注:由营销员上传变更后附件,全变更流程完成。)
  882. </span>
  883. </h3>
  884. <div>
  885. <Form.Item
  886. label="变更附件"
  887. labelCol={{ span: 4 }}
  888. wrapperCol={{ span: 18 }}
  889. >
  890. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  891. {attachment.length > 0 ? <ImgList domId={this.props.domId + 2 ? this.props.domId + 2 : 'changeDetailCwzj1'} fileList={attachment} ItemWidth={'96px'} /> : '无附件'}
  892. </div>
  893. {/* <Rizhi changeId={this.props.id} /> */}
  894. </Form.Item>
  895. </div>
  896. </div>
  897. {/* {this.props.data.type === 0 && this.props.data.processState >= 4 ? (
  898. <div>
  899. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  900. 当前项目进度(咨询师经理填写)
  901. </h3>
  902. {planData.map((item, index) => {
  903. return <Itemlist key={index} pageData={item} />;
  904. })}
  905. </div>
  906. ) : (
  907. ""
  908. )} */}
  909. {/* {this.props.data.type === 0 ? (
  910. this.props.data.processState >= 5 ? (
  911. <div>
  912. <h3
  913. style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}
  914. >
  915. 当前财务状态(财务填写)
  916. </h3>
  917. {financeData.map((item, index) => {
  918. return <Itemlist key={index} pageData={item} />;
  919. })}
  920. </div>
  921. ) : (
  922. ""
  923. )
  924. ) : this.props.data.status === 4 ? (
  925. <div>
  926. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  927. 当前财务状态(财务填写)
  928. </h3>
  929. {financeData.map((item, index) => {
  930. return <Itemlist key={index} pageData={item} />;
  931. })}
  932. </div>
  933. ) : (
  934. ""
  935. )} */}
  936. </div>
  937. <div
  938. style={{
  939. display:
  940. (this.props.data.processState == 8 ||
  941. this.props.data.processState == 9) &&
  942. this.props.data.status == 4 &&
  943. this.props.data.refundStatus
  944. ? "block"
  945. : "none",
  946. }}
  947. >
  948. <Refund data={this.props.data} id={this.props.id} />
  949. </div>
  950. {/* <ReactToPrint
  951. trigger={() => (
  952. <div className="clearfix">
  953. <Button type="primary" style={{ float: "right", marginTop: 10 }}>
  954. 打印
  955. </Button>
  956. </div>
  957. )}
  958. content={() => this.refs}
  959. /> */}
  960. </div>
  961. );
  962. }
  963. }
  964. export { ChangeDetail };