shouKuanAll.jsx 131 KB

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