examine.jsx 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292
  1. import React from "react";
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Spin,
  7. Table,
  8. message,
  9. DatePicker,
  10. Upload,
  11. Form,
  12. Modal,
  13. Tabs,
  14. Col,
  15. Tooltip,
  16. Select,
  17. Tag
  18. } from "antd";
  19. import $ from "jquery/src/ajax";
  20. import moment from "moment";
  21. import {
  22. getLiquidationStatus,
  23. getApprovedState,
  24. getProcessStatus,
  25. splitUrl,
  26. getjiedian,
  27. getboutique,
  28. getCuikuan,
  29. getProjectStatus,
  30. moneyVerify,
  31. ShowModal
  32. } from "@/tools.js";
  33. import "./customer.less";
  34. import ShowModalDiv from "@/showModal.jsx";
  35. import ResolutionDetail from "@/resolutionDetail";
  36. import OrderRiZi from "@/orderRiZi.jsx";
  37. import ImgList from "../../../common/imgList";
  38. import {ChooseList} from "./chooseList";
  39. import {getProjectName} from "../../../tools";
  40. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  41. import OrderItemStatus from "../../../common/orderItemStatus";
  42. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  43. import OrderCoor from "./changeComponent/orderCoor";
  44. const confirm = Modal.confirm;
  45. const { Option } = Select;
  46. //图片组件
  47. const PicturesWall = React.createClass({
  48. getInitialState() {
  49. return {
  50. previewVisible: false,
  51. previewImage: "",
  52. declarationBatch: 1,
  53. dataInfor: {},
  54. fileList: this.props.pictureUrl
  55. };
  56. },
  57. handleCancel() {
  58. this.setState({
  59. previewVisible: false
  60. });
  61. },
  62. handlePreview(file) {
  63. this.setState({
  64. previewImage: file.url || file.thumbUrl,
  65. previewVisible: true
  66. });
  67. },
  68. handleChange(info) {
  69. let fileList = info.fileList;
  70. this.setState({
  71. fileList
  72. });
  73. this.props.fileList(fileList);
  74. },
  75. componentWillReceiveProps(nextProps) {
  76. this.state.fileList = nextProps.pictureUrl;
  77. this.state.pojectApplicationUrl = undefined;
  78. },
  79. render() {
  80. const { previewVisible, previewImage, fileList } = this.state;
  81. const uploadButton = (
  82. <div>
  83. <Icon type="plus" />
  84. <div className="ant-upload-text">点击上传</div>
  85. </div>
  86. );
  87. return (
  88. <div style={{ display: "inline-block" }}>
  89. <Upload
  90. action={
  91. globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"
  92. }
  93. data={{ sign: "order_outsource" }}
  94. listType="picture-card"
  95. fileList={fileList}
  96. multiple
  97. onPreview={this.handlePreview}
  98. onChange={this.handleChange}
  99. >
  100. {uploadButton}
  101. </Upload>
  102. {previewVisible ? <Modal
  103. maskClosable={false}
  104. width={"70px"}
  105. visible={previewVisible}
  106. footer={null}
  107. onCancel={this.handleCancel}
  108. >
  109. <img alt="example" style={{ width: "100%" }} src={previewImage} />
  110. </Modal> : <div/>}
  111. </div>
  112. );
  113. }
  114. });
  115. const IntentionCustomer = Form.create()(
  116. React.createClass({
  117. loadData(pageNo) {
  118. this.setState({
  119. visitModul: false,
  120. loading: true,
  121. ispage: pageNo,
  122. modalVisible: false,
  123. });
  124. $.ajax({
  125. method: "get",
  126. dataType: "json",
  127. crossDomain: false,
  128. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  129. data: {
  130. pageNo: pageNo || 1,
  131. pageSize: this.state.pagination.pageSize,
  132. specially: 1, //审核列表
  133. name: this.state.customerName, //名称
  134. orderNo: this.state.orderNoSearch, //订单编号
  135. starTime: this.state.releaseDate[0], //开始时间
  136. endTime: this.state.releaseDate[1], //结束时间
  137. approval: this.state.approvalSearch, //特批状态搜索
  138. amountStatus: this.state.amountStatus,
  139. },
  140. success: function (data) {
  141. ShowModal(this);
  142. let theArr = [];
  143. if (data.error.length || data.data.list == "") {
  144. if (data.error && data.error.length) {
  145. message.warning(data.error[0].message);
  146. }
  147. } else {
  148. for (let i = 0; i < data.data.list.length; i++) {
  149. let thisdata = data.data.list[i];
  150. theArr.push({
  151. key: i,
  152. id: thisdata.id, //用户ID
  153. orderNo: thisdata.orderNo, //订单编号
  154. totalAmount: thisdata.totalAmount, //签单金额
  155. processStatus: thisdata.processStatus, //流程状态
  156. liquidationStatus: thisdata.liquidationStatus, //结算状态
  157. approval: thisdata.approval, //特批状态
  158. signDate: thisdata.signDate, //签单时间
  159. userName: thisdata.userName, //客户名称
  160. salesmanName: thisdata.salesmanName, //营销员名称
  161. financeName: thisdata.financeName, //财务名称
  162. createDate: thisdata.createDate, //下单时间
  163. depName: thisdata.depName,
  164. orderStatus: thisdata.orderStatus,
  165. });
  166. }
  167. this.state.pagination.total = data.data.totalCount;
  168. this.state.pagination.current = data.data.pageNo;
  169. }
  170. if (data.data && data.data.list && !data.data.list.length) {
  171. this.state.pagination.total = 0;
  172. }
  173. this.setState({
  174. dataSource: theArr,
  175. pageNo: pageNo,
  176. pagination: this.state.pagination,
  177. selectedRowKeys: [],
  178. });
  179. }.bind(this),
  180. }).always(
  181. function () {
  182. this.setState({
  183. loading: false,
  184. });
  185. }.bind(this)
  186. );
  187. },
  188. getInitialState() {
  189. return {
  190. rotateDeg: 0,
  191. page: 1,
  192. resVisible: false,
  193. releaseDate: [],
  194. selectedRowKeys: [],
  195. pictureUrl: [],
  196. attachmentUrl: [],
  197. paginations: false,
  198. activeKey: "1",
  199. confirmLoading: false,
  200. approvalSearch: undefined,
  201. aloading: false,
  202. orderNos:'',
  203. pagination: {
  204. defaultCurrent: 1,
  205. defaultPageSize: 10,
  206. showQuickJumper: true,
  207. pageSize: 10,
  208. onChange: function (page) {
  209. this.loadData(page);
  210. }.bind(this),
  211. showTotal: function (total) {
  212. return "共" + total + "条数据";
  213. },
  214. },
  215. columns: [
  216. {
  217. title: "订单编号",
  218. dataIndex: "orderNo",
  219. key: "orderNo",
  220. },
  221. {
  222. title: "下单时间",
  223. dataIndex: "createDate",
  224. key: "createTime",
  225. },
  226. {
  227. title: "合同签订时间",
  228. dataIndex: "signDate",
  229. key: "signDate",
  230. },
  231. {
  232. title: "客户名称",
  233. dataIndex: "userName",
  234. key: "userName",
  235. render: (text) => {
  236. return (
  237. <Tooltip title={text}>
  238. <div style={{
  239. maxWidth:'150px',
  240. overflow:'hidden',
  241. textOverflow: "ellipsis",
  242. whiteSpace:'nowrap',
  243. }}>{text}</div>
  244. </Tooltip>
  245. )
  246. },
  247. },
  248. {
  249. title: "流程状态",
  250. dataIndex: "processStatus",
  251. key: "processStatus",
  252. render: (text) => {
  253. return getProcessStatus(text);
  254. },
  255. },
  256. {
  257. title: "订单部门",
  258. dataIndex: "depName",
  259. key: "depName",
  260. },
  261. {
  262. title: "签单金额(万元)",
  263. dataIndex: "totalAmount",
  264. key: "totalAmount",
  265. },
  266. {
  267. title: "结算状态",
  268. dataIndex: "liquidationStatus",
  269. key: "liquidationStatus",
  270. render: (text) => {
  271. return getLiquidationStatus(text);
  272. },
  273. },
  274. {
  275. title: "是否特批",
  276. dataIndex: "approval",
  277. key: "approval",
  278. render: (text) => {
  279. return getApprovedState(text);
  280. },
  281. },
  282. {
  283. title: "订单负责人",
  284. dataIndex: "salesmanName",
  285. key: "salesmanName",
  286. },
  287. {
  288. title: "财务负责人",
  289. dataIndex: "financeName",
  290. key: "financeName",
  291. },
  292. ],
  293. data: [],
  294. dataSource: [],
  295. columnsX: [
  296. {
  297. title: "业务项目名称",
  298. dataIndex: "commodityName",
  299. key: "commodityName",
  300. render: (text, record) => {
  301. return text + "-" + record.id
  302. }
  303. },
  304. {
  305. title: "项目类别",
  306. dataIndex: "cname",
  307. key: "cname",
  308. },
  309. {
  310. title: "项目数量",
  311. dataIndex: "commodityQuantity",
  312. key: "commodityQuantity",
  313. render: (text, record) => {
  314. if (record.splitStatus == 1) {
  315. return (
  316. <span>
  317. {text}{" "}
  318. <Tag
  319. color="#108ee9"
  320. onClick={(e) => {
  321. e.stopPropagation();
  322. this.showRes(record);
  323. }}
  324. >
  325. 已拆
  326. </Tag>
  327. </span>
  328. );
  329. } else {
  330. return text;
  331. }
  332. },
  333. },
  334. {
  335. title: "金额(万元)",
  336. dataIndex: "commodityPrice",
  337. key: "commodityPrice",
  338. },
  339. {
  340. title: "负责人",
  341. dataIndex: "contacts",
  342. key: "contacts",
  343. },
  344. {
  345. title: "负责人电话",
  346. dataIndex: "contactsMobile",
  347. key: "contactsMobile",
  348. },
  349. {
  350. title: "项目状态",
  351. dataIndex: "projectStatus",
  352. key: "projectStatus",
  353. render: (text) => {
  354. return getProjectName(text);
  355. },
  356. },
  357. {
  358. title: "主要项目",
  359. dataIndex: "main",
  360. key: "main",
  361. render: (text) => {
  362. return text ? "是" : "否";
  363. },
  364. },
  365. {
  366. title: "项目说明",
  367. dataIndex: "taskComment",
  368. key: "taskComment",
  369. render: (text) => {
  370. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  371. },
  372. },
  373. ],
  374. columnsrizhi: [
  375. {
  376. title: "流程",
  377. dataIndex: "processName",
  378. key: "processName",
  379. },
  380. {
  381. title: "操作人",
  382. dataIndex: "adminName",
  383. key: "adminName",
  384. },
  385. {
  386. title: "时间",
  387. dataIndex: "createDate",
  388. key: "createDate",
  389. },
  390. ],
  391. dataSourceX: [],
  392. ContactsListsNew: [
  393. {
  394. title: "项目名称",
  395. dataIndex: "commodityName",
  396. key: "commodityName",
  397. render: (text, record) => {
  398. return <span>{text + "-" + record.tid}</span>;
  399. },
  400. },
  401. {
  402. title: "项目分类",
  403. dataIndex: "projectType",
  404. key: "projectType",
  405. render: (text) => {
  406. let arr = this.state.dataSourceX || [];
  407. let str = "";
  408. for (let i = 0; i < arr.length; i++) {
  409. if (this.state.dataSourceX[i].sort == text) {
  410. str = this.state.dataSourceX[i].cname;
  411. return <span>{str}</span>;
  412. }
  413. }
  414. },
  415. },
  416. {
  417. title: "催款科目",
  418. dataIndex: "dunTypeName",
  419. key: "dunTypeName",
  420. render: (text,record) => {
  421. if (record.customizeName) {
  422. return text + record.customizeName;
  423. }
  424. return <span>{text}</span>;
  425. },
  426. },
  427. {
  428. title: "时间(天)",
  429. dataIndex: "waitDay",
  430. key: "waitDay",
  431. render: (text, record) => {
  432. if (record.dunTypeName) {
  433. if (record.customizeTimes) {
  434. return record.customizeTimes;
  435. }
  436. if (text == 0) {
  437. var str = "当天";
  438. } else if (!text) {
  439. var str = "";
  440. } else {
  441. var str = text + "天";
  442. }
  443. return <span>{str}</span>;
  444. }
  445. },
  446. },
  447. {
  448. title: "金额(万元)",
  449. dataIndex: "money",
  450. key: "money",
  451. render: (text, record) => {
  452. if (record.dunTypeName) {
  453. if (record.appropriationRatio) {
  454. return <span>{record.appropriationRatio}(拨款比例)</span>;
  455. } else {
  456. return <span>{text}</span>;
  457. }
  458. }
  459. },
  460. },
  461. {
  462. title: "服务年限",
  463. dataIndex: "startDate",
  464. key: "startDate",
  465. render: (text, record) => {
  466. if (record.dunTypeName) {
  467. return <span>{text}</span>;
  468. }
  469. },
  470. },
  471. {
  472. title: "催款状态",
  473. dataIndex: "status",
  474. key: "status",
  475. render: (text) => {
  476. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  477. },
  478. },
  479. ],
  480. ContactsLists: [
  481. {
  482. title: "催款科目",
  483. dataIndex: "dunSubject",
  484. key: "dunSubject",
  485. render: (text) => {
  486. return getjiedian(text);
  487. },
  488. },
  489. {
  490. title: "金额(万元)",
  491. dataIndex: "money",
  492. key: "money",
  493. },
  494. {
  495. title: "催款状态",
  496. dataIndex: "dunStatus",
  497. key: "dunStatus",
  498. render: (text) => {
  499. return getCuikuan(text);
  500. },
  501. },
  502. ],
  503. };
  504. },
  505. //页面加载函数
  506. componentWillMount() {
  507. this.loadData();
  508. },
  509. //整行点击
  510. tableRowClick(record) {
  511. this.setState({
  512. visible: true,
  513. orderStatus: record.orderStatus,
  514. id: record.id,
  515. orderNos:record.orderNo
  516. });
  517. this.xiangqing(record.orderNo);
  518. this.xiangmu(record.orderNo);
  519. this.jiedian(record.orderNo);
  520. this.jiedianNew(record.orderNo);
  521. },
  522. //点击打卡项目详情
  523. tableRowClickX(record) {
  524. if (record.type == "1") {
  525. this.setState({
  526. displayFees: "block",
  527. costReduction: record.costReduction,
  528. officialCost: record.officialCost,
  529. });
  530. }else{
  531. this.setState({
  532. displayFees: "none",
  533. });
  534. }
  535. this.setState({
  536. jid: record.id, //项目ID
  537. kid: record.commodityId, //商品ID
  538. commodityName: record.commodityName, //金额
  539. commodityPrice: record.commodityPrice, //金额
  540. commodityQuantity: record.commodityQuantity, //数量
  541. taskComment: record.taskComment, //备注
  542. main: record.main.toString(), //是否为主要
  543. addnextVisible: true,
  544. dataInfor:record,
  545. addState: 0,
  546. });
  547. },
  548. //项目详情关闭
  549. nextCancel() {
  550. this.setState({
  551. addnextVisible: false,
  552. displayFees: "none",
  553. officialCost: "", //是否有官费
  554. costReduction: "", //是否有费减
  555. });
  556. },
  557. //订单详情
  558. xiangqing(orderNos) {
  559. $.ajax({
  560. method: "get",
  561. dataType: "json",
  562. crossDomain: false,
  563. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  564. data: {
  565. orderNo: orderNos,
  566. },
  567. success: function (data) {
  568. if (data.error.length || data.data.list == "") {
  569. if (data.error && data.error.length) {
  570. message.warning(data.error[0].message);
  571. }
  572. } else {
  573. let thisdata = data.data;
  574. this.setState({
  575. orderUid: thisdata.uid,
  576. orderNo: thisdata.orderNo, //订单编号
  577. contractNo: thisdata.contractNo, //合同编号
  578. userName: thisdata.userName, //客户名称
  579. signDate: thisdata.signDate, //签单时间
  580. processStatus: thisdata.processStatus, //流程状态
  581. liquidationStatus: thisdata.liquidationStatus, //结算状态
  582. contacts: thisdata.contacts, //企业联系人
  583. contactMobile: thisdata.contactMobile, //联系人电话
  584. legalPerson: thisdata.legalPerson, //法人
  585. legalPersonTel: thisdata.legalPersonTel, //法人电话
  586. firstAmount: thisdata.firstAmount, //签单金额
  587. totalAmount: thisdata.totalAmount, //首付金额
  588. approval: thisdata.approval, //特批状态
  589. settlementAmount: thisdata.settlementAmount, //已收款项
  590. orderRemarks: thisdata.orderRemarks, //订单留言
  591. orgCodeUrl: thisdata.contractPictureUrl
  592. ? splitUrl(
  593. thisdata.contractPictureUrl,
  594. ",",
  595. globalConfig.avatarHost + "/upload"
  596. )
  597. : [], //图片地址
  598. replenishUrl: thisdata.agreementUrl
  599. ? splitUrl(
  600. thisdata.agreementUrl,
  601. ",",
  602. globalConfig.avatarHost + "/upload"
  603. )
  604. : [], //图片地址
  605. salesmanName: thisdata.salesmanName, //营销员名称
  606. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  607. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  608. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  609. financeName: thisdata.financeName, //财务名称
  610. financeMobile: thisdata.financeMobile, //财务电话
  611. nowFinance: thisdata.nowFinance, //财务名称
  612. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  613. depName: thisdata.depName,
  614. outsource: thisdata.outsource == 0 ? "否" : "是",
  615. deleteSign:thisdata.deleteSign,
  616. });
  617. }
  618. }.bind(this),
  619. }).always(
  620. function () {
  621. this.setState({
  622. loading: false,
  623. });
  624. }.bind(this)
  625. );
  626. },
  627. //项目列表
  628. xiangmu(orderNos) {
  629. $.ajax({
  630. method: "get",
  631. dataType: "json",
  632. crossDomain: false,
  633. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  634. data: {
  635. orderNo: orderNos,
  636. },
  637. success: function (data) {
  638. let theArr = [];
  639. if (data.error.length || data.data.list == "") {
  640. if (data.error && data.error.length) {
  641. message.warning(data.error[0].message);
  642. }
  643. } else {
  644. for (let i = 0; i < data.data.length; i++) {
  645. let thisdata = data.data[i];
  646. thisdata.key = i;
  647. thisdata.sort = thisdata.cSort;
  648. theArr.push(thisdata);
  649. }
  650. }
  651. this.setState({
  652. dataSourceX: theArr,
  653. });
  654. }.bind(this),
  655. }).always(
  656. function () {
  657. this.setState({
  658. loading: false,
  659. });
  660. }.bind(this)
  661. );
  662. },
  663. rizhi() {
  664. this.setState({
  665. loading: true,
  666. });
  667. $.ajax({
  668. method: "get",
  669. dataType: "json",
  670. crossDomain: false,
  671. url: "/api/admin/newOrder/selectOrderLog",
  672. data: {
  673. orderNo: this.state.orderNo,
  674. },
  675. success: function (data) {
  676. let theArr = [];
  677. let thisData = data.data;
  678. if (!thisData.length) {
  679. if (data.error && data.error.length) {
  680. message.warning(data.error[0].message);
  681. }
  682. thisData = {};
  683. } else {
  684. for (let i = 0; i < data.data.length; i++) {
  685. let thisdata = data.data[i];
  686. theArr.push({
  687. processName: thisdata.processName,
  688. adminName: thisdata.adminName,
  689. createDate: thisdata.createDate,
  690. remarks: thisdata.remarks,
  691. });
  692. }
  693. }
  694. this.setState({
  695. dataSourcerizhi: theArr,
  696. });
  697. }.bind(this),
  698. }).always(
  699. function () {
  700. this.setState({
  701. loading: false,
  702. });
  703. }.bind(this)
  704. );
  705. },
  706. // 拆分详细
  707. showRes(record) {
  708. this.setState({
  709. resVisible: true,
  710. resRecord: record,
  711. });
  712. },
  713. resCancel() {
  714. this.setState({
  715. resVisible: false,
  716. });
  717. },
  718. getOrderLog() {
  719. this.setState({
  720. rizhivisible: true,
  721. });
  722. this.rizhi();
  723. },
  724. closeOrderLog() {
  725. this.setState({
  726. rizhivisible: false,
  727. });
  728. },
  729. //节点列表
  730. jiedian(orderNos) {
  731. $.ajax({
  732. method: "get",
  733. dataType: "json",
  734. crossDomain: false,
  735. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  736. data: {
  737. orderNo: orderNos,
  738. },
  739. success: function (data) {
  740. let theArr = [];
  741. let thisData = [];
  742. if (data.error.length || data.data.list == "") {
  743. if (data.error && data.error.length) {
  744. message.warning(data.error[0].message);
  745. }
  746. } else {
  747. for (let i = 0; i < data.data.length; i++) {
  748. thisData = data.data[i];
  749. theArr.push({
  750. key: i,
  751. dunSubject: thisData.dunSubject
  752. ? thisData.dunSubject.toString()
  753. : "", //催款科目
  754. id: thisData.id, //节点Id
  755. money: thisData.money, //催款金额
  756. dunStatus: thisData.dunStatus, //催款状态
  757. });
  758. }
  759. this.setState({
  760. contactList: theArr,
  761. });
  762. }
  763. }.bind(this),
  764. }).always(
  765. function () {
  766. this.setState({
  767. loading: false,
  768. });
  769. }.bind(this)
  770. );
  771. },
  772. //查看催款节点
  773. jiedianNew(orderNos) {
  774. $.ajax({
  775. method: "get",
  776. dataType: "json",
  777. crossDomain: false,
  778. url:
  779. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  780. data: {
  781. orderNo: orderNos,
  782. },
  783. success: function (data) {
  784. if (data.error && data.error.length) {
  785. message.warning(data.error[0].message);
  786. } else {
  787. let theArr = [];
  788. let thisData = [];
  789. let arr = data.data || [];
  790. let totalCui = 0;
  791. for (let i = 0; i < arr.length; i++) {
  792. thisData = arr[i];
  793. totalCui += +thisData.money;
  794. theArr.push({
  795. key: i,
  796. dunSubject: thisData.dunSubject
  797. ? thisData.dunSubject.toString()
  798. : "", //催款科目
  799. id: thisData.id, //节点Id
  800. money: thisData.money, //催款金额
  801. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  802. commodityName: thisData.commodityName,
  803. projectType: thisData.projectType,
  804. dunTypeName: thisData.dunTypeName,
  805. status: thisData.status,
  806. waitDay: thisData.waitDay,
  807. effectiveCount: thisData.effectiveCount,
  808. startDate: thisData.startDate,
  809. dunType: thisData.dunType,
  810. appropriationRatio: thisData.appropriationRatio,
  811. customizeName: thisData.customizeName,
  812. customizeTimes: thisData.customizeTimes,
  813. tid: thisData.tid,
  814. });
  815. }
  816. if (!totalCui) {
  817. totalCui = 0;
  818. }
  819. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  820. this.setState({
  821. contactListNew: theArr,
  822. totalCui,
  823. });
  824. }
  825. }.bind(this),
  826. }).always(
  827. function () {
  828. this.setState({
  829. loading: false,
  830. });
  831. }.bind(this)
  832. );
  833. },
  834. //审核通过
  835. examOk() {
  836. if (this.state.remarks == "") {
  837. message.warning("请填写备注信息");
  838. return;
  839. }
  840. if (this.state.flag) return;
  841. this.setState({
  842. flag: true,
  843. loading: true,
  844. });
  845. $.ajax({
  846. method: "post",
  847. dataType: "json",
  848. crossDomain: false,
  849. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  850. data: {
  851. orderNo: this.state.orderNo,
  852. orderStatus: 2,
  853. reason: this.state.reason,
  854. },
  855. success: function (data) {
  856. if (data.error.length || data.data.list == "") {
  857. if (data.error && data.error.length) {
  858. message.warning(data.error[0].message);
  859. this.setState({
  860. flag: false,
  861. });
  862. }
  863. } else {
  864. message.success("该订单已通过审核~");
  865. this.setState({
  866. visible: false,
  867. flag: false,
  868. agreeVisible: false,
  869. });
  870. this.reset();
  871. }
  872. }.bind(this),
  873. }).always(
  874. function () {
  875. this.setState({
  876. loading: false,
  877. });
  878. }.bind(this)
  879. );
  880. },
  881. //通过发给外包
  882. outsourcing() {
  883. if (this.state.flag) return;
  884. this.setState({
  885. flag: true,
  886. loading: true,
  887. });
  888. $.ajax({
  889. method: "post",
  890. dataType: "json",
  891. crossDomain: false,
  892. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  893. data: {
  894. orderNo: this.state.orderNo,
  895. orderStatus: 2,
  896. outsource: 1,
  897. },
  898. success: function (data) {
  899. if (data.error.length || data.data.list == "") {
  900. if (data.error && data.error.length) {
  901. message.warning(data.error[0].message);
  902. this.setState({
  903. flag: false,
  904. });
  905. }
  906. } else {
  907. message.success("该订单已通过审核~");
  908. this.setState({
  909. visible: false,
  910. flag: false,
  911. });
  912. this.reset();
  913. }
  914. }.bind(this),
  915. }).always(
  916. function () {
  917. this.setState({
  918. loading: false,
  919. });
  920. }.bind(this)
  921. );
  922. },
  923. //审核不通过
  924. examOks() {
  925. this.setState({
  926. loading: true,
  927. });
  928. this.setState({
  929. aloading: true,
  930. });
  931. $.ajax({
  932. method: "post",
  933. dataType: "json",
  934. crossDomain: false,
  935. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  936. data: {
  937. orderNo: this.state.orderNo,
  938. orderStatus: 3,
  939. reason: this.state.reason,
  940. },
  941. success: function (data) {
  942. if (data.error.length || data.data.list == "") {
  943. if (data.error && data.error.length) {
  944. message.warning(data.error[0].message);
  945. this.setState({
  946. aloading: true,
  947. loading: false,
  948. });
  949. }
  950. } else {
  951. message.success("该订单已被拒绝~");
  952. this.setState({
  953. visible: false,
  954. aloading: false,
  955. noVisible: false,
  956. reason: "",
  957. loading: false,
  958. });
  959. this.reset();
  960. }
  961. }.bind(this),
  962. }).always(
  963. function () {
  964. this.setState({
  965. loading: false,
  966. });
  967. }.bind(this)
  968. );
  969. },
  970. //点击拒绝
  971. examNo() {
  972. this.setState({
  973. noVisible: true,
  974. });
  975. },
  976. callback(key) {
  977. let url = window.location.href.substring(7);
  978. this.setState({
  979. activeKey: key,
  980. });
  981. if (this.state.pictureUrl.length) {
  982. let picArr = [];
  983. this.state.pictureUrl.map(function (item) {
  984. if (
  985. item.response &&
  986. item.response.data &&
  987. item.response.data.length
  988. ) {
  989. picArr.push(item.response.data);
  990. }
  991. });
  992. }
  993. if (key === "2") {
  994. this.setState({
  995. loading: true,
  996. });
  997. $.ajax({
  998. method: "get",
  999. dataType: "json",
  1000. crossDomain: false,
  1001. url:
  1002. globalConfig.context +
  1003. "/api/admin/outsourceOrg/orderOutsourceDtails",
  1004. data: {
  1005. orderNo: this.state.orderNo,
  1006. },
  1007. success: function (data) {
  1008. if (data.data) {
  1009. let thisdata = data.data;
  1010. this.setState({
  1011. id: thisdata.id,
  1012. createTimes: thisdata.createTimes,
  1013. auditTimes: thisdata.auditTimes,
  1014. remarks: thisdata.remarks,
  1015. attachmentUrl: thisdata.attachmentUrl
  1016. ? splitUrl(
  1017. thisdata.attachmentUrl,
  1018. ",",
  1019. globalConfig.avatarHost + "/upload",
  1020. url
  1021. )
  1022. : [],
  1023. fileUrl: thisdata.attachmentUrl
  1024. ? splitUrl(
  1025. thisdata.attachmentUrl,
  1026. ",",
  1027. globalConfig.avatarHost + "/upload",
  1028. url
  1029. )
  1030. : [],
  1031. pictureUrl: thisdata.pictureUrl
  1032. ? splitUrl(
  1033. thisdata.pictureUrl,
  1034. ",",
  1035. globalConfig.avatarHost + "/upload",
  1036. url
  1037. )
  1038. : [], //图片地址
  1039. amount: thisdata.amount,
  1040. companyName: thisdata.companyName,
  1041. outsourceRemarks: thisdata.outsourceRemarks,
  1042. unitNumber: thisdata.unitNumber,
  1043. unitPrice: thisdata.unitPrice,
  1044. });
  1045. }
  1046. }.bind(this),
  1047. }).always(
  1048. function () {
  1049. this.setState({
  1050. loading: false,
  1051. });
  1052. }.bind(this)
  1053. );
  1054. }
  1055. },
  1056. getUrl(url) {
  1057. let theorgCodeUrl = [];
  1058. if (url.length) {
  1059. let picArr = [];
  1060. url.map(function (item) {
  1061. if (
  1062. item.response &&
  1063. item.response.data &&
  1064. item.response.data.length
  1065. ) {
  1066. picArr.push(item.response.data);
  1067. }
  1068. });
  1069. theorgCodeUrl = picArr.join(",");
  1070. }
  1071. return theorgCodeUrl;
  1072. },
  1073. sureOut() {
  1074. this.setState({
  1075. loading: true,
  1076. });
  1077. if (!this.state.companyName) {
  1078. message.warning("公司名称不能为空");
  1079. return;
  1080. }
  1081. if (!this.state.unitPrice) {
  1082. message.warning("单价不能为空");
  1083. return;
  1084. }
  1085. if (moneyVerify(this.state.unitPrice)) {
  1086. return;
  1087. }
  1088. if (!this.state.unitNumber) {
  1089. message.warning("数量不能为空");
  1090. return;
  1091. }
  1092. if (!this.state.amount) {
  1093. message.warning("总金额不能为空");
  1094. return;
  1095. }
  1096. if (moneyVerify(this.state.amount)) {
  1097. return;
  1098. }
  1099. if (!this.state.outsourceRemarks) {
  1100. message.warning("备注不能为空");
  1101. return;
  1102. }
  1103. if (this.state.pictureUrl.length === 0) {
  1104. message.warning("合同扫描件不能为空");
  1105. return;
  1106. }
  1107. $.ajax({
  1108. method: "POST",
  1109. dataType: "json",
  1110. crossDomain: false,
  1111. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsource",
  1112. data: {
  1113. id: this.state.id,
  1114. orderNo: this.state.orderNo,
  1115. companyName: this.state.companyName,
  1116. amount: this.state.amount,
  1117. outsourceRemarks: this.state.outsourceRemarks,
  1118. unitNumber: this.state.unitNumber,
  1119. unitPrice: this.state.unitPrice,
  1120. attachmentUrl: this.getUrl(this.state.attachmentUrl).length
  1121. ? this.getUrl(this.state.attachmentUrl)
  1122. : "",
  1123. orderStatus: 2,
  1124. pictureUrl: this.getUrl(this.state.pictureUrl).length
  1125. ? this.getUrl(this.state.pictureUrl)
  1126. : "",
  1127. },
  1128. }).done(
  1129. function (data) {
  1130. this.setState({
  1131. loading: false,
  1132. });
  1133. if (!data.error.length) {
  1134. message.success("发起成功!");
  1135. this.outReset();
  1136. this.visitCancel();
  1137. } else {
  1138. message.warning(data.error[0].message);
  1139. }
  1140. }.bind(this)
  1141. );
  1142. },
  1143. //关闭输入理由框
  1144. noCancel() {
  1145. this.setState({
  1146. noVisible: false,
  1147. aloading: false,
  1148. reason: "",
  1149. });
  1150. },
  1151. //搜索
  1152. search() {
  1153. this.setState({
  1154. //signBillVisible:false
  1155. });
  1156. this.loadData();
  1157. },
  1158. //重置
  1159. reset() {
  1160. this.setState({
  1161. signBillVisible: false,
  1162. });
  1163. this.state.orderNo = "";
  1164. this.state.customerName = "";
  1165. this.state.releaseDate[0] = undefined;
  1166. this.state.releaseDate[1] = undefined;
  1167. this.state.approval = undefined;
  1168. this.state.approvalSearch = undefined;
  1169. this.state.amountStatus = undefined;
  1170. this.loadData(1);
  1171. },
  1172. outReset() {
  1173. this.setState({
  1174. companyName: "",
  1175. amount: "",
  1176. unitPrice: "",
  1177. unitNumber: "",
  1178. outsourceRemarks: "",
  1179. attachmentUrl: [],
  1180. pictureUrl: [],
  1181. });
  1182. },
  1183. resets() {
  1184. this.state.orderNo = "";
  1185. this.state.customerName = "";
  1186. this.state.releaseDate[0] = undefined;
  1187. this.state.releaseDate[1] = undefined;
  1188. },
  1189. getOrgCodeUrl(e) {
  1190. this.setState({ pictureUrl: e });
  1191. },
  1192. //关闭详情
  1193. visitCancel() {
  1194. this.setState(
  1195. {
  1196. visible: false,
  1197. },
  1198. () => {
  1199. this.setState({
  1200. activeKey: "1",
  1201. });
  1202. }
  1203. );
  1204. this.resets();
  1205. this.loadData();
  1206. },
  1207. visitOk() {
  1208. this.setState({
  1209. visible: false,
  1210. });
  1211. this.resets();
  1212. },
  1213. showDeleteConfirm(fn) {
  1214. confirm({
  1215. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  1216. content: (
  1217. <p style={{ fontWeight: 900, color: "red" }}>
  1218. 当前订单为外包单,您确定修改为普通订单?
  1219. </p>
  1220. ),
  1221. okText: "确定",
  1222. okType: "danger",
  1223. cancelText: "取消",
  1224. onOk() {
  1225. fn();
  1226. },
  1227. onCancel() {},
  1228. });
  1229. },
  1230. downImg() {
  1231. let num = 0;
  1232. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1233. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1234. num = i;
  1235. }
  1236. }
  1237. if (num == this.state.orgCodeUrl.length - 1) {
  1238. return message.warning("已经是最后一张了哦");
  1239. }
  1240. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1241. this.setState({
  1242. previewImage: this.state.previewImage,
  1243. rotateDeg: 0,
  1244. });
  1245. },
  1246. upImg() {
  1247. let num = 0;
  1248. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1249. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1250. num = i;
  1251. }
  1252. }
  1253. if (num == 0) {
  1254. return message.warning("已经是第一张了哦");
  1255. }
  1256. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1257. this.setState({
  1258. previewImage: this.state.previewImage,
  1259. rotateDeg: 0,
  1260. });
  1261. },
  1262. rotate() {
  1263. let rotateDeg = this.state.rotateDeg + 90;
  1264. this.setState({
  1265. rotateDeg,
  1266. });
  1267. },
  1268. downImgs() {
  1269. let num = 0;
  1270. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1271. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1272. num = i;
  1273. }
  1274. }
  1275. if (num == this.state.replenishUrl.length - 1) {
  1276. return message.warning("已经是最后一张了哦");
  1277. }
  1278. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1279. this.setState({
  1280. previewImage: this.state.previewImage,
  1281. rotateDeg: 0,
  1282. });
  1283. },
  1284. upImgs() {
  1285. let num = 0;
  1286. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1287. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1288. num = i;
  1289. }
  1290. }
  1291. if (num == 0) {
  1292. return message.warning("已经是第一张了哦");
  1293. }
  1294. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1295. this.setState({
  1296. previewImage: this.state.previewImage,
  1297. rotateDeg: 0,
  1298. });
  1299. },
  1300. rotates() {
  1301. let rotateDeg = this.state.rotateDeg + 90;
  1302. this.setState({
  1303. rotateDeg,
  1304. });
  1305. },
  1306. changeList(arr) {
  1307. const newArr = [];
  1308. this.state.columns.forEach(item => {
  1309. arr.forEach(val => {
  1310. if (val === item.title) {
  1311. newArr.push(item);
  1312. }
  1313. });
  1314. });
  1315. this.setState({
  1316. changeList: newArr
  1317. });
  1318. },
  1319. render() {
  1320. const formItemLayout = {
  1321. labelCol: { span: 8 },
  1322. wrapperCol: { span: 14 },
  1323. };
  1324. const FormItem = Form.Item;
  1325. const { TabPane } = Tabs;
  1326. const { TextArea } = Input;
  1327. const { RangePicker } = DatePicker;
  1328. const cuiDataList = this.state.contactList || [];
  1329. return (
  1330. <div className="user-content">
  1331. {this.state.resVisible ? (
  1332. <ResolutionDetail
  1333. cancel={this.resCancel}
  1334. detail={this.state.resRecord}
  1335. visible={this.state.resVisible}
  1336. id={this.state.resRecord.orderNo}
  1337. />
  1338. ) : (
  1339. ""
  1340. )}
  1341. <ShowModalDiv ShowModal={this.state.showModal} />
  1342. <div className="content-title">
  1343. <span>订单审核</span>
  1344. </div>
  1345. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1346. <TabPane tab="搜索" key="1">
  1347. <div className="user-search">
  1348. <Input
  1349. placeholder="客户名称"
  1350. style={{
  1351. width: "150px",
  1352. marginBottom: "10px",
  1353. marginLeft: 10,
  1354. }}
  1355. value={this.state.customerName}
  1356. onChange={(e) => {
  1357. this.setState({ customerName: e.target.value });
  1358. }}
  1359. />
  1360. <Input
  1361. placeholder="订单编号"
  1362. style={{ width: "150px" }}
  1363. value={this.state.orderNoSearch}
  1364. onChange={(e) => {
  1365. this.setState({ orderNoSearch: e.target.value });
  1366. }}
  1367. />
  1368. <Select
  1369. style={{ width: 120 }}
  1370. placeholder="特批状态"
  1371. value={this.state.approvalSearch}
  1372. onChange={(e) => {
  1373. this.setState({
  1374. approvalSearch: e,
  1375. });
  1376. }}
  1377. >
  1378. <Option value="0">非特批</Option>
  1379. <Option value="1">特批</Option>
  1380. </Select>
  1381. <Select
  1382. style={{ width: 120 }}
  1383. placeholder="签单金额"
  1384. value={this.state.amountStatus}
  1385. onChange={(e) => {
  1386. this.setState({
  1387. amountStatus: e,
  1388. });
  1389. }}
  1390. >
  1391. <Option value="0">10万元以下</Option>
  1392. <Option value="1">10~20万元</Option>
  1393. <Option value="2">20~30万元</Option>
  1394. <Option value="3">30~40万元</Option>
  1395. <Option value="4">40万元以上</Option>
  1396. </Select>
  1397. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1398. <RangePicker
  1399. value={[
  1400. this.state.releaseDate[0]
  1401. ? moment(this.state.releaseDate[0])
  1402. : null,
  1403. this.state.releaseDate[1]
  1404. ? moment(this.state.releaseDate[1])
  1405. : null,
  1406. ]}
  1407. onChange={(data, dataString) => {
  1408. this.setState({ releaseDate: dataString });
  1409. }}
  1410. />
  1411. <Button
  1412. type="primary"
  1413. onClick={this.search}
  1414. style={{ marginLeft: "10px" }}
  1415. >
  1416. 搜索
  1417. </Button>
  1418. <Button onClick={this.reset}>重置</Button>
  1419. </div>
  1420. </TabPane>
  1421. <TabPane tab="更改表格显示数据" key="2">
  1422. <div style={{ marginLeft: 10 }}>
  1423. <ChooseList
  1424. columns={this.state.columns}
  1425. changeFn={this.changeList}
  1426. changeList={this.state.changeList}
  1427. top={55}
  1428. margin={11}
  1429. />
  1430. </div>
  1431. </TabPane>
  1432. </Tabs>
  1433. <div className="patent-table">
  1434. <Spin spinning={this.state.loading}>
  1435. <Table
  1436. columns={
  1437. this.state.changeList
  1438. ? this.state.changeList
  1439. : this.state.columns
  1440. }
  1441. dataSource={this.state.dataSource}
  1442. pagination={this.state.pagination}
  1443. onRowClick={this.tableRowClick}
  1444. bordered
  1445. size="small"
  1446. />
  1447. </Spin>
  1448. {this.state.visible ? <Modal
  1449. maskClosable={false}
  1450. className="customeDetails"
  1451. footer=""
  1452. width="900px"
  1453. visible={this.state.visible}
  1454. onOk={this.visitOk}
  1455. onCancel={this.visitCancel}
  1456. >
  1457. <Tabs activeKey={this.state.activeKey} onChange={this.callback}>
  1458. <TabPane tab="订单详情" key="1">
  1459. <Form
  1460. layout="horizontal"
  1461. onSubmit={this.handleSubmit}
  1462. id="demand-form"
  1463. style={{ paddingBottom: "40px" }}
  1464. >
  1465. <Spin spinning={this.state.loading}>
  1466. <div className="clearfix">
  1467. <div style={{position:"absolute",top:'-30px',left:'92px',zIndex:10000}}>
  1468. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  1469. </div>
  1470. <FormItem
  1471. className="half-item"
  1472. {...formItemLayout}
  1473. label="订单编号"
  1474. >
  1475. <span>{this.state.orderNo}</span>
  1476. </FormItem>
  1477. <FormItem
  1478. className="half-item"
  1479. {...formItemLayout}
  1480. label="合同编号"
  1481. >
  1482. <span>{this.state.contractNo}</span>
  1483. </FormItem>
  1484. <FormItem
  1485. className="half-item"
  1486. {...formItemLayout}
  1487. label="客户名称"
  1488. >
  1489. <span>{this.state.userName}</span>
  1490. <EnterpriseNameChange
  1491. type='journal'
  1492. style={{ marginLeft: 10 }}
  1493. enterpriseId={this.state.orderUid}/>
  1494. </FormItem>
  1495. <FormItem
  1496. className="half-item"
  1497. {...formItemLayout}
  1498. label="合同签订时间"
  1499. >
  1500. <span>{this.state.signDate}</span>
  1501. </FormItem>
  1502. <FormItem
  1503. className="half-item"
  1504. {...formItemLayout}
  1505. label="流程状态"
  1506. >
  1507. <span>
  1508. {getProcessStatus(this.state.processStatus)}
  1509. </span>
  1510. </FormItem>
  1511. <FormItem
  1512. className="half-item"
  1513. {...formItemLayout}
  1514. label="结算状态"
  1515. >
  1516. <span>
  1517. {getLiquidationStatus(this.state.liquidationStatus)}
  1518. </span>
  1519. </FormItem>
  1520. <FormItem
  1521. className="half-item"
  1522. {...formItemLayout}
  1523. label="企业联系人"
  1524. >
  1525. <span>{this.state.contacts}</span>
  1526. </FormItem>
  1527. <FormItem
  1528. className="half-item"
  1529. {...formItemLayout}
  1530. label="联系人电话"
  1531. >
  1532. <span>{this.state.contactMobile}</span>
  1533. </FormItem>
  1534. <FormItem
  1535. className="half-item"
  1536. {...formItemLayout}
  1537. label="企业法人"
  1538. >
  1539. <span>{this.state.legalPerson}</span>
  1540. </FormItem>
  1541. <FormItem
  1542. className="half-item"
  1543. {...formItemLayout}
  1544. label="法人电话"
  1545. >
  1546. <span>{this.state.legalPersonTel}</span>
  1547. </FormItem>
  1548. <FormItem
  1549. className="half-item"
  1550. {...formItemLayout}
  1551. label="签单金额(万元)"
  1552. >
  1553. <span>{this.state.totalAmount}</span>
  1554. </FormItem>
  1555. <FormItem
  1556. className="half-item"
  1557. {...formItemLayout}
  1558. label="首付金额(万元)"
  1559. >
  1560. <span>{this.state.firstAmount}</span>
  1561. </FormItem>
  1562. <FormItem
  1563. className="half-item"
  1564. {...formItemLayout}
  1565. label="特批立项"
  1566. >
  1567. <span>{getApprovedState(this.state.approval)}</span>
  1568. </FormItem>
  1569. <FormItem
  1570. className="half-item"
  1571. {...formItemLayout}
  1572. label="已收款项(万元)"
  1573. >
  1574. <span>{this.state.settlementAmount}</span>
  1575. </FormItem>
  1576. <FormItem
  1577. className="half-item"
  1578. {...formItemLayout}
  1579. label="订单部门"
  1580. >
  1581. <span>{this.state.depName}</span>
  1582. </FormItem>
  1583. <FormItem
  1584. className="half-item"
  1585. {...formItemLayout}
  1586. label="是否外包"
  1587. >
  1588. {this.state.outsource}
  1589. </FormItem>
  1590. <div className="clearfix">
  1591. <FormItem
  1592. labelCol={{ span: 4 }}
  1593. wrapperCol={{ span: 16 }}
  1594. label="订单留言"
  1595. >
  1596. <p style={{ width: 500, wordWrap: "break-word" }}>
  1597. {this.state.orderRemarks}
  1598. </p>
  1599. </FormItem>
  1600. </div>
  1601. <div className="clearfix">
  1602. <div>
  1603. <FormItem
  1604. labelCol={{ span: 4 }}
  1605. wrapperCol={{ span: 18 }}
  1606. label="合同扫描件"
  1607. >
  1608. {/*<Upload*/}
  1609. {/* className="demandDetailShow-upload"*/}
  1610. {/* listType="picture-card"*/}
  1611. {/* fileList={this.state.orgCodeUrl}*/}
  1612. {/* onPreview={(file) => {*/}
  1613. {/* this.setState({*/}
  1614. {/* previewImage: file.url || file.thumbUrl,*/}
  1615. {/* previewVisible: true,*/}
  1616. {/* });*/}
  1617. {/* }}*/}
  1618. {/*/>*/}
  1619. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1620. {this.state.orgCodeUrl && this.state.visible ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/> : <div/>}
  1621. </div>
  1622. {this.state.previewVisible ? <Modal
  1623. maskClosable={false}
  1624. footer={null}
  1625. width={"50%"}
  1626. visible={this.state.previewVisible}
  1627. onCancel={() => {
  1628. this.setState({
  1629. previewVisible: false,
  1630. rotateDeg: 0,
  1631. });
  1632. }}
  1633. >
  1634. <img
  1635. alt=""
  1636. style={{
  1637. width: "100%",
  1638. transform: `rotate(${this.state.rotateDeg}deg)`,
  1639. }}
  1640. src={this.state.previewImage || ""}
  1641. />
  1642. <Button
  1643. onClick={this.rotate}
  1644. style={{
  1645. position: "relative",
  1646. left: "50%",
  1647. transform: "translateX(-50%)",
  1648. }}
  1649. >
  1650. 旋转
  1651. </Button>
  1652. <Button
  1653. onClick={this.upImg}
  1654. style={{
  1655. position: "absolute",
  1656. left: -81,
  1657. top: "50%",
  1658. transform: "translateY(-50%)",
  1659. }}
  1660. >
  1661. 上一张
  1662. </Button>
  1663. <Button
  1664. onClick={this.downImg}
  1665. style={{
  1666. position: "absolute",
  1667. right: -81,
  1668. top: "50%",
  1669. transform: "translateY(-50%)",
  1670. }}
  1671. >
  1672. 下一张
  1673. </Button>
  1674. </Modal> : <div/>}
  1675. <Button
  1676. style={{
  1677. float: "right",
  1678. marginRight: "140px",
  1679. marginTop: "20px",
  1680. }}
  1681. onClick={this.getOrderLog}
  1682. >
  1683. 查看订单日志
  1684. </Button>
  1685. </FormItem>
  1686. <FormItem
  1687. labelCol={{ span: 4 }}
  1688. wrapperCol={{ span: 18 }}
  1689. label="补充协议"
  1690. >
  1691. {/*<Upload*/}
  1692. {/* className="demandDetailShow-upload"*/}
  1693. {/* listType="picture-card"*/}
  1694. {/* fileList={this.state.replenishUrl}*/}
  1695. {/* onPreview={(file) => {*/}
  1696. {/* this.setState({*/}
  1697. {/* previewImage: file.url || file.thumbUrl,*/}
  1698. {/* previewVisibles: true,*/}
  1699. {/* });*/}
  1700. {/* }}*/}
  1701. {/*/>*/}
  1702. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1703. {this.state.replenishUrl && this.state.visible ? <ImgList domId={'examine1'} fileList={this.state.replenishUrl} ItemWidth={'96px'}/> : <div/>}
  1704. </div>
  1705. {this.state.previewVisibles ? <Modal
  1706. maskClosable={false}
  1707. footer={null}
  1708. width={"50%"}
  1709. visible={this.state.previewVisibles}
  1710. onCancel={() => {
  1711. this.setState({
  1712. previewVisibles: false,
  1713. rotateDeg: 0,
  1714. });
  1715. }}
  1716. >
  1717. <img
  1718. alt=""
  1719. style={{
  1720. width: "100%",
  1721. transform: `rotate(${this.state.rotateDeg}deg)`,
  1722. }}
  1723. src={this.state.previewImage || ""}
  1724. />
  1725. <Button
  1726. onClick={this.rotate}
  1727. style={{
  1728. position: "relative",
  1729. left: "50%",
  1730. transform: "translateX(-50%)",
  1731. }}
  1732. >
  1733. 旋转
  1734. </Button>
  1735. <Button
  1736. onClick={this.upImgs}
  1737. style={{
  1738. position: "absolute",
  1739. left: -81,
  1740. top: "50%",
  1741. transform: "translateY(-50%)",
  1742. }}
  1743. >
  1744. 上一张
  1745. </Button>
  1746. <Button
  1747. onClick={this.downImgs}
  1748. style={{
  1749. position: "absolute",
  1750. right: -81,
  1751. top: "50%",
  1752. transform: "translateY(-50%)",
  1753. }}
  1754. >
  1755. 下一张
  1756. </Button>
  1757. </Modal> : <div/>}
  1758. </FormItem>
  1759. </div>
  1760. </div>
  1761. <div className="clearfix">
  1762. <FormItem
  1763. className="half-item"
  1764. {...formItemLayout}
  1765. label="订单负责人"
  1766. >
  1767. <span>{this.state.salesmanName}</span>
  1768. </FormItem>
  1769. <FormItem
  1770. className="half-item"
  1771. {...formItemLayout}
  1772. label="订单负责人电话"
  1773. >
  1774. <span>{this.state.salesmanMobile}</span>
  1775. </FormItem>
  1776. </div>
  1777. <div className="clearfix">
  1778. <FormItem
  1779. className="half-item"
  1780. {...formItemLayout}
  1781. label="当前财务负责人"
  1782. >
  1783. <span>{this.state.nowFinance}</span>
  1784. </FormItem>
  1785. <FormItem
  1786. className="half-item"
  1787. {...formItemLayout}
  1788. label="当前财务负责人电话"
  1789. >
  1790. <span>{this.state.nowFinanceMobile}</span>
  1791. </FormItem>
  1792. </div>
  1793. <div className="clearfix">
  1794. <FormItem
  1795. className="half-item"
  1796. {...formItemLayout}
  1797. style={{ opacity: ".5" }}
  1798. label="原订单负责人"
  1799. >
  1800. <span>{this.state.oldSalesmanName}</span>
  1801. </FormItem>
  1802. <FormItem
  1803. className="half-item"
  1804. {...formItemLayout}
  1805. style={{ opacity: ".5" }}
  1806. label="原订单负责人电话"
  1807. >
  1808. <span>{this.state.oldSalesmanMobile}</span>
  1809. </FormItem>
  1810. </div>
  1811. <div className="clearfix">
  1812. <FormItem
  1813. className="half-item"
  1814. style={{ opacity: ".5" }}
  1815. {...formItemLayout}
  1816. label="实际财务操作人"
  1817. >
  1818. <span>{this.state.financeName}</span>
  1819. </FormItem>
  1820. <FormItem
  1821. className="half-item"
  1822. {...formItemLayout}
  1823. style={{ opacity: ".5" }}
  1824. label="实际财务操作人电话"
  1825. >
  1826. <span>{this.state.financeMobile}</span>
  1827. </FormItem>
  1828. </div>
  1829. {/* 协单人员 */}
  1830. <OrderCoor orderNo={this.state.orderNos}/>
  1831. <div>
  1832. <span
  1833. style={{ marginLeft: "50px", fontSize: "20px" }}
  1834. >
  1835. 项目业务
  1836. </span>
  1837. {this.state.processStatus == 0 ? (
  1838. <Button
  1839. type="primary"
  1840. onClick={this.addDetailed}
  1841. style={{
  1842. float: "right",
  1843. marginRight: "50px",
  1844. marginBottom: "15px",
  1845. }}
  1846. >
  1847. 添加项目明细
  1848. </Button>
  1849. ) : (
  1850. ""
  1851. )}
  1852. </div>
  1853. <div className="patent-table">
  1854. <Spin spinning={this.state.loading}>
  1855. <Table
  1856. columns={this.state.columnsX}
  1857. dataSource={this.state.dataSourceX}
  1858. pagination={this.state.paginations}
  1859. onRowClick={this.tableRowClickX}
  1860. bordered
  1861. size="small"
  1862. />
  1863. </Spin>
  1864. </div>
  1865. <div>
  1866. <span
  1867. style={{ marginLeft: "50px", fontSize: "20px" }}
  1868. >
  1869. 催款节点
  1870. </span>
  1871. <span
  1872. style={{
  1873. display: cuiDataList.length
  1874. ? "none"
  1875. : "inline-block",
  1876. marginLeft: 10,
  1877. color: "red",
  1878. }}
  1879. >
  1880. 金额总计(万元): {this.state.totalCui}
  1881. </span>
  1882. {this.state.processStatus == 0 ? (
  1883. <Button
  1884. type="primary"
  1885. onClick={this.addcontact}
  1886. style={{
  1887. float: "right",
  1888. marginRight: "50px",
  1889. marginBottom: "15px",
  1890. }}
  1891. >
  1892. 添加催款节点
  1893. </Button>
  1894. ) : (
  1895. ""
  1896. )}
  1897. </div>
  1898. <div className="clearfix">
  1899. <Spin spinning={this.state.loading}>
  1900. <Form layout="horizontal" id="demand-form">
  1901. <Table
  1902. pagination={false}
  1903. bordered
  1904. size="small"
  1905. columns={
  1906. cuiDataList.length
  1907. ? this.state.ContactsLists
  1908. : this.state.ContactsListsNew
  1909. }
  1910. dataSource={
  1911. cuiDataList.length
  1912. ? this.state.contactList
  1913. : this.state.contactListNew
  1914. }
  1915. />
  1916. <Col
  1917. span={24}
  1918. offset={9}
  1919. style={{ marginTop: "15px" }}
  1920. ></Col>
  1921. </Form>
  1922. </Spin>
  1923. </div>
  1924. <div className="addSave" style={{ marginTop: "15px" }}>
  1925. <Button
  1926. type="primary"
  1927. // onClick={this.examOk}
  1928. onClick={() => {
  1929. // if (this.state.outsource == "是") {
  1930. // this.showDeleteConfirm(this.examOk);
  1931. // } else {
  1932. // this.examOk();
  1933. // }
  1934. this.setState({
  1935. agreeVisible: true,
  1936. reason: "",
  1937. });
  1938. }}
  1939. style={{ marginLeft: "200px" }}
  1940. htmlType="submit"
  1941. >
  1942. 通过
  1943. </Button>
  1944. <Button
  1945. type="primary"
  1946. onClick={this.examNo}
  1947. style={{ marginLeft: "50px" }}
  1948. htmlType="submit"
  1949. >
  1950. 驳回
  1951. </Button>
  1952. <Button
  1953. type="ghost"
  1954. onClick={this.visitCancel}
  1955. style={{ marginLeft: "50px" }}
  1956. >
  1957. 取消
  1958. </Button>
  1959. {/*<Button className='warn-button' type="primary" onClick={this.outsourcing} style={{marginLeft:"50px"}}>通过不走总部</Button>
  1960. <p className='hint'>提示:高于总部价格,费用个人承担!</p>*/}
  1961. </div>
  1962. </div>
  1963. </Spin>
  1964. </Form>
  1965. </TabPane>
  1966. {/* <TabPane tab="外包(不走总部)" key="2">
  1967. <Spin spinning={this.state.loading}>
  1968. <div className="clearfix" style={{ marginTop: 10 }}>
  1969. <FormItem
  1970. className="half-item"
  1971. {...formItemLayout}
  1972. label={
  1973. <span>
  1974. <strong style={{ color: "#f00" }}>*</strong>外包公司
  1975. </span>
  1976. }
  1977. >
  1978. <Input
  1979. value={this.state.companyName}
  1980. onChange={(e) => {
  1981. this.setState({
  1982. companyName: e.target.value,
  1983. });
  1984. }}
  1985. placeholder="请填写外包公司名称"
  1986. />
  1987. </FormItem>
  1988. <span className="tip">如多个公司,请用间隔</span>
  1989. </div>
  1990. <div className="clearfix">
  1991. <FormItem
  1992. className="half-item"
  1993. {...formItemLayout}
  1994. label={
  1995. <span>
  1996. <strong style={{ color: "#f00" }}>*</strong>
  1997. 单价(万元)
  1998. </span>
  1999. }
  2000. >
  2001. <Input
  2002. value={this.state.unitPrice}
  2003. onChange={(e) => {
  2004. this.setState({
  2005. unitPrice: e.target.value,
  2006. });
  2007. }}
  2008. placeholder="请填写单价"
  2009. />
  2010. </FormItem>
  2011. </div>
  2012. <div className="clearfix">
  2013. <FormItem
  2014. className="half-item"
  2015. {...formItemLayout}
  2016. label={
  2017. <span>
  2018. <strong style={{ color: "#f00" }}>*</strong>数量(个)
  2019. </span>
  2020. }
  2021. >
  2022. <Input
  2023. value={this.state.unitNumber}
  2024. onChange={(e) => {
  2025. this.setState({
  2026. unitNumber: e.target.value,
  2027. });
  2028. }}
  2029. placeholder="请填写数量"
  2030. />
  2031. </FormItem>
  2032. </div>
  2033. <div className="clearfix">
  2034. <FormItem
  2035. className="half-item"
  2036. {...formItemLayout}
  2037. label={
  2038. <span>
  2039. <strong style={{ color: "#f00" }}>*</strong>
  2040. 总金额(万元)
  2041. </span>
  2042. }
  2043. >
  2044. <Input
  2045. value={this.state.amount}
  2046. onChange={(e) => {
  2047. this.setState({
  2048. amount: e.target.value,
  2049. });
  2050. }}
  2051. placeholder="请填写本次外包公司的价格"
  2052. />
  2053. </FormItem>
  2054. </div>
  2055. <div className="clearfix">
  2056. <FormItem
  2057. className="half-item"
  2058. style={{ height: "auto" }}
  2059. {...formItemLayout}
  2060. label={
  2061. <span>
  2062. <strong style={{ color: "#f00" }}>*</strong>备注
  2063. </span>
  2064. }
  2065. >
  2066. <TextArea
  2067. rows={4}
  2068. value={this.state.outsourceRemarks}
  2069. onChange={(e) => {
  2070. this.setState({
  2071. outsourceRemarks: e.target.value,
  2072. });
  2073. }}
  2074. placeholder="请输入备注"
  2075. />
  2076. </FormItem>
  2077. </div>
  2078. <p
  2079. className="tip"
  2080. style={{
  2081. paddingBottom: "12px",
  2082. width: "240px",
  2083. marginLeft: "145px",
  2084. }}
  2085. >
  2086. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  2087. </p>
  2088. <div className="clearfix">
  2089. <FormItem
  2090. labelCol={{ span: 4 }}
  2091. wrapperCol={{ span: 18 }}
  2092. label={
  2093. <span>
  2094. <strong style={{ color: "#f00" }}>*</strong>
  2095. 合同/协议扫描件
  2096. <span style={{ color: "#f00" }}>(外包合同)</span>
  2097. </span>
  2098. }
  2099. >
  2100. <PicturesWall
  2101. fileList={this.getOrgCodeUrl}
  2102. pictureUrl={this.state.pictureUrl}
  2103. />
  2104. <p>请上传与外包公司签订的合同协议</p>
  2105. <p>图片建议:要清晰。</p>
  2106. </FormItem>
  2107. </div>
  2108. <div className="clearfix">
  2109. <div
  2110. style={{ display: "inline-black", textAlign: "center" }}
  2111. >
  2112. <Button type="primary" onClick={this.sureOut}>
  2113. 确认发起外包,不通过总部
  2114. </Button>
  2115. <p className="tip">提示:高于总部价格,费用个人承担</p>
  2116. </div>
  2117. </div>
  2118. </Spin>
  2119. </TabPane> */}
  2120. </Tabs>
  2121. </Modal> : <div/>}
  2122. {this.state.noVisible ? <Modal
  2123. maskClosable={false}
  2124. visible={this.state.noVisible}
  2125. onOk={this.handleOk}
  2126. onCancel={this.noCancel}
  2127. width="400px"
  2128. title={"拒绝理由"}
  2129. footer=""
  2130. className="admin-desc-content"
  2131. confirmLoading={this.state.confirmLoading}
  2132. >
  2133. <Form layout="horizontal" id="demand-form">
  2134. <Spin spinning={this.state.loading}>
  2135. <div className="clearfix">
  2136. <FormItem
  2137. labelCol={{ span: 4 }}
  2138. wrapperCol={{ span: 16 }}
  2139. label="拒绝理由"
  2140. >
  2141. <Input
  2142. type="textarea"
  2143. placeholder="请输入拒绝理由"
  2144. rows={4}
  2145. value={this.state.reason}
  2146. onChange={(e) => {
  2147. this.setState({ reason: e.target.value });
  2148. }}
  2149. />
  2150. </FormItem>
  2151. </div>
  2152. <div className="clearfix">
  2153. <Button
  2154. className="cancel"
  2155. type="primary"
  2156. onClick={this.examOks}
  2157. style={{ marginLeft: "50px" }}
  2158. htmlType="submit"
  2159. loading={this.state.aloading}
  2160. >
  2161. 确定
  2162. </Button>
  2163. <Button
  2164. className="cancel"
  2165. type="ghost"
  2166. onClick={this.noCancel}
  2167. style={{ marginLeft: "50px" }}
  2168. >
  2169. 取消
  2170. </Button>
  2171. </div>
  2172. </Spin>
  2173. </Form>
  2174. </Modal> : <div/>}
  2175. {this.state.agreeVisible ? <Modal
  2176. maskClosable={false}
  2177. visible={this.state.agreeVisible}
  2178. onOk={(e) => {
  2179. this.setState({
  2180. agreeVisible: false,
  2181. });
  2182. }}
  2183. onCancel={(e) => {
  2184. this.setState({
  2185. agreeVisible: false,
  2186. });
  2187. }}
  2188. width="400px"
  2189. title={"同意备注"}
  2190. footer=""
  2191. className="admin-desc-content"
  2192. confirmLoading={this.state.confirmLoading}
  2193. >
  2194. <Form layout="horizontal" id="demand-form">
  2195. <Spin spinning={this.state.loading}>
  2196. <div className="clearfix">
  2197. <FormItem
  2198. labelCol={{ span: 4 }}
  2199. wrapperCol={{ span: 16 }}
  2200. label="同意理由"
  2201. >
  2202. <Input
  2203. type="textarea"
  2204. placeholder="请输入同意理由"
  2205. rows={4}
  2206. value={this.state.reason}
  2207. onChange={(e) => {
  2208. this.setState({ reason: e.target.value });
  2209. }}
  2210. />
  2211. </FormItem>
  2212. </div>
  2213. <div className="clearfix">
  2214. <Button
  2215. className="cancel"
  2216. type="primary"
  2217. onClick={(e) => {
  2218. if (this.state.outsource == "是") {
  2219. this.showDeleteConfirm(this.examOk);
  2220. } else {
  2221. this.examOk();
  2222. }
  2223. }}
  2224. style={{ marginLeft: "50px" }}
  2225. htmlType="submit"
  2226. loading={this.state.aloading}
  2227. >
  2228. 确定
  2229. </Button>
  2230. <Button
  2231. className="cancel"
  2232. type="ghost"
  2233. onClick={(e) => {
  2234. this.setState({
  2235. agreeVisible: false,
  2236. });
  2237. }}
  2238. style={{ marginLeft: "50px" }}
  2239. >
  2240. 取消
  2241. </Button>
  2242. </div>
  2243. </Spin>
  2244. </Form>
  2245. </Modal> : <div/>}
  2246. {/* <Modal
  2247. visible={this.state.rizhivisible}
  2248. className="admin-desc-content"
  2249. width="800px"
  2250. maskClosable={false}
  2251. title="订单日志"
  2252. footer={null}
  2253. onCancel={this.closeOrderLog}
  2254. >
  2255. <div className="patent-table">
  2256. <Spin spinning={this.state.loading}>
  2257. <Table
  2258. columns={this.state.columnsrizhi}
  2259. dataSource={this.state.dataSourcerizhi}
  2260. pagination={false}
  2261. />
  2262. </Spin>
  2263. </div>
  2264. </Modal> */}
  2265. <OrderRiZi
  2266. dataSourcerizhi={this.state.dataSourcerizhi}
  2267. closeOrderLog={this.closeOrderLog}
  2268. visible={this.state.rizhivisible}
  2269. loading={this.state.loading}
  2270. />
  2271. </div>
  2272. {this.state.addnextVisible && <ProjectDetailsReadOnly
  2273. infor={this.state.dataInfor}
  2274. visible={this.state.addnextVisible}
  2275. onCancel={this.nextCancel}
  2276. />}
  2277. </div>
  2278. );
  2279. },
  2280. })
  2281. );
  2282. export default IntentionCustomer;