approvedOutsourcing.jsx 122 KB

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