examine.jsx 77 KB

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