approvedOutsourcingAll.jsx 128 KB

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