approvedOutsourcingAll.jsx 133 KB

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