approvedOutsourcingAll.jsx 129 KB

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