approvedOutsourcing.jsx 132 KB

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