approvedOutsourcingAll.jsx 127 KB

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