approvedOutsourcing.jsx 127 KB

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