approvedOutsourcing.jsx 135 KB

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