approveds.jsx 96 KB

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