shouKuanAll.jsx 133 KB

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