approvedOutsourcingAll.jsx 130 KB

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