examine.jsx 77 KB

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