examine.jsx 78 KB

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