approvedOutsourcingAll.jsx 133 KB

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