approvedOutsourcing.jsx 130 KB

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