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