approvedOutsourcing.jsx 122 KB

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