approvedOutsourcing.jsx 125 KB

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