approvedOutsourcingAll.jsx 134 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import moment from "moment";
  4. import "./public.less";
  5. import {
  6. Button,
  7. Form,
  8. Input,
  9. Select,
  10. Spin,
  11. Table,
  12. message,
  13. DatePicker,
  14. Modal,
  15. Upload,
  16. Tabs,
  17. Col,
  18. Tag, Tooltip
  19. } from "antd";
  20. import Receivable from "./receivable";
  21. import Assign from "@/manageCenter/publicComponent/assign";
  22. import ReactToPrint from "react-to-print";
  23. import ResolutionDetail from "@/resolutionDetail";
  24. import KaiPiaoModal from "./kaiPiaoModal";
  25. import OrderRiZi from "@/orderRiZi.jsx";
  26. import {
  27. getjiedian,
  28. getProcessStatus,
  29. getApproval,
  30. getNewOrderType,
  31. getLiquidationStatus,
  32. splitUrl,
  33. getprovince,
  34. getRefundStatus,
  35. getTransactionProject,
  36. getTaskStatus,
  37. getNewOrderStatus,
  38. getInvoiceStatus,
  39. getCuikuan
  40. } from "@/tools";
  41. import { ChooseList } from "../../../../component/manageCenter/order/orderNew/chooseList";
  42. import ImgList from "../../../common/imgList";
  43. import { getProjectName } from "../../../tools";
  44. import OrderItemStatus from "../../../common/orderItemStatus";
  45. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  46. import LogPopup from "../../../common/logPopup";
  47. import ContentUrl from "../../order/orderNew/contentUrl";
  48. import { salesList } from '@/dataDic.js'
  49. import Cascaders from "../../../common/cascaders";
  50. const FormItem = Form.Item;
  51. const approvedOutsourcing = React.createClass({
  52. departmentList() {
  53. this.setState({
  54. loading: true,
  55. });
  56. $.ajax({
  57. method: "get",
  58. dataType: "json",
  59. crossDomain: false,
  60. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  61. data: {},
  62. success: function (data) {
  63. let thedata = data.data;
  64. let theArr = [];
  65. if (!thedata) {
  66. if (data.error && data.error.length) {
  67. message.warning(data.error[0].message);
  68. }
  69. } else {
  70. thedata.map(function (item, index) {
  71. theArr.push({
  72. key: index,
  73. name: item.name,
  74. id: item.id,
  75. });
  76. });
  77. }
  78. this.setState({
  79. departmentArr: theArr,
  80. });
  81. }.bind(this),
  82. }).always(
  83. function () {
  84. this.setState({
  85. loading: false,
  86. });
  87. }.bind(this)
  88. );
  89. },
  90. loadData(pageNo, pageSize) {
  91. this.state.data = [];
  92. this.setState({
  93. page: pageNo,
  94. loadingA: true,
  95. });
  96. $.ajax({
  97. method: "get",
  98. dataType: "json",
  99. crossDomain: false,
  100. url: globalConfig.context + "/api/admin/financial/financeList",
  101. data: {
  102. pageNo: pageNo || 1,
  103. pageSize: pageSize || this.state.pagination.pageSize,
  104. buyerName: this.state.nameSearch, //客户名称
  105. orderNo: this.state.orderNoSearch,
  106. startTime: this.state.releaseDate[0],
  107. endTime: this.state.releaseDate[1],
  108. startFinalReceivablesTime: this.state.shouKuanDate[0],
  109. endFinalReceivablesTime: this.state.shouKuanDate[1],
  110. deps: this.state.departmenttList,
  111. processStatus: this.state.processStatusSearch,
  112. contractNo: this.state.contractNoSearch,
  113. outsource: 1,
  114. liquidationStatus: this.state.liquidationStatus,
  115. amountStatus: this.state.amountStatus,
  116. },
  117. success: function (data) {
  118. let theArr = [];
  119. if (!data.data || !data.data.pagination.list) {
  120. if (data.error && data.error.length) {
  121. message.warning(data.error[0].message);
  122. }
  123. } else {
  124. for (let i = 0; i < data.data.pagination.list.length; i++) {
  125. let thisdata = data.data.pagination.list[i];
  126. theArr.push({
  127. key: thisdata.orderNo,
  128. orderNo: thisdata.orderNo,
  129. orderType: thisdata.orderType,
  130. orderStatus: thisdata.orderStatus,
  131. sellerName: thisdata.sellerName,
  132. examineName: thisdata.examineName,
  133. processStatus: thisdata.processStatus,
  134. liquidationStatus: thisdata.liquidationStatus,
  135. approval: thisdata.approval,
  136. buyerName: thisdata.buyerName,
  137. actuallyTotalAmount: thisdata.actuallyTotalAmount,
  138. signTime: thisdata.signTime,
  139. companyId: thisdata.companyId,
  140. companyName: thisdata.companyName,
  141. buyerId: thisdata.buyerId,
  142. contractNo: thisdata.contractNo,
  143. createTime: thisdata.createTime,
  144. departmentName: thisdata.departmentName,
  145. outsourceName: thisdata.outsourceName,
  146. invoiceAmount: thisdata.invoiceAmount,
  147. finalReceivables: thisdata.finalReceivables,
  148. finalReceivablesTime: thisdata.finalReceivablesTime,
  149. signTotalAmount: thisdata.signTotalAmount,
  150. outsourceAmount: thisdata.outsourceAmount,
  151. financeName: thisdata.financeName,
  152. backStatus: thisdata.backStatus,
  153. orderReceivables: thisdata.orderReceivables,
  154. orderArrears: thisdata.orderArrears,
  155. costAmount: thisdata.costAmount,
  156. paymentAmount: thisdata.paymentAmount,
  157. patentCost: thisdata.patentCost,
  158. patentCostActual: thisdata.patentCostActual,
  159. softCost: thisdata.softCost,
  160. softCostActual: thisdata.softCostActual,
  161. auditCost: thisdata.auditCost,
  162. auditCostActual: thisdata.auditCostActual,
  163. otherCost: thisdata.otherCost,
  164. otherCostActual: thisdata.otherCostActual,
  165. expectProfit: thisdata.expectProfit,
  166. actualProfit: thisdata.actualProfit,
  167. });
  168. }
  169. }
  170. this.state.pagination.current = data.data.pagination.pageNo;
  171. this.state.pagination.total = data.data.pagination.totalCount;
  172. if (
  173. data.data &&
  174. data.data.pagination.list &&
  175. !data.data.pagination.list.length
  176. ) {
  177. this.state.pagination.current = 0;
  178. this.state.pagination.total = 0;
  179. }
  180. this.setState({
  181. totalPage: data.data.pagination.totalPage,
  182. dataSource: theArr,
  183. pagination: this.state.pagination,
  184. totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
  185. hui: data.data.count ? data.data.count.actuallyTotalAmount : 0,
  186. });
  187. }.bind(this),
  188. }).always(
  189. function () {
  190. this.setState({
  191. loadingA: false,
  192. });
  193. }.bind(this)
  194. );
  195. },
  196. getInitialState() {
  197. return {
  198. cuiTabKey: "1",
  199. rotateDeg: 0,
  200. searchMore: true,
  201. assignVisibleX: false,
  202. assignVisibleY: false,
  203. releaseDate: [],
  204. shouKuanDate: [],
  205. assignDataX: [],
  206. assignDataY: [],
  207. attachmentUrl: [],
  208. pictureUrl: [],
  209. totalPage: 0,
  210. modKey: "1",
  211. width: "800px",
  212. boHuivisible: false,
  213. selectedRowKeys: [],
  214. selectedRows: [],
  215. loading: false,
  216. pagination: {
  217. defaultCurrent: 1,
  218. defaultPageSize: 10,
  219. showQuickJumper: true,
  220. pageSize: 10,
  221. onChange: function (page) {
  222. this.loadData(page);
  223. }.bind(this),
  224. showTotal: function (total) {
  225. return "共" + total + "条数据";
  226. },
  227. },
  228. loadingA: false,
  229. // 子组件改变的表格title数组
  230. changeList: undefined,
  231. columns: [
  232. {
  233. title: "合同编号",
  234. dataIndex: "contractNo",
  235. key: "contractNo",
  236. className: "title-table",
  237. fixed: "left",
  238. },
  239. {
  240. title: "客户名称",
  241. dataIndex: "buyerName",
  242. key: "buyerName",
  243. className: "title-table",
  244. fixed: "left",
  245. width: 150,
  246. render: text => {
  247. return (
  248. <Tooltip title={text}>
  249. <div
  250. // style={{
  251. // maxWidth: '150px',
  252. // overflow: 'hidden',
  253. // textOverflow: "ellipsis",
  254. // whiteSpace: 'nowrap',
  255. // }}
  256. >{text}</div>
  257. </Tooltip>
  258. )
  259. }
  260. },
  261. {
  262. title: "订单编号",
  263. dataIndex: "orderNo",
  264. key: "orderNo",
  265. className: "title-table",
  266. // fixed: "left"
  267. },
  268. {
  269. title: "特批状态",
  270. dataIndex: "approval",
  271. key: "approval",
  272. className: "title-table",
  273. render: (text) => {
  274. if (text == 1 || text == 2) {
  275. return <Tag color="#f50">{getApproval(text)}</Tag>;
  276. }
  277. return getApproval(text);
  278. },
  279. },
  280. {
  281. title: "订单部门",
  282. dataIndex: "departmentName",
  283. key: "departmentName",
  284. className: "title-table",
  285. },
  286. {
  287. title: "订单负责人",
  288. dataIndex: "sellerName",
  289. key: "sellerName",
  290. className: "title-table",
  291. },
  292. {
  293. title: "财务负责人",
  294. dataIndex: "financeName",
  295. key: "financeName",
  296. className: "title-table",
  297. },
  298. {
  299. title: "外包公司",
  300. dataIndex: "outsourceName",
  301. key: "outsourceName",
  302. className: "title-table",
  303. },
  304. {
  305. title: "签单日期",
  306. dataIndex: "signTime",
  307. key: "signTime",
  308. className: "title-table",
  309. },
  310. {
  311. title: "下单日期",
  312. dataIndex: "createTime",
  313. key: "createTime",
  314. className: "title-table",
  315. },
  316. {
  317. title: "签单金额(万元)",
  318. dataIndex: "signTotalAmount",
  319. key: "signTotalAmount",
  320. className: "title-table",
  321. render: (text) => {
  322. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  323. }
  324. },
  325. {
  326. title: "开票金额(万元)",
  327. dataIndex: "invoiceAmount",
  328. key: "invoiceAmount",
  329. className: "title-table",
  330. render: (text) => {
  331. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  332. }
  333. },
  334. {
  335. title: "已收款(万元)",
  336. dataIndex: "actuallyTotalAmount",
  337. key: "actuallyTotalAmount",
  338. className: "title-table",
  339. render: (text) => {
  340. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  341. }
  342. },
  343. {
  344. title: "应收款(万元)",
  345. dataIndex: "orderReceivables",
  346. key: "orderReceivables",
  347. className: "title-table",
  348. render: (text) => {
  349. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  350. }
  351. },
  352. {
  353. title: "欠款(万元)",
  354. dataIndex: "orderArrears",
  355. key: "orderArrears",
  356. className: "title-table",
  357. render: (text) => {
  358. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  359. }
  360. },
  361. {
  362. title: "总成本/实付",
  363. dataIndex: "costAmount",
  364. key: "costAmount",
  365. className: "title-table",
  366. render: (text, record) => {
  367. return (
  368. <span>
  369. {isNaN(parseFloat(text)) ? text : parseFloat(text)}/
  370. {isNaN(parseFloat(record.paymentAmount)) ? text : parseFloat(record.paymentAmount)}
  371. </span>
  372. )
  373. },
  374. },
  375. {
  376. title: "专利/专利已付",
  377. dataIndex: "patentCost",
  378. key: "patentCost",
  379. className: "title-table",
  380. render: (text, record) => {
  381. return (
  382. <span>
  383. {isNaN(parseFloat(text)) ? text : parseFloat(text)}/
  384. {isNaN(parseFloat(record.patentCostActual)) ? text : parseFloat(record.patentCostActual)}
  385. </span>
  386. )
  387. },
  388. },
  389. {
  390. title: "软著/软著已付",
  391. dataIndex: "softCost",
  392. key: "softCost",
  393. className: "title-table",
  394. render: (text, record) => {
  395. return (
  396. <span>
  397. {isNaN(parseFloat(text)) ? text : parseFloat(text)}/
  398. {isNaN(parseFloat(record.softCostActual)) ? text : parseFloat(record.softCostActual)}
  399. </span>
  400. )
  401. },
  402. },
  403. {
  404. title: "审计/审计已付",
  405. dataIndex: "auditCost",
  406. key: "auditCost",
  407. className: "title-table",
  408. render: (text, record) => {
  409. return (
  410. <span>
  411. {isNaN(parseFloat(text)) ? text : parseFloat(text)}/
  412. {isNaN(parseFloat(record.auditCostActual)) ? text : parseFloat(record.auditCostActual)}
  413. </span>
  414. )
  415. },
  416. },
  417. {
  418. title: "其他/其他已付",
  419. dataIndex: "otherCost",
  420. key: "otherCost",
  421. className: "title-table",
  422. render: (text, record) => {
  423. return (
  424. <span>
  425. {isNaN(parseFloat(text)) ? text : parseFloat(text)}/
  426. {isNaN(parseFloat(record.otherCostActual)) ? text : parseFloat(record.otherCostActual)}
  427. </span>
  428. )
  429. },
  430. },
  431. {
  432. title: "预估毛利(万元)",
  433. dataIndex: "expectProfit",
  434. key: "expectProfit",
  435. className: "title-table",
  436. },
  437. {
  438. title: "实际毛利(万元)",
  439. dataIndex: "actualProfit",
  440. key: "actualProfit",
  441. className: "title-table",
  442. },
  443. {
  444. title: "最近收款(万元)",
  445. dataIndex: "finalReceivables",
  446. key: "finalReceivables",
  447. className: "title-table",
  448. render: (text) => {
  449. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  450. }
  451. },
  452. {
  453. title: "外包成本",
  454. dataIndex: "outsourceAmount",
  455. key: "outsourceAmount",
  456. className: "title-table",
  457. render: (text) => {
  458. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  459. }
  460. },
  461. {
  462. title: "最近收款时间",
  463. dataIndex: "finalReceivablesTime",
  464. key: "finalReceivablesTime",
  465. className: "title-table",
  466. },
  467. {
  468. title: "结算状态",
  469. dataIndex: "liquidationStatus",
  470. key: "liquidationStatus",
  471. className: "title-table",
  472. render: (text) => {
  473. return getLiquidationStatus(text);
  474. },
  475. },
  476. {
  477. title: "流程状态",
  478. dataIndex: "processStatus",
  479. key: "processStatus",
  480. className: "title-table",
  481. render: (text, record) => {
  482. return getProcessStatus(text, record.examineName, record.approval);
  483. },
  484. },
  485. {
  486. title: "驳回状态",
  487. dataIndex: "backStatus",
  488. key: "backStatus",
  489. className: "title-table",
  490. render: (text) => {
  491. if (text == 3) {
  492. return <Tag>已驳回</Tag>;
  493. } else {
  494. return "";
  495. }
  496. },
  497. },
  498. // {
  499. // title: "操作",
  500. // dataIndex: "caozuo",
  501. // key: "caouzo",
  502. // className: "title-table",
  503. // render: (text, recard) => {
  504. // return (
  505. // <div>
  506. // {recard.liquidationStatus < 2 &&
  507. // (recard.approval === 1 || recard.approval === 2) ? (
  508. // <Button
  509. // style={{ background: "rgb(192,192,192)" }}
  510. // onClick={e => {
  511. // e.stopPropagation(), this.evaluateX(recard);
  512. // }}
  513. // >
  514. // 收款
  515. // </Button>
  516. // ) : (
  517. // <Button
  518. // type="primary"
  519. // onClick={e => {
  520. // e.stopPropagation(), this.evaluateX(recard);
  521. // }}
  522. // >
  523. // 收款
  524. // </Button>
  525. // )}
  526. // {recard.processStatus < 4 ? (
  527. // <Button
  528. // type="primary"
  529. // onClick={e => {
  530. // e.stopPropagation(), this.evaluateZ(recard);
  531. // }}
  532. // style={{ marginLeft: "5px" }}
  533. // >
  534. // 通过
  535. // </Button>
  536. // ) : (
  537. // ""
  538. // )}
  539. // {!(
  540. // recard.actuallyTotalAmount &&
  541. // Number(recard.actuallyTotalAmount) > 0
  542. // ) && (
  543. // <Button
  544. // type="danger"
  545. // style={{ marginLeft: "5px" }}
  546. // onClick={e => {
  547. // e.stopPropagation(), this.reject(recard);
  548. // }}
  549. // >
  550. // 驳回
  551. // </Button>
  552. // )}
  553. // {
  554. // // <Button
  555. // // type="primary"
  556. // // style={{ marginLeft: "5px" }}
  557. // // onClick={e => {
  558. // // e.stopPropagation(), this.evaluateY(recard, "财务专员");
  559. // // console.log(recard);
  560. // // }}
  561. // // >
  562. // // 转交
  563. // // </Button>
  564. // }
  565. // </div>
  566. // );
  567. // }
  568. // }
  569. ],
  570. ContactsListsNew: [
  571. {
  572. title: "项目名称",
  573. dataIndex: "commodityName",
  574. key: "commodityName",
  575. render: (text, record) => {
  576. return <span>{text + "-" + record.tid}</span>;
  577. },
  578. },
  579. {
  580. title: "项目分类",
  581. dataIndex: "projectType",
  582. key: "projectType",
  583. render: (text) => {
  584. let arr = this.state.dataSourceX || [];
  585. let str = "";
  586. for (let i = 0; i < arr.length; i++) {
  587. if (this.state.dataSourceX[i].sort == text) {
  588. str = this.state.dataSourceX[i].cname;
  589. return <span>{str}</span>;
  590. }
  591. }
  592. },
  593. },
  594. {
  595. title: "催款科目",
  596. dataIndex: "dunTypeName",
  597. key: "dunTypeName",
  598. render: (text, record) => {
  599. if (record.customizeName) {
  600. return text + record.customizeName;
  601. }
  602. return <span>{text}</span>;
  603. },
  604. },
  605. {
  606. title: "时间(天)",
  607. dataIndex: "waitDay",
  608. key: "waitDay",
  609. render: (text, record) => {
  610. if (record.dunTypeName) {
  611. if (record.customizeTimes) {
  612. return record.customizeTimes;
  613. }
  614. return <span>{text}</span>;
  615. }
  616. },
  617. },
  618. {
  619. title: "金额(万元)",
  620. dataIndex: "money",
  621. key: "money",
  622. render: (text, record) => {
  623. if (record.dunTypeName) {
  624. if (record.appropriationRatio) {
  625. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  626. percent += "%";
  627. return <span>{percent}(拨款比例)</span>;
  628. } else {
  629. return <span>{text}</span>;
  630. }
  631. }
  632. },
  633. },
  634. {
  635. title: "服务年限",
  636. dataIndex: "startDate",
  637. key: "startDate",
  638. render: (text, record) => {
  639. if (record.dunTypeName) {
  640. return <span>{text}</span>;
  641. }
  642. },
  643. },
  644. {
  645. title: "催款状态",
  646. dataIndex: "status",
  647. key: "status",
  648. render: (text) => {
  649. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  650. },
  651. },
  652. ],
  653. ContactsLists: [
  654. {
  655. title: "催款科目",
  656. dataIndex: "dunSubject",
  657. key: "dunSubject",
  658. render: (text) => {
  659. return getjiedian(text);
  660. },
  661. },
  662. {
  663. title: "金额(万元)",
  664. dataIndex: "money",
  665. key: "money",
  666. },
  667. {
  668. title: "催款状态",
  669. dataIndex: "dunStatus",
  670. key: "dunStatus",
  671. render: (text) => {
  672. return getCuikuan(text);
  673. },
  674. },
  675. ],
  676. proColumns: [
  677. {
  678. title: "序号",
  679. dataIndex: "key",
  680. key: "key",
  681. },
  682. {
  683. title: "合同编号",
  684. dataIndex: "contractNo",
  685. key: "contractNo",
  686. },
  687. {
  688. title: "订单编号",
  689. dataIndex: "orderNo",
  690. key: "orderNo",
  691. },
  692. {
  693. title: "客户名称",
  694. dataIndex: "userName",
  695. key: "userName",
  696. render: text => {
  697. return (
  698. <Tooltip title={text}>
  699. <div
  700. // style={{
  701. // maxWidth: '150px',
  702. // overflow: 'hidden',
  703. // textOverflow: "ellipsis",
  704. // whiteSpace: 'nowrap',
  705. // }}
  706. >{text}</div>
  707. </Tooltip>
  708. )
  709. }
  710. },
  711. {
  712. title: "订单负责人",
  713. dataIndex: "salesmanName",
  714. key: "salesmanName",
  715. },
  716. {
  717. title: "是否主项目",
  718. dataIndex: "main",
  719. key: "main",
  720. render: (text) => {
  721. return text == 0 ? "否" : "是";
  722. },
  723. },
  724. {
  725. title: "项目类别",
  726. dataIndex: "cname",
  727. key: "cname",
  728. },
  729. {
  730. title: "项目名称",
  731. dataIndex: "commodityName",
  732. key: "commodityName",
  733. },
  734. {
  735. title: "项目数量",
  736. dataIndex: "commodityQuantity",
  737. key: "commodityQuantity",
  738. render: (text, record) => {
  739. if (record.splitStatus == 1) {
  740. return (
  741. <span>
  742. {text}{" "}
  743. <Tag
  744. color="#108ee9"
  745. onClick={(e) => {
  746. e.stopPropagation();
  747. this.showRes(record);
  748. }}
  749. >
  750. 已拆
  751. </Tag>
  752. </span>
  753. );
  754. } else {
  755. return text;
  756. }
  757. },
  758. },
  759. {
  760. title: "服务市价",
  761. dataIndex: "commodityPrice",
  762. key: "commodityPrice",
  763. },
  764. {
  765. title: "证书编号",
  766. dataIndex: "certificateNumber",
  767. key: "certificateNumber",
  768. },
  769. {
  770. title: "项目状态",
  771. dataIndex: "projectStatus",
  772. key: "projectStatus",
  773. render: (text) => {
  774. return getProjectName(text);
  775. },
  776. },
  777. {
  778. title: "项目说明",
  779. dataIndex: "taskComment",
  780. key: "taskComment",
  781. },
  782. // {
  783. // title: "外包(内部)公司",
  784. // dataIndex: "outsourceName",
  785. // key: "outsourceName",
  786. // },
  787. // {
  788. // title: "外包(内部)价格",
  789. // dataIndex: "outsourcePrice",
  790. // key: "outsourcePrice",
  791. // },
  792. ],
  793. cuiColumns: [
  794. {
  795. title: "序号",
  796. dataIndex: "key",
  797. key: "key",
  798. },
  799. {
  800. title: "合同编号",
  801. dataIndex: "contractNo",
  802. key: "contractNo",
  803. },
  804. {
  805. title: "订单编号",
  806. dataIndex: "orderNo",
  807. key: "orderNo",
  808. },
  809. {
  810. title: "客户名称",
  811. dataIndex: "userName",
  812. key: "userName",
  813. render: text => {
  814. return (
  815. <Tooltip title={text}>
  816. <div
  817. // style={{
  818. // maxWidth: '150px',
  819. // overflow: 'hidden',
  820. // textOverflow: "ellipsis",
  821. // whiteSpace: 'nowrap',
  822. // }}
  823. >{text}</div>
  824. </Tooltip>
  825. )
  826. }
  827. },
  828. {
  829. title: "订单负责人",
  830. dataIndex: "salesmanName",
  831. key: "salesmanName",
  832. },
  833. {
  834. title: "订单部门",
  835. dataIndex: "depName",
  836. key: "depName",
  837. },
  838. {
  839. title: "订单状态",
  840. dataIndex: "orderStatus",
  841. key: "orderStatus",
  842. render: (text) => {
  843. return getNewOrderStatus(text);
  844. },
  845. },
  846. {
  847. title: "项目状态",
  848. dataIndex: "projectStatus",
  849. key: "projectStatus",
  850. render: (text) => {
  851. return getProjectName(text);
  852. },
  853. },
  854. {
  855. title: "签单金额",
  856. dataIndex: "totalAmount",
  857. key: "totalAmount",
  858. },
  859. {
  860. title: "结算状态",
  861. dataIndex: "liquidationStatus",
  862. key: "liquidationStatus",
  863. render: (text) => {
  864. return getLiquidationStatus(text);
  865. },
  866. },
  867. {
  868. title: "已收款",
  869. dataIndex: "settlementAmount",
  870. key: "settlementAmount",
  871. },
  872. {
  873. title: "应收款",
  874. dataIndex: "accountsReceivable",
  875. key: "accountsReceivable",
  876. },
  877. {
  878. title: "催收科目",
  879. dataIndex: "dunSubject",
  880. key: "dunSubject",
  881. // render: text => {
  882. // return getjiedian(text);
  883. // }
  884. },
  885. {
  886. title: "催款状态",
  887. dataIndex: "dunStatus",
  888. key: "dunStatus",
  889. },
  890. {
  891. title: "催收启动时间",
  892. dataIndex: "startDate",
  893. key: "startDate",
  894. },
  895. ],
  896. timeColumns: [
  897. {
  898. title: "合同编号",
  899. dataIndex: "contractNo",
  900. key: "contractNo",
  901. },
  902. {
  903. title: "订单编号",
  904. dataIndex: "orderNo",
  905. key: "orderNo",
  906. },
  907. {
  908. title: "项目编号",
  909. dataIndex: "id",
  910. key: "id",
  911. render: (text, record) => {
  912. if (record.splitStatus == 2) {
  913. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  914. } else {
  915. return text;
  916. }
  917. },
  918. },
  919. {
  920. title: "客户名称",
  921. dataIndex: "userName",
  922. key: "userName",
  923. render: text => {
  924. return (
  925. <Tooltip title={text}>
  926. <div
  927. // style={{
  928. // maxWidth: '150px',
  929. // overflow: 'hidden',
  930. // textOverflow: "ellipsis",
  931. // whiteSpace: 'nowrap',
  932. // }}
  933. >{text}</div>
  934. </Tooltip>
  935. )
  936. }
  937. },
  938. {
  939. title: "订单部门",
  940. dataIndex: "depName",
  941. key: "depName",
  942. },
  943. {
  944. title: "订单负责人",
  945. dataIndex: "salesmanName",
  946. key: "salesmanName",
  947. },
  948. {
  949. title: "项目类别",
  950. dataIndex: "cname",
  951. key: "cname",
  952. },
  953. {
  954. title: "项目名称",
  955. dataIndex: "taskName",
  956. key: "taskName",
  957. },
  958. {
  959. title: "项目负责人",
  960. dataIndex: "receiverName",
  961. key: "receiverName",
  962. },
  963. {
  964. title: "项目价格(万元)",
  965. dataIndex: "commodityPrice",
  966. key: "commodityPrice",
  967. },
  968. {
  969. title: "数量(个)",
  970. dataIndex: "commodityQuantity",
  971. key: "commodityQuantity",
  972. },
  973. {
  974. title: "任务状态",
  975. dataIndex: "taskStatus",
  976. key: "taskStatus",
  977. render: (text) => {
  978. return getTaskStatus(text);
  979. },
  980. },
  981. {
  982. title: "项目状态",
  983. dataIndex: "projectStatus",
  984. key: "projectStatus",
  985. render: (text) => {
  986. return getProjectName(text);
  987. },
  988. },
  989. {
  990. title: "工时",
  991. dataIndex: "hours",
  992. key: "hours",
  993. },
  994. {
  995. title: "是否外包",
  996. dataIndex: "outsource",
  997. key: "outsource",
  998. render: (text) => {
  999. if (text == 0) {
  1000. return "否";
  1001. } else if (text == 1) {
  1002. return "是";
  1003. }
  1004. },
  1005. },
  1006. {
  1007. title: "签单日期",
  1008. dataIndex: "signTime",
  1009. key: "signTime",
  1010. },
  1011. {
  1012. title: "派单日期",
  1013. dataIndex: "creteTime",
  1014. key: "creteTime",
  1015. },
  1016. {
  1017. title: "分配时间",
  1018. dataIndex: "taskDistributionTime",
  1019. key: "taskDistributionTime",
  1020. },
  1021. {
  1022. title: "完成时间",
  1023. dataIndex: "taskEndTime",
  1024. key: "taskEndTime",
  1025. },
  1026. ],
  1027. printColumns: [
  1028. {
  1029. title: "合同编号",
  1030. dataIndex: "contractNo",
  1031. key: "contractNo",
  1032. },
  1033. {
  1034. title: "订单编号",
  1035. dataIndex: "orderNo",
  1036. key: "orderNo",
  1037. // fixed: "left"
  1038. },
  1039. {
  1040. title: "客户名称",
  1041. dataIndex: "buyerName",
  1042. key: "buyerName",
  1043. render: text => {
  1044. return (
  1045. <Tooltip title={text}>
  1046. <div
  1047. // style={{
  1048. // maxWidth: '150px',
  1049. // overflow: 'hidden',
  1050. // textOverflow: "ellipsis",
  1051. // whiteSpace: 'nowrap',
  1052. // }}
  1053. >{text}</div>
  1054. </Tooltip>
  1055. )
  1056. }
  1057. },
  1058. {
  1059. title: "订单部门",
  1060. dataIndex: "departmentName",
  1061. key: "departmentName",
  1062. },
  1063. {
  1064. title: "订单负责人",
  1065. dataIndex: "sellerName",
  1066. key: "sellerName",
  1067. },
  1068. {
  1069. title: "签单日期",
  1070. dataIndex: "signTime",
  1071. key: "signTime",
  1072. },
  1073. {
  1074. title: "下单日期",
  1075. dataIndex: "createTime",
  1076. key: "createTime",
  1077. },
  1078. {
  1079. title: "签单金额(万元)",
  1080. dataIndex: "signTotalAmount",
  1081. key: "signTotalAmount",
  1082. render: (text) => {
  1083. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1084. }
  1085. },
  1086. {
  1087. title: "开票金额(万元)",
  1088. dataIndex: "invoiceAmount",
  1089. key: "invoiceAmount",
  1090. render: (text) => {
  1091. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1092. }
  1093. },
  1094. {
  1095. title: "已收款(万元)",
  1096. dataIndex: "actuallyTotalAmount",
  1097. key: "actuallyTotalAmount",
  1098. render: (text) => {
  1099. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1100. }
  1101. },
  1102. {
  1103. title: "最近收款(万元)",
  1104. dataIndex: "finalReceivables",
  1105. key: "finalReceivables",
  1106. render: (text) => {
  1107. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1108. }
  1109. },
  1110. {
  1111. title: "最近收款时间",
  1112. dataIndex: "finalReceivablesTime",
  1113. key: "finalReceivablesTime",
  1114. },
  1115. {
  1116. title: "结算状态",
  1117. dataIndex: "liquidationStatus",
  1118. key: "liquidationStatus",
  1119. render: (text) => {
  1120. return getLiquidationStatus(text);
  1121. },
  1122. },
  1123. {
  1124. title: "流程状态",
  1125. dataIndex: "processStatus",
  1126. key: "processStatus",
  1127. render: (text, record) => {
  1128. return getProcessStatus(text, record.examineName, record.approval);
  1129. },
  1130. },
  1131. {
  1132. title: "特批状态",
  1133. dataIndex: "approval",
  1134. key: "approval",
  1135. render: (text) => {
  1136. return getApproval(text);
  1137. },
  1138. },
  1139. ],
  1140. columnsX: [
  1141. {
  1142. title: "业务项目名称",
  1143. dataIndex: "commodityName",
  1144. key: "commodityName",
  1145. render: (text, record) => {
  1146. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}</span>
  1147. }
  1148. },
  1149. {
  1150. title: "项目类别",
  1151. dataIndex: "cname",
  1152. key: "cname",
  1153. },
  1154. {
  1155. title: "项目数量",
  1156. dataIndex: "commodityQuantity",
  1157. key: "commodityQuantity",
  1158. render: (text, record) => {
  1159. if (record.splitStatus == 1) {
  1160. return (
  1161. <span>
  1162. {text}{" "}
  1163. <Tag
  1164. color="#108ee9"
  1165. onClick={(e) => {
  1166. e.stopPropagation();
  1167. this.showRes(record);
  1168. }}
  1169. >
  1170. 已拆
  1171. </Tag>
  1172. </span>
  1173. );
  1174. } else {
  1175. return text;
  1176. }
  1177. },
  1178. },
  1179. {
  1180. title: "服务市价(万元)",
  1181. dataIndex: "commodityPrice",
  1182. key: "commodityPrice",
  1183. },
  1184. {
  1185. title: "项目状态",
  1186. dataIndex: "projectStatus",
  1187. key: "projectStatus",
  1188. render: (text) => {
  1189. return getProjectName(text);
  1190. },
  1191. },
  1192. {
  1193. title: "证书编号",
  1194. dataIndex: "certificateNumber",
  1195. key: "certificateNumber",
  1196. },
  1197. {
  1198. title: "是否主要项目",
  1199. dataIndex: "main",
  1200. key: "main",
  1201. render: (text) => {
  1202. return text ? "是" : "否";
  1203. },
  1204. },
  1205. {
  1206. title: "项目说明",
  1207. dataIndex: "taskComment",
  1208. key: "taskComment",
  1209. render: (text) => {
  1210. return text && text.length > 8 ? (
  1211. <span title={text}>{text.substr(0, 8)}...</span>
  1212. ) : (
  1213. text
  1214. );
  1215. },
  1216. },
  1217. ],
  1218. columnsDate: [
  1219. {
  1220. title: "编号",
  1221. dataIndex: "id",
  1222. key: "id",
  1223. },
  1224. {
  1225. title: "订单编号",
  1226. dataIndex: "orderno",
  1227. key: "orderno",
  1228. },
  1229. {
  1230. title: "开票金额(万元)",
  1231. dataIndex: "amount",
  1232. key: "amount",
  1233. },
  1234. {
  1235. title: "申请时间",
  1236. dataIndex: "createTime",
  1237. key: "createTime",
  1238. },
  1239. {
  1240. title: "开票状态",
  1241. dataIndex: "status",
  1242. key: "status",
  1243. render: (text, record) => {
  1244. return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
  1245. },
  1246. },
  1247. ],
  1248. columnsY: [
  1249. {
  1250. title: "流程",
  1251. dataIndex: "processName",
  1252. key: "processName",
  1253. },
  1254. {
  1255. title: "操作人",
  1256. dataIndex: "adminName",
  1257. key: "adminName",
  1258. },
  1259. {
  1260. title: "时间",
  1261. dataIndex: "createDate",
  1262. key: "createDate",
  1263. },
  1264. ],
  1265. columnsW: [
  1266. {
  1267. title: "外包名称",
  1268. dataIndex: "name",
  1269. key: "name",
  1270. },
  1271. {
  1272. title: "联系人",
  1273. dataIndex: "contacts",
  1274. key: "contacts",
  1275. },
  1276. {
  1277. title: "联系人电话",
  1278. dataIndex: "contactsMobile",
  1279. key: "contactsMobile",
  1280. },
  1281. {
  1282. title: "地址",
  1283. dataIndex: "ProvinceCity",
  1284. key: "ProvinceCity",
  1285. render: (test) => {
  1286. return test[0] === null
  1287. ? ""
  1288. : getprovince(test[0]) +
  1289. "/" +
  1290. getprovince(test[1]) +
  1291. "/" +
  1292. getprovince(test[2]);
  1293. },
  1294. },
  1295. {
  1296. title: "地址详情",
  1297. dataIndex: "address",
  1298. key: "address",
  1299. render: (text) => {
  1300. return text && text.length > 8 ? text.substr(0, 8) + "..." : text;
  1301. },
  1302. },
  1303. {
  1304. title: "创建时间",
  1305. dataIndex: "createTimes",
  1306. key: "createTimes",
  1307. },
  1308. {
  1309. title: "任务名称",
  1310. dataIndex: "tname",
  1311. key: "tname",
  1312. },
  1313. {
  1314. title: "合同编号",
  1315. dataIndex: "contractNo",
  1316. key: "contractNo",
  1317. },
  1318. {
  1319. title: "项目状态",
  1320. dataIndex: "projectStatus",
  1321. key: "projectStatus",
  1322. render: (text) => {
  1323. return getProjectName(text);
  1324. },
  1325. },
  1326. ],
  1327. dataSource: [],
  1328. searchTime: [],
  1329. printColumns: [
  1330. {
  1331. title: "合同编号",
  1332. dataIndex: "contractNo",
  1333. key: "contractNo",
  1334. },
  1335. {
  1336. title: "订单编号",
  1337. dataIndex: "orderNo",
  1338. key: "orderNo",
  1339. // fixed: "left"
  1340. },
  1341. {
  1342. title: "客户名称",
  1343. dataIndex: "buyerName",
  1344. key: "buyerName",
  1345. render: text => {
  1346. return (
  1347. <Tooltip title={text}>
  1348. <div
  1349. // style={{
  1350. // maxWidth: '150px',
  1351. // overflow: 'hidden',
  1352. // textOverflow: "ellipsis",
  1353. // whiteSpace: 'nowrap',
  1354. // }}
  1355. >{text}</div>
  1356. </Tooltip>
  1357. )
  1358. }
  1359. },
  1360. {
  1361. title: "订单部门",
  1362. dataIndex: "departmentName",
  1363. key: "departmentName",
  1364. },
  1365. {
  1366. title: "订单负责人",
  1367. dataIndex: "sellerName",
  1368. key: "sellerName",
  1369. },
  1370. {
  1371. title: "外包公司",
  1372. dataIndex: "outsourceName",
  1373. key: "outsourceName",
  1374. },
  1375. {
  1376. title: "签单日期",
  1377. dataIndex: "signTime",
  1378. key: "signTime",
  1379. },
  1380. {
  1381. title: "下单日期",
  1382. dataIndex: "createTime",
  1383. key: "createTime",
  1384. },
  1385. {
  1386. title: "签单金额(万元)",
  1387. dataIndex: "signTotalAmount",
  1388. key: "signTotalAmount",
  1389. },
  1390. {
  1391. title: "开票金额(万元)",
  1392. dataIndex: "invoiceAmount",
  1393. key: "invoiceAmount",
  1394. },
  1395. {
  1396. title: "已收款(万元)",
  1397. dataIndex: "actuallyTotalAmount",
  1398. key: "actuallyTotalAmount",
  1399. },
  1400. {
  1401. title: "最近收款(万元)",
  1402. dataIndex: "finalReceivables",
  1403. key: "finalReceivables",
  1404. },
  1405. {
  1406. title: "最近收款时间",
  1407. dataIndex: "finalReceivablesTime",
  1408. key: "finalReceivablesTime",
  1409. },
  1410. {
  1411. title: "结算状态",
  1412. dataIndex: "liquidationStatus",
  1413. key: "liquidationStatus",
  1414. render: (text) => {
  1415. return getLiquidationStatus(text);
  1416. },
  1417. },
  1418. {
  1419. title: "流程状态",
  1420. dataIndex: "processStatus",
  1421. key: "processStatus",
  1422. render: (text, record) => {
  1423. return getProcessStatus(text, record.examineName, record.approval);
  1424. },
  1425. },
  1426. {
  1427. title: "特批状态",
  1428. dataIndex: "approval",
  1429. key: "approval",
  1430. render: (text) => {
  1431. return getApproval(text);
  1432. },
  1433. },
  1434. ],
  1435. waterlistDate: [
  1436. {
  1437. title: "订单编号",
  1438. dataIndex: "orderNo",
  1439. key: "orderNo",
  1440. },
  1441. {
  1442. title: "平台流水号",
  1443. dataIndex: "billNo",
  1444. key: "billNo",
  1445. // fixed: "left"
  1446. },
  1447. {
  1448. title: "金额(万元)",
  1449. dataIndex: "transactionAmount",
  1450. key: "transactionAmount",
  1451. },
  1452. {
  1453. title: "收款方",
  1454. dataIndex: "payeeName",
  1455. key: "payeeName",
  1456. },
  1457. {
  1458. title: "付款方",
  1459. dataIndex: "payerName",
  1460. key: "payerName",
  1461. },
  1462. {
  1463. title: "流水科目",
  1464. dataIndex: "transactionSubject",
  1465. key: "transactionSubject",
  1466. render: (text) => {
  1467. return getTransactionProject(text);
  1468. },
  1469. },
  1470. {
  1471. title: "收款类型",
  1472. dataIndex: "type",
  1473. key: "type",
  1474. },
  1475. {
  1476. title: "财务流水时间",
  1477. dataIndex: "financialPayTimes",
  1478. key: "financialPayTimes",
  1479. },
  1480. {
  1481. title: "财务流水号",
  1482. dataIndex: "financialPayNo",
  1483. key: "financialPayNo",
  1484. },
  1485. {
  1486. title: "订单负责人",
  1487. dataIndex: "saleName",
  1488. key: "saleName",
  1489. },
  1490. {
  1491. title: "创建时间",
  1492. dataIndex: "createTimes",
  1493. key: "createTimes",
  1494. },
  1495. {
  1496. title: "退款时间",
  1497. dataIndex: "refundTimes",
  1498. key: "refundTimes",
  1499. },
  1500. {
  1501. title: "删除时间",
  1502. dataIndex: "deleteTimes",
  1503. key: "deleteTimes",
  1504. },
  1505. {
  1506. title: "备注",
  1507. dataIndex: "remarks",
  1508. key: "remarks",
  1509. },
  1510. {
  1511. title: "流水状态",
  1512. dataIndex: "deleteSign",
  1513. key: "deleteSign",
  1514. render: (text, record) => {
  1515. if (!text) {
  1516. return "";
  1517. } else {
  1518. return <Tag>已删除</Tag>;
  1519. }
  1520. },
  1521. },
  1522. ],
  1523. waterData: [],
  1524. qianColumns: [
  1525. {
  1526. title: "序号",
  1527. dataIndex: "key",
  1528. key: "key",
  1529. },
  1530. {
  1531. title: "合同编号",
  1532. dataIndex: "contractNo",
  1533. key: "contractNo",
  1534. },
  1535. {
  1536. title: "订单编号",
  1537. dataIndex: "orderNo",
  1538. key: "orderNo",
  1539. },
  1540. {
  1541. title: "客户名称",
  1542. dataIndex: "userName",
  1543. key: "userName",
  1544. render: text => {
  1545. return (
  1546. <Tooltip title={text}>
  1547. <div
  1548. // style={{
  1549. // maxWidth: '150px',
  1550. // overflow: 'hidden',
  1551. // textOverflow: "ellipsis",
  1552. // whiteSpace: 'nowrap',
  1553. // }}
  1554. >{text}</div>
  1555. </Tooltip>
  1556. )
  1557. }
  1558. },
  1559. {
  1560. title: "订单负责人",
  1561. dataIndex: "salesmanName",
  1562. key: "salesmanName",
  1563. },
  1564. {
  1565. title: "订单部门",
  1566. dataIndex: "depName",
  1567. key: "depName",
  1568. },
  1569. {
  1570. title: "订单状态",
  1571. dataIndex: "orderStatus",
  1572. key: "orderStatus",
  1573. render: (text) => {
  1574. return getNewOrderStatus(text);
  1575. },
  1576. },
  1577. {
  1578. title: "项目状态",
  1579. dataIndex: "projectStatus",
  1580. key: "projectStatus",
  1581. render: (text) => {
  1582. return getProjectName(text);
  1583. },
  1584. },
  1585. {
  1586. title: "签单金额",
  1587. dataIndex: "totalAmount",
  1588. key: "totalAmount",
  1589. },
  1590. {
  1591. title: "结算状态",
  1592. dataIndex: "liquidationStatus",
  1593. key: "liquidationStatus",
  1594. render: (text) => {
  1595. return getLiquidationStatus(text);
  1596. },
  1597. },
  1598. {
  1599. title: "已收款",
  1600. dataIndex: "settlementAmount",
  1601. key: "settlementAmount",
  1602. },
  1603. {
  1604. title: "欠款",
  1605. dataIndex: "orderArrears",
  1606. key: "orderArrears",
  1607. },
  1608. {
  1609. title: "催收科目",
  1610. dataIndex: "type",
  1611. key: "type",
  1612. render: (text) => {
  1613. return "按时触发应收欠款";
  1614. },
  1615. },
  1616. {
  1617. title: "催款状态",
  1618. dataIndex: "dunStatus",
  1619. key: "dunStatus",
  1620. render: (text) => {
  1621. if (text == 0) {
  1622. return "未启动";
  1623. } else if (text == 1) {
  1624. return "催款中";
  1625. } else if (text == 2) {
  1626. return "已完成";
  1627. } else if (text == 3) {
  1628. return "已停止";
  1629. }
  1630. },
  1631. },
  1632. {
  1633. title: "催收启动时间",
  1634. dataIndex: "startDate",
  1635. key: "startDate",
  1636. },
  1637. ],
  1638. };
  1639. },
  1640. // 特批通过
  1641. evaluateZ(record) {
  1642. $.ajax({
  1643. method: "POST",
  1644. dataType: "json",
  1645. crossDomain: false,
  1646. url: globalConfig.context + "/api/admin/financial/financeApproval",
  1647. data: {
  1648. orderNo: record.orderNo,
  1649. },
  1650. }).done(
  1651. function (data) {
  1652. if (!data.error.length) {
  1653. message.success("通过成功!");
  1654. this.setState({
  1655. loading: false,
  1656. });
  1657. this.loadData();
  1658. } else {
  1659. message.warning(data.error[0].message);
  1660. }
  1661. }.bind(this)
  1662. );
  1663. },
  1664. jdDate(orderNo) {
  1665. $.ajax({
  1666. method: "get",
  1667. dataType: "json",
  1668. crossDomain: false,
  1669. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1670. data: {
  1671. orderNo: orderNo,
  1672. },
  1673. success: function (data) {
  1674. let thisData = data.data;
  1675. if (!thisData.length) {
  1676. if (data.error && data.error.length) {
  1677. message.warning(data.error[0].message);
  1678. }
  1679. thisData = {};
  1680. } else {
  1681. this.setState({
  1682. jsDate: thisData,
  1683. });
  1684. }
  1685. }.bind(this),
  1686. }).always(
  1687. function () {
  1688. this.setState({
  1689. loading: false,
  1690. });
  1691. }.bind(this)
  1692. );
  1693. },
  1694. /* 收款 */
  1695. evaluateX(recard) {
  1696. this.state.assignDataX = recard;
  1697. this.setState({
  1698. assignVisibleX: true,
  1699. });
  1700. },
  1701. /* 转交 */
  1702. evaluateY(recard, nub) {
  1703. this.state.assignDataY = recard;
  1704. this.setState({
  1705. nub,
  1706. assignVisibleY: true,
  1707. });
  1708. },
  1709. /* 驳回 */
  1710. reject(recard) {
  1711. this.setState({
  1712. bohuiData: recard,
  1713. boHuiVisible: true,
  1714. content: "",
  1715. });
  1716. },
  1717. boHuiCancel() {
  1718. this.setState({
  1719. boHuiVisible: false,
  1720. reason: "",
  1721. });
  1722. },
  1723. componentWillMount() {
  1724. this.loadData();
  1725. this.departmentList();
  1726. },
  1727. tableRowClick(record) {
  1728. this.state.RowData = record;
  1729. this.setState({
  1730. showDesc: true,
  1731. visible: true,
  1732. orderNo: record.orderNo,
  1733. modKey: "1",
  1734. });
  1735. this.jdDate(record.orderNo);
  1736. this.loadXmu(record);
  1737. this.loadModal(record);
  1738. this.jiedian(record.orderNo);
  1739. this.jiedianNew(record.orderNo);
  1740. },
  1741. // 拆分详细
  1742. showRes(record) {
  1743. this.setState({
  1744. resVisible: true,
  1745. resRecord: record,
  1746. });
  1747. },
  1748. resCancel() {
  1749. this.setState({
  1750. resVisible: false,
  1751. });
  1752. },
  1753. //详情
  1754. callBack(key) {
  1755. if (key === "2") {
  1756. this.setState({
  1757. modKey: key,
  1758. width: "1200px",
  1759. });
  1760. this.loadWaiBao();
  1761. }
  1762. if (key === "1") {
  1763. this.setState({
  1764. modKey: key,
  1765. width: "800px",
  1766. });
  1767. }
  1768. if (this.state.pictureUrl.length) {
  1769. let picArr = [];
  1770. this.state.pictureUrl.map(function (item) {
  1771. if (item.response && item.response.data && item.response.data.length) {
  1772. picArr.push(item.response.data);
  1773. }
  1774. });
  1775. }
  1776. if (key === "3") {
  1777. this.setState({
  1778. modKey: key,
  1779. width: "800px",
  1780. });
  1781. this.setState({
  1782. loading: true,
  1783. });
  1784. $.ajax({
  1785. method: "get",
  1786. dataType: "json",
  1787. crossDomain: false,
  1788. url:
  1789. globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceDtails",
  1790. data: {
  1791. orderNo: this.state.orderNo,
  1792. },
  1793. success: function (data) {
  1794. let thisdata = data.data;
  1795. this.setState({
  1796. id: thisdata.id,
  1797. createTimes: thisdata.createTimes,
  1798. auditTimes: thisdata.auditTimes,
  1799. remarks: thisdata.remarks,
  1800. attachmentUrl: thisdata.attachmentUrl
  1801. ? splitUrl(
  1802. thisdata.attachmentUrl,
  1803. ",",
  1804. globalConfig.avatarHost + "/upload"
  1805. )
  1806. : [],
  1807. pictureUrl: thisdata.pictureUrl
  1808. ? splitUrl(
  1809. thisdata.pictureUrl,
  1810. ",",
  1811. globalConfig.avatarHost + "/upload"
  1812. )
  1813. : [], //图片地址
  1814. amount: thisdata.amount,
  1815. companyName: thisdata.companyName,
  1816. refundStatus: thisdata.refundStatus,
  1817. outsourceRemarks: thisdata.outsourceRemarks,
  1818. unitNumber: thisdata.unitNumber,
  1819. unitPrice: thisdata.unitPrice,
  1820. });
  1821. }.bind(this),
  1822. }).always(
  1823. function () {
  1824. this.setState({
  1825. loading: false,
  1826. });
  1827. }.bind(this)
  1828. );
  1829. }
  1830. },
  1831. //外包详情
  1832. loadWaiBao() {
  1833. $.ajax({
  1834. method: "get",
  1835. dataType: "json",
  1836. rossDomain: false,
  1837. url:
  1838. globalConfig.context +
  1839. "/api/admin/outsourceOrg/selectOrderOutsourceOrg",
  1840. data: {
  1841. orderNo: this.state.orderNo,
  1842. },
  1843. success: function (data) {
  1844. let theArr = [];
  1845. if (data.error.length || data.data.list == "") {
  1846. if (data.error && data.error.length) {
  1847. message.warning(data.error[0].message);
  1848. }
  1849. } else {
  1850. for (let i = 0; i < data.data.length; i++) {
  1851. let thisdata = data.data[i];
  1852. let ProvinceCityArr = [];
  1853. let ProvinceS = thisdata.province; //省
  1854. let citys = thisdata.city; //市
  1855. let Areas = thisdata.area; //区
  1856. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1857. theArr.push({
  1858. key: i,
  1859. id: thisdata.id,
  1860. name: thisdata.name,
  1861. contacts: thisdata.contacts, //订单编号
  1862. contactsMobile: thisdata.contactsMobile,
  1863. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1864. province: thisdata.province,
  1865. city: thisdata.city,
  1866. area: thisdata.area,
  1867. address: thisdata.address,
  1868. remarks: thisdata.remarks,
  1869. tid: thisdata.tid,
  1870. createTimes: thisdata.createTimes,
  1871. tname: thisdata.tname,
  1872. contractNo: thisdata.contractNo,
  1873. projectStatus: thisdata.projectStatus,
  1874. });
  1875. }
  1876. }
  1877. this.setState(
  1878. {
  1879. dataSourceW: theArr,
  1880. },
  1881. () => { }
  1882. );
  1883. }.bind(this),
  1884. }).always(
  1885. function () {
  1886. this.setState({
  1887. loading: false,
  1888. });
  1889. }.bind(this)
  1890. );
  1891. },
  1892. loadXmu(record) {
  1893. this.state.data = [];
  1894. this.setState({
  1895. loading: true,
  1896. });
  1897. $.ajax({
  1898. method: "get",
  1899. dataType: "json",
  1900. crossDomain: false,
  1901. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1902. data: {
  1903. orderNo: record.orderNo,
  1904. },
  1905. success: function (data) {
  1906. let theArr = [];
  1907. if (!data.data) {
  1908. if (data.error && data.error.length) {
  1909. message.warning(data.error[0].message);
  1910. }
  1911. } else {
  1912. for (let i = 0; i < data.data.length; i++) {
  1913. let thisdata = data.data[i];
  1914. theArr.push({
  1915. key: i,
  1916. id: thisdata.id,
  1917. orderNo: thisdata.orderNo,
  1918. commodityName: thisdata.commodityName,
  1919. commodityPrice: thisdata.commodityPrice,
  1920. commodityQuantity: thisdata.commodityQuantity,
  1921. taskStatus: thisdata.taskStatus,
  1922. taskComment: thisdata.taskComment,
  1923. main: thisdata.main,
  1924. contacts: thisdata.contacts,
  1925. contactsMobile: thisdata.contactsMobile,
  1926. cname: thisdata.cname,
  1927. certificateNumber: thisdata.certificateNumber,
  1928. projectStatus: thisdata.projectStatus,
  1929. sort: thisdata.cSort,
  1930. splitStatus: thisdata.splitStatus,
  1931. });
  1932. }
  1933. }
  1934. this.setState({
  1935. dataSourceX: theArr,
  1936. });
  1937. }.bind(this),
  1938. }).always(
  1939. function () {
  1940. this.setState({
  1941. loading: false,
  1942. });
  1943. }.bind(this)
  1944. );
  1945. },
  1946. loadModal(record) {
  1947. this.state.orderList = [];
  1948. $.ajax({
  1949. method: "get",
  1950. dataType: "json",
  1951. crossDomain: false,
  1952. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1953. data: {
  1954. orderNo: record.orderNo,
  1955. },
  1956. success: function (data) {
  1957. let thisData = data.data;
  1958. if (!thisData) {
  1959. if (data.error && data.error.length) {
  1960. message.warning(data.error[0].message);
  1961. }
  1962. thisData = {};
  1963. }
  1964. this.setState({
  1965. id: thisData.id,
  1966. orderUid: thisData.uid,
  1967. orderList: thisData,
  1968. approval:
  1969. thisData.approval == 0
  1970. ? thisData.approval.toString()
  1971. : thisData.approval,
  1972. orderRemarks: thisData.orderRemarks,
  1973. orgCodeUrl: thisData.contractPictureUrl
  1974. ? splitUrl(
  1975. thisData.contractPictureUrl,
  1976. ",",
  1977. globalConfig.avatarHost + "/upload"
  1978. )
  1979. : [],
  1980. replenishUrl: thisData.agreementUrl
  1981. ? splitUrl(
  1982. thisData.agreementUrl,
  1983. ",",
  1984. globalConfig.avatarHost + "/upload"
  1985. )
  1986. : [],
  1987. contentUrl: thisData.serviceContent
  1988. ? splitUrl(
  1989. thisData.serviceContent,
  1990. ",",
  1991. globalConfig.avatarHost + "/upload"
  1992. )
  1993. : [], //图片地址
  1994. orderNo: thisData.orderNo, //订单编号
  1995. buyerId: thisData.buyerId,
  1996. depName: thisData.depName,
  1997. deleteSign: thisData.deleteSign,
  1998. });
  1999. }.bind(this),
  2000. }).always(
  2001. function () {
  2002. this.setState({
  2003. loading: false,
  2004. });
  2005. }.bind(this)
  2006. );
  2007. },
  2008. rizhi() {
  2009. this.setState({
  2010. loading: true,
  2011. });
  2012. $.ajax({
  2013. method: "get",
  2014. dataType: "json",
  2015. crossDomain: false,
  2016. url: "/api/admin/newOrder/selectOrderLog",
  2017. data: {
  2018. orderNo: this.state.orderNo,
  2019. },
  2020. success: function (data) {
  2021. let theArr = [];
  2022. let thisData = data.data;
  2023. if (!thisData.length) {
  2024. if (data.error && data.error.length) {
  2025. message.warning(data.error[0].message);
  2026. }
  2027. thisData = {};
  2028. } else {
  2029. for (let i = 0; i < data.data.length; i++) {
  2030. let thisdata = data.data[i];
  2031. theArr.push({
  2032. processName: thisdata.processName,
  2033. adminName: thisdata.adminName,
  2034. createDate: thisdata.createDate,
  2035. remarks: thisdata.remarks,
  2036. });
  2037. }
  2038. }
  2039. this.setState({
  2040. dataSourceY: theArr,
  2041. });
  2042. }.bind(this),
  2043. }).always(
  2044. function () {
  2045. this.setState({
  2046. loading: false,
  2047. });
  2048. }.bind(this)
  2049. );
  2050. },
  2051. closeOrderLog() {
  2052. this.setState({
  2053. avisible: false,
  2054. });
  2055. },
  2056. load() {
  2057. if (this.state.attachmentUrl) {
  2058. let url = window.location.href.substring(7);
  2059. this.state.attachmentUrl.forEach((e) => {
  2060. window.location.href =
  2061. "http://" +
  2062. url.substring(0, url.indexOf("/")) +
  2063. "/api/admin/outsourceOrg//downloadFile?path=" +
  2064. e.response.data;
  2065. });
  2066. } else {
  2067. message.error("此订单无上传文件");
  2068. }
  2069. },
  2070. getOrderLog() {
  2071. this.setState({
  2072. avisible: true,
  2073. });
  2074. this.rizhi();
  2075. },
  2076. closeModal() {
  2077. this.setState(
  2078. {
  2079. visible: false,
  2080. width: "800px",
  2081. },
  2082. () => {
  2083. this.setState({
  2084. modKey: "1",
  2085. });
  2086. }
  2087. );
  2088. },
  2089. closeDesc(e, s) {
  2090. this.state.showDesc = e;
  2091. if (s) {
  2092. this.loadData();
  2093. }
  2094. },
  2095. closeAssignX(e, s) {
  2096. this.state.assignDataX = {};
  2097. this.state.assignVisibleX = e;
  2098. if (s) {
  2099. this.loadData();
  2100. }
  2101. },
  2102. closeAssignY(e, s) {
  2103. this.state.assignDataY = {};
  2104. this.state.assignVisibleY = e;
  2105. if (s) {
  2106. this.loadData();
  2107. }
  2108. },
  2109. search() {
  2110. this.setState({
  2111. selectedRowKeys: []
  2112. })
  2113. this.loadData();
  2114. },
  2115. reset() {
  2116. this.state.nameSearch = "";
  2117. this.state.releaseDate = [];
  2118. this.state.shouKuanDate = [];
  2119. this.state.orderNoSearch = "";
  2120. this.state.departmenttList = undefined;
  2121. this.state.amountStatus = undefined;
  2122. this.state.processStatus = [];
  2123. this.state.processStatusSearch = [];
  2124. this.state.contractNoSearch = "";
  2125. this.state.liquidationStatus = [];
  2126. this.state.contractNo = "";
  2127. this.Cascaders.empty();
  2128. this.loadData();
  2129. },
  2130. boHuiCo() {
  2131. this.boHuiCancel();
  2132. this.boHuiSubmit();
  2133. },
  2134. //驳回
  2135. boHuiSubmit() {
  2136. if (!this.state.reason) {
  2137. message.warning("请填写驳回原因");
  2138. return false;
  2139. }
  2140. if (!this.state.reason.replace(/\s+/g, '')) {
  2141. message.warning("请填写驳回原因");
  2142. return;
  2143. }
  2144. this.setState({
  2145. loading: true,
  2146. });
  2147. $.ajax({
  2148. method: "POST",
  2149. dataType: "json",
  2150. crossDomain: false,
  2151. url: globalConfig.context + "/api/admin/financial/reject",
  2152. data: {
  2153. orderNo: this.state.bohuiData.orderNo,
  2154. reason: this.state.reason,
  2155. },
  2156. }).done(
  2157. function (data) {
  2158. if (!data.error.length) {
  2159. message.success("驳回成功!");
  2160. this.setState({
  2161. loading: false,
  2162. });
  2163. this.loadData();
  2164. } else {
  2165. message.warning(data.error[0].message);
  2166. }
  2167. }.bind(this)
  2168. );
  2169. },
  2170. searchSwitch() {
  2171. this.setState({
  2172. searchMore: !this.state.searchMore,
  2173. });
  2174. },
  2175. changeList(arr) {
  2176. const newArr = [];
  2177. this.state.columns.forEach((item) => {
  2178. arr.forEach((val) => {
  2179. if (val === item.title) {
  2180. newArr.push(item);
  2181. }
  2182. });
  2183. });
  2184. this.setState({
  2185. changeList: newArr,
  2186. });
  2187. },
  2188. onSelectChange(selectedRowKeys) {
  2189. // for(var i=0; i<selectedRowKeys.length; i++){
  2190. // for(var j=i+1; j<selectedRowKeys.length; j++){
  2191. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  2192. // selectedRowKeys.splice(j,1);
  2193. // j--;
  2194. // }
  2195. // }
  2196. // }
  2197. this.setState({ selectedRowKeys });
  2198. },
  2199. inRecordData() {
  2200. this.setState({
  2201. loading: true,
  2202. });
  2203. $.ajax({
  2204. method: "get",
  2205. dataType: "json",
  2206. crossDomain: false,
  2207. url:
  2208. globalConfig.context +
  2209. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  2210. data: {
  2211. orderNo: this.state.selectedRowKeys[0],
  2212. pageSize: 9999999,
  2213. },
  2214. success: function (data) {
  2215. let theArr = [];
  2216. let sum = 0;
  2217. if (!data.data) {
  2218. if (data.error && data.error.length) {
  2219. message.warning(data.error[0].message);
  2220. }
  2221. } else {
  2222. for (let i = 0; i < data.data.list.length; i++) {
  2223. let thisdata = data.data.list[i];
  2224. sum += parseFloat(thisdata.amount);
  2225. theArr.push({
  2226. id: thisdata.id,
  2227. orderno: thisdata.orderno, //订单编号
  2228. amount: thisdata.amount, //签单金额
  2229. createTime: thisdata.createTime, //流程状态
  2230. status: thisdata.status, //结算状态
  2231. rejectReason: thisdata.rejectReason,
  2232. approval: thisdata.approval,//0非特批 1待审核 2审核通过
  2233. });
  2234. }
  2235. }
  2236. this.setState({
  2237. recordData: theArr,
  2238. sum: sum.toFixed(6),
  2239. });
  2240. }.bind(this),
  2241. }).done(
  2242. function () {
  2243. this.setState({
  2244. loading: false,
  2245. });
  2246. }.bind(this)
  2247. );
  2248. },
  2249. inRecordCanl() {
  2250. this.setState({
  2251. bvisible: false,
  2252. });
  2253. },
  2254. waterData() {
  2255. this.state.data = [];
  2256. this.setState({
  2257. loading: true,
  2258. });
  2259. $.ajax({
  2260. method: "get",
  2261. dataType: "json",
  2262. crossDomain: false,
  2263. url: globalConfig.context + "/api/admin/financial/myBillList",
  2264. data: {
  2265. orderNo: this.state.selectedRowKeys[0],
  2266. pageSize: 9999999,
  2267. whoType: 1,
  2268. },
  2269. success: function (data) {
  2270. let theArr = [];
  2271. let waterSum = 0;
  2272. if (!data.data || !data.data.list) {
  2273. if (data.error && data.error.length) {
  2274. message.warning(data.error[0].message);
  2275. }
  2276. } else {
  2277. for (let i = 0; i < data.data.list.length; i++) {
  2278. let thisdata = data.data.list[i];
  2279. if (thisdata.deleteSign == 0) {
  2280. waterSum += parseFloat(thisdata.transactionAmount);
  2281. }
  2282. theArr.push({
  2283. key: i,
  2284. orderNo: thisdata.orderNo,
  2285. billNo: thisdata.billNo,
  2286. transactionAmount: thisdata.transactionAmount,
  2287. payeeName: thisdata.payeeName,
  2288. payerName: thisdata.payerName,
  2289. transactionSubject: thisdata.transactionSubject,
  2290. transactionChannel: thisdata.transactionChannel,
  2291. financialPayTimes: thisdata.financialPayTimes,
  2292. financialPayNo: thisdata.financialPayNo,
  2293. createrName: thisdata.createrName,
  2294. saleName: thisdata.saleName,
  2295. createTimes: thisdata.createTimes,
  2296. type:
  2297. thisdata.type == 0
  2298. ? "手工"
  2299. : thisdata.type == 1
  2300. ? "批量"
  2301. : "合同变更退款",
  2302. deleteSign: thisdata.deleteSign,
  2303. deleteTimes: thisdata.deleteTimes,
  2304. refundTimes: thisdata.refundTimes,
  2305. remarks: thisdata.remarks,
  2306. });
  2307. }
  2308. }
  2309. this.setState({
  2310. waterData: theArr,
  2311. waterSum: waterSum.toFixed(6),
  2312. });
  2313. }.bind(this),
  2314. }).always(
  2315. function () {
  2316. this.setState({
  2317. loading: false,
  2318. });
  2319. }.bind(this)
  2320. );
  2321. },
  2322. waterCanl() {
  2323. this.setState({
  2324. cvisible: false,
  2325. });
  2326. },
  2327. exportAll() {
  2328. message.config({
  2329. duration: 20,
  2330. });
  2331. let loading = message.loading("下载中...");
  2332. this.setState({
  2333. exportPendingLoading: true,
  2334. });
  2335. const data = {
  2336. pageSize: 9999999,
  2337. buyerName: this.state.nameSearch, //客户名称
  2338. orderNo: this.state.orderNoSearch,
  2339. startTime: this.state.releaseDate[0],
  2340. endTime: this.state.releaseDate[1],
  2341. startFinalReceivablesTime: this.state.shouKuanDate[0],
  2342. endFinalReceivablesTime: this.state.shouKuanDate[1],
  2343. deps: this.state.departmenttList,
  2344. processStatus: this.state.processStatusSearch,
  2345. contractNo: this.state.contractNoSearch,
  2346. outsource: 1,
  2347. liquidationStatus: this.state.liquidationStatus,
  2348. };
  2349. $.ajax({
  2350. method: "get",
  2351. dataType: "json",
  2352. crossDomain: false,
  2353. url: "/api/admin/receivables/exportReceivables",
  2354. data,
  2355. success: function (data) {
  2356. if (data.error.length === 0) {
  2357. this.download(data.data);
  2358. } else {
  2359. message.warning(data.error[0].message);
  2360. }
  2361. }.bind(this),
  2362. }).always(
  2363. function () {
  2364. loading();
  2365. this.setState({
  2366. exportPendingLoading: false,
  2367. });
  2368. }.bind(this)
  2369. );
  2370. },
  2371. // 下载
  2372. download(fileName) {
  2373. window.location.href =
  2374. globalConfig.context + "/open/download?fileName=" + fileName;
  2375. },
  2376. exportKaip() {
  2377. window.location.href =
  2378. globalConfig.context +
  2379. "/api/admin/receivables/exportInvoice?" +
  2380. `orderNo=${this.state.selectedRowKeys}`;
  2381. },
  2382. exportWater() {
  2383. window.location.href =
  2384. globalConfig.context +
  2385. "/api/admin/receivables/exportMyBill?" +
  2386. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  2387. },
  2388. printAll() {
  2389. this.setState({
  2390. dvisible: true,
  2391. // loading: true
  2392. });
  2393. this.loadData(1, 9999999);
  2394. },
  2395. downImg() {
  2396. let num = 0;
  2397. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2398. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2399. num = i;
  2400. }
  2401. }
  2402. if (num == this.state.orgCodeUrl.length - 1) {
  2403. return message.warning("已经是最后一张了哦");
  2404. }
  2405. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  2406. this.setState({
  2407. previewImage: this.state.previewImage,
  2408. rotateDeg: 0,
  2409. });
  2410. },
  2411. upImg() {
  2412. let num = 0;
  2413. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2414. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2415. num = i;
  2416. }
  2417. }
  2418. if (num == 0) {
  2419. return message.warning("已经是第一张了哦");
  2420. }
  2421. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  2422. this.setState({
  2423. previewImage: this.state.previewImage,
  2424. rotateDeg: 0,
  2425. });
  2426. },
  2427. rotate() {
  2428. let rotateDeg = this.state.rotateDeg + 90;
  2429. this.setState({
  2430. rotateDeg,
  2431. });
  2432. },
  2433. downImgs() {
  2434. let num = 0;
  2435. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2436. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2437. num = i;
  2438. }
  2439. }
  2440. if (num == this.state.replenishUrl.length - 1) {
  2441. return message.warning("已经是最后一张了哦");
  2442. }
  2443. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  2444. this.setState({
  2445. previewImage: this.state.previewImage,
  2446. rotateDeg: 0,
  2447. });
  2448. },
  2449. upImgs() {
  2450. let num = 0;
  2451. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2452. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2453. num = i;
  2454. }
  2455. }
  2456. if (num == 0) {
  2457. return message.warning("已经是第一张了哦");
  2458. }
  2459. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2460. this.setState({
  2461. previewImage: this.state.previewImage,
  2462. rotateDeg: 0,
  2463. });
  2464. },
  2465. rotates() {
  2466. let rotateDeg = this.state.rotateDeg + 90;
  2467. this.setState({
  2468. rotateDeg,
  2469. });
  2470. },
  2471. timeData() {
  2472. this.setState({
  2473. loading: true,
  2474. });
  2475. $.ajax({
  2476. method: "get",
  2477. dataType: "json",
  2478. crossDomain: false,
  2479. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  2480. data: {
  2481. orderNo: this.state.selectedRowKeys[0],
  2482. pageSize: 9999999,
  2483. },
  2484. success: function (data) {
  2485. let theArr = [];
  2486. if (!data.data || !data.data.list) {
  2487. if (data.error && data.error.length) {
  2488. message.warning(data.error[0].message);
  2489. }
  2490. } else {
  2491. for (let i = 0; i < data.data.list.length; i++) {
  2492. let thisdata = data.data.list[i];
  2493. theArr.push({
  2494. key: i + 1,
  2495. id: thisdata.id, //ID
  2496. orderNo: thisdata.orderNo, //订单编号
  2497. taskName: thisdata.taskName, //任务名称
  2498. userName: thisdata.userName, //客户名称
  2499. cname: thisdata.cname, //项目品类
  2500. taskStatus: thisdata.taskStatus, //任务状态
  2501. receiverName: thisdata.receiverName, //负责人
  2502. hours: thisdata.hours, //任务工时
  2503. depName: thisdata.depName, //派单公司
  2504. contractNo: thisdata.contractNo,
  2505. signTime: thisdata.signTime,
  2506. creteTime: thisdata.creteTime,
  2507. projectStatus: thisdata.projectStatus,
  2508. commodityPrice: thisdata.commodityPrice, //价格
  2509. commodityQuantity: thisdata.commodityQuantity, //数量
  2510. salesmanName: thisdata.salesmanName, //订单负责人
  2511. taskDistributionTime: thisdata.taskDistributionTime,
  2512. taskEndTime: thisdata.taskEndTime,
  2513. outsource: thisdata.outsource,
  2514. splitStatus: thisdata.splitStatus,
  2515. splitSuper: thisdata.splitSuper,
  2516. splitId: thisdata.splitId,
  2517. });
  2518. }
  2519. }
  2520. this.setState({
  2521. timeDataList: theArr,
  2522. });
  2523. }.bind(this),
  2524. }).always(
  2525. function () {
  2526. this.setState({
  2527. loading: false,
  2528. });
  2529. }.bind(this)
  2530. );
  2531. },
  2532. exportTime() {
  2533. const data = {
  2534. orderNo: this.state.selectedRowKeys[0],
  2535. outsourcing: 1,
  2536. };
  2537. window.location.href =
  2538. globalConfig.context +
  2539. "/api/admin/orderProject/exportMyTaskList?" +
  2540. $.param(data);
  2541. },
  2542. exportPro() {
  2543. const data = {
  2544. orderNo: this.state.selectedRowKeys[0],
  2545. };
  2546. window.location.href =
  2547. globalConfig.context +
  2548. "/api/admin/newOrder/exportOrderTaskData?" +
  2549. $.param(data);
  2550. },
  2551. exportCui() {
  2552. var data = {
  2553. orderNo: this.state.selectedRowKeys[0]
  2554. ? this.state.selectedRowKeys[0]
  2555. : undefined, //订单编号
  2556. // specially: 1,
  2557. pageSize: 9999999,
  2558. outsource: 1,
  2559. };
  2560. window.location.href =
  2561. globalConfig.context +
  2562. "/api/admin/newOrder/exportOrderDunData?" +
  2563. $.param(data);
  2564. },
  2565. cuiData() {
  2566. this.setState({
  2567. loading: true,
  2568. });
  2569. $.ajax({
  2570. method: "get",
  2571. dataType: "json",
  2572. crossDomain: false,
  2573. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  2574. data: {
  2575. orderNo: this.state.selectedRowKeys[0],
  2576. pageSize: 9999999,
  2577. },
  2578. success: function (data) {
  2579. let theArr = [];
  2580. if (!data.data || !data.data.list) {
  2581. if (data.error && data.error.length) {
  2582. message.warning(data.error[0].message);
  2583. }
  2584. } else {
  2585. for (let i = 0; i < data.data.list.length; i++) {
  2586. let thisdata = data.data.list[i];
  2587. theArr.push({
  2588. key: i + 1,
  2589. orderNo: thisdata.orderNo,
  2590. contractNo: thisdata.contractNo,
  2591. userName: thisdata.userName,
  2592. buyerName: thisdata.buyerName,
  2593. departmentName: thisdata.departmentName,
  2594. salesmanName: thisdata.salesmanName,
  2595. depName: thisdata.depName,
  2596. orderStatus: thisdata.orderStatus,
  2597. projectStatus: thisdata.projectStatus,
  2598. totalAmount: thisdata.totalAmount,
  2599. liquidationStatus: thisdata.liquidationStatus,
  2600. settlementAmount: thisdata.settlementAmount,
  2601. accountsReceivable: thisdata.accountsReceivable,
  2602. dunSubject: thisdata.dunSubject,
  2603. startDate: thisdata.startDate,
  2604. taskStatus: thisdata.taskStatus,
  2605. cname: thisdata.cname,
  2606. id: thisdata.id,
  2607. taskName: thisdata.taskName,
  2608. hours: thisdata.hours,
  2609. taskDistributionTime: thisdata.taskDistributionTime,
  2610. taskEndTime: thisdata.taskEndTime,
  2611. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  2612. });
  2613. }
  2614. }
  2615. this.setState({
  2616. cuiDataList: theArr,
  2617. });
  2618. }.bind(this),
  2619. }).always(
  2620. function () {
  2621. this.setState({
  2622. loading: false,
  2623. });
  2624. }.bind(this)
  2625. );
  2626. },
  2627. proData() {
  2628. this.setState({
  2629. loading: true,
  2630. });
  2631. $.ajax({
  2632. method: "get",
  2633. dataType: "json",
  2634. crossDomain: false,
  2635. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  2636. data: {
  2637. orderNo: this.state.selectedRowKeys[0],
  2638. pageSize: 9999999,
  2639. },
  2640. success: function (data) {
  2641. let theArr = [];
  2642. let totalWaibao = 0;
  2643. if (!data.data) {
  2644. if (data.error && data.error.length) {
  2645. message.warning(data.error[0].message);
  2646. }
  2647. } else {
  2648. for (let i = 0; i < data.data.length; i++) {
  2649. let thisdata = data.data[i];
  2650. totalWaibao += thisdata.outsourcePrice;
  2651. theArr.push({
  2652. key: i + 1,
  2653. orderNo: thisdata.orderNo,
  2654. contractNo: thisdata.contractNo,
  2655. userName: thisdata.userName,
  2656. buyerName: thisdata.buyerName,
  2657. departmentName: thisdata.departmentName,
  2658. salesmanName: thisdata.salesmanName,
  2659. depName: thisdata.depName,
  2660. orderStatus: thisdata.orderStatus,
  2661. projectStatus: thisdata.projectStatus,
  2662. commodityName: thisdata.commodityName,
  2663. totalAmount: thisdata.totalAmount,
  2664. liquidationStatus: thisdata.liquidationStatus,
  2665. settlementAmount: thisdata.settlementAmount,
  2666. accountsReceivable: thisdata.accountsReceivable,
  2667. dunSubject: thisdata.dunSubject,
  2668. startDate: thisdata.startDate,
  2669. taskStatus: thisdata.taskStatus,
  2670. cname: thisdata.cname,
  2671. id: thisdata.id,
  2672. taskName: thisdata.taskName,
  2673. hours: thisdata.hours,
  2674. taskDistributionTime: thisdata.taskDistributionTime,
  2675. taskEndTime: thisdata.taskEndTime,
  2676. commodityQuantity: thisdata.commodityQuantity,
  2677. commodityPrice: thisdata.commodityPrice,
  2678. certificateNumber: thisdata.certificateNumber,
  2679. taskComment: thisdata.taskComment,
  2680. outsourceName: thisdata.outsourceName,
  2681. outsourcePrice: thisdata.outsourcePrice,
  2682. splitStatus: thisdata.splitStatus,
  2683. sort: thisdata.cSort,
  2684. });
  2685. }
  2686. }
  2687. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  2688. this.setState({
  2689. proDataList: theArr,
  2690. totalWaibao,
  2691. });
  2692. }.bind(this),
  2693. }).always(
  2694. function () {
  2695. this.setState({
  2696. loading: false,
  2697. });
  2698. }.bind(this)
  2699. );
  2700. },
  2701. jiedian(orderNos) {
  2702. $.ajax({
  2703. method: "get",
  2704. dataType: "json",
  2705. crossDomain: false,
  2706. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  2707. data: {
  2708. orderNo: orderNos,
  2709. },
  2710. success: function (data) {
  2711. let theArr = [];
  2712. let thisData = [];
  2713. if (data.error.length || data.data.list == "") {
  2714. if (data.error && data.error.length) {
  2715. message.warning(data.error[0].message);
  2716. }
  2717. } else {
  2718. for (let i = 0; i < data.data.length; i++) {
  2719. thisData = data.data[i];
  2720. theArr.push({
  2721. key: i,
  2722. dunSubject: thisData.dunSubject
  2723. ? thisData.dunSubject.toString()
  2724. : "", //催款科目
  2725. id: thisData.id, //节点Id
  2726. money: thisData.money, //催款金额
  2727. dunStatus: thisData.dunStatus, //催款状态
  2728. orderNo: thisData.orderNo,
  2729. });
  2730. }
  2731. this.setState({
  2732. contactList: theArr,
  2733. });
  2734. }
  2735. }.bind(this),
  2736. }).always(
  2737. function () {
  2738. this.setState({
  2739. loading: false,
  2740. });
  2741. }.bind(this)
  2742. );
  2743. },
  2744. //查看催款节点
  2745. jiedianNew(orderNos) {
  2746. $.ajax({
  2747. method: "get",
  2748. dataType: "json",
  2749. crossDomain: false,
  2750. url:
  2751. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  2752. data: {
  2753. orderNo: orderNos,
  2754. },
  2755. success: function (data) {
  2756. if (data.error && data.error.length) {
  2757. message.warning(data.error[0].message);
  2758. } else {
  2759. let theArr = [];
  2760. let thisData = [];
  2761. let arr = data.data || [];
  2762. let totalCui = 0;
  2763. for (let i = 0; i < arr.length; i++) {
  2764. thisData = arr[i];
  2765. totalCui += +thisData.money;
  2766. theArr.push({
  2767. key: i,
  2768. dunSubject: thisData.dunSubject
  2769. ? thisData.dunSubject.toString()
  2770. : "", //催款科目
  2771. id: thisData.id, //节点Id
  2772. money: thisData.money, //催款金额
  2773. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2774. commodityName: thisData.commodityName,
  2775. projectType: thisData.projectType,
  2776. dunTypeName: thisData.dunTypeName,
  2777. status: thisData.status,
  2778. waitDay: thisData.waitDay,
  2779. effectiveCount: thisData.effectiveCount,
  2780. startDate: thisData.startDate,
  2781. dunType: thisData.dunType,
  2782. appropriationRatio: thisData.appropriationRatio,
  2783. customizeName: thisData.customizeName,
  2784. customizeTimes: thisData.customizeTimes,
  2785. tid: thisData.tid,
  2786. });
  2787. }
  2788. if (!totalCui) {
  2789. totalCui = 0;
  2790. }
  2791. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  2792. this.setState({
  2793. contactListNew: theArr,
  2794. totalCui,
  2795. });
  2796. }
  2797. }.bind(this),
  2798. }).always(
  2799. function () {
  2800. this.setState({
  2801. loading: false,
  2802. });
  2803. }.bind(this)
  2804. );
  2805. },
  2806. cuiTabChange(index) {
  2807. this.setState({
  2808. cuiTabKey: index,
  2809. });
  2810. if (index == 2) {
  2811. this.setState({
  2812. loading: true,
  2813. });
  2814. $.ajax({
  2815. method: "get",
  2816. dataType: "json",
  2817. crossDomain: false,
  2818. url: globalConfig.context + "/api/admin/newOrder/arrearsDunList",
  2819. data: {
  2820. orderNo: this.state.selectedRowKeys[0],
  2821. pageSize: 9999999,
  2822. },
  2823. success: function (data) {
  2824. let theArr = [];
  2825. if (data.error.length || data.data.list == "") {
  2826. if (data.error && data.error.length) {
  2827. message.warning(data.error[0].message);
  2828. }
  2829. } else {
  2830. for (let i = 0; i < data.data.list.length; i++) {
  2831. let thisdata = data.data.list[i];
  2832. let obj = thisdata;
  2833. obj.key = i;
  2834. theArr.push(obj);
  2835. }
  2836. }
  2837. this.setState({
  2838. qianDataList: theArr,
  2839. });
  2840. }.bind(this),
  2841. }).always(
  2842. function () {
  2843. this.setState({
  2844. loading: false,
  2845. });
  2846. }.bind(this)
  2847. );
  2848. }
  2849. },
  2850. kaiPiaoData(record) {
  2851. this.setState({
  2852. avisible: true,
  2853. });
  2854. this.invoiceData(record.id);
  2855. },
  2856. invoiceData(id) {
  2857. this.setState({
  2858. loading: true,
  2859. });
  2860. $.ajax({
  2861. method: "get",
  2862. dataType: "json",
  2863. crossDomain: false,
  2864. url:
  2865. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  2866. data: {
  2867. id,
  2868. },
  2869. success: function (data) {
  2870. let thisdata = data.data;
  2871. let obj = {
  2872. contractNo: thisdata.contractNo,
  2873. orderNo: thisdata.orderNo,
  2874. approval: thisdata.approval,
  2875. type: thisdata.type,
  2876. status: thisdata.status,
  2877. remarks: thisdata.remarks,
  2878. invoiceType: thisdata.invoiceType,
  2879. unitName: thisdata.unitName,
  2880. taxNumber: thisdata.taxNumber,
  2881. amount: thisdata.amount,
  2882. banks: thisdata.banks,
  2883. content: thisdata.content,
  2884. unitAddress: thisdata.unitAddress,
  2885. invoiceRemarks: thisdata.invoiceRemarks,
  2886. unitMobile: thisdata.unitMobile,
  2887. post: thisdata.post,
  2888. addressee: thisdata.addressee,
  2889. addresseeMobile: thisdata.addresseeMobile,
  2890. addresseeProvince: thisdata.addresseeProvince,
  2891. addresseeCity: thisdata.addresseeCity,
  2892. addresseeArea: thisdata.addresseeArea,
  2893. alreadyAmount: thisdata.alreadyAmount,
  2894. recipientAddress: thisdata.recipientAddress,
  2895. orgCodeUrl: thisdata.voucherUrl
  2896. ? splitUrl(
  2897. thisdata.voucherUrl,
  2898. ",",
  2899. globalConfig.avatarHost + "/upload"
  2900. )
  2901. : [],
  2902. };
  2903. this.setState({
  2904. modalData: obj,
  2905. });
  2906. }.bind(this),
  2907. }).done(
  2908. function () {
  2909. this.setState({
  2910. loading: false,
  2911. });
  2912. }.bind(this)
  2913. );
  2914. },
  2915. visitCancels() {
  2916. this.setState({
  2917. avisible: false,
  2918. });
  2919. },
  2920. render() {
  2921. const { TextArea } = Input;
  2922. const { RangePicker } = DatePicker;
  2923. const { TabPane } = Tabs;
  2924. var departmentArr = this.state.departmentArr || [];
  2925. const theData = this.state.orderList || {};
  2926. const formItemLayout = {
  2927. labelCol: { span: 8 },
  2928. wrapperCol: { span: 12 },
  2929. };
  2930. const { loading, selectedRowKeys, visible } = this.state;
  2931. const cuiDataList = this.state.contactList || [];
  2932. const rowSelection = {
  2933. selectedRowKeys,
  2934. onChange: this.onSelectChange,
  2935. hideDefaultSelections: true,
  2936. type: "radio",
  2937. };
  2938. const jsDate = this.state.jsDate || [];
  2939. return (
  2940. <div className="user-content">
  2941. {this.state.resVisible ? (
  2942. <ResolutionDetail
  2943. cancel={this.resCancel}
  2944. detail={this.state.resRecord}
  2945. visible={this.state.resVisible}
  2946. id={this.state.resRecord.orderNo}
  2947. />
  2948. ) : (
  2949. ""
  2950. )}
  2951. <div className="content-title" style={{ marginBottom: 10 }}>
  2952. <span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
  2953. </div>
  2954. <Tabs defaultActiveKey="2" className="test">
  2955. <TabPane tab="搜索" key="2">
  2956. <div className="user-search" style={{ marginLeft: 10 }}>
  2957. <Input
  2958. placeholder="订单编号"
  2959. value={this.state.orderNoSearch}
  2960. onChange={(e) => {
  2961. this.setState({ orderNoSearch: e.target.value });
  2962. }}
  2963. />
  2964. <Input
  2965. placeholder="合同编号"
  2966. value={this.state.contractNoSearch}
  2967. onChange={(e) => {
  2968. this.setState({
  2969. contractNoSearch: e.target.value,
  2970. });
  2971. }}
  2972. />
  2973. <Input
  2974. placeholder="客户名称"
  2975. value={this.state.nameSearch}
  2976. onChange={(e) => {
  2977. this.setState({ nameSearch: e.target.value });
  2978. }}
  2979. />
  2980. <Cascaders
  2981. ref={node => this.Cascaders = node}
  2982. placeholder="订单部门"
  2983. id="id"
  2984. name="name"
  2985. children="list"
  2986. height={28}
  2987. onSel={(e) => {
  2988. this.setState({
  2989. departmenttList: JSON.stringify(e),
  2990. });
  2991. }}
  2992. />
  2993. {/* <Select
  2994. placeholder="订单部门"
  2995. style={{ width: 120, marginRight: 10 }}
  2996. value={this.state.departmenttList}
  2997. onChange={(e) => {
  2998. this.setState({ departmenttList: e });
  2999. }}
  3000. >
  3001. {departmentArr.map(function (item) {
  3002. return (
  3003. <Select.Option key={item.id}>{item.name}</Select.Option>
  3004. );
  3005. })}
  3006. </Select> */}
  3007. <Select
  3008. placeholder="流程状态"
  3009. onChange={(e) => {
  3010. this.setState({ processStatusSearch: e });
  3011. }}
  3012. style={{ width: 120, marginRight: 5 }}
  3013. value={this.state.processStatusSearch}
  3014. >
  3015. <Option value="3">未分配</Option>
  3016. <Option value="4">已分配</Option>
  3017. <Option value="9">已驳回</Option>
  3018. </Select>
  3019. <Select
  3020. placeholder="结算状态"
  3021. onChange={(e) => {
  3022. this.setState({ liquidationStatus: e });
  3023. }}
  3024. style={{ width: 120, marginRight: 5 }}
  3025. value={this.state.liquidationStatus}
  3026. >
  3027. <Option value="0">首付待付清</Option>
  3028. <Option value="1">尾款待付清</Option>
  3029. <Option value="2">已付清</Option>
  3030. </Select>
  3031. <Select
  3032. style={{ width: 120 }}
  3033. placeholder="签单金额"
  3034. value={this.state.amountStatus}
  3035. onChange={(e) => {
  3036. this.setState({
  3037. amountStatus: e,
  3038. });
  3039. }}
  3040. >
  3041. <Option value="0">10万元以下</Option>
  3042. <Option value="1">10~20万元</Option>
  3043. <Option value="2">20~30万元</Option>
  3044. <Option value="3">30~40万元</Option>
  3045. <Option value="4">40万元以上</Option>
  3046. </Select>
  3047. <span style={{ marginRight: 0 }}>下单日期:</span>
  3048. <RangePicker
  3049. style={{ width: 170 }}
  3050. value={[
  3051. this.state.releaseDate[0]
  3052. ? moment(this.state.releaseDate[0])
  3053. : null,
  3054. this.state.releaseDate[1]
  3055. ? moment(this.state.releaseDate[1])
  3056. : null,
  3057. ]}
  3058. onChange={(data, dataString) => {
  3059. this.setState({ releaseDate: dataString });
  3060. }}
  3061. />
  3062. <span style={{}}>最近收款:</span>
  3063. <RangePicker
  3064. style={{ width: 170 }}
  3065. value={[
  3066. this.state.shouKuanDate[0]
  3067. ? moment(this.state.shouKuanDate[0])
  3068. : null,
  3069. this.state.shouKuanDate[1]
  3070. ? moment(this.state.shouKuanDate[1])
  3071. : null,
  3072. ]}
  3073. onChange={(data, dataString) => {
  3074. this.setState({ shouKuanDate: dataString });
  3075. }}
  3076. />
  3077. <Button
  3078. type="primary"
  3079. onClick={this.search}
  3080. style={{ marginLeft: 10 }}
  3081. disabled={this.state.loadingA ? true : false}
  3082. >
  3083. 搜索
  3084. </Button>
  3085. <Button onClick={this.reset}>重置</Button>
  3086. </div>
  3087. </TabPane>
  3088. <TabPane tab="打印" key="3">
  3089. <Button
  3090. type="primary"
  3091. style={{ margin: "11px 0px 10px 10px" }}
  3092. onClick={this.printAll}
  3093. disabled={!this.state.dataSource.length}
  3094. >
  3095. 打印所有列表信息
  3096. </Button>
  3097. <Button
  3098. type="primary"
  3099. disabled={this.state.selectedRowKeys.length != 1}
  3100. style={{ margin: "11px 0px 10px 10px" }}
  3101. onClick={() => {
  3102. this.inRecordData();
  3103. this.setState({
  3104. bvisible: true,
  3105. });
  3106. }}
  3107. >
  3108. 打印开票详情
  3109. </Button>
  3110. <Button
  3111. type="primary"
  3112. disabled={this.state.selectedRowKeys.length != 1}
  3113. style={{ margin: "11px 0px 10px 10px" }}
  3114. onClick={() => {
  3115. this.waterData();
  3116. this.setState({
  3117. cvisible: true,
  3118. });
  3119. }}
  3120. >
  3121. 打印收款流水
  3122. </Button>
  3123. <Button
  3124. type="primary"
  3125. disabled={this.state.selectedRowKeys.length != 1}
  3126. style={{ margin: "11px 0px 10px 10px" }}
  3127. onClick={() => {
  3128. this.timeData();
  3129. this.setState({
  3130. timeVisible: true,
  3131. });
  3132. }}
  3133. >
  3134. 打印工时信息
  3135. </Button>
  3136. <Button
  3137. type="primary"
  3138. disabled={this.state.selectedRowKeys.length != 1}
  3139. style={{ margin: "11px 0px 10px 10px" }}
  3140. onClick={() => {
  3141. this.cuiData();
  3142. this.setState({
  3143. cuiVisible: true,
  3144. });
  3145. }}
  3146. >
  3147. 打印催款信息
  3148. </Button>
  3149. <Button
  3150. type="primary"
  3151. disabled={this.state.selectedRowKeys.length != 1}
  3152. style={{ margin: "11px 0px 10px 10px" }}
  3153. onClick={() => {
  3154. this.proData();
  3155. this.setState({
  3156. proVisible: true,
  3157. });
  3158. }}
  3159. >
  3160. 打印项目进度
  3161. </Button>
  3162. </TabPane>
  3163. <TabPane tab="导出Excel" key="4">
  3164. <Button
  3165. type="primary"
  3166. style={{ margin: "11px 0px 10px 10px" }}
  3167. onClick={this.exportAll}
  3168. >
  3169. 导出当前列表
  3170. </Button>
  3171. <Button
  3172. type="primary"
  3173. disabled={this.state.selectedRowKeys.length != 1}
  3174. style={{ margin: "11px 0px 10px 10px" }}
  3175. onClick={this.exportKaip}
  3176. >
  3177. 导出所选开票详情
  3178. </Button>
  3179. <Button
  3180. type="primary"
  3181. disabled={this.state.selectedRowKeys.length != 1}
  3182. style={{ margin: "11px 0px 10px 10px" }}
  3183. onClick={this.exportWater}
  3184. >
  3185. 导出所选收款详情流水
  3186. </Button>
  3187. <Button
  3188. type="primary"
  3189. disabled={this.state.selectedRowKeys.length != 1}
  3190. style={{ margin: "11px 0px 10px 10px" }}
  3191. onClick={this.exportTime}
  3192. >
  3193. 导出所选工时信息
  3194. </Button>
  3195. <Button
  3196. type="primary"
  3197. disabled={this.state.selectedRowKeys.length != 1}
  3198. style={{ margin: "11px 0px 10px 10px" }}
  3199. onClick={this.exportCui}
  3200. >
  3201. 导出催款信息
  3202. </Button>
  3203. <Button
  3204. type="primary"
  3205. disabled={this.state.selectedRowKeys.length != 1}
  3206. style={{ margin: "11px 0px 10px 10px" }}
  3207. onClick={this.exportPro}
  3208. >
  3209. 导出项目进度
  3210. </Button>
  3211. </TabPane>
  3212. <TabPane tab="查看" key="5">
  3213. <Button
  3214. type="primary"
  3215. disabled={this.state.selectedRowKeys.length != 1}
  3216. style={{ margin: "11px 0px 10px 10px" }}
  3217. onClick={() => {
  3218. this.inRecordData();
  3219. this.setState({
  3220. bvisible: true,
  3221. });
  3222. }}
  3223. >
  3224. 查看开票详情
  3225. </Button>
  3226. <Button
  3227. type="primary"
  3228. disabled={this.state.selectedRowKeys.length != 1}
  3229. style={{ margin: "11px 0px 10px 10px" }}
  3230. onClick={() => {
  3231. this.waterData();
  3232. this.setState({
  3233. cvisible: true,
  3234. });
  3235. }}
  3236. >
  3237. 详情收款流水
  3238. </Button>
  3239. <Button
  3240. type="primary"
  3241. disabled={this.state.selectedRowKeys.length != 1}
  3242. style={{ margin: "11px 0px 10px 10px" }}
  3243. onClick={() => {
  3244. this.timeData();
  3245. this.setState({
  3246. timeVisible: true,
  3247. });
  3248. }}
  3249. >
  3250. 工时信息
  3251. </Button>
  3252. <Button
  3253. type="primary"
  3254. disabled={this.state.selectedRowKeys.length != 1}
  3255. style={{ margin: "11px 0px 10px 10px" }}
  3256. onClick={() => {
  3257. this.cuiData();
  3258. this.setState({
  3259. cuiVisible: true,
  3260. });
  3261. }}
  3262. >
  3263. 催款信息
  3264. </Button>
  3265. <Button
  3266. type="primary"
  3267. disabled={this.state.selectedRowKeys.length != 1}
  3268. style={{ margin: "11px 0px 10px 10px" }}
  3269. onClick={() => {
  3270. this.proData();
  3271. this.setState({
  3272. proVisible: true,
  3273. });
  3274. }}
  3275. >
  3276. 项目进度
  3277. </Button>
  3278. </TabPane>
  3279. <TabPane tab="更改表格显示数据" key="1">
  3280. <div style={{ marginLeft: 10 }}>
  3281. <ChooseList
  3282. columns={this.state.columns}
  3283. changeFn={this.changeList}
  3284. changeList={this.state.changeList}
  3285. top={55}
  3286. margin={11}
  3287. />
  3288. </div>
  3289. </TabPane>
  3290. {/* <TabPane tab="批量操作" key="6">
  3291. <Button
  3292. type="primary"
  3293. disabled={this.state.selectedRowKeys.length == 0}
  3294. style={{ margin: "0px 0px 10px 10px" }}
  3295. onClick={e => {
  3296. e.stopPropagation(),
  3297. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3298. }}
  3299. >
  3300. 转交
  3301. </Button>
  3302. </TabPane> */}
  3303. </Tabs>
  3304. <div className="patent-table">
  3305. <Spin spinning={this.state.loadingA}>
  3306. <Table
  3307. bordered
  3308. columns={
  3309. this.state.changeList == undefined
  3310. ? this.state.columns
  3311. : this.state.changeList
  3312. }
  3313. dataSource={this.state.dataSource}
  3314. // rowSelection={false}
  3315. scroll={{ x: "max-content", y: 0 }}
  3316. pagination={this.state.pagination}
  3317. onRowDoubleClick={this.tableRowClick.bind(this)}
  3318. rowSelection={rowSelection}
  3319. size="middle"
  3320. />
  3321. </Spin>
  3322. <p
  3323. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  3324. >
  3325. {
  3326. <span style={{ marginRight: 10 }}>
  3327. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  3328. </span>
  3329. }
  3330. {
  3331. <span>
  3332. {`合同额总计(万元):${this.state.totalHui ? this.state.totalHui : "0"
  3333. }`}
  3334. </span>
  3335. }
  3336. </p>
  3337. </div>
  3338. <div className="patent-desc">
  3339. {this.state.visible ? <Modal
  3340. maskClosable={false}
  3341. visible={this.state.visible}
  3342. onCancel={this.closeModal}
  3343. width={this.state.width}
  3344. footer=""
  3345. className="admin-desc-content"
  3346. >
  3347. <Tabs
  3348. onChange={this.callBack}
  3349. type="card"
  3350. activeKey={this.state.modKey}
  3351. tabBarExtraContent={
  3352. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  3353. <OrderItemStatus deleteSign={this.state.deleteSign} />
  3354. </div>
  3355. }
  3356. >
  3357. <TabPane tab="项目概况" key="1">
  3358. {this.state.modKey === '1' ? <Form layout="horizontal" id="demand-form">
  3359. <Spin spinning={this.state.loading}>
  3360. <div className="clearfix">
  3361. <FormItem
  3362. className="half-item"
  3363. {...formItemLayout}
  3364. label="订单编号"
  3365. >
  3366. <span>{this.state.orderNo}</span>
  3367. </FormItem>
  3368. <FormItem
  3369. className="half-item"
  3370. {...formItemLayout}
  3371. label="签单时间"
  3372. >
  3373. <span>{theData.signDate}</span>
  3374. </FormItem>
  3375. <FormItem
  3376. className="half-item"
  3377. {...formItemLayout}
  3378. label="客户名称"
  3379. >
  3380. <span>{theData.userName}</span>
  3381. <EnterpriseNameChange
  3382. type='journal'
  3383. style={{ marginLeft: 10 }}
  3384. enterpriseId={this.state.orderUid} />
  3385. </FormItem>
  3386. <FormItem
  3387. className="half-item"
  3388. {...formItemLayout}
  3389. label="销售类型"
  3390. >
  3391. <span>
  3392. {(["私有客户-", "签单客户-"][theData.userType] || " ") +
  3393. (salesList[theData.salesType] || "")}
  3394. {
  3395. theData.other != null && theData.other != "" &&
  3396. <Tooltip title={theData.other}>
  3397. <span>
  3398. {"(" + theData.other.toString().slice(0, 10) + (theData.other.toString().length > 9 ? "...)" : ")")}
  3399. </span>
  3400. </Tooltip>
  3401. }
  3402. </span>
  3403. </FormItem>
  3404. <FormItem
  3405. className="half-item"
  3406. {...formItemLayout}
  3407. label="流转状态"
  3408. >
  3409. <span>{getProcessStatus(theData.processStatus, theData.examineName, theData.approval)}</span>
  3410. </FormItem>
  3411. <FormItem
  3412. className="half-item"
  3413. {...formItemLayout}
  3414. label="订单类型"
  3415. >
  3416. <span>{getNewOrderType(theData.orderType)}</span>
  3417. </FormItem>
  3418. <FormItem
  3419. className="half-item"
  3420. {...formItemLayout}
  3421. label="结算状态"
  3422. >
  3423. <span>
  3424. {getLiquidationStatus(theData.liquidationStatus)}
  3425. </span>
  3426. </FormItem>
  3427. <FormItem
  3428. className="half-item"
  3429. {...formItemLayout}
  3430. label="签单总金额(万元)"
  3431. >
  3432. <span>{theData.totalAmount}</span>
  3433. </FormItem>
  3434. <FormItem
  3435. className="half-item"
  3436. {...formItemLayout}
  3437. label="首付款(万元)"
  3438. >
  3439. <span>{theData.firstAmount}</span>
  3440. </FormItem>
  3441. <FormItem
  3442. className="half-item"
  3443. {...formItemLayout}
  3444. label="已收款(万元)"
  3445. >
  3446. <span>{theData.settlementAmount}</span>
  3447. </FormItem>
  3448. <FormItem
  3449. className="half-item"
  3450. {...formItemLayout}
  3451. label="是否特批"
  3452. >
  3453. <span>{getApproval(theData.approval)}</span>
  3454. </FormItem>
  3455. {/*this.props.data.orderStatus=='6'&&<FormItem className="half-item" {...formItemLayout} label="已退(万元)">
  3456. <span>{this.props.data.refundAmount}</span>
  3457. </FormItem>*/}
  3458. </div>
  3459. <div className="clearfix">
  3460. <FormItem
  3461. labelCol={{ span: 5 }}
  3462. wrapperCol={{ span: 18 }}
  3463. label="合同扫描件"
  3464. >
  3465. {/*<Upload*/}
  3466. {/* className="demandDetailShow-upload"*/}
  3467. {/* listType="picture-card"*/}
  3468. {/* fileList={this.state.orgCodeUrl}*/}
  3469. {/* onPreview={(file) => {*/}
  3470. {/* this.setState({*/}
  3471. {/* previewImage: file.url || file.thumbUrl,*/}
  3472. {/* previewVisible: true,*/}
  3473. {/* });*/}
  3474. {/* }}*/}
  3475. {/*/>*/}
  3476. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  3477. {this.state.orgCodeUrl && this.state.modKey === '1' ? <ImgList domId={'approvedOutsourcingAll1'} fileList={this.state.orgCodeUrl} /> : <div />}
  3478. </div>
  3479. <Modal
  3480. maskClosable={false}
  3481. footer={null}
  3482. width={"50%"}
  3483. visible={this.state.previewVisible}
  3484. onCancel={() => {
  3485. this.setState({
  3486. previewVisible: false,
  3487. rotateDeg: 0,
  3488. });
  3489. }}
  3490. >
  3491. <img
  3492. alt=""
  3493. style={{
  3494. width: "100%",
  3495. transform: `rotate(${this.state.rotateDeg}deg)`,
  3496. }}
  3497. src={this.state.previewImage || ""}
  3498. />
  3499. <Button
  3500. onClick={this.rotate}
  3501. style={{
  3502. position: "relative",
  3503. left: "50%",
  3504. transform: "translateX(-50%)",
  3505. }}
  3506. >
  3507. 旋转
  3508. </Button>
  3509. <Button
  3510. onClick={this.upImg}
  3511. style={{
  3512. position: "absolute",
  3513. left: -81,
  3514. top: "50%",
  3515. transform: "translateY(-50%)",
  3516. }}
  3517. >
  3518. 上一张
  3519. </Button>
  3520. <Button
  3521. onClick={this.downImg}
  3522. style={{
  3523. position: "absolute",
  3524. right: -81,
  3525. top: "50%",
  3526. transform: "translateY(-50%)",
  3527. }}
  3528. >
  3529. 下一张
  3530. </Button>
  3531. </Modal>
  3532. <Button
  3533. style={{
  3534. float: "right",
  3535. marginRight: "140px",
  3536. marginTop: "20px",
  3537. }}
  3538. onClick={this.getOrderLog}
  3539. >
  3540. 查看订单日志
  3541. </Button>
  3542. </FormItem>
  3543. <FormItem
  3544. labelCol={{ span: 5 }}
  3545. wrapperCol={{ span: 18 }}
  3546. label="补充协议"
  3547. >
  3548. {/*<Upload*/}
  3549. {/* className="demandDetailShow-upload"*/}
  3550. {/* listType="picture-card"*/}
  3551. {/* fileList={this.state.replenishUrl}*/}
  3552. {/* onPreview={(file) => {*/}
  3553. {/* this.setState({*/}
  3554. {/* previewImage: file.url || file.thumbUrl,*/}
  3555. {/* previewVisibles: true,*/}
  3556. {/* });*/}
  3557. {/* }}*/}
  3558. {/*/>*/}
  3559. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  3560. {this.state.replenishUrl && this.state.modKey === '1' ? <ImgList fileList={this.state.replenishUrl} /> : <div />}
  3561. </div>
  3562. <Modal
  3563. maskClosable={false}
  3564. footer={null}
  3565. width={"50%"}
  3566. visible={this.state.previewVisibles}
  3567. onCancel={() => {
  3568. this.setState({
  3569. previewVisibles: false,
  3570. rotateDeg: 0,
  3571. });
  3572. }}
  3573. >
  3574. <img
  3575. alt=""
  3576. style={{
  3577. width: "100%",
  3578. transform: `rotate(${this.state.rotateDeg}deg)`,
  3579. }}
  3580. src={this.state.previewImage || ""}
  3581. />
  3582. <Button
  3583. onClick={this.rotates}
  3584. style={{
  3585. position: "relative",
  3586. left: "50%",
  3587. transform: "translateX(-50%)",
  3588. }}
  3589. >
  3590. 旋转
  3591. </Button>
  3592. <Button
  3593. onClick={this.upImgs}
  3594. style={{
  3595. position: "absolute",
  3596. left: -81,
  3597. top: "50%",
  3598. transform: "translateY(-50%)",
  3599. }}
  3600. >
  3601. 上一张
  3602. </Button>
  3603. <Button
  3604. onClick={this.downImgs}
  3605. style={{
  3606. position: "absolute",
  3607. right: -81,
  3608. top: "50%",
  3609. transform: "translateY(-50%)",
  3610. }}
  3611. >
  3612. 下一张
  3613. </Button>
  3614. </Modal>
  3615. </FormItem>
  3616. </div>
  3617. <ContentUrl
  3618. processStatus={2}
  3619. domId={"approvedContents"}
  3620. contentUrl={this.state.contentUrl}
  3621. imgId={"approvedContentsImg"}
  3622. />
  3623. <div className="clearfix">
  3624. <FormItem
  3625. className="half-item"
  3626. {...formItemLayout}
  3627. label="合同编号"
  3628. >
  3629. <span>{theData.contractNo}</span>
  3630. </FormItem>
  3631. <FormItem
  3632. className="half-item"
  3633. {...formItemLayout}
  3634. label="订单部门"
  3635. >
  3636. <span>{theData.depName}</span>
  3637. </FormItem>
  3638. </div>
  3639. <div className="clearfix">
  3640. <FormItem
  3641. labelCol={{ span: 5 }}
  3642. wrapperCol={{ span: 18 }}
  3643. label="订单留言"
  3644. >
  3645. <p style={{ width: 500, wordWrap: "break-word" }}>
  3646. {this.state.orderRemarks}
  3647. </p>
  3648. </FormItem>
  3649. </div>
  3650. {/* <div className="clearfix">
  3651. <FormItem
  3652. labelCol={{ span: 5 }}
  3653. wrapperCol={{ span: 18 }}
  3654. label="收款节点"
  3655. >
  3656. {jsDate.map(item => {
  3657. return (
  3658. <p>
  3659. {getjiedian(item.dunSubject)} -- {item.money} 万元
  3660. </p>
  3661. );
  3662. })}
  3663. </FormItem>
  3664. </div> */}
  3665. <div className="clearfix">
  3666. <FormItem
  3667. className="half-item"
  3668. {...formItemLayout}
  3669. label="订单负责人"
  3670. >
  3671. <span>{theData.salesmanName}</span>
  3672. </FormItem>
  3673. <FormItem
  3674. className="half-item"
  3675. {...formItemLayout}
  3676. label="订单负责人电话"
  3677. >
  3678. <span>{theData.salesmanMobile}</span>
  3679. </FormItem>
  3680. <FormItem
  3681. className="half-item"
  3682. {...formItemLayout}
  3683. label="当前财务负责人"
  3684. >
  3685. <span>{theData.nowFinance}</span>
  3686. </FormItem>
  3687. <FormItem
  3688. className="half-item"
  3689. {...formItemLayout}
  3690. label="当前财务负责人电话"
  3691. >
  3692. <span>{theData.nowFinanceMobile}</span>
  3693. </FormItem>
  3694. <FormItem
  3695. className="half-item"
  3696. {...formItemLayout}
  3697. style={{ opacity: ".5" }}
  3698. label="原订单负责人"
  3699. >
  3700. <span>{theData.oldSalesmanName}</span>
  3701. </FormItem>
  3702. <FormItem
  3703. className="half-item"
  3704. {...formItemLayout}
  3705. style={{ opacity: ".5" }}
  3706. label="原订单负责人电话"
  3707. >
  3708. <span>{theData.oldSalesmanMobile}</span>
  3709. </FormItem>
  3710. <FormItem
  3711. className="half-item"
  3712. {...formItemLayout}
  3713. style={{ opacity: ".5" }}
  3714. label="实际财务操作人"
  3715. >
  3716. <span>{theData.financeName}</span>
  3717. </FormItem>
  3718. <FormItem
  3719. className="half-item"
  3720. {...formItemLayout}
  3721. style={{ opacity: ".5" }}
  3722. label="实际财务操作人电话"
  3723. >
  3724. <span>{theData.financeMobile}</span>
  3725. </FormItem>
  3726. </div>
  3727. {/* <Modal
  3728. visible={this.state.avisible}
  3729. className="admin-desc-content"
  3730. width="800px"
  3731. maskClosable={false}
  3732. title="订单日志"
  3733. footer={null}
  3734. onCancel={this.closeOrderLog}
  3735. >
  3736. <div className="patent-table">
  3737. <Spin spinning={this.state.loading}>
  3738. <Table
  3739. columns={this.state.columnsY}
  3740. dataSource={this.state.dataSourceY}
  3741. pagination={false}
  3742. />
  3743. </Spin>
  3744. </div>
  3745. </Modal> */}
  3746. <OrderRiZi
  3747. dataSourcerizhi={this.state.dataSourceY}
  3748. closeOrderLog={this.closeOrderLog}
  3749. visible={this.state.avisible}
  3750. loading={this.state.loading}
  3751. />
  3752. <div className="clearfix">
  3753. <p style={{ fontSize: 18, marginLeft: 20 }}>项目业务</p>
  3754. <div className="patent-table">
  3755. <Spin spinning={this.state.loading}>
  3756. <Table
  3757. columns={this.state.columnsX}
  3758. dataSource={this.state.dataSourceX}
  3759. pagination={false}
  3760. size="middle"
  3761. bordered
  3762. />
  3763. </Spin>
  3764. </div>
  3765. </div>
  3766. <div>
  3767. <span style={{ marginLeft: 20, fontSize: "18px" }}>
  3768. 催款节点
  3769. </span>
  3770. <span
  3771. style={{
  3772. display: cuiDataList.length ? "none" : "inline-block",
  3773. marginLeft: 10,
  3774. color: "red",
  3775. }}
  3776. >
  3777. 金额总计(万元): {this.state.totalCui}
  3778. </span>
  3779. </div>
  3780. <div className="clearfix">
  3781. <Spin spinning={this.state.loading}>
  3782. <Form layout="horizontal" id="demand-form">
  3783. <Table
  3784. pagination={false}
  3785. bordered
  3786. size="middle"
  3787. columns={
  3788. cuiDataList.length
  3789. ? this.state.ContactsLists
  3790. : this.state.ContactsListsNew
  3791. }
  3792. dataSource={
  3793. cuiDataList.length
  3794. ? this.state.contactList
  3795. : this.state.contactListNew
  3796. }
  3797. />
  3798. <Col
  3799. span={24}
  3800. offset={9}
  3801. style={{ marginTop: "15px" }}
  3802. />
  3803. </Form>
  3804. </Spin>
  3805. </div>
  3806. </Spin>
  3807. </Form> : <div />}
  3808. </TabPane>
  3809. <TabPane tab="外包详情" key="2">
  3810. <div className="clearfix">
  3811. <p style={{ color: "red" }}>
  3812. 提示:查看备注请点击表格左侧加号按钮~
  3813. </p>
  3814. <div className="patent-table">
  3815. <Spin spinning={this.state.loading}>
  3816. <Table
  3817. columns={this.state.columnsW}
  3818. dataSource={this.state.dataSourceW}
  3819. pagination={false}
  3820. size="middle"
  3821. expandedRowRender={(record) => (
  3822. <p style={{ margin: 0 }}>{record.remarks}</p>
  3823. )}
  3824. scroll={{ x: 300, y: 0 }}
  3825. />
  3826. </Spin>
  3827. </div>
  3828. </div>
  3829. </TabPane>
  3830. <TabPane tab="外包审核" key="3">
  3831. <div className="clearfix">
  3832. <FormItem
  3833. className="half-item"
  3834. labelCol={{ span: 8 }}
  3835. wrapperCol={{ span: 14 }}
  3836. label="外包公司"
  3837. >
  3838. <span>{this.state.companyName}</span>
  3839. </FormItem>
  3840. </div>
  3841. <div className="clearfix">
  3842. <FormItem
  3843. className="half-item"
  3844. {...formItemLayout}
  3845. label="单价(万元)"
  3846. >
  3847. <span>{this.state.unitPrice}</span>
  3848. </FormItem>
  3849. </div>
  3850. <div className="clearfix">
  3851. <FormItem
  3852. className="half-item"
  3853. {...formItemLayout}
  3854. label="数量(万元)"
  3855. >
  3856. <span>{this.state.unitNumber}</span>
  3857. </FormItem>
  3858. </div>
  3859. <div className="clearfix">
  3860. <FormItem
  3861. className="half-item"
  3862. {...formItemLayout}
  3863. label="总金额(万元)"
  3864. >
  3865. <span>{this.state.amount}</span>
  3866. </FormItem>
  3867. </div>
  3868. <div className="clearfix">
  3869. <FormItem
  3870. className="half-item"
  3871. {...formItemLayout}
  3872. label="备注"
  3873. >
  3874. <span>{this.state.outsourceRemarks}</span>
  3875. </FormItem>
  3876. </div>
  3877. {/*<div className="clearfix">
  3878. <FormItem className="half-item"
  3879. labelCol={{ span: 8 }}
  3880. wrapperCol={{ span: 14 }}
  3881. label="上传协议文件" >
  3882. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3883. data={(e)=>{
  3884. return {
  3885. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3886. }
  3887. }}
  3888. fileList={this.state.attachmentUrl}
  3889. showUploadList={{showRemoveIcon:false}}
  3890. onPreview={(e)=>{
  3891. let url = window.location.href.substring(7)
  3892. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  3893. }}>
  3894. </Upload>
  3895. </FormItem>
  3896. </div>*/}
  3897. <div className="clearfix">
  3898. <FormItem
  3899. labelCol={{ span: 4 }}
  3900. wrapperCol={{ span: 18 }}
  3901. label="合同/协议扫描件"
  3902. >
  3903. {/*<Upload*/}
  3904. {/* className="demandDetailShow-upload"*/}
  3905. {/* listType="picture-card"*/}
  3906. {/* fileList={this.state.pictureUrl}*/}
  3907. {/* onPreview={(file) => {*/}
  3908. {/* this.setState({*/}
  3909. {/* previewImage: file.url || file.thumbUrl,*/}
  3910. {/* previewVisible: true,*/}
  3911. {/* });*/}
  3912. {/* }}*/}
  3913. {/*/>*/}
  3914. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  3915. {this.state.pictureUrl && this.state.modKey === '3' ? <ImgList domId={'approvedOutsourcingAll2'} fileList={this.state.pictureUrl} /> : <div />}
  3916. </div>
  3917. <Modal
  3918. maskClosable={false}
  3919. footer={null}
  3920. width={"50%"}
  3921. visible={this.state.previewVisible}
  3922. onCancel={() => {
  3923. this.setState({ previewVisible: false });
  3924. }}
  3925. >
  3926. <img
  3927. alt=""
  3928. style={{
  3929. width: "100%",
  3930. transform: `rotate(${this.state.rotateDeg}deg)`,
  3931. }}
  3932. src={this.state.previewImage || ""}
  3933. />
  3934. <Button
  3935. onClick={this.rotate}
  3936. style={{
  3937. position: "relative",
  3938. left: "50%",
  3939. transform: "translateX(-50%)",
  3940. }}
  3941. >
  3942. 旋转
  3943. </Button>
  3944. <Button
  3945. onClick={this.upImg}
  3946. style={{
  3947. position: "absolute",
  3948. left: -81,
  3949. top: "50%",
  3950. transform: "translateY(-50%)",
  3951. }}
  3952. >
  3953. 上一张
  3954. </Button>
  3955. <Button
  3956. onClick={this.downImg}
  3957. style={{
  3958. position: "absolute",
  3959. right: -81,
  3960. top: "50%",
  3961. transform: "translateY(-50%)",
  3962. }}
  3963. >
  3964. 下一张
  3965. </Button>
  3966. </Modal>
  3967. </FormItem>
  3968. </div>
  3969. <div className="clearfix">
  3970. <hr className="division" />
  3971. <div className="clearfix">
  3972. <FormItem
  3973. className="half-item"
  3974. labelCol={{ span: 8 }}
  3975. wrapperCol={{ span: 14 }}
  3976. label="审核意见"
  3977. >
  3978. <span>{this.state.remarks}</span>
  3979. </FormItem>
  3980. </div>
  3981. <div className="clearfix">
  3982. <FormItem
  3983. className="half-item"
  3984. labelCol={{ span: 8 }}
  3985. wrapperCol={{ span: 14 }}
  3986. label="审核结果"
  3987. >
  3988. <span>{getRefundStatus(this.state.refundStatus)}</span>
  3989. </FormItem>
  3990. </div>
  3991. <div className="clearfix">
  3992. <FormItem
  3993. className="half-item"
  3994. labelCol={{ span: 8 }}
  3995. wrapperCol={{ span: 14 }}
  3996. label="审核时间"
  3997. >
  3998. <span>{this.state.auditTimes}</span>
  3999. </FormItem>
  4000. </div>
  4001. </div>
  4002. </TabPane>
  4003. </Tabs>
  4004. </Modal> : <div />}
  4005. </div>
  4006. <div className="patent-desc">
  4007. <Modal
  4008. maskClosable={false}
  4009. title="驳回理由"
  4010. visible={this.state.boHuiVisible}
  4011. onCancel={this.boHuiCancel}
  4012. width="500px"
  4013. footer=""
  4014. className="admin-desc-content"
  4015. >
  4016. <TextArea
  4017. rows={4}
  4018. value={this.state.reason}
  4019. onChange={(e) => {
  4020. this.setState({
  4021. reason: e.target.value,
  4022. });
  4023. }}
  4024. />
  4025. <Button
  4026. type="primary"
  4027. style={{ marginTop: "20px" }}
  4028. onClick={this.boHuiCo}
  4029. >
  4030. 确定
  4031. </Button>
  4032. </Modal>
  4033. </div>
  4034. <Assign
  4035. title="任务"
  4036. selApi={"/api/admin/newOrder/updateFinance"}
  4037. data={this.state.assignDataY}
  4038. showDesc={this.state.assignVisibleY}
  4039. closeDesc={this.closeAssignY.bind(this)}
  4040. // fenpaiData={8}
  4041. specially={0}
  4042. roleName={this.state.nub}
  4043. requestMethod={"get"}
  4044. />
  4045. <Receivable
  4046. title="收款记录"
  4047. api="/api/admin/financial/addReceiptsFlow"
  4048. data={this.state.assignDataX}
  4049. showDesc={this.state.assignVisibleX}
  4050. closeDesc={this.closeAssignX.bind(this)}
  4051. />
  4052. <Modal
  4053. visible={this.state.bvisible}
  4054. footer=""
  4055. title="开票历史记录"
  4056. className="admin-desc-content"
  4057. width="1200px"
  4058. onCancel={this.inRecordCanl}
  4059. >
  4060. <Spin spinning={this.state.loading}>
  4061. <div
  4062. className="patent-table"
  4063. ref={(e) => {
  4064. this.refs.kaiPiao = e;
  4065. }}
  4066. >
  4067. <Table
  4068. columns={this.state.columnsDate}
  4069. dataSource={this.state.recordData}
  4070. onRowClick={this.kaiPiaoData}
  4071. pagination={false}
  4072. bordered
  4073. size="middle"
  4074. />
  4075. <div className="clearfix" style={{ marginTop: "20px" }}>
  4076. <FormItem
  4077. className="half-item"
  4078. {...formItemLayout}
  4079. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  4080. >
  4081. <span>{this.state.sum + "(万元)"}</span>
  4082. </FormItem>
  4083. </div>
  4084. <ReactToPrint
  4085. trigger={() => (
  4086. <Button
  4087. type="primary"
  4088. style={{
  4089. float: "right",
  4090. // marginTop: 10,
  4091. position: "absolute",
  4092. top: -54,
  4093. right: 30,
  4094. }}
  4095. >
  4096. 打印
  4097. </Button>
  4098. )}
  4099. content={() => this.refs.kaiPiao}
  4100. />
  4101. </div>
  4102. </Spin>
  4103. </Modal>
  4104. <Modal
  4105. visible={this.state.cvisible}
  4106. footer=""
  4107. title="详细收款流水"
  4108. className="admin-desc-content"
  4109. width="1300px"
  4110. onCancel={this.waterCanl}
  4111. >
  4112. <Spin spinning={this.state.loading}>
  4113. <div
  4114. className="patent-table"
  4115. ref={(e) => {
  4116. this.refs.shouKuan = e;
  4117. }}
  4118. >
  4119. <Table
  4120. columns={this.state.waterlistDate}
  4121. dataSource={this.state.waterData}
  4122. pagination={false}
  4123. scroll={{ x: "max-content", y: 0 }}
  4124. bordered
  4125. size="middle"
  4126. />
  4127. <div className="clearfix" style={{ marginTop: "20px" }}>
  4128. <FormItem
  4129. className="half-item"
  4130. {...formItemLayout}
  4131. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  4132. >
  4133. <span>{this.state.waterSum + "(万元)"}</span>
  4134. </FormItem>
  4135. </div>
  4136. <ReactToPrint
  4137. trigger={() => (
  4138. <Button
  4139. type="primary"
  4140. style={{
  4141. float: "right",
  4142. position: "absolute",
  4143. top: -54,
  4144. right: 30,
  4145. }}
  4146. >
  4147. 打印
  4148. </Button>
  4149. )}
  4150. content={() => this.refs.shouKuan}
  4151. />
  4152. </div>
  4153. </Spin>
  4154. </Modal>
  4155. <Modal
  4156. visible={this.state.dvisible}
  4157. footer=""
  4158. title="所有列表信息"
  4159. className="admin-desc-content"
  4160. width="1300px"
  4161. onCancel={() => {
  4162. this.loadData(this.state.page);
  4163. this.setState({
  4164. dvisible: false,
  4165. });
  4166. }}
  4167. >
  4168. <Spin spinning={this.state.loading}>
  4169. <div
  4170. className="patent-table"
  4171. style={{
  4172. // width: 900,
  4173. // position: "relative",
  4174. // left: "50%",
  4175. // transform: "translate(-50%)",
  4176. padding: "25px 0 30px 30px",
  4177. }}
  4178. ref={(e) => {
  4179. this.refs.all = e;
  4180. }}
  4181. >
  4182. <Table
  4183. columns={this.state.printColumns}
  4184. dataSource={this.state.dataSource}
  4185. pagination={false}
  4186. bordered
  4187. size="small"
  4188. />
  4189. </div>
  4190. </Spin>
  4191. <ReactToPrint
  4192. trigger={() => (
  4193. <Button
  4194. type="primary"
  4195. style={{
  4196. float: "right",
  4197. marginTop: 10,
  4198. position: "absolute",
  4199. top: 0,
  4200. right: 30,
  4201. }}
  4202. >
  4203. 打印
  4204. </Button>
  4205. )}
  4206. content={() => this.refs.all}
  4207. />
  4208. </Modal>
  4209. <Modal
  4210. visible={this.state.timeVisible}
  4211. footer=""
  4212. title="工时详情"
  4213. className="admin-desc-content"
  4214. width="1300px"
  4215. pagination={false}
  4216. onCancel={() => {
  4217. this.loadData(this.state.page);
  4218. this.setState({
  4219. timeVisible: false,
  4220. });
  4221. }}
  4222. >
  4223. <Spin spinning={this.state.loading}>
  4224. <div
  4225. className="patent-table"
  4226. style={
  4227. {
  4228. // width: 900,
  4229. // position: "relative",
  4230. // left: "50%",
  4231. // transform: "translate(-50%)",
  4232. // padding: "25px 0 30px 30px"
  4233. }
  4234. }
  4235. ref={(e) => {
  4236. this.refs.all = e;
  4237. }}
  4238. >
  4239. <Table
  4240. columns={this.state.timeColumns}
  4241. dataSource={this.state.timeDataList}
  4242. scroll={{ x: "max-content", y: 0 }}
  4243. pagination={false}
  4244. bordered
  4245. size="small"
  4246. />
  4247. </div>
  4248. </Spin>
  4249. <ReactToPrint
  4250. trigger={() => (
  4251. <Button
  4252. type="primary"
  4253. style={{
  4254. float: "right",
  4255. marginTop: 10,
  4256. position: "absolute",
  4257. top: 0,
  4258. right: 30,
  4259. }}
  4260. >
  4261. 打印
  4262. </Button>
  4263. )}
  4264. content={() => this.refs.all}
  4265. />
  4266. </Modal>
  4267. <Modal
  4268. visible={this.state.cuiVisible}
  4269. footer=""
  4270. title="催款详情"
  4271. className="admin-desc-content"
  4272. width="1300px"
  4273. pagination={false}
  4274. onCancel={() => {
  4275. this.loadData(this.state.page);
  4276. this.setState({
  4277. cuiVisible: false,
  4278. cuiTabKey: "1",
  4279. });
  4280. }}
  4281. >
  4282. <Tabs activeKey={this.state.cuiTabKey} onChange={this.cuiTabChange}>
  4283. <TabPane tab="催款节点" key="1">
  4284. <Spin spinning={this.state.loading}>
  4285. <div
  4286. className="patent-table"
  4287. ref={(e) => {
  4288. this.refs.all = e;
  4289. }}
  4290. >
  4291. <Table
  4292. columns={this.state.cuiColumns}
  4293. dataSource={this.state.cuiDataList}
  4294. scroll={{ x: "max-content", y: 0 }}
  4295. pagination={false}
  4296. bordered
  4297. size="small"
  4298. />
  4299. </div>
  4300. <ReactToPrint
  4301. trigger={() => (
  4302. <Button
  4303. type="primary"
  4304. style={{
  4305. float: "right",
  4306. marginTop: 10,
  4307. position: "absolute",
  4308. top: "-60px",
  4309. right: 30,
  4310. }}
  4311. >
  4312. 打印
  4313. </Button>
  4314. )}
  4315. content={() => this.refs.all}
  4316. />
  4317. </Spin>
  4318. </TabPane>
  4319. <TabPane tab="欠款催收记录" key="2">
  4320. <Spin spinning={this.state.loading}>
  4321. <div
  4322. className="patent-table"
  4323. ref={(e) => {
  4324. this.refs.all = e;
  4325. }}
  4326. >
  4327. <Table
  4328. columns={this.state.qianColumns}
  4329. dataSource={this.state.qianDataList}
  4330. scroll={{ x: "max-content", y: 0 }}
  4331. pagination={false}
  4332. bordered
  4333. size="small"
  4334. />
  4335. </div>
  4336. <ReactToPrint
  4337. trigger={() => (
  4338. <Button
  4339. type="primary"
  4340. style={{
  4341. float: "right",
  4342. marginTop: 10,
  4343. position: "absolute",
  4344. top: "-60px",
  4345. right: 30,
  4346. }}
  4347. >
  4348. 打印
  4349. </Button>
  4350. )}
  4351. content={() => this.refs.all}
  4352. />
  4353. </Spin>
  4354. </TabPane>
  4355. </Tabs>
  4356. </Modal>
  4357. <Modal
  4358. visible={this.state.proVisible}
  4359. footer=""
  4360. title="项目进度"
  4361. className="admin-desc-content"
  4362. width="1300px"
  4363. pagination={false}
  4364. onCancel={() => {
  4365. this.loadData(this.state.page);
  4366. this.setState({
  4367. proVisible: false,
  4368. });
  4369. }}
  4370. >
  4371. <Spin spinning={this.state.loading}>
  4372. <div
  4373. className="patent-table"
  4374. style={
  4375. {
  4376. // width: 900,
  4377. // position: "relative",
  4378. // left: "50%",
  4379. // transform: "translate(-50%)",
  4380. // padding: "25px 0 30px 30px"
  4381. }
  4382. }
  4383. ref={(e) => {
  4384. this.refs.all = e;
  4385. }}
  4386. >
  4387. <Table
  4388. columns={this.state.proColumns}
  4389. dataSource={this.state.proDataList}
  4390. pagination={false}
  4391. bordered
  4392. size="small"
  4393. />
  4394. </div>
  4395. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  4396. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  4397. </span>
  4398. </Spin>
  4399. <ReactToPrint
  4400. trigger={() => (
  4401. <Button
  4402. type="primary"
  4403. style={{
  4404. float: "right",
  4405. marginTop: 10,
  4406. position: "absolute",
  4407. top: 0,
  4408. right: 30,
  4409. }}
  4410. >
  4411. 打印
  4412. </Button>
  4413. )}
  4414. content={() => this.refs.all}
  4415. />
  4416. </Modal>
  4417. <KaiPiaoModal
  4418. visible={this.state.avisible}
  4419. data={this.state.modalData}
  4420. onCancel={this.visitCancels}
  4421. loading={this.state.loading}
  4422. />
  4423. </div>
  4424. );
  4425. },
  4426. });
  4427. export default approvedOutsourcing;