approvedOutsourcingAll.jsx 127 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260
  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. const FormItem = Form.Item;
  47. const approvedOutsourcing = React.createClass({
  48. departmentList() {
  49. this.setState({
  50. loading: true,
  51. });
  52. $.ajax({
  53. method: "get",
  54. dataType: "json",
  55. crossDomain: false,
  56. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  57. data: {},
  58. success: function (data) {
  59. let thedata = data.data;
  60. let theArr = [];
  61. if (!thedata) {
  62. if (data.error && data.error.length) {
  63. message.warning(data.error[0].message);
  64. }
  65. } else {
  66. thedata.map(function (item, index) {
  67. theArr.push({
  68. key: index,
  69. name: item.name,
  70. id: item.id,
  71. });
  72. });
  73. }
  74. this.setState({
  75. departmentArr: theArr,
  76. });
  77. }.bind(this),
  78. }).always(
  79. function () {
  80. this.setState({
  81. loading: false,
  82. });
  83. }.bind(this)
  84. );
  85. },
  86. loadData(pageNo, pageSize) {
  87. this.state.data = [];
  88. this.setState({
  89. page: pageNo,
  90. loadingA: true,
  91. });
  92. $.ajax({
  93. method: "get",
  94. dataType: "json",
  95. crossDomain: false,
  96. url: globalConfig.context + "/api/admin/financial/financeList",
  97. data: {
  98. pageNo: pageNo || 1,
  99. pageSize: pageSize || this.state.pagination.pageSize,
  100. buyerName: this.state.nameSearch, //客户名称
  101. orderNo: this.state.orderNoSearch,
  102. startTime: this.state.releaseDate[0],
  103. endTime: this.state.releaseDate[1],
  104. startFinalReceivablesTime: this.state.shouKuanDate[0],
  105. endFinalReceivablesTime: this.state.shouKuanDate[1],
  106. departmentId: this.state.departmenttList,
  107. processStatus: this.state.processStatusSearch,
  108. contractNo: this.state.contractNoSearch,
  109. outsource: 1,
  110. liquidationStatus: this.state.liquidationStatus,
  111. amountStatus: this.state.amountStatus,
  112. },
  113. success: function (data) {
  114. let theArr = [];
  115. if (!data.data || !data.data.pagination.list) {
  116. if (data.error && data.error.length) {
  117. message.warning(data.error[0].message);
  118. }
  119. } else {
  120. for (let i = 0; i < data.data.pagination.list.length; i++) {
  121. let thisdata = data.data.pagination.list[i];
  122. theArr.push({
  123. key: thisdata.orderNo,
  124. orderNo: thisdata.orderNo,
  125. orderType: thisdata.orderType,
  126. orderStatus: thisdata.orderStatus,
  127. sellerName: thisdata.sellerName,
  128. processStatus: thisdata.processStatus,
  129. liquidationStatus: thisdata.liquidationStatus,
  130. approval: thisdata.approval,
  131. buyerName: thisdata.buyerName,
  132. actuallyTotalAmount: thisdata.actuallyTotalAmount,
  133. signTime: thisdata.signTime,
  134. companyId: thisdata.companyId,
  135. companyName: thisdata.companyName,
  136. buyerId: thisdata.buyerId,
  137. contractNo: thisdata.contractNo,
  138. createTime: thisdata.createTime,
  139. departmentName: thisdata.departmentName,
  140. outsourceName: thisdata.outsourceName,
  141. invoiceAmount: thisdata.invoiceAmount,
  142. finalReceivables: thisdata.finalReceivables,
  143. finalReceivablesTime: thisdata.finalReceivablesTime,
  144. signTotalAmount: thisdata.signTotalAmount,
  145. outsourceAmount: thisdata.outsourceAmount,
  146. financeName: thisdata.financeName,
  147. backStatus: thisdata.backStatus,
  148. orderReceivables: thisdata.orderReceivables,
  149. orderArrears: thisdata.orderArrears,
  150. });
  151. }
  152. }
  153. this.state.pagination.current = data.data.pagination.pageNo;
  154. this.state.pagination.total = data.data.pagination.totalCount;
  155. if (
  156. data.data &&
  157. data.data.pagination.list &&
  158. !data.data.pagination.list.length
  159. ) {
  160. this.state.pagination.current = 0;
  161. this.state.pagination.total = 0;
  162. }
  163. this.setState({
  164. totalPage: data.data.pagination.totalPage,
  165. dataSource: theArr,
  166. pagination: this.state.pagination,
  167. totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
  168. hui: data.data.count ? data.data.count.actuallyTotalAmount : 0,
  169. });
  170. }.bind(this),
  171. }).always(
  172. function () {
  173. this.setState({
  174. loadingA: false,
  175. });
  176. }.bind(this)
  177. );
  178. },
  179. getInitialState() {
  180. return {
  181. cuiTabKey: "1",
  182. rotateDeg: 0,
  183. searchMore: true,
  184. assignVisibleX: false,
  185. assignVisibleY: false,
  186. releaseDate: [],
  187. shouKuanDate: [],
  188. assignDataX: [],
  189. assignDataY: [],
  190. attachmentUrl: [],
  191. pictureUrl: [],
  192. totalPage: 0,
  193. modKey: "1",
  194. width: "800px",
  195. boHuivisible: false,
  196. selectedRowKeys: [],
  197. selectedRows: [],
  198. loading: false,
  199. pagination: {
  200. defaultCurrent: 1,
  201. defaultPageSize: 10,
  202. showQuickJumper: true,
  203. pageSize: 10,
  204. onChange: function (page) {
  205. this.loadData(page);
  206. }.bind(this),
  207. showTotal: function (total) {
  208. return "共" + total + "条数据";
  209. },
  210. },
  211. loadingA: false,
  212. // 子组件改变的表格title数组
  213. changeList: undefined,
  214. columns: [
  215. {
  216. title: "合同编号",
  217. dataIndex: "contractNo",
  218. key: "contractNo",
  219. className: "title-table",
  220. fixed: "left",
  221. },
  222. {
  223. title: "客户名称",
  224. dataIndex: "buyerName",
  225. key: "buyerName",
  226. className: "title-table",
  227. fixed: "left",
  228. width:150,
  229. render: text => {
  230. return (
  231. <Tooltip title={text}>
  232. <div style={{
  233. maxWidth:'150px',
  234. overflow:'hidden',
  235. textOverflow: "ellipsis",
  236. whiteSpace:'nowrap',
  237. }}>{text}</div>
  238. </Tooltip>
  239. )
  240. }
  241. },
  242. {
  243. title: "订单编号",
  244. dataIndex: "orderNo",
  245. key: "orderNo",
  246. className: "title-table",
  247. // fixed: "left"
  248. },
  249. {
  250. title: "特批状态",
  251. dataIndex: "approval",
  252. key: "approval",
  253. className: "title-table",
  254. render: (text) => {
  255. if (text == 1 || text == 2) {
  256. return <Tag color="#f50">{getApproval(text)}</Tag>;
  257. }
  258. return getApproval(text);
  259. },
  260. },
  261. {
  262. title: "订单部门",
  263. dataIndex: "departmentName",
  264. key: "departmentName",
  265. className: "title-table",
  266. },
  267. {
  268. title: "订单负责人",
  269. dataIndex: "sellerName",
  270. key: "sellerName",
  271. className: "title-table",
  272. },
  273. {
  274. title: "财务负责人",
  275. dataIndex: "financeName",
  276. key: "financeName",
  277. className: "title-table",
  278. },
  279. {
  280. title: "外包公司",
  281. dataIndex: "outsourceName",
  282. key: "outsourceName",
  283. className: "title-table",
  284. },
  285. {
  286. title: "签单日期",
  287. dataIndex: "signTime",
  288. key: "signTime",
  289. className: "title-table",
  290. },
  291. {
  292. title: "下单日期",
  293. dataIndex: "createTime",
  294. key: "createTime",
  295. className: "title-table",
  296. },
  297. {
  298. title: "签单金额(万元)",
  299. dataIndex: "signTotalAmount",
  300. key: "signTotalAmount",
  301. className: "title-table",
  302. render: (text) => {
  303. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  304. }
  305. },
  306. {
  307. title: "开票金额(万元)",
  308. dataIndex: "invoiceAmount",
  309. key: "invoiceAmount",
  310. className: "title-table",
  311. render: (text) => {
  312. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  313. }
  314. },
  315. {
  316. title: "已收款(万元)",
  317. dataIndex: "actuallyTotalAmount",
  318. key: "actuallyTotalAmount",
  319. className: "title-table",
  320. render: (text) => {
  321. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  322. }
  323. },
  324. {
  325. title: "应收款(万元)",
  326. dataIndex: "orderReceivables",
  327. key: "orderReceivables",
  328. className: "title-table",
  329. render: (text) => {
  330. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  331. }
  332. },
  333. {
  334. title: "欠款(万元)",
  335. dataIndex: "orderArrears",
  336. key: "orderArrears",
  337. className: "title-table",
  338. render: (text) => {
  339. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  340. }
  341. },
  342. {
  343. title: "最近收款(万元)",
  344. dataIndex: "finalReceivables",
  345. key: "finalReceivables",
  346. className: "title-table",
  347. render: (text) => {
  348. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  349. }
  350. },
  351. {
  352. title: "外包成本",
  353. dataIndex: "outsourceAmount",
  354. key: "outsourceAmount",
  355. className: "title-table",
  356. render: (text) => {
  357. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  358. }
  359. },
  360. {
  361. title: "最近收款时间",
  362. dataIndex: "finalReceivablesTime",
  363. key: "finalReceivablesTime",
  364. className: "title-table",
  365. },
  366. {
  367. title: "结算状态",
  368. dataIndex: "liquidationStatus",
  369. key: "liquidationStatus",
  370. className: "title-table",
  371. render: (text) => {
  372. return getLiquidationStatus(text);
  373. },
  374. },
  375. {
  376. title: "流程状态",
  377. dataIndex: "processStatus",
  378. key: "processStatus",
  379. className: "title-table",
  380. render: (text) => {
  381. return getProcessStatus(text);
  382. },
  383. },
  384. {
  385. title: "驳回状态",
  386. dataIndex: "backStatus",
  387. key: "backStatus",
  388. className: "title-table",
  389. render: (text) => {
  390. if (text == 3) {
  391. return <Tag>已驳回</Tag>;
  392. } else {
  393. return "";
  394. }
  395. },
  396. },
  397. // {
  398. // title: "操作",
  399. // dataIndex: "caozuo",
  400. // key: "caouzo",
  401. // className: "title-table",
  402. // render: (text, recard) => {
  403. // return (
  404. // <div>
  405. // {recard.liquidationStatus < 2 &&
  406. // (recard.approval === 1 || recard.approval === 2) ? (
  407. // <Button
  408. // style={{ background: "rgb(192,192,192)" }}
  409. // onClick={e => {
  410. // e.stopPropagation(), this.evaluateX(recard);
  411. // }}
  412. // >
  413. // 收款
  414. // </Button>
  415. // ) : (
  416. // <Button
  417. // type="primary"
  418. // onClick={e => {
  419. // e.stopPropagation(), this.evaluateX(recard);
  420. // }}
  421. // >
  422. // 收款
  423. // </Button>
  424. // )}
  425. // {recard.processStatus < 4 ? (
  426. // <Button
  427. // type="primary"
  428. // onClick={e => {
  429. // e.stopPropagation(), this.evaluateZ(recard);
  430. // }}
  431. // style={{ marginLeft: "5px" }}
  432. // >
  433. // 通过
  434. // </Button>
  435. // ) : (
  436. // ""
  437. // )}
  438. // {!(
  439. // recard.actuallyTotalAmount &&
  440. // Number(recard.actuallyTotalAmount) > 0
  441. // ) && (
  442. // <Button
  443. // type="danger"
  444. // style={{ marginLeft: "5px" }}
  445. // onClick={e => {
  446. // e.stopPropagation(), this.reject(recard);
  447. // }}
  448. // >
  449. // 驳回
  450. // </Button>
  451. // )}
  452. // {
  453. // // <Button
  454. // // type="primary"
  455. // // style={{ marginLeft: "5px" }}
  456. // // onClick={e => {
  457. // // e.stopPropagation(), this.evaluateY(recard, "财务专员");
  458. // // console.log(recard);
  459. // // }}
  460. // // >
  461. // // 转交
  462. // // </Button>
  463. // }
  464. // </div>
  465. // );
  466. // }
  467. // }
  468. ],
  469. ContactsListsNew: [
  470. {
  471. title: "项目名称",
  472. dataIndex: "commodityName",
  473. key: "commodityName",
  474. render: (text, record) => {
  475. return <span>{text + "-" + record.tid}</span>;
  476. },
  477. },
  478. {
  479. title: "项目分类",
  480. dataIndex: "projectType",
  481. key: "projectType",
  482. render: (text) => {
  483. let arr = this.state.dataSourceX || [];
  484. let str = "";
  485. for (let i = 0; i < arr.length; i++) {
  486. if (this.state.dataSourceX[i].sort == text) {
  487. str = this.state.dataSourceX[i].cname;
  488. return <span>{str}</span>;
  489. }
  490. }
  491. },
  492. },
  493. {
  494. title: "催款科目",
  495. dataIndex: "dunTypeName",
  496. key: "dunTypeName",
  497. render: (text, record) => {
  498. if (record.customizeName) {
  499. return text + record.customizeName;
  500. }
  501. return <span>{text}</span>;
  502. },
  503. },
  504. {
  505. title: "时间(天)",
  506. dataIndex: "waitDay",
  507. key: "waitDay",
  508. render: (text, record) => {
  509. if (record.dunTypeName) {
  510. if (record.customizeTimes) {
  511. return record.customizeTimes;
  512. }
  513. return <span>{text}</span>;
  514. }
  515. },
  516. },
  517. {
  518. title: "金额(万元)",
  519. dataIndex: "money",
  520. key: "money",
  521. render: (text, record) => {
  522. if (record.dunTypeName) {
  523. if (record.appropriationRatio && !record.money) {
  524. return <span>{record.appropriationRatio}(拨款比例)</span>;
  525. } else if (record.appropriationRatio && record.money) {
  526. return (
  527. <span>
  528. {text}(比例:{record.appropriationRatio})
  529. </span>
  530. );
  531. } else {
  532. return <span>{text}</span>;
  533. }
  534. }
  535. },
  536. },
  537. {
  538. title: "服务年限",
  539. dataIndex: "startDate",
  540. key: "startDate",
  541. render: (text, record) => {
  542. if (record.dunTypeName) {
  543. return <span>{text}</span>;
  544. }
  545. },
  546. },
  547. {
  548. title: "催款状态",
  549. dataIndex: "status",
  550. key: "status",
  551. render: (text) => {
  552. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  553. },
  554. },
  555. ],
  556. ContactsLists: [
  557. {
  558. title: "催款科目",
  559. dataIndex: "dunSubject",
  560. key: "dunSubject",
  561. render: (text) => {
  562. return getjiedian(text);
  563. },
  564. },
  565. {
  566. title: "金额(万元)",
  567. dataIndex: "money",
  568. key: "money",
  569. },
  570. {
  571. title: "催款状态",
  572. dataIndex: "dunStatus",
  573. key: "dunStatus",
  574. render: (text) => {
  575. return getCuikuan(text);
  576. },
  577. },
  578. ],
  579. proColumns: [
  580. {
  581. title: "序号",
  582. dataIndex: "key",
  583. key: "key",
  584. },
  585. {
  586. title: "合同编号",
  587. dataIndex: "contractNo",
  588. key: "contractNo",
  589. },
  590. {
  591. title: "订单编号",
  592. dataIndex: "orderNo",
  593. key: "orderNo",
  594. },
  595. {
  596. title: "客户名称",
  597. dataIndex: "userName",
  598. key: "userName",
  599. render: text => {
  600. return (
  601. <Tooltip title={text}>
  602. <div style={{
  603. maxWidth:'150px',
  604. overflow:'hidden',
  605. textOverflow: "ellipsis",
  606. whiteSpace:'nowrap',
  607. }}>{text}</div>
  608. </Tooltip>
  609. )
  610. }
  611. },
  612. {
  613. title: "订单负责人",
  614. dataIndex: "salesmanName",
  615. key: "salesmanName",
  616. },
  617. {
  618. title: "是否主项目",
  619. dataIndex: "main",
  620. key: "main",
  621. render: (text) => {
  622. return text == 0 ? "否" : "是";
  623. },
  624. },
  625. {
  626. title: "项目类别",
  627. dataIndex: "cname",
  628. key: "cname",
  629. },
  630. {
  631. title: "项目名称",
  632. dataIndex: "commodityName",
  633. key: "commodityName",
  634. },
  635. {
  636. title: "项目数量",
  637. dataIndex: "commodityQuantity",
  638. key: "commodityQuantity",
  639. render: (text, record) => {
  640. if (record.splitStatus == 1) {
  641. return (
  642. <span>
  643. {text}{" "}
  644. <Tag
  645. color="#108ee9"
  646. onClick={(e) => {
  647. e.stopPropagation();
  648. this.showRes(record);
  649. }}
  650. >
  651. 已拆
  652. </Tag>
  653. </span>
  654. );
  655. } else {
  656. return text;
  657. }
  658. },
  659. },
  660. {
  661. title: "服务市价",
  662. dataIndex: "commodityPrice",
  663. key: "commodityPrice",
  664. },
  665. {
  666. title: "证书编号",
  667. dataIndex: "certificateNumber",
  668. key: "certificateNumber",
  669. },
  670. {
  671. title: "项目状态",
  672. dataIndex: "projectStatus",
  673. key: "projectStatus",
  674. render: (text) => {
  675. return getProjectName(text);
  676. },
  677. },
  678. {
  679. title: "项目说明",
  680. dataIndex: "taskComment",
  681. key: "taskComment",
  682. },
  683. // {
  684. // title: "外包(内部)公司",
  685. // dataIndex: "outsourceName",
  686. // key: "outsourceName",
  687. // },
  688. // {
  689. // title: "外包(内部)价格",
  690. // dataIndex: "outsourcePrice",
  691. // key: "outsourcePrice",
  692. // },
  693. ],
  694. cuiColumns: [
  695. {
  696. title: "序号",
  697. dataIndex: "key",
  698. key: "key",
  699. },
  700. {
  701. title: "合同编号",
  702. dataIndex: "contractNo",
  703. key: "contractNo",
  704. },
  705. {
  706. title: "订单编号",
  707. dataIndex: "orderNo",
  708. key: "orderNo",
  709. },
  710. {
  711. title: "客户名称",
  712. dataIndex: "userName",
  713. key: "userName",
  714. render: text => {
  715. return (
  716. <Tooltip title={text}>
  717. <div style={{
  718. maxWidth:'150px',
  719. overflow:'hidden',
  720. textOverflow: "ellipsis",
  721. whiteSpace:'nowrap',
  722. }}>{text}</div>
  723. </Tooltip>
  724. )
  725. }
  726. },
  727. {
  728. title: "订单负责人",
  729. dataIndex: "salesmanName",
  730. key: "salesmanName",
  731. },
  732. {
  733. title: "订单部门",
  734. dataIndex: "depName",
  735. key: "depName",
  736. },
  737. {
  738. title: "订单状态",
  739. dataIndex: "orderStatus",
  740. key: "orderStatus",
  741. render: (text) => {
  742. return getNewOrderStatus(text);
  743. },
  744. },
  745. {
  746. title: "项目状态",
  747. dataIndex: "projectStatus",
  748. key: "projectStatus",
  749. render: (text) => {
  750. return getProjectName(text);
  751. },
  752. },
  753. {
  754. title: "签单金额",
  755. dataIndex: "totalAmount",
  756. key: "totalAmount",
  757. },
  758. {
  759. title: "结算状态",
  760. dataIndex: "liquidationStatus",
  761. key: "liquidationStatus",
  762. render: (text) => {
  763. return getLiquidationStatus(text);
  764. },
  765. },
  766. {
  767. title: "已收款",
  768. dataIndex: "settlementAmount",
  769. key: "settlementAmount",
  770. },
  771. {
  772. title: "应收款",
  773. dataIndex: "accountsReceivable",
  774. key: "accountsReceivable",
  775. },
  776. {
  777. title: "催收科目",
  778. dataIndex: "dunSubject",
  779. key: "dunSubject",
  780. // render: text => {
  781. // return getjiedian(text);
  782. // }
  783. },
  784. {
  785. title: "催款状态",
  786. dataIndex: "dunStatus",
  787. key: "dunStatus",
  788. },
  789. {
  790. title: "催收启动时间",
  791. dataIndex: "startDate",
  792. key: "startDate",
  793. },
  794. ],
  795. timeColumns: [
  796. {
  797. title: "合同编号",
  798. dataIndex: "contractNo",
  799. key: "contractNo",
  800. },
  801. {
  802. title: "订单编号",
  803. dataIndex: "orderNo",
  804. key: "orderNo",
  805. },
  806. {
  807. title: "项目编号",
  808. dataIndex: "id",
  809. key: "id",
  810. render: (text, record) => {
  811. if (record.splitStatus == 2) {
  812. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  813. } else {
  814. return text;
  815. }
  816. },
  817. },
  818. {
  819. title: "客户名称",
  820. dataIndex: "userName",
  821. key: "userName",
  822. render: text => {
  823. return (
  824. <Tooltip title={text}>
  825. <div style={{
  826. maxWidth:'150px',
  827. overflow:'hidden',
  828. textOverflow: "ellipsis",
  829. whiteSpace:'nowrap',
  830. }}>{text}</div>
  831. </Tooltip>
  832. )
  833. }
  834. },
  835. {
  836. title: "订单部门",
  837. dataIndex: "depName",
  838. key: "depName",
  839. },
  840. {
  841. title: "订单负责人",
  842. dataIndex: "salesmanName",
  843. key: "salesmanName",
  844. },
  845. {
  846. title: "项目类别",
  847. dataIndex: "cname",
  848. key: "cname",
  849. },
  850. {
  851. title: "项目名称",
  852. dataIndex: "taskName",
  853. key: "taskName",
  854. },
  855. {
  856. title: "项目负责人",
  857. dataIndex: "receiverName",
  858. key: "receiverName",
  859. },
  860. {
  861. title: "项目价格(万元)",
  862. dataIndex: "commodityPrice",
  863. key: "commodityPrice",
  864. },
  865. {
  866. title: "数量(个)",
  867. dataIndex: "commodityQuantity",
  868. key: "commodityQuantity",
  869. },
  870. {
  871. title: "任务状态",
  872. dataIndex: "taskStatus",
  873. key: "taskStatus",
  874. render: (text) => {
  875. return getTaskStatus(text);
  876. },
  877. },
  878. {
  879. title: "项目状态",
  880. dataIndex: "projectStatus",
  881. key: "projectStatus",
  882. render: (text) => {
  883. return getProjectName(text);
  884. },
  885. },
  886. {
  887. title: "工时",
  888. dataIndex: "hours",
  889. key: "hours",
  890. },
  891. {
  892. title: "是否外包",
  893. dataIndex: "outsource",
  894. key: "outsource",
  895. render: (text) => {
  896. if (text == 0) {
  897. return "否";
  898. } else if (text == 1) {
  899. return "是";
  900. }
  901. },
  902. },
  903. {
  904. title: "签单日期",
  905. dataIndex: "signTime",
  906. key: "signTime",
  907. },
  908. {
  909. title: "派单日期",
  910. dataIndex: "creteTime",
  911. key: "creteTime",
  912. },
  913. {
  914. title: "分配时间",
  915. dataIndex: "taskDistributionTime",
  916. key: "taskDistributionTime",
  917. },
  918. {
  919. title: "完成时间",
  920. dataIndex: "taskEndTime",
  921. key: "taskEndTime",
  922. },
  923. ],
  924. printColumns: [
  925. {
  926. title: "合同编号",
  927. dataIndex: "contractNo",
  928. key: "contractNo",
  929. },
  930. {
  931. title: "订单编号",
  932. dataIndex: "orderNo",
  933. key: "orderNo",
  934. // fixed: "left"
  935. },
  936. {
  937. title: "客户名称",
  938. dataIndex: "buyerName",
  939. key: "buyerName",
  940. render: text => {
  941. return (
  942. <Tooltip title={text}>
  943. <div style={{
  944. maxWidth:'150px',
  945. overflow:'hidden',
  946. textOverflow: "ellipsis",
  947. whiteSpace:'nowrap',
  948. }}>{text}</div>
  949. </Tooltip>
  950. )
  951. }
  952. },
  953. {
  954. title: "订单部门",
  955. dataIndex: "departmentName",
  956. key: "departmentName",
  957. },
  958. {
  959. title: "订单负责人",
  960. dataIndex: "sellerName",
  961. key: "sellerName",
  962. },
  963. {
  964. title: "签单日期",
  965. dataIndex: "signTime",
  966. key: "signTime",
  967. },
  968. {
  969. title: "下单日期",
  970. dataIndex: "createTime",
  971. key: "createTime",
  972. },
  973. {
  974. title: "签单金额(万元)",
  975. dataIndex: "signTotalAmount",
  976. key: "signTotalAmount",
  977. render: (text) => {
  978. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  979. }
  980. },
  981. {
  982. title: "开票金额(万元)",
  983. dataIndex: "invoiceAmount",
  984. key: "invoiceAmount",
  985. render: (text) => {
  986. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  987. }
  988. },
  989. {
  990. title: "已收款(万元)",
  991. dataIndex: "actuallyTotalAmount",
  992. key: "actuallyTotalAmount",
  993. render: (text) => {
  994. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  995. }
  996. },
  997. {
  998. title: "最近收款(万元)",
  999. dataIndex: "finalReceivables",
  1000. key: "finalReceivables",
  1001. render: (text) => {
  1002. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1003. }
  1004. },
  1005. {
  1006. title: "最近收款时间",
  1007. dataIndex: "finalReceivablesTime",
  1008. key: "finalReceivablesTime",
  1009. },
  1010. {
  1011. title: "结算状态",
  1012. dataIndex: "liquidationStatus",
  1013. key: "liquidationStatus",
  1014. render: (text) => {
  1015. return getLiquidationStatus(text);
  1016. },
  1017. },
  1018. {
  1019. title: "流程状态",
  1020. dataIndex: "processStatus",
  1021. key: "processStatus",
  1022. render: (text) => {
  1023. return getProcessStatus(text);
  1024. },
  1025. },
  1026. {
  1027. title: "特批状态",
  1028. dataIndex: "approval",
  1029. key: "approval",
  1030. render: (text) => {
  1031. return getApproval(text);
  1032. },
  1033. },
  1034. ],
  1035. columnsX: [
  1036. {
  1037. title: "业务项目名称",
  1038. dataIndex: "commodityName",
  1039. key: "commodityName",
  1040. render: (text, record) => {
  1041. return text && text.length > 6 ? (
  1042. <span title={text}>{text.substr(0, 8) + "-" + record.id}...</span>
  1043. ) : (
  1044. text + "-" + record.id
  1045. );
  1046. },
  1047. },
  1048. {
  1049. title: "项目类别",
  1050. dataIndex: "cname",
  1051. key: "cname",
  1052. },
  1053. {
  1054. title: "项目数量",
  1055. dataIndex: "commodityQuantity",
  1056. key: "commodityQuantity",
  1057. render: (text, record) => {
  1058. if (record.splitStatus == 1) {
  1059. return (
  1060. <span>
  1061. {text}{" "}
  1062. <Tag
  1063. color="#108ee9"
  1064. onClick={(e) => {
  1065. e.stopPropagation();
  1066. this.showRes(record);
  1067. }}
  1068. >
  1069. 已拆
  1070. </Tag>
  1071. </span>
  1072. );
  1073. } else {
  1074. return text;
  1075. }
  1076. },
  1077. },
  1078. {
  1079. title: "服务市价(万元)",
  1080. dataIndex: "commodityPrice",
  1081. key: "commodityPrice",
  1082. },
  1083. {
  1084. title: "项目状态",
  1085. dataIndex: "projectStatus",
  1086. key: "projectStatus",
  1087. render: (text) => {
  1088. return getProjectName(text);
  1089. },
  1090. },
  1091. {
  1092. title: "证书编号",
  1093. dataIndex: "certificateNumber",
  1094. key: "certificateNumber",
  1095. },
  1096. {
  1097. title: "是否主要项目",
  1098. dataIndex: "main",
  1099. key: "main",
  1100. render: (text) => {
  1101. return text ? "是" : "否";
  1102. },
  1103. },
  1104. {
  1105. title: "项目说明",
  1106. dataIndex: "taskComment",
  1107. key: "taskComment",
  1108. render: (text) => {
  1109. return text && text.length > 8 ? (
  1110. <span title={text}>{text.substr(0, 8)}...</span>
  1111. ) : (
  1112. text
  1113. );
  1114. },
  1115. },
  1116. ],
  1117. columnsDate: [
  1118. {
  1119. title: "编号",
  1120. dataIndex: "id",
  1121. key: "id",
  1122. },
  1123. {
  1124. title: "订单编号",
  1125. dataIndex: "orderno",
  1126. key: "orderno",
  1127. },
  1128. {
  1129. title: "开票金额(万元)",
  1130. dataIndex: "amount",
  1131. key: "amount",
  1132. },
  1133. {
  1134. title: "申请时间",
  1135. dataIndex: "createTime",
  1136. key: "createTime",
  1137. },
  1138. {
  1139. title: "开票状态",
  1140. dataIndex: "status",
  1141. key: "status",
  1142. render: (text) => {
  1143. return getInvoiceStatus(text);
  1144. },
  1145. },
  1146. ],
  1147. columnsY: [
  1148. {
  1149. title: "流程",
  1150. dataIndex: "processName",
  1151. key: "processName",
  1152. },
  1153. {
  1154. title: "操作人",
  1155. dataIndex: "adminName",
  1156. key: "adminName",
  1157. },
  1158. {
  1159. title: "时间",
  1160. dataIndex: "createDate",
  1161. key: "createDate",
  1162. },
  1163. ],
  1164. columnsW: [
  1165. {
  1166. title: "外包名称",
  1167. dataIndex: "name",
  1168. key: "name",
  1169. },
  1170. {
  1171. title: "联系人",
  1172. dataIndex: "contacts",
  1173. key: "contacts",
  1174. },
  1175. {
  1176. title: "联系人电话",
  1177. dataIndex: "contactsMobile",
  1178. key: "contactsMobile",
  1179. },
  1180. {
  1181. title: "地址",
  1182. dataIndex: "ProvinceCity",
  1183. key: "ProvinceCity",
  1184. render: (test) => {
  1185. return test[0] === null
  1186. ? ""
  1187. : getprovince(test[0]) +
  1188. "/" +
  1189. getprovince(test[1]) +
  1190. "/" +
  1191. getprovince(test[2]);
  1192. },
  1193. },
  1194. {
  1195. title: "地址详情",
  1196. dataIndex: "address",
  1197. key: "address",
  1198. render: (text) => {
  1199. return text && text.length > 8 ? text.substr(0, 8) + "..." : text;
  1200. },
  1201. },
  1202. {
  1203. title: "创建时间",
  1204. dataIndex: "createTimes",
  1205. key: "createTimes",
  1206. },
  1207. {
  1208. title: "任务名称",
  1209. dataIndex: "tname",
  1210. key: "tname",
  1211. },
  1212. {
  1213. title: "合同编号",
  1214. dataIndex: "contractNo",
  1215. key: "contractNo",
  1216. },
  1217. {
  1218. title: "项目状态",
  1219. dataIndex: "projectStatus",
  1220. key: "projectStatus",
  1221. render: (text) => {
  1222. return getProjectName(text);
  1223. },
  1224. },
  1225. ],
  1226. dataSource: [],
  1227. searchTime: [],
  1228. printColumns: [
  1229. {
  1230. title: "合同编号",
  1231. dataIndex: "contractNo",
  1232. key: "contractNo",
  1233. },
  1234. {
  1235. title: "订单编号",
  1236. dataIndex: "orderNo",
  1237. key: "orderNo",
  1238. // fixed: "left"
  1239. },
  1240. {
  1241. title: "客户名称",
  1242. dataIndex: "buyerName",
  1243. key: "buyerName",
  1244. render: text => {
  1245. return (
  1246. <Tooltip title={text}>
  1247. <div style={{
  1248. maxWidth:'150px',
  1249. overflow:'hidden',
  1250. textOverflow: "ellipsis",
  1251. whiteSpace:'nowrap',
  1252. }}>{text}</div>
  1253. </Tooltip>
  1254. )
  1255. }
  1256. },
  1257. {
  1258. title: "订单部门",
  1259. dataIndex: "departmentName",
  1260. key: "departmentName",
  1261. },
  1262. {
  1263. title: "订单负责人",
  1264. dataIndex: "sellerName",
  1265. key: "sellerName",
  1266. },
  1267. {
  1268. title: "外包公司",
  1269. dataIndex: "outsourceName",
  1270. key: "outsourceName",
  1271. },
  1272. {
  1273. title: "签单日期",
  1274. dataIndex: "signTime",
  1275. key: "signTime",
  1276. },
  1277. {
  1278. title: "下单日期",
  1279. dataIndex: "createTime",
  1280. key: "createTime",
  1281. },
  1282. {
  1283. title: "签单金额(万元)",
  1284. dataIndex: "signTotalAmount",
  1285. key: "signTotalAmount",
  1286. },
  1287. {
  1288. title: "开票金额(万元)",
  1289. dataIndex: "invoiceAmount",
  1290. key: "invoiceAmount",
  1291. },
  1292. {
  1293. title: "已收款(万元)",
  1294. dataIndex: "actuallyTotalAmount",
  1295. key: "actuallyTotalAmount",
  1296. },
  1297. {
  1298. title: "最近收款(万元)",
  1299. dataIndex: "finalReceivables",
  1300. key: "finalReceivables",
  1301. },
  1302. {
  1303. title: "最近收款时间",
  1304. dataIndex: "finalReceivablesTime",
  1305. key: "finalReceivablesTime",
  1306. },
  1307. {
  1308. title: "结算状态",
  1309. dataIndex: "liquidationStatus",
  1310. key: "liquidationStatus",
  1311. render: (text) => {
  1312. return getLiquidationStatus(text);
  1313. },
  1314. },
  1315. {
  1316. title: "流程状态",
  1317. dataIndex: "processStatus",
  1318. key: "processStatus",
  1319. render: (text) => {
  1320. return getProcessStatus(text);
  1321. },
  1322. },
  1323. {
  1324. title: "特批状态",
  1325. dataIndex: "approval",
  1326. key: "approval",
  1327. render: (text) => {
  1328. return getApproval(text);
  1329. },
  1330. },
  1331. ],
  1332. waterlistDate: [
  1333. {
  1334. title: "订单编号",
  1335. dataIndex: "orderNo",
  1336. key: "orderNo",
  1337. },
  1338. {
  1339. title: "平台流水号",
  1340. dataIndex: "billNo",
  1341. key: "billNo",
  1342. // fixed: "left"
  1343. },
  1344. {
  1345. title: "金额(万元)",
  1346. dataIndex: "transactionAmount",
  1347. key: "transactionAmount",
  1348. },
  1349. {
  1350. title: "收款方",
  1351. dataIndex: "payeeName",
  1352. key: "payeeName",
  1353. },
  1354. {
  1355. title: "付款方",
  1356. dataIndex: "payerName",
  1357. key: "payerName",
  1358. },
  1359. {
  1360. title: "流水科目",
  1361. dataIndex: "transactionSubject",
  1362. key: "transactionSubject",
  1363. render: (text) => {
  1364. return getTransactionProject(text);
  1365. },
  1366. },
  1367. {
  1368. title: "收款类型",
  1369. dataIndex: "type",
  1370. key: "type",
  1371. },
  1372. {
  1373. title: "财务流水时间",
  1374. dataIndex: "financialPayTimes",
  1375. key: "financialPayTimes",
  1376. },
  1377. {
  1378. title: "财务流水号",
  1379. dataIndex: "financialPayNo",
  1380. key: "financialPayNo",
  1381. },
  1382. {
  1383. title: "订单负责人",
  1384. dataIndex: "saleName",
  1385. key: "saleName",
  1386. },
  1387. {
  1388. title: "创建时间",
  1389. dataIndex: "createTimes",
  1390. key: "createTimes",
  1391. },
  1392. {
  1393. title: "退款时间",
  1394. dataIndex: "refundTimes",
  1395. key: "refundTimes",
  1396. },
  1397. {
  1398. title: "删除时间",
  1399. dataIndex: "deleteTimes",
  1400. key: "deleteTimes",
  1401. },
  1402. {
  1403. title: "备注",
  1404. dataIndex: "remarks",
  1405. key: "remarks",
  1406. },
  1407. {
  1408. title: "流水状态",
  1409. dataIndex: "deleteSign",
  1410. key: "deleteSign",
  1411. render: (text, record) => {
  1412. if (!text) {
  1413. return "";
  1414. } else {
  1415. return <Tag>已删除</Tag>;
  1416. }
  1417. },
  1418. },
  1419. ],
  1420. waterData: [],
  1421. qianColumns: [
  1422. {
  1423. title: "序号",
  1424. dataIndex: "key",
  1425. key: "key",
  1426. },
  1427. {
  1428. title: "合同编号",
  1429. dataIndex: "contractNo",
  1430. key: "contractNo",
  1431. },
  1432. {
  1433. title: "订单编号",
  1434. dataIndex: "orderNo",
  1435. key: "orderNo",
  1436. },
  1437. {
  1438. title: "客户名称",
  1439. dataIndex: "userName",
  1440. key: "userName",
  1441. render: text => {
  1442. return (
  1443. <Tooltip title={text}>
  1444. <div style={{
  1445. maxWidth:'150px',
  1446. overflow:'hidden',
  1447. textOverflow: "ellipsis",
  1448. whiteSpace:'nowrap',
  1449. }}>{text}</div>
  1450. </Tooltip>
  1451. )
  1452. }
  1453. },
  1454. {
  1455. title: "订单负责人",
  1456. dataIndex: "salesmanName",
  1457. key: "salesmanName",
  1458. },
  1459. {
  1460. title: "订单部门",
  1461. dataIndex: "depName",
  1462. key: "depName",
  1463. },
  1464. {
  1465. title: "订单状态",
  1466. dataIndex: "orderStatus",
  1467. key: "orderStatus",
  1468. render: (text) => {
  1469. return getNewOrderStatus(text);
  1470. },
  1471. },
  1472. {
  1473. title: "项目状态",
  1474. dataIndex: "projectStatus",
  1475. key: "projectStatus",
  1476. render: (text) => {
  1477. return getProjectName(text);
  1478. },
  1479. },
  1480. {
  1481. title: "签单金额",
  1482. dataIndex: "totalAmount",
  1483. key: "totalAmount",
  1484. },
  1485. {
  1486. title: "结算状态",
  1487. dataIndex: "liquidationStatus",
  1488. key: "liquidationStatus",
  1489. render: (text) => {
  1490. return getLiquidationStatus(text);
  1491. },
  1492. },
  1493. {
  1494. title: "已收款",
  1495. dataIndex: "settlementAmount",
  1496. key: "settlementAmount",
  1497. },
  1498. {
  1499. title: "欠款",
  1500. dataIndex: "orderArrears",
  1501. key: "orderArrears",
  1502. },
  1503. {
  1504. title: "催收科目",
  1505. dataIndex: "type",
  1506. key: "type",
  1507. render: (text) => {
  1508. return "按时触发应收欠款";
  1509. },
  1510. },
  1511. {
  1512. title: "催款状态",
  1513. dataIndex: "dunStatus",
  1514. key: "dunStatus",
  1515. render: (text) => {
  1516. if (text == 0) {
  1517. return "未启动";
  1518. } else if (text == 1) {
  1519. return "催款中";
  1520. } else if (text == 2) {
  1521. return "已完成";
  1522. } else if (text == 3) {
  1523. return "已停止";
  1524. }
  1525. },
  1526. },
  1527. {
  1528. title: "催收启动时间",
  1529. dataIndex: "startDate",
  1530. key: "startDate",
  1531. },
  1532. ],
  1533. };
  1534. },
  1535. // 特批通过
  1536. evaluateZ(record) {
  1537. $.ajax({
  1538. method: "POST",
  1539. dataType: "json",
  1540. crossDomain: false,
  1541. url: globalConfig.context + "/api/admin/financial/financeApproval",
  1542. data: {
  1543. orderNo: record.orderNo,
  1544. },
  1545. }).done(
  1546. function (data) {
  1547. if (!data.error.length) {
  1548. message.success("通过成功!");
  1549. this.setState({
  1550. loading: false,
  1551. });
  1552. this.loadData();
  1553. } else {
  1554. message.warning(data.error[0].message);
  1555. }
  1556. }.bind(this)
  1557. );
  1558. },
  1559. jdDate(orderNo) {
  1560. $.ajax({
  1561. method: "get",
  1562. dataType: "json",
  1563. crossDomain: false,
  1564. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1565. data: {
  1566. orderNo: orderNo,
  1567. },
  1568. success: function (data) {
  1569. let thisData = data.data;
  1570. if (!thisData.length) {
  1571. if (data.error && data.error.length) {
  1572. message.warning(data.error[0].message);
  1573. }
  1574. thisData = {};
  1575. } else {
  1576. this.setState({
  1577. jsDate: thisData,
  1578. });
  1579. }
  1580. }.bind(this),
  1581. }).always(
  1582. function () {
  1583. this.setState({
  1584. loading: false,
  1585. });
  1586. }.bind(this)
  1587. );
  1588. },
  1589. /* 收款 */
  1590. evaluateX(recard) {
  1591. this.state.assignDataX = recard;
  1592. this.setState({
  1593. assignVisibleX: true,
  1594. });
  1595. },
  1596. /* 转交 */
  1597. evaluateY(recard, nub) {
  1598. this.state.assignDataY = recard;
  1599. this.setState({
  1600. nub,
  1601. assignVisibleY: true,
  1602. });
  1603. },
  1604. /* 驳回 */
  1605. reject(recard) {
  1606. this.setState({
  1607. bohuiData: recard,
  1608. boHuiVisible: true,
  1609. content: "",
  1610. });
  1611. },
  1612. boHuiCancel() {
  1613. this.setState({
  1614. boHuiVisible: false,
  1615. reason: "",
  1616. });
  1617. },
  1618. componentWillMount() {
  1619. this.loadData();
  1620. this.departmentList();
  1621. },
  1622. tableRowClick(record) {
  1623. this.state.RowData = record;
  1624. this.setState({
  1625. showDesc: true,
  1626. visible: true,
  1627. orderNo: record.orderNo,
  1628. modKey: "1",
  1629. });
  1630. this.jdDate(record.orderNo);
  1631. this.loadXmu(record);
  1632. this.loadModal(record);
  1633. this.jiedian(record.orderNo);
  1634. this.jiedianNew(record.orderNo);
  1635. },
  1636. // 拆分详细
  1637. showRes(record) {
  1638. this.setState({
  1639. resVisible: true,
  1640. resRecord: record,
  1641. });
  1642. },
  1643. resCancel() {
  1644. this.setState({
  1645. resVisible: false,
  1646. });
  1647. },
  1648. //详情
  1649. callBack(key) {
  1650. if (key === "2") {
  1651. this.setState({
  1652. modKey: key,
  1653. width: "1200px",
  1654. });
  1655. this.loadWaiBao();
  1656. }
  1657. if (key === "1") {
  1658. this.setState({
  1659. modKey: key,
  1660. width: "800px",
  1661. });
  1662. }
  1663. if (this.state.pictureUrl.length) {
  1664. let picArr = [];
  1665. this.state.pictureUrl.map(function (item) {
  1666. if (item.response && item.response.data && item.response.data.length) {
  1667. picArr.push(item.response.data);
  1668. }
  1669. });
  1670. }
  1671. if (key === "3") {
  1672. this.setState({
  1673. modKey: key,
  1674. width: "800px",
  1675. });
  1676. this.setState({
  1677. loading: true,
  1678. });
  1679. $.ajax({
  1680. method: "get",
  1681. dataType: "json",
  1682. crossDomain: false,
  1683. url:
  1684. globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceDtails",
  1685. data: {
  1686. orderNo: this.state.orderNo,
  1687. },
  1688. success: function (data) {
  1689. let thisdata = data.data;
  1690. this.setState({
  1691. id: thisdata.id,
  1692. createTimes: thisdata.createTimes,
  1693. auditTimes: thisdata.auditTimes,
  1694. remarks: thisdata.remarks,
  1695. attachmentUrl: thisdata.attachmentUrl
  1696. ? splitUrl(
  1697. thisdata.attachmentUrl,
  1698. ",",
  1699. globalConfig.avatarHost + "/upload"
  1700. )
  1701. : [],
  1702. pictureUrl: thisdata.pictureUrl
  1703. ? splitUrl(
  1704. thisdata.pictureUrl,
  1705. ",",
  1706. globalConfig.avatarHost + "/upload"
  1707. )
  1708. : [], //图片地址
  1709. amount: thisdata.amount,
  1710. companyName: thisdata.companyName,
  1711. refundStatus: thisdata.refundStatus,
  1712. outsourceRemarks: thisdata.outsourceRemarks,
  1713. unitNumber: thisdata.unitNumber,
  1714. unitPrice: thisdata.unitPrice,
  1715. });
  1716. }.bind(this),
  1717. }).always(
  1718. function () {
  1719. this.setState({
  1720. loading: false,
  1721. });
  1722. }.bind(this)
  1723. );
  1724. }
  1725. },
  1726. //外包详情
  1727. loadWaiBao() {
  1728. $.ajax({
  1729. method: "get",
  1730. dataType: "json",
  1731. rossDomain: false,
  1732. url:
  1733. globalConfig.context +
  1734. "/api/admin/outsourceOrg/selectOrderOutsourceOrg",
  1735. data: {
  1736. orderNo: this.state.orderNo,
  1737. },
  1738. success: function (data) {
  1739. let theArr = [];
  1740. if (data.error.length || data.data.list == "") {
  1741. if (data.error && data.error.length) {
  1742. message.warning(data.error[0].message);
  1743. }
  1744. } else {
  1745. for (let i = 0; i < data.data.length; i++) {
  1746. let thisdata = data.data[i];
  1747. let ProvinceCityArr = [];
  1748. let ProvinceS = thisdata.province; //省
  1749. let citys = thisdata.city; //市
  1750. let Areas = thisdata.area; //区
  1751. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1752. theArr.push({
  1753. key: i,
  1754. id: thisdata.id,
  1755. name: thisdata.name,
  1756. contacts: thisdata.contacts, //订单编号
  1757. contactsMobile: thisdata.contactsMobile,
  1758. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1759. province: thisdata.province,
  1760. city: thisdata.city,
  1761. area: thisdata.area,
  1762. address: thisdata.address,
  1763. remarks: thisdata.remarks,
  1764. tid: thisdata.tid,
  1765. createTimes: thisdata.createTimes,
  1766. tname: thisdata.tname,
  1767. contractNo: thisdata.contractNo,
  1768. projectStatus: thisdata.projectStatus,
  1769. });
  1770. }
  1771. }
  1772. this.setState(
  1773. {
  1774. dataSourceW: theArr,
  1775. },
  1776. () => {}
  1777. );
  1778. }.bind(this),
  1779. }).always(
  1780. function () {
  1781. this.setState({
  1782. loading: false,
  1783. });
  1784. }.bind(this)
  1785. );
  1786. },
  1787. loadXmu(record) {
  1788. this.state.data = [];
  1789. this.setState({
  1790. loading: true,
  1791. });
  1792. $.ajax({
  1793. method: "get",
  1794. dataType: "json",
  1795. crossDomain: false,
  1796. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1797. data: {
  1798. orderNo: record.orderNo,
  1799. },
  1800. success: function (data) {
  1801. let theArr = [];
  1802. if (!data.data) {
  1803. if (data.error && data.error.length) {
  1804. message.warning(data.error[0].message);
  1805. }
  1806. } else {
  1807. for (let i = 0; i < data.data.length; i++) {
  1808. let thisdata = data.data[i];
  1809. theArr.push({
  1810. key: i,
  1811. id: thisdata.id,
  1812. orderNo: thisdata.orderNo,
  1813. commodityName: thisdata.commodityName,
  1814. commodityPrice: thisdata.commodityPrice,
  1815. commodityQuantity: thisdata.commodityQuantity,
  1816. taskStatus: thisdata.taskStatus,
  1817. taskComment: thisdata.taskComment,
  1818. main: thisdata.main,
  1819. contacts: thisdata.contacts,
  1820. contactsMobile: thisdata.contactsMobile,
  1821. cname: thisdata.cname,
  1822. certificateNumber: thisdata.certificateNumber,
  1823. projectStatus: thisdata.projectStatus,
  1824. sort: thisdata.cSort,
  1825. splitStatus: thisdata.splitStatus,
  1826. });
  1827. }
  1828. }
  1829. this.setState({
  1830. dataSourceX: theArr,
  1831. });
  1832. }.bind(this),
  1833. }).always(
  1834. function () {
  1835. this.setState({
  1836. loading: false,
  1837. });
  1838. }.bind(this)
  1839. );
  1840. },
  1841. loadModal(record) {
  1842. this.state.orderList = [];
  1843. $.ajax({
  1844. method: "get",
  1845. dataType: "json",
  1846. crossDomain: false,
  1847. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1848. data: {
  1849. orderNo: record.orderNo,
  1850. },
  1851. success: function (data) {
  1852. let thisData = data.data;
  1853. if (!thisData) {
  1854. if (data.error && data.error.length) {
  1855. message.warning(data.error[0].message);
  1856. }
  1857. thisData = {};
  1858. }
  1859. this.setState({
  1860. id: thisData.id,
  1861. orderUid: thisData.uid,
  1862. orderList: thisData,
  1863. approval:
  1864. thisData.approval == 0
  1865. ? thisData.approval.toString()
  1866. : thisData.approval,
  1867. orderRemarks: thisData.orderRemarks,
  1868. orgCodeUrl: thisData.contractPictureUrl
  1869. ? splitUrl(
  1870. thisData.contractPictureUrl,
  1871. ",",
  1872. globalConfig.avatarHost + "/upload"
  1873. )
  1874. : [],
  1875. replenishUrl: thisData.agreementUrl
  1876. ? splitUrl(
  1877. thisData.agreementUrl,
  1878. ",",
  1879. globalConfig.avatarHost + "/upload"
  1880. )
  1881. : [],
  1882. orderNo: thisData.orderNo, //订单编号
  1883. buyerId: thisData.buyerId,
  1884. depName: thisData.depName,
  1885. deleteSign:thisData.deleteSign,
  1886. });
  1887. }.bind(this),
  1888. }).always(
  1889. function () {
  1890. this.setState({
  1891. loading: false,
  1892. });
  1893. }.bind(this)
  1894. );
  1895. },
  1896. rizhi() {
  1897. this.setState({
  1898. loading: true,
  1899. });
  1900. $.ajax({
  1901. method: "get",
  1902. dataType: "json",
  1903. crossDomain: false,
  1904. url: "/api/admin/newOrder/selectOrderLog",
  1905. data: {
  1906. orderNo: this.state.orderNo,
  1907. },
  1908. success: function (data) {
  1909. let theArr = [];
  1910. let thisData = data.data;
  1911. if (!thisData.length) {
  1912. if (data.error && data.error.length) {
  1913. message.warning(data.error[0].message);
  1914. }
  1915. thisData = {};
  1916. } else {
  1917. for (let i = 0; i < data.data.length; i++) {
  1918. let thisdata = data.data[i];
  1919. theArr.push({
  1920. processName: thisdata.processName,
  1921. adminName: thisdata.adminName,
  1922. createDate: thisdata.createDate,
  1923. remarks: thisdata.remarks,
  1924. });
  1925. }
  1926. }
  1927. this.setState({
  1928. dataSourceY: theArr,
  1929. });
  1930. }.bind(this),
  1931. }).always(
  1932. function () {
  1933. this.setState({
  1934. loading: false,
  1935. });
  1936. }.bind(this)
  1937. );
  1938. },
  1939. closeOrderLog() {
  1940. this.setState({
  1941. avisible: false,
  1942. });
  1943. },
  1944. load() {
  1945. if (this.state.attachmentUrl) {
  1946. let url = window.location.href.substring(7);
  1947. this.state.attachmentUrl.forEach((e) => {
  1948. window.location.href =
  1949. "http://" +
  1950. url.substring(0, url.indexOf("/")) +
  1951. "/api/admin/outsourceOrg//downloadFile?path=" +
  1952. e.response.data;
  1953. });
  1954. } else {
  1955. message.error("此订单无上传文件");
  1956. }
  1957. },
  1958. getOrderLog() {
  1959. this.setState({
  1960. avisible: true,
  1961. });
  1962. this.rizhi();
  1963. },
  1964. closeModal() {
  1965. this.setState(
  1966. {
  1967. visible: false,
  1968. width: "800px",
  1969. },
  1970. () => {
  1971. this.setState({
  1972. modKey: "1",
  1973. });
  1974. }
  1975. );
  1976. },
  1977. closeDesc(e, s) {
  1978. this.state.showDesc = e;
  1979. if (s) {
  1980. this.loadData();
  1981. }
  1982. },
  1983. closeAssignX(e, s) {
  1984. this.state.assignDataX = {};
  1985. this.state.assignVisibleX = e;
  1986. if (s) {
  1987. this.loadData();
  1988. }
  1989. },
  1990. closeAssignY(e, s) {
  1991. this.state.assignDataY = {};
  1992. this.state.assignVisibleY = e;
  1993. if (s) {
  1994. this.loadData();
  1995. }
  1996. },
  1997. search() {
  1998. this.setState({
  1999. selectedRowKeys: []
  2000. })
  2001. this.loadData();
  2002. },
  2003. reset() {
  2004. this.state.nameSearch = "";
  2005. this.state.releaseDate = [];
  2006. this.state.shouKuanDate = [];
  2007. this.state.orderNoSearch = "";
  2008. this.state.departmenttList = undefined;
  2009. this.state.amountStatus = undefined;
  2010. this.state.processStatus = [];
  2011. this.state.processStatusSearch = [];
  2012. this.state.contractNoSearch = "";
  2013. this.state.liquidationStatus = [];
  2014. this.state.contractNo = "";
  2015. this.loadData();
  2016. },
  2017. boHuiCo() {
  2018. this.boHuiCancel();
  2019. this.boHuiSubmit();
  2020. },
  2021. //驳回
  2022. boHuiSubmit() {
  2023. if (!this.state.reason) {
  2024. message.warning("请填写驳回原因");
  2025. return false;
  2026. }
  2027. this.setState({
  2028. loading: true,
  2029. });
  2030. $.ajax({
  2031. method: "POST",
  2032. dataType: "json",
  2033. crossDomain: false,
  2034. url: globalConfig.context + "/api/admin/financial/reject",
  2035. data: {
  2036. orderNo: this.state.bohuiData.orderNo,
  2037. reason: this.state.reason,
  2038. },
  2039. }).done(
  2040. function (data) {
  2041. if (!data.error.length) {
  2042. message.success("驳回成功!");
  2043. this.setState({
  2044. loading: false,
  2045. });
  2046. this.loadData();
  2047. } else {
  2048. message.warning(data.error[0].message);
  2049. }
  2050. }.bind(this)
  2051. );
  2052. },
  2053. searchSwitch() {
  2054. this.setState({
  2055. searchMore: !this.state.searchMore,
  2056. });
  2057. },
  2058. changeList(arr) {
  2059. const newArr = [];
  2060. this.state.columns.forEach((item) => {
  2061. arr.forEach((val) => {
  2062. if (val === item.title) {
  2063. newArr.push(item);
  2064. }
  2065. });
  2066. });
  2067. this.setState({
  2068. changeList: newArr,
  2069. });
  2070. },
  2071. onSelectChange(selectedRowKeys) {
  2072. // for(var i=0; i<selectedRowKeys.length; i++){
  2073. // for(var j=i+1; j<selectedRowKeys.length; j++){
  2074. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  2075. // selectedRowKeys.splice(j,1);
  2076. // j--;
  2077. // }
  2078. // }
  2079. // }
  2080. this.setState({ selectedRowKeys });
  2081. },
  2082. inRecordData() {
  2083. this.setState({
  2084. loading: true,
  2085. });
  2086. $.ajax({
  2087. method: "get",
  2088. dataType: "json",
  2089. crossDomain: false,
  2090. url:
  2091. globalConfig.context +
  2092. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  2093. data: {
  2094. orderNo: this.state.selectedRowKeys[0],
  2095. pageSize: 9999999,
  2096. },
  2097. success: function (data) {
  2098. let theArr = [];
  2099. let sum = 0;
  2100. if (!data.data) {
  2101. if (data.error && data.error.length) {
  2102. message.warning(data.error[0].message);
  2103. }
  2104. } else {
  2105. for (let i = 0; i < data.data.list.length; i++) {
  2106. let thisdata = data.data.list[i];
  2107. sum += parseFloat(thisdata.amount);
  2108. theArr.push({
  2109. id: thisdata.id,
  2110. orderno: thisdata.orderno, //订单编号
  2111. amount: thisdata.amount, //签单金额
  2112. createTime: thisdata.createTime, //流程状态
  2113. status: thisdata.status, //结算状态
  2114. rejectReason: thisdata.rejectReason,
  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. <div className="clearfix">
  3441. <FormItem
  3442. className="half-item"
  3443. {...formItemLayout}
  3444. label="合同编号"
  3445. >
  3446. <span>{theData.contractNo}</span>
  3447. </FormItem>
  3448. <FormItem
  3449. className="half-item"
  3450. {...formItemLayout}
  3451. label="订单部门"
  3452. >
  3453. <span>{theData.depName}</span>
  3454. </FormItem>
  3455. </div>
  3456. <div className="clearfix">
  3457. <FormItem
  3458. labelCol={{ span: 5 }}
  3459. wrapperCol={{ span: 18 }}
  3460. label="订单留言"
  3461. >
  3462. <p style={{ width: 500, wordWrap: "break-word" }}>
  3463. {this.state.orderRemarks}
  3464. </p>
  3465. </FormItem>
  3466. </div>
  3467. {/* <div className="clearfix">
  3468. <FormItem
  3469. labelCol={{ span: 5 }}
  3470. wrapperCol={{ span: 18 }}
  3471. label="收款节点"
  3472. >
  3473. {jsDate.map(item => {
  3474. return (
  3475. <p>
  3476. {getjiedian(item.dunSubject)} -- {item.money} 万元
  3477. </p>
  3478. );
  3479. })}
  3480. </FormItem>
  3481. </div> */}
  3482. <div className="clearfix">
  3483. <FormItem
  3484. className="half-item"
  3485. {...formItemLayout}
  3486. label="订单负责人"
  3487. >
  3488. <span>{theData.salesmanName}</span>
  3489. </FormItem>
  3490. <FormItem
  3491. className="half-item"
  3492. {...formItemLayout}
  3493. label="订单负责人电话"
  3494. >
  3495. <span>{theData.salesmanMobile}</span>
  3496. </FormItem>
  3497. <FormItem
  3498. className="half-item"
  3499. {...formItemLayout}
  3500. label="当前财务负责人"
  3501. >
  3502. <span>{theData.nowFinance}</span>
  3503. </FormItem>
  3504. <FormItem
  3505. className="half-item"
  3506. {...formItemLayout}
  3507. label="当前财务负责人电话"
  3508. >
  3509. <span>{theData.nowFinanceMobile}</span>
  3510. </FormItem>
  3511. <FormItem
  3512. className="half-item"
  3513. {...formItemLayout}
  3514. style={{ opacity: ".5" }}
  3515. label="原订单负责人"
  3516. >
  3517. <span>{theData.oldSalesmanName}</span>
  3518. </FormItem>
  3519. <FormItem
  3520. className="half-item"
  3521. {...formItemLayout}
  3522. style={{ opacity: ".5" }}
  3523. label="原订单负责人电话"
  3524. >
  3525. <span>{theData.oldSalesmanMobile}</span>
  3526. </FormItem>
  3527. <FormItem
  3528. className="half-item"
  3529. {...formItemLayout}
  3530. style={{ opacity: ".5" }}
  3531. label="实际财务操作人"
  3532. >
  3533. <span>{theData.financeName}</span>
  3534. </FormItem>
  3535. <FormItem
  3536. className="half-item"
  3537. {...formItemLayout}
  3538. style={{ opacity: ".5" }}
  3539. label="实际财务操作人电话"
  3540. >
  3541. <span>{theData.financeMobile}</span>
  3542. </FormItem>
  3543. </div>
  3544. {/* <Modal
  3545. visible={this.state.avisible}
  3546. className="admin-desc-content"
  3547. width="800px"
  3548. maskClosable={false}
  3549. title="订单日志"
  3550. footer={null}
  3551. onCancel={this.closeOrderLog}
  3552. >
  3553. <div className="patent-table">
  3554. <Spin spinning={this.state.loading}>
  3555. <Table
  3556. columns={this.state.columnsY}
  3557. dataSource={this.state.dataSourceY}
  3558. pagination={false}
  3559. />
  3560. </Spin>
  3561. </div>
  3562. </Modal> */}
  3563. <OrderRiZi
  3564. dataSourcerizhi={this.state.dataSourceY}
  3565. closeOrderLog={this.closeOrderLog}
  3566. visible={this.state.avisible}
  3567. loading={this.state.loading}
  3568. />
  3569. <div className="clearfix">
  3570. <p style={{ fontSize: 18, marginLeft: 20 }}>项目业务</p>
  3571. <div className="patent-table">
  3572. <Spin spinning={this.state.loading}>
  3573. <Table
  3574. columns={this.state.columnsX}
  3575. dataSource={this.state.dataSourceX}
  3576. pagination={false}
  3577. size="middle"
  3578. bordered
  3579. />
  3580. </Spin>
  3581. </div>
  3582. </div>
  3583. <div>
  3584. <span style={{ marginLeft: 20, fontSize: "18px" }}>
  3585. 催款节点
  3586. </span>
  3587. <span
  3588. style={{
  3589. display: cuiDataList.length ? "none" : "inline-block",
  3590. marginLeft: 10,
  3591. color: "red",
  3592. }}
  3593. >
  3594. 金额总计(万元): {this.state.totalCui}
  3595. </span>
  3596. </div>
  3597. <div className="clearfix">
  3598. <Spin spinning={this.state.loading}>
  3599. <Form layout="horizontal" id="demand-form">
  3600. <Table
  3601. pagination={false}
  3602. bordered
  3603. size="middle"
  3604. columns={
  3605. cuiDataList.length
  3606. ? this.state.ContactsLists
  3607. : this.state.ContactsListsNew
  3608. }
  3609. dataSource={
  3610. cuiDataList.length
  3611. ? this.state.contactList
  3612. : this.state.contactListNew
  3613. }
  3614. />
  3615. <Col
  3616. span={24}
  3617. offset={9}
  3618. style={{ marginTop: "15px" }}
  3619. />
  3620. </Form>
  3621. </Spin>
  3622. </div>
  3623. </Spin>
  3624. </Form> : <div/>}
  3625. </TabPane>
  3626. <TabPane tab="外包详情" key="2">
  3627. <div className="clearfix">
  3628. <p style={{ color: "red" }}>
  3629. 提示:查看备注请点击表格左侧加号按钮~
  3630. </p>
  3631. <div className="patent-table">
  3632. <Spin spinning={this.state.loading}>
  3633. <Table
  3634. columns={this.state.columnsW}
  3635. dataSource={this.state.dataSourceW}
  3636. pagination={false}
  3637. size="middle"
  3638. expandedRowRender={(record) => (
  3639. <p style={{ margin: 0 }}>{record.remarks}</p>
  3640. )}
  3641. scroll={{ x: 300, y: 0 }}
  3642. />
  3643. </Spin>
  3644. </div>
  3645. </div>
  3646. </TabPane>
  3647. <TabPane tab="外包审核" key="3">
  3648. <div className="clearfix">
  3649. <FormItem
  3650. className="half-item"
  3651. labelCol={{ span: 8 }}
  3652. wrapperCol={{ span: 14 }}
  3653. label="外包公司"
  3654. >
  3655. <span>{this.state.companyName}</span>
  3656. </FormItem>
  3657. </div>
  3658. <div className="clearfix">
  3659. <FormItem
  3660. className="half-item"
  3661. {...formItemLayout}
  3662. label="单价(万元)"
  3663. >
  3664. <span>{this.state.unitPrice}</span>
  3665. </FormItem>
  3666. </div>
  3667. <div className="clearfix">
  3668. <FormItem
  3669. className="half-item"
  3670. {...formItemLayout}
  3671. label="数量(万元)"
  3672. >
  3673. <span>{this.state.unitNumber}</span>
  3674. </FormItem>
  3675. </div>
  3676. <div className="clearfix">
  3677. <FormItem
  3678. className="half-item"
  3679. {...formItemLayout}
  3680. label="总金额(万元)"
  3681. >
  3682. <span>{this.state.amount}</span>
  3683. </FormItem>
  3684. </div>
  3685. <div className="clearfix">
  3686. <FormItem
  3687. className="half-item"
  3688. {...formItemLayout}
  3689. label="备注"
  3690. >
  3691. <span>{this.state.outsourceRemarks}</span>
  3692. </FormItem>
  3693. </div>
  3694. {/*<div className="clearfix">
  3695. <FormItem className="half-item"
  3696. labelCol={{ span: 8 }}
  3697. wrapperCol={{ span: 14 }}
  3698. label="上传协议文件" >
  3699. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3700. data={(e)=>{
  3701. return {
  3702. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3703. }
  3704. }}
  3705. fileList={this.state.attachmentUrl}
  3706. showUploadList={{showRemoveIcon:false}}
  3707. onPreview={(e)=>{
  3708. let url = window.location.href.substring(7)
  3709. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  3710. }}>
  3711. </Upload>
  3712. </FormItem>
  3713. </div>*/}
  3714. <div className="clearfix">
  3715. <FormItem
  3716. labelCol={{ span: 4 }}
  3717. wrapperCol={{ span: 18 }}
  3718. label="合同/协议扫描件"
  3719. >
  3720. {/*<Upload*/}
  3721. {/* className="demandDetailShow-upload"*/}
  3722. {/* listType="picture-card"*/}
  3723. {/* fileList={this.state.pictureUrl}*/}
  3724. {/* onPreview={(file) => {*/}
  3725. {/* this.setState({*/}
  3726. {/* previewImage: file.url || file.thumbUrl,*/}
  3727. {/* previewVisible: true,*/}
  3728. {/* });*/}
  3729. {/* }}*/}
  3730. {/*/>*/}
  3731. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3732. {this.state.pictureUrl && this.state.modKey === '3' ? <ImgList domId={'approvedOutsourcingAll2'} fileList={this.state.pictureUrl}/> : <div/>}
  3733. </div>
  3734. <Modal
  3735. maskClosable={false}
  3736. footer={null}
  3737. width={"50%"}
  3738. visible={this.state.previewVisible}
  3739. onCancel={() => {
  3740. this.setState({ previewVisible: false });
  3741. }}
  3742. >
  3743. <img
  3744. alt=""
  3745. style={{
  3746. width: "100%",
  3747. transform: `rotate(${this.state.rotateDeg}deg)`,
  3748. }}
  3749. src={this.state.previewImage || ""}
  3750. />
  3751. <Button
  3752. onClick={this.rotate}
  3753. style={{
  3754. position: "relative",
  3755. left: "50%",
  3756. transform: "translateX(-50%)",
  3757. }}
  3758. >
  3759. 旋转
  3760. </Button>
  3761. <Button
  3762. onClick={this.upImg}
  3763. style={{
  3764. position: "absolute",
  3765. left: -81,
  3766. top: "50%",
  3767. transform: "translateY(-50%)",
  3768. }}
  3769. >
  3770. 上一张
  3771. </Button>
  3772. <Button
  3773. onClick={this.downImg}
  3774. style={{
  3775. position: "absolute",
  3776. right: -81,
  3777. top: "50%",
  3778. transform: "translateY(-50%)",
  3779. }}
  3780. >
  3781. 下一张
  3782. </Button>
  3783. </Modal>
  3784. </FormItem>
  3785. </div>
  3786. <div className="clearfix">
  3787. <hr className="division" />
  3788. <div className="clearfix">
  3789. <FormItem
  3790. className="half-item"
  3791. labelCol={{ span: 8 }}
  3792. wrapperCol={{ span: 14 }}
  3793. label="审核意见"
  3794. >
  3795. <span>{this.state.remarks}</span>
  3796. </FormItem>
  3797. </div>
  3798. <div className="clearfix">
  3799. <FormItem
  3800. className="half-item"
  3801. labelCol={{ span: 8 }}
  3802. wrapperCol={{ span: 14 }}
  3803. label="审核结果"
  3804. >
  3805. <span>{getRefundStatus(this.state.refundStatus)}</span>
  3806. </FormItem>
  3807. </div>
  3808. <div className="clearfix">
  3809. <FormItem
  3810. className="half-item"
  3811. labelCol={{ span: 8 }}
  3812. wrapperCol={{ span: 14 }}
  3813. label="审核时间"
  3814. >
  3815. <span>{this.state.auditTimes}</span>
  3816. </FormItem>
  3817. </div>
  3818. </div>
  3819. </TabPane>
  3820. </Tabs>
  3821. </Modal> : <div/>}
  3822. </div>
  3823. <div className="patent-desc">
  3824. <Modal
  3825. maskClosable={false}
  3826. title="驳回理由"
  3827. visible={this.state.boHuiVisible}
  3828. onCancel={this.boHuiCancel}
  3829. width="500px"
  3830. footer=""
  3831. className="admin-desc-content"
  3832. >
  3833. <TextArea
  3834. rows={4}
  3835. value={this.state.reason}
  3836. onChange={(e) => {
  3837. this.setState({
  3838. reason: e.target.value,
  3839. });
  3840. }}
  3841. />
  3842. <Button
  3843. type="primary"
  3844. style={{ marginTop: "20px" }}
  3845. onClick={this.boHuiCo}
  3846. >
  3847. 确定
  3848. </Button>
  3849. </Modal>
  3850. </div>
  3851. <Assign
  3852. title="任务"
  3853. selApi={"/api/admin/newOrder/updateFinance"}
  3854. data={this.state.assignDataY}
  3855. showDesc={this.state.assignVisibleY}
  3856. closeDesc={this.closeAssignY.bind(this)}
  3857. // fenpaiData={8}
  3858. specially={0}
  3859. roleName={this.state.nub}
  3860. requestMethod={"get"}
  3861. />
  3862. <Receivable
  3863. title="收款记录"
  3864. api="/api/admin/financial/addReceiptsFlow"
  3865. data={this.state.assignDataX}
  3866. showDesc={this.state.assignVisibleX}
  3867. closeDesc={this.closeAssignX.bind(this)}
  3868. />
  3869. <Modal
  3870. visible={this.state.bvisible}
  3871. footer=""
  3872. title="开票历史记录"
  3873. className="admin-desc-content"
  3874. width="900px"
  3875. onCancel={this.inRecordCanl}
  3876. >
  3877. <Spin spinning={this.state.loading}>
  3878. <div
  3879. className="patent-table"
  3880. ref={(e) => {
  3881. this.refs.kaiPiao = e;
  3882. }}
  3883. >
  3884. <Table
  3885. columns={this.state.columnsDate}
  3886. dataSource={this.state.recordData}
  3887. onRowClick={this.kaiPiaoData}
  3888. pagination={false}
  3889. bordered
  3890. size="middle"
  3891. />
  3892. <div className="clearfix" style={{ marginTop: "20px" }}>
  3893. <FormItem
  3894. className="half-item"
  3895. {...formItemLayout}
  3896. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3897. >
  3898. <span>{this.state.sum + "(万元)"}</span>
  3899. </FormItem>
  3900. </div>
  3901. <ReactToPrint
  3902. trigger={() => (
  3903. <Button
  3904. type="primary"
  3905. style={{
  3906. float: "right",
  3907. // marginTop: 10,
  3908. position: "absolute",
  3909. top: -54,
  3910. right: 30,
  3911. }}
  3912. >
  3913. 打印
  3914. </Button>
  3915. )}
  3916. content={() => this.refs.kaiPiao}
  3917. />
  3918. </div>
  3919. </Spin>
  3920. </Modal>
  3921. <Modal
  3922. visible={this.state.cvisible}
  3923. footer=""
  3924. title="详细收款流水"
  3925. className="admin-desc-content"
  3926. width="1300px"
  3927. onCancel={this.waterCanl}
  3928. >
  3929. <Spin spinning={this.state.loading}>
  3930. <div
  3931. className="patent-table"
  3932. ref={(e) => {
  3933. this.refs.shouKuan = e;
  3934. }}
  3935. >
  3936. <Table
  3937. columns={this.state.waterlistDate}
  3938. dataSource={this.state.waterData}
  3939. pagination={false}
  3940. scroll={{ x: "max-content", y: 0 }}
  3941. bordered
  3942. size="middle"
  3943. />
  3944. <div className="clearfix" style={{ marginTop: "20px" }}>
  3945. <FormItem
  3946. className="half-item"
  3947. {...formItemLayout}
  3948. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3949. >
  3950. <span>{this.state.waterSum + "(万元)"}</span>
  3951. </FormItem>
  3952. </div>
  3953. <ReactToPrint
  3954. trigger={() => (
  3955. <Button
  3956. type="primary"
  3957. style={{
  3958. float: "right",
  3959. position: "absolute",
  3960. top: -54,
  3961. right: 30,
  3962. }}
  3963. >
  3964. 打印
  3965. </Button>
  3966. )}
  3967. content={() => this.refs.shouKuan}
  3968. />
  3969. </div>
  3970. </Spin>
  3971. </Modal>
  3972. <Modal
  3973. visible={this.state.dvisible}
  3974. footer=""
  3975. title="所有列表信息"
  3976. className="admin-desc-content"
  3977. width="1300px"
  3978. onCancel={() => {
  3979. this.loadData();
  3980. this.setState({
  3981. dvisible: false,
  3982. });
  3983. }}
  3984. >
  3985. <Spin spinning={this.state.loading}>
  3986. <div
  3987. className="patent-table"
  3988. style={{
  3989. // width: 900,
  3990. // position: "relative",
  3991. // left: "50%",
  3992. // transform: "translate(-50%)",
  3993. padding: "25px 0 30px 30px",
  3994. }}
  3995. ref={(e) => {
  3996. this.refs.all = e;
  3997. }}
  3998. >
  3999. <Table
  4000. columns={this.state.printColumns}
  4001. dataSource={this.state.dataSource}
  4002. pagination={false}
  4003. bordered
  4004. size="small"
  4005. />
  4006. </div>
  4007. </Spin>
  4008. <ReactToPrint
  4009. trigger={() => (
  4010. <Button
  4011. type="primary"
  4012. style={{
  4013. float: "right",
  4014. marginTop: 10,
  4015. position: "absolute",
  4016. top: 0,
  4017. right: 30,
  4018. }}
  4019. >
  4020. 打印
  4021. </Button>
  4022. )}
  4023. content={() => this.refs.all}
  4024. />
  4025. </Modal>
  4026. <Modal
  4027. visible={this.state.timeVisible}
  4028. footer=""
  4029. title="工时详情"
  4030. className="admin-desc-content"
  4031. width="1300px"
  4032. pagination={false}
  4033. onCancel={() => {
  4034. this.loadData();
  4035. this.setState({
  4036. timeVisible: false,
  4037. });
  4038. }}
  4039. >
  4040. <Spin spinning={this.state.loading}>
  4041. <div
  4042. className="patent-table"
  4043. style={
  4044. {
  4045. // width: 900,
  4046. // position: "relative",
  4047. // left: "50%",
  4048. // transform: "translate(-50%)",
  4049. // padding: "25px 0 30px 30px"
  4050. }
  4051. }
  4052. ref={(e) => {
  4053. this.refs.all = e;
  4054. }}
  4055. >
  4056. <Table
  4057. columns={this.state.timeColumns}
  4058. dataSource={this.state.timeDataList}
  4059. scroll={{ x: "max-content", y: 0 }}
  4060. pagination={false}
  4061. bordered
  4062. size="small"
  4063. />
  4064. </div>
  4065. </Spin>
  4066. <ReactToPrint
  4067. trigger={() => (
  4068. <Button
  4069. type="primary"
  4070. style={{
  4071. float: "right",
  4072. marginTop: 10,
  4073. position: "absolute",
  4074. top: 0,
  4075. right: 30,
  4076. }}
  4077. >
  4078. 打印
  4079. </Button>
  4080. )}
  4081. content={() => this.refs.all}
  4082. />
  4083. </Modal>
  4084. <Modal
  4085. visible={this.state.cuiVisible}
  4086. footer=""
  4087. title="催款详情"
  4088. className="admin-desc-content"
  4089. width="1300px"
  4090. pagination={false}
  4091. onCancel={() => {
  4092. this.loadData();
  4093. this.setState({
  4094. cuiVisible: false,
  4095. cuiTabKey: "1",
  4096. });
  4097. }}
  4098. >
  4099. <Tabs activeKey={this.state.cuiTabKey} onChange={this.cuiTabChange}>
  4100. <TabPane tab="催款节点" key="1">
  4101. <Spin spinning={this.state.loading}>
  4102. <div
  4103. className="patent-table"
  4104. ref={(e) => {
  4105. this.refs.all = e;
  4106. }}
  4107. >
  4108. <Table
  4109. columns={this.state.cuiColumns}
  4110. dataSource={this.state.cuiDataList}
  4111. scroll={{ x: "max-content", y: 0 }}
  4112. pagination={false}
  4113. bordered
  4114. size="small"
  4115. />
  4116. </div>
  4117. <ReactToPrint
  4118. trigger={() => (
  4119. <Button
  4120. type="primary"
  4121. style={{
  4122. float: "right",
  4123. marginTop: 10,
  4124. position: "absolute",
  4125. top: "-60px",
  4126. right: 30,
  4127. }}
  4128. >
  4129. 打印
  4130. </Button>
  4131. )}
  4132. content={() => this.refs.all}
  4133. />
  4134. </Spin>
  4135. </TabPane>
  4136. <TabPane tab="欠款催收记录" key="2">
  4137. <Spin spinning={this.state.loading}>
  4138. <div
  4139. className="patent-table"
  4140. ref={(e) => {
  4141. this.refs.all = e;
  4142. }}
  4143. >
  4144. <Table
  4145. columns={this.state.qianColumns}
  4146. dataSource={this.state.qianDataList}
  4147. scroll={{ x: "max-content", y: 0 }}
  4148. pagination={false}
  4149. bordered
  4150. size="small"
  4151. />
  4152. </div>
  4153. <ReactToPrint
  4154. trigger={() => (
  4155. <Button
  4156. type="primary"
  4157. style={{
  4158. float: "right",
  4159. marginTop: 10,
  4160. position: "absolute",
  4161. top: "-60px",
  4162. right: 30,
  4163. }}
  4164. >
  4165. 打印
  4166. </Button>
  4167. )}
  4168. content={() => this.refs.all}
  4169. />
  4170. </Spin>
  4171. </TabPane>
  4172. </Tabs>
  4173. </Modal>
  4174. <Modal
  4175. visible={this.state.proVisible}
  4176. footer=""
  4177. title="项目进度"
  4178. className="admin-desc-content"
  4179. width="1300px"
  4180. pagination={false}
  4181. onCancel={() => {
  4182. this.loadData();
  4183. this.setState({
  4184. proVisible: false,
  4185. });
  4186. }}
  4187. >
  4188. <Spin spinning={this.state.loading}>
  4189. <div
  4190. className="patent-table"
  4191. style={
  4192. {
  4193. // width: 900,
  4194. // position: "relative",
  4195. // left: "50%",
  4196. // transform: "translate(-50%)",
  4197. // padding: "25px 0 30px 30px"
  4198. }
  4199. }
  4200. ref={(e) => {
  4201. this.refs.all = e;
  4202. }}
  4203. >
  4204. <Table
  4205. columns={this.state.proColumns}
  4206. dataSource={this.state.proDataList}
  4207. pagination={false}
  4208. bordered
  4209. size="small"
  4210. />
  4211. </div>
  4212. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  4213. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  4214. </span>
  4215. </Spin>
  4216. <ReactToPrint
  4217. trigger={() => (
  4218. <Button
  4219. type="primary"
  4220. style={{
  4221. float: "right",
  4222. marginTop: 10,
  4223. position: "absolute",
  4224. top: 0,
  4225. right: 30,
  4226. }}
  4227. >
  4228. 打印
  4229. </Button>
  4230. )}
  4231. content={() => this.refs.all}
  4232. />
  4233. </Modal>
  4234. <KaiPiaoModal
  4235. visible={this.state.avisible}
  4236. data={this.state.modalData}
  4237. onCancel={this.visitCancels}
  4238. loading={this.state.loading}
  4239. />
  4240. </div>
  4241. );
  4242. },
  4243. });
  4244. export default approvedOutsourcing;