approveds.jsx 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041
  1. import React from 'react';
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Select,
  7. Spin,
  8. Table,
  9. message,
  10. DatePicker,
  11. Upload,
  12. Form,
  13. Modal,
  14. Col,
  15. Tag,
  16. Tabs, Tooltip
  17. } from "antd";
  18. import $ from 'jquery/src/ajax';
  19. import ResolutionDetail from "@/resolutionDetail";
  20. import ReactToPrint from "react-to-print";
  21. import moment from 'moment';
  22. import {
  23. getLiquidationStatus,
  24. getApprovedState,
  25. getProcessStatus,
  26. splitUrl,
  27. getjiedian,
  28. getboutique,
  29. getCuikuan,
  30. ShowModal,
  31. getApproval,
  32. getTaskStatus,
  33. getProjectStatus,
  34. getNewOrderStatus,
  35. getInvoiceStatus
  36. } from "@/tools.js";
  37. import './customer.less';
  38. import { ChooseList } from "../orderNew/chooseList";
  39. import ShowModalDiv from "@/showModal.jsx";
  40. import Project from "../../../../component/project";
  41. import ImgList from "../../../common/imgList";
  42. import {getProjectName} from "../../../tools";
  43. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  44. import DepartmentList from "../../../common/departmentList";
  45. import OrderItemStatus from "../../../common/orderItemStatus";
  46. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  47. const { TabPane } = Tabs;
  48. const { TextArea } = Input;
  49. //图片组件
  50. const PicturesWall = React.createClass({
  51. getInitialState() {
  52. return {
  53. previewVisible: false,
  54. previewImage: '',
  55. fileList: [],
  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 {
  82. fileList
  83. } = this.state;
  84. return (
  85. <div style={{ display: "inline-block" }}>
  86. <ImgList
  87. domId={this.props.domId}
  88. uploadConfig={{
  89. action:globalConfig.context + "/api/admin/customer/uploadCustomerImg",
  90. data:{ 'sign': '' },
  91. multiple:true,
  92. listType:"picture-card",
  93. }}
  94. onChange={(infor)=>{
  95. this.handleChange(infor)
  96. }}
  97. fileList={fileList}
  98. />
  99. </div>
  100. );
  101. }
  102. });
  103. const IntentionCustomer = Form.create()(
  104. React.createClass({
  105. loadData(pageNo, pageSize) {
  106. this.setState({
  107. visitModul: false,
  108. loading: true,
  109. ispage: pageNo,
  110. modalVisible: false,
  111. });
  112. $.ajax({
  113. method: "get",
  114. dataType: "json",
  115. crossDomain: false,
  116. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  117. data: {
  118. pageNo: pageNo || 1,
  119. pageSize: pageSize || this.state.pagination.pageSize,
  120. specially: 3, //审核列表
  121. name: this.state.nameSearch, //名称
  122. orderNo: this.state.orderNoSearch, //订单编号
  123. contractNo: this.state.contractNoSearch, //合同编号
  124. depId: this.state.departmenttList, //订单部门
  125. starTime: this.state.releaseDate[0], //开始时间
  126. endTime: this.state.releaseDate[1], //结束时间
  127. approval: this.state.approvalSearch ? this.state.approvalSearch : 0, //审批状态
  128. liquidationStatus: this.state.liquidationStatusSearch, //结算状态
  129. },
  130. success: function (data) {
  131. ShowModal(this);
  132. let theArr = [];
  133. if (data.error.length || data.data.list == "") {
  134. if (data.error && data.error.length) {
  135. message.warning(data.error[0].message);
  136. }
  137. } else {
  138. for (let i = 0; i < data.data.list.length; i++) {
  139. let thisdata = data.data.list[i];
  140. theArr.push({
  141. key: thisdata.orderNo,
  142. orderNo: thisdata.orderNo,
  143. orderType: thisdata.orderType,
  144. orderStatus: thisdata.orderStatus,
  145. salesmanName: thisdata.salesmanName,
  146. processStatus: thisdata.processStatus,
  147. liquidationStatus: thisdata.liquidationStatus,
  148. approval: thisdata.approval,
  149. settlementAmount: thisdata.settlementAmount,
  150. signDate: thisdata.signDate,
  151. companyId: thisdata.companyId,
  152. companyName: thisdata.companyName,
  153. buyerId: thisdata.buyerId,
  154. userName: thisdata.userName,
  155. contractNo: thisdata.contractNo,
  156. createDate: thisdata.createDate,
  157. depName: thisdata.depName,
  158. invoiceAmount: thisdata.invoiceAmount,
  159. totalAmount: thisdata.totalAmount,
  160. financeName: thisdata.financeName,
  161. });
  162. }
  163. this.state.pagination.total = data.data.totalCount;
  164. }
  165. if (data.data && data.data.list && !data.data.list.length) {
  166. this.state.pagination.total = 0;
  167. }
  168. this.setState({
  169. dataSource: theArr,
  170. pageNo: pageNo,
  171. pagination: this.state.pagination,
  172. selectedRowKeys: [],
  173. });
  174. }.bind(this),
  175. }).always(
  176. function () {
  177. this.setState({
  178. loading: false,
  179. });
  180. }.bind(this)
  181. );
  182. },
  183. getInitialState() {
  184. return {
  185. page: 1,
  186. declarationBatch: 1,
  187. dataInfor: {},
  188. releaseDate: [],
  189. selectedRowKeys: [],
  190. rotateDeg: 0,
  191. orgCodeUrl: [],
  192. approvalSearch: "1",
  193. paginations: false,
  194. pagination: {
  195. defaultCurrent: 1,
  196. defaultPageSize: 10,
  197. showQuickJumper: true,
  198. pageSize: 10,
  199. onChange: function (page) {
  200. this.loadData(page);
  201. }.bind(this),
  202. showTotal: function (total) {
  203. return "共" + total + "条数据";
  204. },
  205. },
  206. columnsDate: [
  207. {
  208. title: "编号",
  209. dataIndex: "id",
  210. key: "id",
  211. },
  212. {
  213. title: "订单编号",
  214. dataIndex: "orderno",
  215. key: "orderno",
  216. },
  217. {
  218. title: "开票金额(万元)",
  219. dataIndex: "amount",
  220. key: "amount",
  221. },
  222. {
  223. title: "申请时间",
  224. dataIndex: "createTime",
  225. key: "createTime",
  226. },
  227. {
  228. title: "开票状态",
  229. dataIndex: "status",
  230. key: "status",
  231. render: (text) => {
  232. return getInvoiceStatus(text);
  233. },
  234. },
  235. ],
  236. columns: [
  237. {
  238. title: "合同编号",
  239. dataIndex: "contractNo",
  240. key: "contractNo",
  241. className: "title-table",
  242. },
  243. {
  244. title: "订单编号",
  245. dataIndex: "orderNo",
  246. key: "orderNo",
  247. className: "title-table",
  248. // fixed: "left"
  249. },
  250. {
  251. title: "特批状态",
  252. dataIndex: "approval",
  253. key: "approval",
  254. className: "title-table",
  255. render: (text) => {
  256. if (text == 1) {
  257. return <Tag color="#f50">{getApproval(text)}</Tag>;
  258. }
  259. return getApproval(text);
  260. },
  261. },
  262. {
  263. title: "客户名称",
  264. dataIndex: "userName",
  265. key: "userName",
  266. className: "title-table",
  267. width:100,
  268. render: text => {
  269. return (
  270. <Tooltip title={text}>
  271. <div style={{
  272. maxWidth:'100px',
  273. overflow:'hidden',
  274. textOverflow: "ellipsis",
  275. whiteSpace:'nowrap',
  276. }}>{text}</div>
  277. </Tooltip>
  278. )
  279. }
  280. },
  281. {
  282. title: "订单部门",
  283. dataIndex: "depName",
  284. key: "depName",
  285. className: "title-table",
  286. },
  287. {
  288. title: "订单负责人",
  289. dataIndex: "salesmanName",
  290. key: "salesmanName",
  291. className: "title-table",
  292. },
  293. {
  294. title: "财务负责人",
  295. dataIndex: "financeName",
  296. key: "financeName",
  297. className: "title-table",
  298. },
  299. {
  300. title: "签单日期",
  301. dataIndex: "signDate",
  302. key: "signDate",
  303. className: "title-table",
  304. },
  305. {
  306. title: "下单日期",
  307. dataIndex: "createDate",
  308. key: "createDate",
  309. className: "title-table",
  310. },
  311. {
  312. title: "签单金额(万元)",
  313. dataIndex: "totalAmount",
  314. key: "totalAmount",
  315. className: "title-table",
  316. },
  317. {
  318. title: "开票金额(万元)",
  319. dataIndex: "invoiceAmount",
  320. key: "invoiceAmount",
  321. className: "title-table",
  322. },
  323. {
  324. title: "已收款(万元)",
  325. dataIndex: "settlementAmount",
  326. key: "settlementAmount",
  327. className: "title-table",
  328. },
  329. {
  330. title: "结算状态",
  331. dataIndex: "liquidationStatus",
  332. key: "liquidationStatus",
  333. className: "title-table",
  334. render: (text) => {
  335. return getLiquidationStatus(text);
  336. },
  337. },
  338. {
  339. title: "流程状态",
  340. dataIndex: "processStatus",
  341. key: "processStatus",
  342. className: "title-table",
  343. render: (text) => {
  344. return getProcessStatus(text);
  345. },
  346. },
  347. ],
  348. data: [],
  349. dataSource: [],
  350. columnsX: [
  351. {
  352. title: "业务项目名称",
  353. dataIndex: "commodityName",
  354. key: "commodityName",
  355. render: (text, record) => {
  356. return text + "-" + record.id
  357. }
  358. },
  359. {
  360. title: "项目类别",
  361. dataIndex: "cname",
  362. key: "cname",
  363. },
  364. {
  365. title: "项目数量",
  366. dataIndex: "commodityQuantity",
  367. key: "commodityQuantity",
  368. render: (text, record) => {
  369. if (record.splitStatus == 1) {
  370. return (
  371. <span>
  372. {text}{" "}
  373. <Tag
  374. color="#108ee9"
  375. onClick={(e) => {
  376. e.stopPropagation();
  377. this.showRes(record);
  378. }}
  379. >
  380. 已拆
  381. </Tag>
  382. </span>
  383. );
  384. } else {
  385. return text;
  386. }
  387. },
  388. },
  389. {
  390. title: "金额(万元)",
  391. dataIndex: "commodityPrice",
  392. key: "commodityPrice",
  393. },
  394. {
  395. title: "负责人",
  396. dataIndex: "contacts",
  397. key: "contacts",
  398. },
  399. {
  400. title: "负责人电话",
  401. dataIndex: "contactsMobile",
  402. key: "contactsMobile",
  403. },
  404. {
  405. title: "主要项目",
  406. dataIndex: "main",
  407. key: "main",
  408. render: (text) => {
  409. return text ? "是" : "否";
  410. },
  411. },
  412. {
  413. title: "项目说明",
  414. dataIndex: "taskComment",
  415. key: "taskComment",
  416. render: (text) => {
  417. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  418. },
  419. },
  420. ],
  421. columnsrizhi: [
  422. {
  423. title: "流程",
  424. dataIndex: "processName",
  425. key: "processName",
  426. },
  427. {
  428. title: "操作人",
  429. dataIndex: "adminName",
  430. key: "adminName",
  431. },
  432. {
  433. title: "时间",
  434. dataIndex: "createDate",
  435. key: "createDate",
  436. },
  437. {
  438. title: "备注",
  439. dataIndex: "remarks",
  440. key: "remarks",
  441. },
  442. ],
  443. dataSourceX: [],
  444. ContactsListsNew: [
  445. {
  446. title: "项目名称",
  447. dataIndex: "commodityName",
  448. key: "commodityName",
  449. render: (text, record) => {
  450. return <span>{text + "-" + record.tid}</span>;
  451. },
  452. },
  453. {
  454. title: "项目分类",
  455. dataIndex: "projectType",
  456. key: "projectType",
  457. render: (text) => {
  458. let arr = this.state.dataSourceX || [];
  459. let str = "";
  460. for (let i = 0; i < arr.length; i++) {
  461. if (this.state.dataSourceX[i].sort == text) {
  462. str = this.state.dataSourceX[i].cname;
  463. return <span>{str}</span>;
  464. }
  465. }
  466. },
  467. },
  468. {
  469. title: "催款科目",
  470. dataIndex: "dunTypeName",
  471. key: "dunTypeName",
  472. render: (text,record) => {
  473. if (record.customizeName) {
  474. return text + record.customizeName;
  475. }
  476. return <span>{text}</span>;
  477. },
  478. },
  479. {
  480. title: "时间(天)",
  481. dataIndex: "waitDay",
  482. key: "waitDay",
  483. render: (text, record) => {
  484. if (record.dunTypeName) {
  485. if (record.customizeTimes) {
  486. return record.customizeTimes;
  487. }
  488. return <span>{text}</span>;
  489. }
  490. },
  491. },
  492. {
  493. title: "金额(万元)",
  494. dataIndex: "money",
  495. key: "money",
  496. render: (text, record) => {
  497. if (record.dunTypeName) {
  498. if (record.appropriationRatio && !record.money) {
  499. return <span>{record.appropriationRatio}(拨款比例)</span>;
  500. } else if (record.appropriationRatio && record.money) {
  501. return (
  502. <span>
  503. {text}(比例:{record.appropriationRatio})
  504. </span>
  505. );
  506. } else {
  507. return <span>{text}</span>;
  508. }
  509. }
  510. },
  511. },
  512. {
  513. title: "服务年限",
  514. dataIndex: "startDate",
  515. key: "startDate",
  516. render: (text, record) => {
  517. if (record.dunTypeName) {
  518. return <span>{text}</span>;
  519. }
  520. },
  521. },
  522. {
  523. title: "催款状态",
  524. dataIndex: "status",
  525. key: "status",
  526. render: (text) => {
  527. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  528. },
  529. },
  530. ],
  531. ContactsLists: [
  532. {
  533. title: "催款科目",
  534. dataIndex: "dunSubject",
  535. key: "dunSubject",
  536. render: (text) => {
  537. return getjiedian(text);
  538. },
  539. },
  540. {
  541. title: "金额(万元)",
  542. dataIndex: "money",
  543. key: "money",
  544. },
  545. {
  546. title: "催款状态",
  547. dataIndex: "dunStatus",
  548. key: "dunStatus",
  549. render: (text) => {
  550. return getCuikuan(text);
  551. },
  552. },
  553. ],
  554. waterlistDate: [
  555. {
  556. title: "订单编号",
  557. dataIndex: "orderNo",
  558. key: "orderNo",
  559. },
  560. {
  561. title: "平台流水号",
  562. dataIndex: "billNo",
  563. key: "billNo",
  564. // fixed: "left"
  565. },
  566. {
  567. title: "收款金额(万元)",
  568. dataIndex: "transactionAmount",
  569. key: "transactionAmount",
  570. },
  571. {
  572. title: "收款方",
  573. dataIndex: "payeeName",
  574. key: "payeeName",
  575. },
  576. {
  577. title: "付款方",
  578. dataIndex: "payerName",
  579. key: "payerName",
  580. },
  581. {
  582. title: "流水科目",
  583. dataIndex: "transactionSubject",
  584. key: "transactionSubject",
  585. render: (text) => {
  586. return getTransactionProject(text);
  587. },
  588. },
  589. {
  590. title: "收款类型",
  591. dataIndex: "type",
  592. key: "type",
  593. },
  594. {
  595. title: "财务流水时间",
  596. dataIndex: "financialPayTimes",
  597. key: "financialPayTimes",
  598. },
  599. {
  600. title: "财务流水号",
  601. dataIndex: "financialPayNo",
  602. key: "financialPayNo",
  603. },
  604. {
  605. title: "订单负责人",
  606. dataIndex: "saleName",
  607. key: "saleName",
  608. },
  609. {
  610. title: "创建时间",
  611. dataIndex: "createTimes",
  612. key: "createTimes",
  613. },
  614. ],
  615. timeColumns: [
  616. {
  617. title: "合同编号",
  618. dataIndex: "contractNo",
  619. key: "contractNo",
  620. },
  621. {
  622. title: "订单编号",
  623. dataIndex: "orderNo",
  624. key: "orderNo",
  625. },
  626. {
  627. title: "客户名称",
  628. dataIndex: "userName",
  629. key: "userName",
  630. width:100,
  631. render: text => {
  632. return (
  633. <Tooltip title={text}>
  634. <div style={{
  635. maxWidth:'100px',
  636. overflow:'hidden',
  637. textOverflow: "ellipsis",
  638. whiteSpace:'nowrap',
  639. }}>{text}</div>
  640. </Tooltip>
  641. )
  642. }
  643. },
  644. {
  645. title: "订单部门",
  646. dataIndex: "depName",
  647. key: "depName",
  648. },
  649. {
  650. title: "订单负责人",
  651. dataIndex: "salesmanName",
  652. key: "salesmanName",
  653. },
  654. {
  655. title: "项目类别",
  656. dataIndex: "cname",
  657. key: "cname",
  658. },
  659. {
  660. title: "项目编号",
  661. dataIndex: "id",
  662. key: "id",
  663. },
  664. {
  665. title: "项目名称",
  666. dataIndex: "taskName",
  667. key: "taskName",
  668. },
  669. {
  670. title: "项目负责人",
  671. dataIndex: "receiverName",
  672. key: "receiverName",
  673. },
  674. {
  675. title: "项目价格(万元)",
  676. dataIndex: "commodityPrice",
  677. key: "commodityPrice",
  678. },
  679. {
  680. title: "数量(个)",
  681. dataIndex: "commodityQuantity",
  682. key: "commodityQuantity",
  683. },
  684. {
  685. title: "任务状态",
  686. dataIndex: "taskStatus",
  687. key: "taskStatus",
  688. render: (text) => {
  689. return getTaskStatus(text);
  690. },
  691. },
  692. {
  693. title: "项目状态",
  694. dataIndex: "projectStatus",
  695. key: "projectStatus",
  696. render: (text) => {
  697. return getProjectName(text);
  698. },
  699. },
  700. {
  701. title: "工时",
  702. dataIndex: "hours",
  703. key: "hours",
  704. },
  705. {
  706. title: "是否外包",
  707. dataIndex: "outsource",
  708. key: "outsource",
  709. render: (text) => {
  710. if (text == 0) {
  711. return "否";
  712. } else if (text == 1) {
  713. return "是";
  714. }
  715. },
  716. },
  717. {
  718. title: "签单日期",
  719. dataIndex: "signTime",
  720. key: "signTime",
  721. },
  722. {
  723. title: "派单日期",
  724. dataIndex: "creteTime",
  725. key: "creteTime",
  726. },
  727. {
  728. title: "分配时间",
  729. dataIndex: "taskDistributionTime",
  730. key: "taskDistributionTime",
  731. },
  732. {
  733. title: "完成时间",
  734. dataIndex: "taskEndTime",
  735. key: "taskEndTime",
  736. },
  737. ],
  738. resVisible: false,
  739. cuiColumns: [
  740. {
  741. title: "序号",
  742. dataIndex: "key",
  743. key: "key",
  744. },
  745. {
  746. title: "合同编号",
  747. dataIndex: "contractNo",
  748. key: "contractNo",
  749. },
  750. {
  751. title: "订单编号",
  752. dataIndex: "orderNo",
  753. key: "orderNo",
  754. },
  755. {
  756. title: "客户名称",
  757. dataIndex: "userName",
  758. key: "userName",
  759. width:100,
  760. render: text => {
  761. return (
  762. <Tooltip title={text}>
  763. <div style={{
  764. maxWidth:'100px',
  765. overflow:'hidden',
  766. textOverflow: "ellipsis",
  767. whiteSpace:'nowrap',
  768. }}>{text}</div>
  769. </Tooltip>
  770. )
  771. }
  772. },
  773. {
  774. title: "订单负责人",
  775. dataIndex: "salesmanName",
  776. key: "salesmanName",
  777. },
  778. {
  779. title: "订单部门",
  780. dataIndex: "depName",
  781. key: "depName",
  782. },
  783. {
  784. title: "订单状态",
  785. dataIndex: "orderStatus",
  786. key: "orderStatus",
  787. render: (text) => {
  788. return getNewOrderStatus(text);
  789. },
  790. },
  791. {
  792. title: "项目状态",
  793. dataIndex: "projectStatus",
  794. key: "projectStatus",
  795. render: (text) => {
  796. return getProjectName(text);
  797. },
  798. },
  799. {
  800. title: "签单金额",
  801. dataIndex: "totalAmount",
  802. key: "totalAmount",
  803. },
  804. {
  805. title: "结算状态",
  806. dataIndex: "liquidationStatus",
  807. key: "liquidationStatus",
  808. render: (text) => {
  809. return getLiquidationStatus(text);
  810. },
  811. },
  812. {
  813. title: "已收款",
  814. dataIndex: "settlementAmount",
  815. key: "settlementAmount",
  816. },
  817. {
  818. title: "应收款",
  819. dataIndex: "accountsReceivable",
  820. key: "accountsReceivable",
  821. },
  822. {
  823. title: "催收科目",
  824. dataIndex: "dunSubject",
  825. key: "dunSubject",
  826. // render: text => {
  827. // return getjiedian(text);
  828. // }
  829. },
  830. {
  831. title: "催款状态",
  832. dataIndex: "dunStatus",
  833. key: "dunStatus",
  834. },
  835. {
  836. title: "催收启动时间",
  837. dataIndex: "startDate",
  838. key: "startDate",
  839. },
  840. ],
  841. proColumns: [
  842. {
  843. title: "序号",
  844. dataIndex: "key",
  845. key: "key",
  846. },
  847. {
  848. title: "合同编号",
  849. dataIndex: "contractNo",
  850. key: "contractNo",
  851. },
  852. {
  853. title: "订单编号",
  854. dataIndex: "orderNo",
  855. key: "orderNo",
  856. },
  857. // {
  858. // title: "项目编号",
  859. // dataIndex: "id",
  860. // key: "id"
  861. // },
  862. {
  863. title: "客户名称",
  864. dataIndex: "userName",
  865. key: "userName",
  866. width:100,
  867. render: text => {
  868. return (
  869. <Tooltip title={text}>
  870. <div style={{
  871. maxWidth:'100px',
  872. overflow:'hidden',
  873. textOverflow: "ellipsis",
  874. whiteSpace:'nowrap',
  875. }}>{text}</div>
  876. </Tooltip>
  877. )
  878. }
  879. },
  880. {
  881. title: "订单负责人",
  882. dataIndex: "salesmanName",
  883. key: "salesmanName",
  884. },
  885. {
  886. title: "是否主项目",
  887. dataIndex: "main",
  888. key: "main",
  889. render: (text) => {
  890. return text == 0 ? "否" : "是";
  891. },
  892. },
  893. {
  894. title: "项目类别",
  895. dataIndex: "cname",
  896. key: "cname",
  897. },
  898. {
  899. title: "项目名称",
  900. dataIndex: "commodityName",
  901. key: "commodityName",
  902. },
  903. {
  904. title: "项目数量",
  905. dataIndex: "commodityQuantity",
  906. key: "commodityQuantity",
  907. render: (text, record) => {
  908. if (record.splitStatus == 1) {
  909. return (
  910. <span>
  911. {text}{" "}
  912. <Tag
  913. color="#108ee9"
  914. onClick={(e) => {
  915. e.stopPropagation();
  916. this.showRes(record);
  917. }}
  918. >
  919. 已拆
  920. </Tag>
  921. </span>
  922. );
  923. } else {
  924. return text;
  925. }
  926. },
  927. },
  928. {
  929. title: "服务市价",
  930. dataIndex: "commodityPrice",
  931. key: "commodityPrice",
  932. },
  933. {
  934. title: "证书编号",
  935. dataIndex: "certificateNumber",
  936. key: "certificateNumber",
  937. },
  938. {
  939. title: "项目状态",
  940. dataIndex: "projectStatus",
  941. key: "projectStatus",
  942. render: (text) => {
  943. return getProjectName(text);
  944. },
  945. },
  946. {
  947. title: "项目说明",
  948. dataIndex: "taskComment",
  949. key: "taskComment",
  950. },
  951. // {
  952. // title: "外包(内部)公司",
  953. // dataIndex: "outsourceName",
  954. // key: "outsourceName",
  955. // },
  956. // {
  957. // title: "外包(内部)价格",
  958. // dataIndex: "outsourcePrice",
  959. // key: "outsourcePrice",
  960. // },
  961. ],
  962. };
  963. },
  964. //页面加载函数
  965. componentWillMount() {
  966. this.loadData();
  967. },
  968. //整行点击
  969. tableRowClick(record) {
  970. this.setState({
  971. visible: true,
  972. });
  973. this.xiangqing(record.orderNo);
  974. this.xiangmu(record.orderNo);
  975. this.jiedian(record.orderNo);
  976. this.jiedianNew(record.orderNo);
  977. },
  978. //点击打卡项目详情
  979. tableRowClickX(record) {
  980. console.log(record);
  981. this.setState({
  982. jid: record.id, //项目ID
  983. kid: record.commodityId, //商品ID
  984. commodityName: record.commodityName, //金额
  985. commodityPrice: record.commodityPrice, //金额
  986. commodityQuantity: record.commodityQuantity, //数量
  987. taskComment: record.taskComment, //备注
  988. main: record.main.toString(), //是否为主要
  989. addnextVisible: true,
  990. dataInfor:record,
  991. addState: 0,
  992. });
  993. },
  994. //项目详情关闭
  995. nextCancel() {
  996. this.setState({
  997. addnextVisible: false,
  998. });
  999. },
  1000. //订单详情
  1001. xiangqing(orderNos) {
  1002. $.ajax({
  1003. method: "get",
  1004. dataType: "json",
  1005. crossDomain: false,
  1006. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1007. data: {
  1008. orderNo: orderNos,
  1009. },
  1010. success: function (data) {
  1011. if (data.error.length || data.data.list == "") {
  1012. if (data.error && data.error.length) {
  1013. message.warning(data.error[0].message);
  1014. }
  1015. } else {
  1016. let thisdata = data.data;
  1017. this.setState({
  1018. orderUid: thisdata.uid,
  1019. orderNo: thisdata.orderNo, //订单编号
  1020. contractNo: thisdata.contractNo, //合同编号
  1021. userName: thisdata.userName, //客户名称
  1022. signDate: thisdata.signDate, //签单时间
  1023. processStatus: thisdata.processStatus, //流程状态
  1024. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1025. contacts: thisdata.contacts, //企业联系人
  1026. contactMobile: thisdata.contactMobile, //联系人电话
  1027. legalPerson: thisdata.legalPerson, //法人
  1028. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1029. firstAmount: thisdata.firstAmount, //签单金额
  1030. totalAmount: thisdata.totalAmount, //首付金额
  1031. approval: thisdata.approval, //特批状态
  1032. settlementAmount: thisdata.settlementAmount, //已收款项
  1033. orderRemarks: thisdata.orderRemarks, //订单留言
  1034. orgCodeUrl: thisdata.contractPictureUrl
  1035. ? splitUrl(
  1036. thisdata.contractPictureUrl,
  1037. ",",
  1038. globalConfig.avatarHost + "/upload"
  1039. )
  1040. : [], //图片地址
  1041. replenishUrl: thisdata.agreementUrl
  1042. ? splitUrl(
  1043. thisdata.agreementUrl,
  1044. ",",
  1045. globalConfig.avatarHost + "/upload"
  1046. )
  1047. : [],
  1048. salesmanName: thisdata.salesmanName, //营销员名称
  1049. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1050. financeName: thisdata.financeName, //财务名称
  1051. financeMobile: thisdata.financeMobile, //财务电话
  1052. outsource: thisdata.outsource == 0 ? "否" : "是",
  1053. deleteSign:thisdata.deleteSign,
  1054. });
  1055. }
  1056. }.bind(this),
  1057. }).always(
  1058. function () {
  1059. this.setState({
  1060. loading: false,
  1061. });
  1062. }.bind(this)
  1063. );
  1064. },
  1065. //项目列表
  1066. xiangmu(orderNos) {
  1067. $.ajax({
  1068. method: "get",
  1069. dataType: "json",
  1070. crossDomain: false,
  1071. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1072. data: {
  1073. orderNo: orderNos,
  1074. },
  1075. success: function (data) {
  1076. let theArr = [];
  1077. if (data.error.length || data.data.list == "") {
  1078. if (data.error && data.error.length) {
  1079. message.warning(data.error[0].message);
  1080. }
  1081. } else {
  1082. for (let i = 0; i < data.data.length; i++) {
  1083. let thisdata = data.data[i];
  1084. thisdata.key = i;
  1085. theArr.push(thisdata);
  1086. }
  1087. }
  1088. this.setState({
  1089. dataSourceX: theArr,
  1090. });
  1091. }.bind(this),
  1092. }).always(
  1093. function () {
  1094. this.setState({
  1095. loading: false,
  1096. });
  1097. }.bind(this)
  1098. );
  1099. },
  1100. rizhi() {
  1101. console.log(this.state.orderNo);
  1102. this.setState({
  1103. loading: true,
  1104. });
  1105. $.ajax({
  1106. method: "get",
  1107. dataType: "json",
  1108. crossDomain: false,
  1109. url: "/api/admin/newOrder/selectOrderLog",
  1110. data: {
  1111. orderNo: this.state.orderNo,
  1112. },
  1113. success: function (data) {
  1114. let theArr = [];
  1115. let thisData = data.data;
  1116. if (thisData && !thisData.length) {
  1117. if (data.error && data.error.length) {
  1118. message.warning(data.error[0].message);
  1119. }
  1120. thisData = {};
  1121. } else {
  1122. for (let i = 0; i < data.data.length; i++) {
  1123. let thisdata = data.data[i];
  1124. theArr.push({
  1125. processName: thisdata.processName,
  1126. adminName: thisdata.adminName,
  1127. createDate: thisdata.createDate,
  1128. remarks: thisdata.remarks,
  1129. });
  1130. }
  1131. }
  1132. this.setState({
  1133. dataSourcerizhi: theArr,
  1134. });
  1135. }.bind(this),
  1136. }).always(
  1137. function () {
  1138. this.setState({
  1139. loading: false,
  1140. });
  1141. }.bind(this)
  1142. );
  1143. },
  1144. //查看订单日志
  1145. getOrderLog() {
  1146. this.setState({
  1147. rizhivisible: true,
  1148. });
  1149. this.rizhi();
  1150. },
  1151. closeOrderLog() {
  1152. this.setState({
  1153. rizhivisible: false,
  1154. });
  1155. },
  1156. //节点列表
  1157. jiedian(orderNos) {
  1158. $.ajax({
  1159. method: "get",
  1160. dataType: "json",
  1161. crossDomain: false,
  1162. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1163. data: {
  1164. orderNo: orderNos,
  1165. },
  1166. success: function (data) {
  1167. let theArr = [];
  1168. let thisData = [];
  1169. if (data.error.length || data.data.list == "") {
  1170. if (data.error && data.error.length) {
  1171. message.warning(data.error[0].message);
  1172. }
  1173. } else {
  1174. for (let i = 0; i < data.data.length; i++) {
  1175. thisData = data.data[i];
  1176. theArr.push({
  1177. key: i,
  1178. dunSubject: thisData.dunSubject
  1179. ? thisData.dunSubject.toString()
  1180. : "", //催款科目
  1181. id: thisData.id, //节点Id
  1182. money: thisData.money, //催款金额
  1183. dunStatus: thisData.dunStatus, //催款状态
  1184. });
  1185. }
  1186. this.setState({
  1187. contactList: theArr,
  1188. });
  1189. }
  1190. }.bind(this),
  1191. }).always(
  1192. function () {
  1193. this.setState({
  1194. loading: false,
  1195. });
  1196. }.bind(this)
  1197. );
  1198. },
  1199. //查看催款节点
  1200. jiedianNew(orderNos) {
  1201. $.ajax({
  1202. method: "get",
  1203. dataType: "json",
  1204. crossDomain: false,
  1205. url:
  1206. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1207. data: {
  1208. orderNo: orderNos,
  1209. },
  1210. success: function (data) {
  1211. if (data.error && data.error.length) {
  1212. message.warning(data.error[0].message);
  1213. } else {
  1214. let theArr = [];
  1215. let thisData = [];
  1216. let arr = data.data || [];
  1217. let totalCui = 0;
  1218. for (let i = 0; i < arr.length; i++) {
  1219. thisData = arr[i];
  1220. totalCui += +thisData.money;
  1221. theArr.push({
  1222. key: i,
  1223. dunSubject: thisData.dunSubject
  1224. ? thisData.dunSubject.toString()
  1225. : "", //催款科目
  1226. id: thisData.id, //节点Id
  1227. money: thisData.money, //催款金额
  1228. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1229. commodityName: thisData.commodityName,
  1230. projectType: thisData.projectType,
  1231. dunTypeName: thisData.dunTypeName,
  1232. status: thisData.status,
  1233. waitDay: thisData.waitDay,
  1234. effectiveCount: thisData.effectiveCount,
  1235. startDate: thisData.startDate,
  1236. dunType: thisData.dunType,
  1237. appropriationRatio: thisData.appropriationRatio,
  1238. customizeName: thisData.customizeName,
  1239. customizeTimes: thisData.customizeTimes,
  1240. tid: thisData.tid,
  1241. });
  1242. }
  1243. if (!totalCui) {
  1244. totalCui = 0;
  1245. }
  1246. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1247. this.setState({
  1248. contactListNew: theArr,
  1249. totalCui,
  1250. });
  1251. }
  1252. }.bind(this),
  1253. }).always(
  1254. function () {
  1255. this.setState({
  1256. loading: false,
  1257. });
  1258. }.bind(this)
  1259. );
  1260. },
  1261. //审核通过
  1262. examOk() {
  1263. if (!this.state.reason) {
  1264. message.warning("请填写备注");
  1265. return;
  1266. }
  1267. this.setState({
  1268. loading: true,
  1269. });
  1270. $.ajax({
  1271. method: "post",
  1272. dataType: "json",
  1273. crossDomain: false,
  1274. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1275. data: {
  1276. orderNo: this.state.orderNo,
  1277. confirm: 2,
  1278. reason: this.state.reason,
  1279. },
  1280. success: function (data) {
  1281. if (data.error.length || data.data.list == "") {
  1282. if (data.error && data.error.length) {
  1283. message.warning(data.error[0].message);
  1284. }
  1285. } else {
  1286. message.success("该特批订单已通过审核~");
  1287. this.setState({
  1288. visible: false,
  1289. });
  1290. this.passCancel();
  1291. this.reset();
  1292. }
  1293. }.bind(this),
  1294. }).always(
  1295. function () {
  1296. this.setState({
  1297. loading: false,
  1298. });
  1299. }.bind(this)
  1300. );
  1301. },
  1302. //审核不通过
  1303. examOks() {
  1304. if (!this.state.reason) {
  1305. message.warning("请填写备注");
  1306. return;
  1307. }
  1308. this.setState({
  1309. loading: true,
  1310. });
  1311. $.ajax({
  1312. method: "post",
  1313. dataType: "json",
  1314. crossDomain: false,
  1315. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1316. data: {
  1317. orderNo: this.state.orderNo,
  1318. confirm: 3,
  1319. reason: this.state.reason,
  1320. },
  1321. success: function (data) {
  1322. if (data.error.length || data.data.list == "") {
  1323. if (data.error && data.error.length) {
  1324. message.warning(data.error[0].message);
  1325. }
  1326. } else {
  1327. message.success("该特批订单已被驳回~");
  1328. this.setState({
  1329. visible: false,
  1330. noVisible: false,
  1331. reason: "",
  1332. });
  1333. this.loadData();
  1334. this.resets();
  1335. }
  1336. }.bind(this),
  1337. }).always(
  1338. function () {
  1339. this.setState({
  1340. loading: false,
  1341. });
  1342. }.bind(this)
  1343. );
  1344. },
  1345. //点击拒绝
  1346. examNo() {
  1347. this.setState({
  1348. noVisible: true,
  1349. });
  1350. },
  1351. //关闭输入理由框
  1352. noCancel() {
  1353. this.setState({
  1354. noVisible: false,
  1355. reason: "",
  1356. });
  1357. },
  1358. //搜索
  1359. search() {
  1360. this.setState({
  1361. //signBillVisible:false
  1362. });
  1363. this.loadData();
  1364. },
  1365. //重置
  1366. reset() {
  1367. this.setState({
  1368. signBillVisible: false,
  1369. });
  1370. this.state.orderNoSearch = undefined;
  1371. this.state.contractNoSearch = undefined;
  1372. this.state.nameSearch = undefined;
  1373. this.state.liquidationStatusSearch = [];
  1374. this.state.departmenttList = undefined;
  1375. this.state.releaseDate[0] = undefined;
  1376. this.state.releaseDate[1] = undefined;
  1377. this.state.approvalSearch = "1";
  1378. this.loadData();
  1379. },
  1380. resets() {
  1381. this.state.orderNo = "";
  1382. this.state.customerName = "";
  1383. this.state.departmenttSearch = undefined;
  1384. this.state.releaseDate[0] = undefined;
  1385. this.state.releaseDate[1] = undefined;
  1386. },
  1387. getOrgCodeUrl(e) {
  1388. this.setState({ orgCodeUrl: e });
  1389. },
  1390. getReplenishUrl(e) {
  1391. this.setState({ replenishUrl: e });
  1392. },
  1393. downImg() {
  1394. let num = 0;
  1395. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1396. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1397. num = i;
  1398. }
  1399. }
  1400. if (num == this.state.orgCodeUrl.length - 1) {
  1401. return message.warning("已经是最后一张了哦");
  1402. }
  1403. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1404. this.setState({
  1405. previewImage: this.state.previewImage,
  1406. rotateDeg: 0,
  1407. });
  1408. },
  1409. upImg() {
  1410. let num = 0;
  1411. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1412. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1413. num = i;
  1414. }
  1415. }
  1416. if (num == 0) {
  1417. return message.warning("已经是第一张了哦");
  1418. }
  1419. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1420. this.setState({
  1421. previewImage: this.state.previewImage,
  1422. rotateDeg: 0,
  1423. });
  1424. },
  1425. rotate() {
  1426. let rotateDeg = this.state.rotateDeg + 90;
  1427. this.setState({
  1428. rotateDeg,
  1429. });
  1430. },
  1431. downImgs() {
  1432. let num = 0;
  1433. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1434. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1435. num = i;
  1436. }
  1437. }
  1438. if (num == this.state.replenishUrl.length - 1) {
  1439. return message.warning("已经是最后一张了哦");
  1440. }
  1441. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1442. this.setState({
  1443. previewImage: this.state.previewImage,
  1444. rotateDeg: 0,
  1445. });
  1446. },
  1447. upImgs() {
  1448. let num = 0;
  1449. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1450. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1451. num = i;
  1452. }
  1453. }
  1454. if (num == 0) {
  1455. return message.warning("已经是第一张了哦");
  1456. }
  1457. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1458. this.setState({
  1459. previewImage: this.state.previewImage,
  1460. rotateDeg: 0,
  1461. });
  1462. },
  1463. rotates() {
  1464. let rotateDeg = this.state.rotateDeg + 90;
  1465. this.setState({
  1466. rotateDeg,
  1467. });
  1468. },
  1469. changeList(arr) {
  1470. const newArr = [];
  1471. this.state.columns.forEach((item) => {
  1472. arr.forEach((val) => {
  1473. if (val === item.title) {
  1474. newArr.push(item);
  1475. }
  1476. });
  1477. });
  1478. this.setState({
  1479. changeList: newArr,
  1480. });
  1481. },
  1482. //关闭详情
  1483. visitCancel() {
  1484. this.setState({
  1485. visible: false,
  1486. });
  1487. this.resets();
  1488. },
  1489. visitOk() {
  1490. this.setState({
  1491. visible: false,
  1492. });
  1493. this.resets();
  1494. },
  1495. waterData() {
  1496. this.state.data = [];
  1497. this.setState({
  1498. loading: true,
  1499. });
  1500. $.ajax({
  1501. method: "get",
  1502. dataType: "json",
  1503. crossDomain: false,
  1504. url: globalConfig.context + "/api/admin/financial/myBillList",
  1505. data: {
  1506. orderNo: this.state.selectedRowKeys[0],
  1507. pageSize: 9999,
  1508. whoType: 1,
  1509. },
  1510. success: function (data) {
  1511. let theArr = [];
  1512. let waterSum = 0;
  1513. if (!data.data || !data.data.list) {
  1514. if (data.error && data.error.length) {
  1515. message.warning(data.error[0].message);
  1516. }
  1517. } else {
  1518. for (let i = 0; i < data.data.list.length; i++) {
  1519. let thisdata = data.data.list[i];
  1520. waterSum += parseFloat(thisdata.transactionAmount);
  1521. theArr.push({
  1522. key: i,
  1523. orderNo: thisdata.orderNo,
  1524. billNo: thisdata.billNo,
  1525. transactionAmount: thisdata.transactionAmount,
  1526. payeeName: thisdata.payeeName,
  1527. payerName: thisdata.payerName,
  1528. transactionSubject: thisdata.transactionSubject,
  1529. transactionChannel: thisdata.transactionChannel,
  1530. financialPayTimes: thisdata.financialPayTimes,
  1531. financialPayNo: thisdata.financialPayNo,
  1532. createrName: thisdata.createrName,
  1533. saleName: thisdata.saleName,
  1534. createTimes: thisdata.createTimes,
  1535. type: thisdata.type == 0 ? "手工" : "批量",
  1536. });
  1537. }
  1538. }
  1539. this.setState({
  1540. waterData: theArr,
  1541. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1542. });
  1543. }.bind(this),
  1544. }).always(
  1545. function () {
  1546. this.setState({
  1547. loading: false,
  1548. });
  1549. }.bind(this)
  1550. );
  1551. },
  1552. waterCanl() {
  1553. this.setState({
  1554. cvisible: false,
  1555. });
  1556. },
  1557. // 拆分详细
  1558. showRes(record) {
  1559. this.setState({
  1560. resVisible: true,
  1561. resRecord: record,
  1562. });
  1563. },
  1564. resCancel() {
  1565. this.setState({
  1566. resVisible: false,
  1567. });
  1568. },
  1569. exportKaip() {
  1570. window.location.href =
  1571. globalConfig.context +
  1572. "/api/admin/receivables/exportInvoice?" +
  1573. `orderNo=${this.state.selectedRowKeys}`;
  1574. },
  1575. exportAll() {
  1576. window.location.href =
  1577. globalConfig.context +
  1578. "/api/admin/receivables/exportReceivables?" +
  1579. `orderNo=${
  1580. this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1581. }&buyerName=${
  1582. this.state.nameSearch ? this.state.nameSearch : ""
  1583. }&departmentId=${
  1584. this.state.departmenttList ? this.state.departmenttList : ""
  1585. }&contractNo=${
  1586. this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1587. }&processStatus=${this.state.processStatusSearch}`;
  1588. },
  1589. exportWater() {
  1590. window.location.href =
  1591. globalConfig.context +
  1592. "/api/admin/receivables/exportMyBill?" +
  1593. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1594. },
  1595. timeData() {
  1596. this.setState({
  1597. loading: true,
  1598. });
  1599. $.ajax({
  1600. method: "get",
  1601. dataType: "json",
  1602. crossDomain: false,
  1603. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1604. data: {
  1605. orderNo: this.state.selectedRowKeys[0],
  1606. pageSize: 9999,
  1607. },
  1608. success: function (data) {
  1609. let theArr = [];
  1610. if (!data.data || !data.data.list) {
  1611. if (data.error && data.error.length) {
  1612. message.warning(data.error[0].message);
  1613. }
  1614. } else {
  1615. for (let i = 0; i < data.data.list.length; i++) {
  1616. let thisdata = data.data.list[i];
  1617. theArr.push({
  1618. key: i + 1,
  1619. id: thisdata.id, //ID
  1620. orderNo: thisdata.orderNo, //订单编号
  1621. taskName: thisdata.taskName, //任务名称
  1622. userName: thisdata.userName, //客户名称
  1623. cname: thisdata.cname, //项目品类
  1624. taskStatus: thisdata.taskStatus, //任务状态
  1625. receiverName: thisdata.receiverName, //负责人
  1626. hours: thisdata.hours, //任务工时
  1627. depName: thisdata.depName, //派单公司
  1628. contractNo: thisdata.contractNo,
  1629. signTime: thisdata.signTime,
  1630. creteTime: thisdata.creteTime,
  1631. projectStatus: thisdata.projectStatus,
  1632. commodityPrice: thisdata.commodityPrice, //价格
  1633. commodityQuantity: thisdata.commodityQuantity, //数量
  1634. salesmanName: thisdata.salesmanName, //订单负责人
  1635. taskDistributionTime: thisdata.taskDistributionTime,
  1636. taskEndTime: thisdata.taskEndTime,
  1637. outsource: thisdata.outsource,
  1638. });
  1639. }
  1640. }
  1641. this.setState({
  1642. timeDataList: theArr,
  1643. });
  1644. }.bind(this),
  1645. }).always(
  1646. function () {
  1647. this.setState({
  1648. loading: false,
  1649. });
  1650. }.bind(this)
  1651. );
  1652. },
  1653. exportTime() {
  1654. const data = {
  1655. orderNo: this.state.selectedRowKeys[0],
  1656. pageSize: 9999,
  1657. };
  1658. window.location.href =
  1659. globalConfig.context +
  1660. "/api/admin/orderProject/exportMyTaskList?" +
  1661. $.param(data);
  1662. },
  1663. exportPro() {
  1664. const data = {
  1665. orderNo: this.state.selectedRowKeys[0],
  1666. };
  1667. window.location.href =
  1668. globalConfig.context +
  1669. "/api/admin/newOrder/exportOrderTaskData?" +
  1670. $.param(data);
  1671. },
  1672. exportCui() {
  1673. var data = {
  1674. orderNo: this.state.selectedRowKeys[0]
  1675. ? this.state.selectedRowKeys[0]
  1676. : undefined, //订单编号
  1677. // specially: 1,
  1678. pageSize: 9999,
  1679. };
  1680. window.location.href =
  1681. globalConfig.context +
  1682. "/api/admin/newOrder/exportOrderDunData?" +
  1683. $.param(data);
  1684. },
  1685. cuiData() {
  1686. this.setState({
  1687. loading: true,
  1688. });
  1689. $.ajax({
  1690. method: "get",
  1691. dataType: "json",
  1692. crossDomain: false,
  1693. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1694. data: {
  1695. orderNo: this.state.selectedRowKeys[0],
  1696. pageSize: 9999,
  1697. },
  1698. success: function (data) {
  1699. let theArr = [];
  1700. if (!data.data || !data.data.list) {
  1701. if (data.error && data.error.length) {
  1702. message.warning(data.error[0].message);
  1703. }
  1704. } else {
  1705. for (let i = 0; i < data.data.list.length; i++) {
  1706. let thisdata = data.data.list[i];
  1707. theArr.push({
  1708. key: i + 1,
  1709. orderNo: thisdata.orderNo,
  1710. contractNo: thisdata.contractNo,
  1711. userName: thisdata.userName,
  1712. buyerName: thisdata.buyerName,
  1713. departmentName: thisdata.departmentName,
  1714. salesmanName: thisdata.salesmanName,
  1715. depName: thisdata.depName,
  1716. orderStatus: thisdata.orderStatus,
  1717. projectStatus: thisdata.projectStatus,
  1718. totalAmount: thisdata.totalAmount,
  1719. liquidationStatus: thisdata.liquidationStatus,
  1720. settlementAmount: thisdata.settlementAmount,
  1721. accountsReceivable: thisdata.accountsReceivable,
  1722. dunSubject: thisdata.dunSubject,
  1723. startDate: thisdata.startDate,
  1724. taskStatus: thisdata.taskStatus,
  1725. cname: thisdata.cname,
  1726. id: thisdata.id,
  1727. taskName: thisdata.taskName,
  1728. hours: thisdata.hours,
  1729. taskDistributionTime: thisdata.taskDistributionTime,
  1730. taskEndTime: thisdata.taskEndTime,
  1731. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1732. });
  1733. }
  1734. }
  1735. this.setState({
  1736. cuiDataList: theArr,
  1737. });
  1738. }.bind(this),
  1739. }).always(
  1740. function () {
  1741. this.setState({
  1742. loading: false,
  1743. });
  1744. }.bind(this)
  1745. );
  1746. },
  1747. proData() {
  1748. this.setState({
  1749. loading: true,
  1750. });
  1751. $.ajax({
  1752. method: "get",
  1753. dataType: "json",
  1754. crossDomain: false,
  1755. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1756. data: {
  1757. orderNo: this.state.selectedRowKeys[0],
  1758. pageSize: 9999,
  1759. },
  1760. success: function (data) {
  1761. let theArr = [];
  1762. let totalWaibao = 0;
  1763. if (!data.data) {
  1764. if (data.error && data.error.length) {
  1765. message.warning(data.error[0].message);
  1766. }
  1767. } else {
  1768. for (let i = 0; i < data.data.length; i++) {
  1769. let thisdata = data.data[i];
  1770. totalWaibao += thisdata.outsourcePrice;
  1771. thisdata.key = i + 1;
  1772. theArr.push(thisdata);
  1773. }
  1774. }
  1775. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1776. this.setState({
  1777. proDataList: theArr,
  1778. totalWaibao,
  1779. });
  1780. }.bind(this),
  1781. }).always(
  1782. function () {
  1783. this.setState({
  1784. loading: false,
  1785. });
  1786. }.bind(this)
  1787. );
  1788. },
  1789. inRecordCanl() {
  1790. this.setState({
  1791. bvisible: false,
  1792. });
  1793. },
  1794. inRecordData() {
  1795. this.setState({
  1796. loading: true,
  1797. });
  1798. $.ajax({
  1799. method: "get",
  1800. dataType: "json",
  1801. crossDomain: false,
  1802. url:
  1803. globalConfig.context +
  1804. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1805. data: {
  1806. orderNo: this.state.selectedRowKeys[0],
  1807. pageSize: 9999,
  1808. },
  1809. success: function (data) {
  1810. let theArr = [];
  1811. let sum = 0;
  1812. if (!data.data) {
  1813. if (data.error && data.error.length) {
  1814. message.warning(data.error[0].message);
  1815. }
  1816. } else {
  1817. for (let i = 0; i < data.data.list.length; i++) {
  1818. let thisdata = data.data.list[i];
  1819. sum += parseFloat(thisdata.amount);
  1820. theArr.push({
  1821. id: thisdata.id,
  1822. orderno: thisdata.orderno, //订单编号
  1823. amount: thisdata.amount, //签单金额
  1824. createTime: thisdata.createTime, //流程状态
  1825. status: thisdata.status, //结算状态
  1826. rejectReason: thisdata.rejectReason,
  1827. });
  1828. }
  1829. }
  1830. this.setState({
  1831. recordData: theArr,
  1832. sum: sum.toFixed(6),
  1833. });
  1834. }.bind(this),
  1835. }).done(
  1836. function () {
  1837. this.setState({
  1838. loading: false,
  1839. });
  1840. }.bind(this)
  1841. );
  1842. },
  1843. // 通过弹出备注框
  1844. pass() {
  1845. this.setState({
  1846. reason: "",
  1847. passVisible: true,
  1848. });
  1849. },
  1850. passCancel() {
  1851. this.setState({
  1852. reason: "",
  1853. passVisible: false,
  1854. });
  1855. },
  1856. printAll() {
  1857. this.setState({
  1858. dvisible: true,
  1859. });
  1860. this.loadData(1, 9999);
  1861. },
  1862. render() {
  1863. const formItemLayout = {
  1864. labelCol: { span: 8 },
  1865. wrapperCol: { span: 14 },
  1866. };
  1867. const FormItem = Form.Item;
  1868. const { RangePicker } = DatePicker;
  1869. const cuiDataList = this.state.contactList || [];
  1870. const rowSelection = {
  1871. selectedRowKeys: this.state.selectedRowKeys,
  1872. onChange: (selectedRowKeys, selectedRows) => {
  1873. this.setState({
  1874. modalVisible: false,
  1875. selectedRows: selectedRows.slice(-1),
  1876. selectedRowKeys: selectedRowKeys.slice(-1),
  1877. });
  1878. },
  1879. onSelect: (recordt) => {
  1880. this.setState({
  1881. modalVisible: false,
  1882. recordt: recordt.id,
  1883. });
  1884. },
  1885. };
  1886. return (
  1887. <div className="user-content">
  1888. {this.state.resVisible ? (
  1889. <ResolutionDetail
  1890. cancel={this.resCancel}
  1891. detail={this.state.resRecord}
  1892. visible={this.state.resVisible}
  1893. id={this.state.resRecord.orderNo}
  1894. />
  1895. ) : (
  1896. ""
  1897. )}
  1898. <ShowModalDiv ShowModal={this.state.showModal} />
  1899. <div className="content-title" style={{ marginBottom: 10 }}>
  1900. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  1901. </div>
  1902. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1903. <TabPane tab="更改表格显示数据" key="1">
  1904. <div style={{ marginLeft: 10 }}>
  1905. <ChooseList
  1906. columns={this.state.columns}
  1907. changeFn={this.changeList}
  1908. changeList={this.state.changeList}
  1909. top={55}
  1910. margin={11}
  1911. />
  1912. </div>
  1913. </TabPane>
  1914. <TabPane tab="搜索" key="2">
  1915. <div className="user-search" style={{ marginLeft: 10 }}>
  1916. <Input
  1917. placeholder="订单编号"
  1918. value={this.state.orderNoSearch}
  1919. onChange={(e) => {
  1920. this.setState({ orderNoSearch: e.target.value });
  1921. }}
  1922. />
  1923. <Input
  1924. placeholder="客户名称"
  1925. value={this.state.nameSearch}
  1926. onChange={(e) => {
  1927. this.setState({ nameSearch: e.target.value });
  1928. }}
  1929. />
  1930. <DepartmentList
  1931. value={this.state.departmenttList}
  1932. onChange={e => {
  1933. this.setState({ departmenttList: e });
  1934. }}/>
  1935. <Input
  1936. placeholder="合同编号"
  1937. value={this.state.contractNoSearch}
  1938. onChange={(e) => {
  1939. this.setState({
  1940. contractNoSearch: e.target.value,
  1941. });
  1942. }}
  1943. />
  1944. <Select
  1945. placeholder="特批状态"
  1946. onChange={(e) => {
  1947. this.setState({ approvalSearch: e });
  1948. }}
  1949. style={{ width: 160, marginRight: 5 }}
  1950. value={this.state.approvalSearch}
  1951. >
  1952. <Option value="1">特批待审核</Option>
  1953. <Option value="2">特批(通过以及驳回)</Option>
  1954. </Select>
  1955. <Select
  1956. placeholder="结算状态"
  1957. onChange={(e) => {
  1958. this.setState({ liquidationStatusSearch: e });
  1959. }}
  1960. style={{ width: 160, marginRight: 5 }}
  1961. value={this.state.liquidationStatusSearch}
  1962. >
  1963. <Option value="0">首付待付清</Option>
  1964. <Option value="1">尾款待付清</Option>
  1965. <Option value="2">已付清</Option>
  1966. </Select>
  1967. <span style={{}}>下单日期:</span>
  1968. <RangePicker
  1969. value={[
  1970. this.state.releaseDate[0]
  1971. ? moment(this.state.releaseDate[0])
  1972. : null,
  1973. this.state.releaseDate[1]
  1974. ? moment(this.state.releaseDate[1])
  1975. : null,
  1976. ]}
  1977. onChange={(data, dataString) => {
  1978. this.setState({ releaseDate: dataString });
  1979. }}
  1980. />
  1981. <Button
  1982. type="primary"
  1983. onClick={this.search}
  1984. style={{ marginLeft: 10 }}
  1985. disabled={this.state.loadingA ? true : false}
  1986. >
  1987. 搜索
  1988. </Button>
  1989. <Button onClick={this.reset}>重置</Button>
  1990. </div>
  1991. </TabPane>
  1992. <TabPane tab="打印" key="3">
  1993. <Button
  1994. type="primary"
  1995. style={{ margin: "11px 0px 10px 10px" }}
  1996. onClick={this.printAll}
  1997. disabled={!this.state.dataSource.length}
  1998. >
  1999. 打印所有列表信息
  2000. </Button>
  2001. <Button
  2002. type="primary"
  2003. disabled={this.state.selectedRowKeys.length != 1}
  2004. style={{ margin: "11px 0px 10px 10px" }}
  2005. onClick={() => {
  2006. this.inRecordData();
  2007. this.setState({
  2008. bvisible: true,
  2009. });
  2010. }}
  2011. >
  2012. 打印开票详情
  2013. </Button>
  2014. <Button
  2015. type="primary"
  2016. disabled={this.state.selectedRowKeys.length != 1}
  2017. style={{ margin: "11px 0px 10px 10px" }}
  2018. onClick={() => {
  2019. this.waterData();
  2020. this.setState({
  2021. cvisible: true,
  2022. });
  2023. }}
  2024. >
  2025. 打印收款流水
  2026. </Button>
  2027. <Button
  2028. type="primary"
  2029. disabled={this.state.selectedRowKeys.length != 1}
  2030. style={{ margin: "11px 0px 10px 10px" }}
  2031. onClick={() => {
  2032. this.timeData();
  2033. this.setState({
  2034. timeVisible: true,
  2035. });
  2036. }}
  2037. >
  2038. 打印工时信息
  2039. </Button>
  2040. <Button
  2041. type="primary"
  2042. disabled={this.state.selectedRowKeys.length != 1}
  2043. style={{ margin: "11px 0px 10px 10px" }}
  2044. onClick={() => {
  2045. this.cuiData();
  2046. this.setState({
  2047. cuiVisible: true,
  2048. });
  2049. }}
  2050. >
  2051. 打印催款信息
  2052. </Button>
  2053. <Button
  2054. type="primary"
  2055. disabled={this.state.selectedRowKeys.length != 1}
  2056. style={{ margin: "11px 0px 10px 10px" }}
  2057. onClick={() => {
  2058. this.proData();
  2059. this.setState({
  2060. proVisible: true,
  2061. });
  2062. }}
  2063. >
  2064. 打印项目信息
  2065. </Button>
  2066. </TabPane>
  2067. <TabPane tab="导出Excel" key="4">
  2068. {/* <Button
  2069. type="primary"
  2070. style={{ margin: "11px 0px 10px 10px" }}
  2071. onClick={this.exportAll}
  2072. >
  2073. 导出当前列表
  2074. </Button> */}
  2075. <Button
  2076. type="primary"
  2077. disabled={this.state.selectedRowKeys.length != 1}
  2078. style={{ margin: "11px 0px 10px 10px" }}
  2079. onClick={this.exportKaip}
  2080. >
  2081. 导出所选开票详情
  2082. </Button>
  2083. <Button
  2084. type="primary"
  2085. disabled={this.state.selectedRowKeys.length != 1}
  2086. style={{ margin: "11px 0px 10px 10px" }}
  2087. onClick={this.exportWater}
  2088. >
  2089. 导出所选收款详情流水
  2090. </Button>
  2091. <Button
  2092. type="primary"
  2093. disabled={this.state.selectedRowKeys.length != 1}
  2094. style={{ margin: "11px 0px 10px 10px" }}
  2095. onClick={this.exportTime}
  2096. >
  2097. 导出所选工时信息
  2098. </Button>
  2099. <Button
  2100. type="primary"
  2101. disabled={this.state.selectedRowKeys.length != 1}
  2102. style={{ margin: "11px 0px 10px 10px" }}
  2103. onClick={this.exportCui}
  2104. >
  2105. 导出催款信息
  2106. </Button>
  2107. <Button
  2108. type="primary"
  2109. disabled={this.state.selectedRowKeys.length != 1}
  2110. style={{ margin: "11px 0px 10px 10px" }}
  2111. onClick={this.exportPro}
  2112. >
  2113. 导出项目详情
  2114. </Button>
  2115. </TabPane>
  2116. <TabPane tab="查看" key="5">
  2117. <Button
  2118. type="primary"
  2119. disabled={this.state.selectedRowKeys.length != 1}
  2120. style={{ margin: "11px 0px 10px 10px" }}
  2121. onClick={() => {
  2122. this.inRecordData();
  2123. this.setState({
  2124. bvisible: true,
  2125. });
  2126. }}
  2127. >
  2128. 查看开票详情
  2129. </Button>
  2130. <Button
  2131. type="primary"
  2132. disabled={this.state.selectedRowKeys.length != 1}
  2133. style={{ margin: "11px 0px 10px 10px" }}
  2134. onClick={() => {
  2135. this.waterData();
  2136. this.setState({
  2137. cvisible: true,
  2138. });
  2139. }}
  2140. >
  2141. 详情收款流水
  2142. </Button>
  2143. <Button
  2144. type="primary"
  2145. disabled={this.state.selectedRowKeys.length != 1}
  2146. style={{ margin: "11px 0px 10px 10px" }}
  2147. onClick={() => {
  2148. this.timeData();
  2149. this.setState({
  2150. timeVisible: true,
  2151. });
  2152. }}
  2153. >
  2154. 工时信息
  2155. </Button>
  2156. <Button
  2157. type="primary"
  2158. disabled={this.state.selectedRowKeys.length != 1}
  2159. style={{ margin: "11px 0px 10px 10px" }}
  2160. onClick={() => {
  2161. this.cuiData();
  2162. this.setState({
  2163. cuiVisible: true,
  2164. });
  2165. }}
  2166. >
  2167. 催款信息
  2168. </Button>
  2169. <Button
  2170. type="primary"
  2171. disabled={this.state.selectedRowKeys.length != 1}
  2172. style={{ margin: "11px 0px 10px 10px" }}
  2173. onClick={() => {
  2174. this.proData();
  2175. this.setState({
  2176. proVisible: true,
  2177. });
  2178. }}
  2179. >
  2180. 项目信息
  2181. </Button>
  2182. </TabPane>
  2183. {/* <TabPane tab="批量操作" key="6">
  2184. <Button
  2185. type="primary"
  2186. disabled={this.state.selectedRowKeys.length == 0}
  2187. style={{ margin: "0px 0px 10px 10px" }}
  2188. onClick={e => {
  2189. e.stopPropagation(),
  2190. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2191. }}
  2192. >
  2193. 转交
  2194. </Button>
  2195. </TabPane> */}
  2196. </Tabs>
  2197. <div className="user-search">
  2198. <div className="patent-table">
  2199. <Spin spinning={this.state.loading}>
  2200. <Table
  2201. columns={
  2202. this.state.changeList == undefined
  2203. ? this.state.columns
  2204. : this.state.changeList
  2205. }
  2206. dataSource={this.state.dataSource}
  2207. rowSelection={rowSelection}
  2208. pagination={this.state.pagination}
  2209. onRowClick={this.tableRowClick}
  2210. bordered
  2211. size="small"
  2212. />
  2213. </Spin>
  2214. </div>
  2215. {this.state.visible ? <Modal
  2216. maskClosable={false}
  2217. className="customeDetails"
  2218. footer=""
  2219. title="订单详情"
  2220. width="900px"
  2221. visible={this.state.visible}
  2222. onOk={this.visitOk}
  2223. onCancel={this.visitCancel}
  2224. >
  2225. <Form
  2226. layout="horizontal"
  2227. onSubmit={this.handleSubmit}
  2228. id="demand-form"
  2229. style={{ paddingBottom: "40px" }}
  2230. >
  2231. <Spin spinning={this.state.loading}>
  2232. <div className="clearfix">
  2233. <div style={{position:"absolute",top:'-52px',left:'81px',zIndex:10000}}>
  2234. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  2235. </div>
  2236. <FormItem
  2237. className="half-item"
  2238. {...formItemLayout}
  2239. label="订单编号"
  2240. >
  2241. <span>{this.state.orderNo}</span>
  2242. </FormItem>
  2243. <FormItem
  2244. className="half-item"
  2245. {...formItemLayout}
  2246. label="合同编号"
  2247. >
  2248. <span>{this.state.contractNo}</span>
  2249. </FormItem>
  2250. <FormItem
  2251. className="half-item"
  2252. {...formItemLayout}
  2253. label="客户名称"
  2254. >
  2255. <span>
  2256. {this.state.userName}
  2257. <EnterpriseNameChange
  2258. type='journal'
  2259. style={{ marginLeft: 10 }}
  2260. enterpriseId={this.state.orderUid}/>
  2261. </span>
  2262. </FormItem>
  2263. <FormItem
  2264. className="half-item"
  2265. {...formItemLayout}
  2266. label="合同签订时间"
  2267. >
  2268. <span>{this.state.signDate}</span>
  2269. </FormItem>
  2270. <FormItem
  2271. className="half-item"
  2272. {...formItemLayout}
  2273. label="流程状态"
  2274. >
  2275. <span>{getProcessStatus(this.state.processStatus)}</span>
  2276. </FormItem>
  2277. <FormItem
  2278. className="half-item"
  2279. {...formItemLayout}
  2280. label="结算状态"
  2281. >
  2282. <span>
  2283. {getLiquidationStatus(this.state.liquidationStatus)}
  2284. </span>
  2285. </FormItem>
  2286. <FormItem
  2287. className="half-item"
  2288. {...formItemLayout}
  2289. label="企业联系人"
  2290. >
  2291. <span>{this.state.contacts}</span>
  2292. </FormItem>
  2293. <FormItem
  2294. className="half-item"
  2295. {...formItemLayout}
  2296. label="联系人电话"
  2297. >
  2298. <span>{this.state.contactMobile}</span>
  2299. </FormItem>
  2300. <FormItem
  2301. className="half-item"
  2302. {...formItemLayout}
  2303. label="企业法人"
  2304. >
  2305. <span>{this.state.legalPerson}</span>
  2306. </FormItem>
  2307. <FormItem
  2308. className="half-item"
  2309. {...formItemLayout}
  2310. label="法人电话"
  2311. >
  2312. <span>{this.state.legalPersonTel}</span>
  2313. </FormItem>
  2314. <FormItem
  2315. className="half-item"
  2316. {...formItemLayout}
  2317. label="签单金额(万元)"
  2318. >
  2319. <span>{this.state.totalAmount}</span>
  2320. </FormItem>
  2321. <FormItem
  2322. className="half-item"
  2323. {...formItemLayout}
  2324. label="首付金额(万元)"
  2325. >
  2326. <span>{this.state.firstAmount}</span>
  2327. </FormItem>
  2328. <FormItem
  2329. className="half-item"
  2330. {...formItemLayout}
  2331. label="特批立项"
  2332. >
  2333. <span>{getApprovedState(this.state.approval)}</span>
  2334. </FormItem>
  2335. <FormItem
  2336. className="half-item"
  2337. {...formItemLayout}
  2338. label="已收款项(万元)"
  2339. >
  2340. <span>{this.state.settlementAmount}</span>
  2341. </FormItem>
  2342. <FormItem
  2343. className="half-item"
  2344. {...formItemLayout}
  2345. label="是否外包"
  2346. >
  2347. <span>{this.state.outsource}</span>
  2348. </FormItem>
  2349. <div className="clearfix">
  2350. <FormItem
  2351. labelCol={{ span: 4 }}
  2352. wrapperCol={{ span: 16 }}
  2353. label="订单留言"
  2354. >
  2355. <span>{this.state.orderRemarks}</span>
  2356. </FormItem>
  2357. </div>
  2358. <div className="clearfix">
  2359. <FormItem
  2360. labelCol={{ span: 4 }}
  2361. wrapperCol={{ span: 18 }}
  2362. label={
  2363. <span>
  2364. <strong style={{ color: "#f00" }}>*</strong>
  2365. 合同扫描件
  2366. </span>
  2367. }
  2368. >
  2369. <PicturesWall
  2370. domId={'approveds1'}
  2371. fileList={this.getOrgCodeUrl}
  2372. pictureUrl={this.state.orgCodeUrl}
  2373. />
  2374. <p>图片建议:要清晰。</p>
  2375. <Button
  2376. style={{
  2377. float: "right",
  2378. marginRight: "140px",
  2379. marginTop: "20px",
  2380. }}
  2381. onClick={this.getOrderLog}
  2382. >
  2383. 查看订单 日志
  2384. </Button>
  2385. </FormItem>
  2386. <FormItem
  2387. labelCol={{ span: 4 }}
  2388. wrapperCol={{ span: 18 }}
  2389. label={
  2390. <span>
  2391. 补充协议
  2392. </span>
  2393. }
  2394. >
  2395. <PicturesWall
  2396. domId={'approveds2'}
  2397. fileList={this.getReplenishUrl}
  2398. pictureUrl={this.state.replenishUrl}
  2399. url="/api/admin/order/uploadOrderImg"
  2400. sign=""
  2401. />
  2402. <p>图片建议:要清晰。</p>
  2403. </FormItem>
  2404. </div>
  2405. <div className="clearfix">
  2406. <FormItem
  2407. className="half-item"
  2408. {...formItemLayout}
  2409. label="订单负责人"
  2410. >
  2411. <span>{this.state.salesmanName}</span>
  2412. </FormItem>
  2413. <FormItem
  2414. className="half-item"
  2415. {...formItemLayout}
  2416. label="订单负责人电话"
  2417. >
  2418. <span>{this.state.salesmanMobile}</span>
  2419. </FormItem>
  2420. </div>
  2421. <div className="clearfix">
  2422. <FormItem
  2423. className="half-item"
  2424. {...formItemLayout}
  2425. label="财务负责人"
  2426. >
  2427. <span>{this.state.financeName}</span>
  2428. </FormItem>
  2429. <FormItem
  2430. className="half-item"
  2431. {...formItemLayout}
  2432. label="财务负责人电话"
  2433. >
  2434. <span>{this.state.financeMobile}</span>
  2435. </FormItem>
  2436. </div>
  2437. <div>
  2438. <span style={{ marginLeft: "50px", fontSize: "18px" }}>
  2439. 项目业务
  2440. </span>
  2441. {this.state.processStatus == 0 ? (
  2442. <Button
  2443. type="primary"
  2444. onClick={this.addDetailed}
  2445. style={{
  2446. float: "right",
  2447. marginRight: "50px",
  2448. marginBottom: "15px",
  2449. }}
  2450. >
  2451. 添加项目明细
  2452. </Button>
  2453. ) : (
  2454. ""
  2455. )}
  2456. </div>
  2457. <div className="patent-table">
  2458. <Spin spinning={this.state.loading}>
  2459. <Table
  2460. columns={this.state.columnsX}
  2461. dataSource={this.state.dataSourceX}
  2462. pagination={this.state.paginations}
  2463. onRowClick={this.tableRowClickX}
  2464. bordered
  2465. size="small"
  2466. />
  2467. </Spin>
  2468. </div>
  2469. <div style={{ marginTop: 10 }}>
  2470. <span style={{ marginLeft: 50, fontSize: "18px" }}>
  2471. 催款节点
  2472. </span>
  2473. <span
  2474. style={{
  2475. display: cuiDataList.length ? "none" : "inline-block",
  2476. marginLeft: 10,
  2477. color: "red",
  2478. }}
  2479. >
  2480. 金额总计(万元): {this.state.totalCui}
  2481. </span>
  2482. </div>
  2483. <div className="clearfix">
  2484. <Spin spinning={this.state.loading}>
  2485. <Form layout="horizontal" id="demand-form">
  2486. <Table
  2487. pagination={false}
  2488. bordered
  2489. size="small"
  2490. columns={
  2491. cuiDataList.length
  2492. ? this.state.ContactsLists
  2493. : this.state.ContactsListsNew
  2494. }
  2495. dataSource={
  2496. cuiDataList.length
  2497. ? this.state.contactList
  2498. : this.state.contactListNew
  2499. }
  2500. />
  2501. <Col
  2502. span={24}
  2503. offset={9}
  2504. style={{ marginTop: "15px" }}
  2505. ></Col>
  2506. </Form>
  2507. </Spin>
  2508. </div>
  2509. <div className="addSave" style={{ marginTop: "15px" }}>
  2510. <Button
  2511. className="cancel"
  2512. type="primary"
  2513. onClick={this.pass}
  2514. style={{ marginLeft: "200px" }}
  2515. htmlType="submit"
  2516. >
  2517. 通过
  2518. </Button>
  2519. <Button
  2520. className="cancel"
  2521. type="primary"
  2522. onClick={this.examNo}
  2523. style={{ marginLeft: "50px" }}
  2524. htmlType="submit"
  2525. >
  2526. 驳回
  2527. </Button>
  2528. <Button
  2529. className="cancel"
  2530. type="ghost"
  2531. onClick={this.visitCancel}
  2532. style={{ marginLeft: "50px" }}
  2533. >
  2534. 取消
  2535. </Button>
  2536. </div>
  2537. </div>
  2538. </Spin>
  2539. </Form>
  2540. </Modal> : <div/>}
  2541. {this.state.noVisible ? <Modal
  2542. maskClosable={false}
  2543. visible={this.state.noVisible}
  2544. onOk={this.noCancel}
  2545. onCancel={this.noCancel}
  2546. width="400px"
  2547. title={"拒绝理由"}
  2548. footer=""
  2549. className="admin-desc-content"
  2550. >
  2551. <Form layout="horizontal" id="demand-form">
  2552. <Spin spinning={this.state.loading}>
  2553. <div className="clearfix">
  2554. <FormItem
  2555. labelCol={{ span: 4 }}
  2556. wrapperCol={{ span: 16 }}
  2557. label="拒绝理由"
  2558. >
  2559. <Input
  2560. type="textarea"
  2561. placeholder="请输入拒绝理由"
  2562. rows={4}
  2563. value={this.state.reason}
  2564. onChange={(e) => {
  2565. this.setState({ reason: e.target.value });
  2566. }}
  2567. />
  2568. </FormItem>
  2569. </div>
  2570. <div className="clearfix">
  2571. <Button
  2572. className="cancel"
  2573. type="primary"
  2574. onClick={this.examOks}
  2575. style={{ marginLeft: "50px" }}
  2576. htmlType="submit"
  2577. >
  2578. 确定
  2579. </Button>
  2580. <Button
  2581. className="cancel"
  2582. type="ghost"
  2583. onClick={this.noCancel}
  2584. style={{ marginLeft: "50px" }}
  2585. >
  2586. 取消
  2587. </Button>
  2588. </div>
  2589. </Spin>
  2590. </Form>
  2591. </Modal> : <div/>}
  2592. {this.state.passVisible ? <Modal
  2593. maskClosable={false}
  2594. visible={this.state.passVisible}
  2595. onOk={this.passCancel}
  2596. onCancel={this.passCancel}
  2597. width="400px"
  2598. title={"同意理由"}
  2599. footer=""
  2600. className="admin-desc-content"
  2601. >
  2602. <Form layout="horizontal">
  2603. <Spin spinning={this.state.loading}>
  2604. <div className="clearfix">
  2605. <FormItem
  2606. labelCol={{ span: 4 }}
  2607. wrapperCol={{ span: 16 }}
  2608. label="同意备注"
  2609. >
  2610. <Input
  2611. type="textarea"
  2612. placeholder="请输入备注"
  2613. rows={4}
  2614. value={this.state.reason}
  2615. onChange={(e) => {
  2616. this.setState({ reason: e.target.value });
  2617. }}
  2618. />
  2619. </FormItem>
  2620. </div>
  2621. <div className="clearfix">
  2622. <Button
  2623. className="cancel"
  2624. type="primary"
  2625. onClick={this.examOk}
  2626. style={{ marginLeft: "50px" }}
  2627. htmlType="submit"
  2628. >
  2629. 确定
  2630. </Button>
  2631. <Button
  2632. className="cancel"
  2633. type="ghost"
  2634. onClick={this.passCancel}
  2635. style={{ marginLeft: "50px" }}
  2636. >
  2637. 取消
  2638. </Button>
  2639. </div>
  2640. </Spin>
  2641. </Form>
  2642. </Modal> : <div/>}
  2643. {this.state.rizhivisible ? <Modal
  2644. visible={this.state.rizhivisible}
  2645. className="admin-desc-content"
  2646. width="800px"
  2647. maskClosable={false}
  2648. title="订单日志"
  2649. footer={null}
  2650. onCancel={this.closeOrderLog}
  2651. >
  2652. <div className="patent-table">
  2653. <Spin spinning={this.state.loading}>
  2654. <Table
  2655. columns={this.state.columnsrizhi}
  2656. dataSource={this.state.dataSourcerizhi}
  2657. pagination={false}
  2658. bordered
  2659. size="small"
  2660. />
  2661. </Spin>
  2662. </div>
  2663. </Modal> : <div/>}
  2664. {this.state.dvisible ? <Modal
  2665. maskClosable={false}
  2666. visible={this.state.dvisible}
  2667. footer=""
  2668. title="所有列表信息"
  2669. className="admin-desc-content"
  2670. width="1400px"
  2671. onCancel={() => {
  2672. // this.loadData();
  2673. this.setState({
  2674. dvisible: false,
  2675. });
  2676. }}
  2677. >
  2678. <Spin spinning={this.state.loading}>
  2679. <div
  2680. className="patent-table"
  2681. style={{
  2682. // width: 900,
  2683. // position: "relative",
  2684. // left: "50%",
  2685. // transform: "translate(-50%)",
  2686. padding: "25px 0 30px 30px",
  2687. }}
  2688. ref={(e) => {
  2689. this.refs.all = e;
  2690. }}
  2691. >
  2692. <Table
  2693. columns={this.state.columns}
  2694. dataSource={this.state.dataSource}
  2695. pagination={false}
  2696. bordered
  2697. size="small"
  2698. />
  2699. </div>
  2700. </Spin>
  2701. <ReactToPrint
  2702. trigger={() => (
  2703. <Button
  2704. type="primary"
  2705. style={{
  2706. float: "right",
  2707. marginTop: 10,
  2708. position: "absolute",
  2709. top: 0,
  2710. right: 30,
  2711. }}
  2712. >
  2713. 打印
  2714. </Button>
  2715. )}
  2716. content={() => this.refs.all}
  2717. />
  2718. </Modal> : <div/>}
  2719. {this.state.bvisible ? <Modal
  2720. maskClosable={false}
  2721. visible={this.state.bvisible}
  2722. footer=""
  2723. title="开票历史记录"
  2724. className="admin-desc-content"
  2725. width="900px"
  2726. onCancel={this.inRecordCanl}
  2727. >
  2728. <Spin spinning={this.state.loading}>
  2729. <div
  2730. className="patent-table"
  2731. ref={(e) => {
  2732. this.refs.kaiPiao = e;
  2733. }}
  2734. >
  2735. <Table
  2736. columns={this.state.columnsDate}
  2737. dataSource={this.state.recordData}
  2738. pagination={false}
  2739. bordered
  2740. size="small"
  2741. />
  2742. <div className="clearfix" style={{ marginTop: "20px" }}>
  2743. <FormItem
  2744. className="half-item"
  2745. {...formItemLayout}
  2746. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2747. >
  2748. <span>{this.state.sum + "(万元)"}</span>
  2749. </FormItem>
  2750. </div>
  2751. <ReactToPrint
  2752. trigger={() => (
  2753. <Button
  2754. type="primary"
  2755. style={{
  2756. float: "right",
  2757. // marginTop: 10,
  2758. position: "absolute",
  2759. top: -54,
  2760. right: 30,
  2761. }}
  2762. >
  2763. 打印
  2764. </Button>
  2765. )}
  2766. content={() => this.refs.kaiPiao}
  2767. />
  2768. </div>
  2769. </Spin>
  2770. </Modal> : <div/>}
  2771. {this.state.cvisible ? <Modal
  2772. maskClosable={false}
  2773. visible={this.state.cvisible}
  2774. footer=""
  2775. title="详细收款流水"
  2776. className="admin-desc-content"
  2777. width="1300px"
  2778. onCancel={this.waterCanl}
  2779. >
  2780. <Spin spinning={this.state.loading}>
  2781. <div
  2782. className="patent-table"
  2783. ref={(e) => {
  2784. this.refs.shouKuan = e;
  2785. }}
  2786. >
  2787. <Table
  2788. columns={this.state.waterlistDate}
  2789. dataSource={this.state.waterData}
  2790. pagination={false}
  2791. bordered
  2792. size="small"
  2793. />
  2794. <div className="clearfix" style={{ marginTop: "20px" }}>
  2795. <FormItem
  2796. className="half-item"
  2797. {...formItemLayout}
  2798. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2799. >
  2800. <span>{this.state.waterSum + "(万元)"}</span>
  2801. </FormItem>
  2802. </div>
  2803. <ReactToPrint
  2804. trigger={() => (
  2805. <Button
  2806. type="primary"
  2807. style={{
  2808. float: "right",
  2809. position: "absolute",
  2810. top: -54,
  2811. right: 30,
  2812. }}
  2813. >
  2814. 打印
  2815. </Button>
  2816. )}
  2817. content={() => this.refs.shouKuan}
  2818. />
  2819. </div>
  2820. </Spin>
  2821. </Modal> : <div/>}
  2822. {this.state.timeVisible ? <Modal
  2823. maskClosable={false}
  2824. visible={this.state.timeVisible}
  2825. footer=""
  2826. title="工时详情"
  2827. className="admin-desc-content"
  2828. width="1300px"
  2829. pagination={false}
  2830. onCancel={() => {
  2831. // this.loadData();
  2832. this.setState({
  2833. timeVisible: false,
  2834. });
  2835. }}
  2836. >
  2837. <Spin spinning={this.state.loading}>
  2838. <div
  2839. className="patent-table"
  2840. style={
  2841. {
  2842. // width: 900,
  2843. // position: "relative",
  2844. // left: "50%",
  2845. // transform: "translate(-50%)",
  2846. // padding: "25px 0 30px 30px"
  2847. }
  2848. }
  2849. ref={(e) => {
  2850. this.refs.all = e;
  2851. }}
  2852. >
  2853. <Table
  2854. columns={this.state.timeColumns}
  2855. dataSource={this.state.timeDataList}
  2856. scroll={{ x: "max-content", y: 0 }}
  2857. pagination={false}
  2858. bordered
  2859. size="small"
  2860. />
  2861. </div>
  2862. </Spin>
  2863. <ReactToPrint
  2864. trigger={() => (
  2865. <Button
  2866. type="primary"
  2867. style={{
  2868. float: "right",
  2869. marginTop: 10,
  2870. position: "absolute",
  2871. top: 0,
  2872. right: 30,
  2873. }}
  2874. >
  2875. 打印
  2876. </Button>
  2877. )}
  2878. content={() => this.refs.all}
  2879. />
  2880. </Modal> : <div/>}
  2881. {this.state.cuiVisible ? <Modal
  2882. maskClosable={false}
  2883. visible={this.state.cuiVisible}
  2884. footer=""
  2885. title="催款详情"
  2886. className="admin-desc-content"
  2887. width="1300px"
  2888. pagination={false}
  2889. onCancel={() => {
  2890. // this.loadData();
  2891. this.setState({
  2892. cuiVisible: false,
  2893. });
  2894. }}
  2895. >
  2896. <Spin spinning={this.state.loading}>
  2897. <div
  2898. className="patent-table"
  2899. style={
  2900. {
  2901. // width: 900,
  2902. // position: "relative",
  2903. // left: "50%",
  2904. // transform: "translate(-50%)",
  2905. // padding: "25px 0 30px 30px"
  2906. }
  2907. }
  2908. ref={(e) => {
  2909. this.refs.all = e;
  2910. }}
  2911. >
  2912. <Table
  2913. columns={this.state.cuiColumns}
  2914. dataSource={this.state.cuiDataList}
  2915. scroll={{ x: "max-content", y: 0 }}
  2916. pagination={false}
  2917. bordered
  2918. size="small"
  2919. />
  2920. </div>
  2921. </Spin>
  2922. <ReactToPrint
  2923. trigger={() => (
  2924. <Button
  2925. type="primary"
  2926. style={{
  2927. float: "right",
  2928. marginTop: 10,
  2929. position: "absolute",
  2930. top: 0,
  2931. right: 30,
  2932. }}
  2933. >
  2934. 打印
  2935. </Button>
  2936. )}
  2937. content={() => this.refs.all}
  2938. />
  2939. </Modal> : <div/>}
  2940. {this.state.proVisible ? <Modal
  2941. maskClosable={false}
  2942. visible={this.state.proVisible}
  2943. footer=""
  2944. title="项目详情"
  2945. className="admin-desc-content"
  2946. width="1300px"
  2947. pagination={false}
  2948. onCancel={() => {
  2949. // this.loadData();
  2950. this.setState({
  2951. proVisible: false,
  2952. });
  2953. }}
  2954. >
  2955. <Spin spinning={this.state.loading}>
  2956. <Project
  2957. record={this.state.record}
  2958. visible={this.state.pvisible}
  2959. cancel={() => {
  2960. this.setState({ pvisible: false });
  2961. }}
  2962. />
  2963. <div
  2964. className="patent-table"
  2965. style={
  2966. {
  2967. // width: 900,
  2968. // position: "relative",
  2969. // left: "50%",
  2970. // transform: "translate(-50%)",
  2971. // padding: "25px 0 30px 30px"
  2972. }
  2973. }
  2974. ref={(e) => {
  2975. this.refs.all = e;
  2976. }}
  2977. >
  2978. <Table
  2979. columns={this.state.proColumns}
  2980. dataSource={this.state.proDataList}
  2981. // onRowClick={this.tableRowClickPro}
  2982. pagination={false}
  2983. bordered
  2984. size="small"
  2985. />
  2986. </div>
  2987. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  2988. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  2989. </span>
  2990. </Spin>
  2991. <ReactToPrint
  2992. trigger={() => (
  2993. <Button
  2994. type="primary"
  2995. style={{
  2996. float: "right",
  2997. marginTop: 10,
  2998. position: "absolute",
  2999. top: 0,
  3000. right: 30,
  3001. }}
  3002. >
  3003. 打印
  3004. </Button>
  3005. )}
  3006. content={() => this.refs.all}
  3007. />
  3008. </Modal> : <div/>}
  3009. </div>
  3010. {this.state.addnextVisible && <ProjectDetailsReadOnly
  3011. infor={this.state.dataInfor}
  3012. visible={this.state.addnextVisible}
  3013. onCancel={this.nextCancel}
  3014. />}
  3015. </div>
  3016. );
  3017. },
  3018. })
  3019. );
  3020. export default IntentionCustomer;