approvedOutsourcing.jsx 129 KB

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