myTask.jsx 203 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934
  1. import React from 'react'
  2. import $ from 'jquery'
  3. import moment from 'moment'
  4. import Picture from '@/manageCenter/publicComponent/picture'
  5. import '@/manageCenter/financialManage/distribute/public.less'
  6. import '@/manageCenter/financialManage/distribute/shouKuan.less'
  7. import OrderDetail from '../../order/orderNew/changeComponent/orderDetail'
  8. import ResolutionDetail from '@/resolutionDetail'
  9. import {
  10. Button,
  11. Form,
  12. Input,
  13. Select,
  14. Spin,
  15. Table,
  16. message,
  17. DatePicker,
  18. Modal,
  19. Radio,
  20. Cascader,
  21. Popconfirm,
  22. Switch,
  23. Tabs,
  24. Col,
  25. Icon,
  26. Upload,
  27. AutoComplete,
  28. Tag, Row,
  29. } from 'antd'
  30. import Assign from '@/manageCenter/publicComponent/assign'
  31. import { areaSelect } from '@/NewDicProvinceList'
  32. import { ChooseList } from '../../order/orderNew/chooseList'
  33. import OrderRiZi from '@/orderRiZi.jsx'
  34. import './table.less'
  35. import {
  36. getMaterialStatus,
  37. getUrgentStatus,
  38. getProcessStatus,
  39. getApproval,
  40. getTaskStatus,
  41. getLiquidationStatus,
  42. getProjectStatus,
  43. splitUrl,
  44. getboutique,
  45. ShowModal,
  46. getRefundStatus,
  47. } from '@/tools'
  48. import { taskStatus, projectStatus, cuiJieDian } from '@/dataDic.js'
  49. import ShowModalDiv from '@/showModal.jsx'
  50. import CheckProject from '../../components/checkProject'
  51. import NewSupplier from './newSupplier';
  52. import ImgList from "../../../common/imgList";
  53. import OperationPayNode from "./operationPayNode";
  54. const confirm = Modal.confirm
  55. const FormItem = Form.Item
  56. const { TabPane } = Tabs
  57. const { TextArea } = Input
  58. const { Option } = Select
  59. const { MonthPicker, RangePicker } = DatePicker
  60. const PicturesWall = React.createClass({
  61. getInitialState() {
  62. return {
  63. previewVisible: false,
  64. previewImage: '',
  65. fileList: [],
  66. }
  67. },
  68. handleCancel() {
  69. this.setState({
  70. previewVisible: false,
  71. })
  72. },
  73. handlePreview(file) {
  74. this.setState({
  75. previewImage: file.url || file.thumbUrl,
  76. previewVisible: true,
  77. })
  78. },
  79. handleChange(info) {
  80. let fileList = info.fileList
  81. this.setState({
  82. fileList,
  83. })
  84. this.props.fileList(fileList)
  85. },
  86. componentWillReceiveProps(nextProps) {
  87. this.state.fileList = nextProps.pictureUrl
  88. this.state.pojectApplicationUrl = undefined
  89. },
  90. render() {
  91. const { previewVisible, previewImage, fileList } = this.state
  92. const uploadButton = (
  93. <div>
  94. <Icon type="plus" />
  95. <div className="ant-upload-text">点击上传</div>
  96. </div>
  97. )
  98. return (
  99. <div style={{ display: 'inline-block' }}>
  100. <Upload
  101. action={
  102. globalConfig.context + '/api/admin/outsourceOrg/uploadOutsourceFile'
  103. }
  104. multiple
  105. data={{ sign: 'order_outsource' }}
  106. listType="picture-card"
  107. fileList={fileList}
  108. onPreview={this.handlePreview}
  109. onChange={this.handleChange}
  110. >
  111. {uploadButton}
  112. </Upload>
  113. <Modal
  114. maskClosable={false}
  115. visible={previewVisible}
  116. footer={null}
  117. onCancel={this.handleCancel}
  118. >
  119. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  120. </Modal>
  121. </div>
  122. )
  123. },
  124. })
  125. const Task = React.createClass({
  126. loadData(pageNo) {
  127. this.state.data = []
  128. this.setState({
  129. page: pageNo,
  130. loading: true,
  131. })
  132. $.ajax({
  133. method: 'get',
  134. dataType: 'json',
  135. crossDomain: false,
  136. url: globalConfig.context + '/api/admin/orderProject/orderTaskList',
  137. data: {
  138. pageNo: pageNo || 1,
  139. pageSize: this.state.pagination.pageSize,
  140. specially: 0, //个人
  141. name: this.state.nameSearch, //客户名称
  142. depId: this.state.departmenttSearch, //订单部门
  143. orderNo: this.state.orderNoSearch, //订单编号
  144. contractNo: this.state.contractNoSearch, //合同编号
  145. taskId: this.state.taskNoSearch, //项目编号
  146. taskStatus: this.state.taskStatuSearch, //项目状态
  147. projectStatus: this.state.projectStatusSearch, //项目状态
  148. adminName: this.state.adminName, //项目受理人
  149. approval: this.state.approvalSearch, //特批状态搜索
  150. outsourceStatus:
  151. this.state.outsourceStatusSearch >= 999
  152. ? undefined
  153. : this.state.outsourceStatusSearch, //外包状态搜索
  154. },
  155. success: function (data) {
  156. ShowModal(this)
  157. let theArr = []
  158. if (!data.data || !data.data.list) {
  159. if (data.error && data.error.length) {
  160. message.warning(data.error[0].message)
  161. }
  162. } else {
  163. for (let i = 0; i < data.data.list.length; i++) {
  164. let thisdata = data.data.list[i]
  165. theArr.push({
  166. key: i,
  167. orderNo: thisdata.orderNo, //订单编号
  168. id: thisdata.id, //项目ID
  169. taskName: thisdata.taskName, //名称
  170. cname: thisdata.cname, //项目品类
  171. receiverName: thisdata.receiverName, //受理人
  172. projectStatus: thisdata.projectStatus, //项目状态
  173. taskStatus: thisdata.taskStatus, //项目状态
  174. taskDate: thisdata.taskDate, //分配时间
  175. userName:
  176. thisdata.taskName.substring(0, 5) === '软件著作权'
  177. ? thisdata.userName +
  178. '(' +
  179. thisdata.commodityQuantity.toString() +
  180. '/' +
  181. thisdata.alreadyNumber +
  182. ')'
  183. : thisdata.userName, //用户名
  184. depName: thisdata.depName, //部门名称
  185. projectType: thisdata.projectType, //0正常 1专利 2软著 3审计
  186. commodityQuantity: thisdata.commodityQuantity, //项目数量
  187. hours: thisdata.hours,
  188. contractNo: thisdata.contractNo,
  189. approval: thisdata.approval, //特批状态
  190. outsourceStatus: thisdata.outsourceStatus, //外包审核状态
  191. outsourceType: thisdata.outsourceType, //外包审核状态
  192. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  193. splitSuper: thisdata.splitSuper,
  194. splitId: thisdata.splitId,
  195. })
  196. }
  197. }
  198. this.state.pagination.current = data.data.pageNo
  199. this.state.pagination.total = data.data.totalCount
  200. if (data.data && data.data.list && !data.data.list.length) {
  201. this.state.pagination.current = 0
  202. this.state.pagination.total = 0
  203. }
  204. this.setState({
  205. dataSource: theArr,
  206. pagination: this.state.pagination,
  207. })
  208. }.bind(this),
  209. }).always(
  210. function () {
  211. this.setState({
  212. loading: false,
  213. })
  214. }.bind(this)
  215. )
  216. },
  217. getInitialState() {
  218. return {
  219. projectType: '', //项目分类
  220. paySubject: [],
  221. paySubjectName: '', //付款科目名称
  222. PayNodeCompany: [],
  223. thirdMaterial: 0, //第三方信息材料 0-无 1-有
  224. thirdUrgent: 0, //第三方信息加急状态
  225. thirdCompanyName: '',
  226. thirdUnitPrice: '',
  227. currentCompanyName: '', //当前选中供应商名称
  228. thirdQuantity: 1,
  229. payNodeQuantity: 1,
  230. thirdRemarks: '',
  231. customerArr: [],
  232. currentTotalPrice: 0, //当前修改页面的总价
  233. saveThirdList: [],
  234. orderData: [],
  235. orderNo: '',
  236. jiedian: [],
  237. jiedianNew: [],
  238. timeVisible: false,
  239. ThirdListVisible: false,
  240. PayNodeVisible: false, //新增付款节点
  241. searchMore: true,
  242. assignVisible: false,
  243. releaseDate: [],
  244. patentType: -1,
  245. patentNameType: -1,
  246. startType: 0, //外包供应商类型
  247. // 判断是否是退回给咨询师经理
  248. flag: false,
  249. roleName: '',
  250. activeKey: '1',
  251. //特批状态搜索
  252. approvalSearch: undefined,
  253. testFlag: true,
  254. boHuivisible: false,
  255. selectedRowKeys: [],
  256. avisible: false,
  257. departmentArr: [],
  258. selectedRows: [],
  259. attachmentUrl: [],
  260. contactList: [],
  261. paginations: false,
  262. loading: false,
  263. pagination: {
  264. defaultCurrent: 1,
  265. defaultPageSize: 10,
  266. showQuickJumper: true,
  267. pageSize: 10,
  268. onChange: function (page) {
  269. this.loadData(page)
  270. }.bind(this),
  271. showTotal: function (total) {
  272. return '共' + total + '条数据'
  273. },
  274. },
  275. // 子组件改变的表格title数组
  276. changeList: undefined,
  277. columnsTime: [
  278. {
  279. title: '工作时长(小时)',
  280. dataIndex: 'hours',
  281. key: 'hours',
  282. },
  283. {
  284. title: '工作时间',
  285. dataIndex: 'taskDays',
  286. key: 'taskDays',
  287. },
  288. // {
  289. // title: "项目负责人",
  290. // dataIndex: "remarks",
  291. // key: "remarks"
  292. // },
  293. {
  294. title: '备注',
  295. dataIndex: 'remarks',
  296. key: 'remarks',
  297. },
  298. ],
  299. columns: [
  300. {
  301. title: '项目编号',
  302. dataIndex: 'id',
  303. key: 'id',
  304. render: (text, record) => {
  305. if (record.splitStatus == 2) {
  306. return <span>{record.splitSuper + '-' + record.splitId}</span>
  307. } else {
  308. return text
  309. }
  310. },
  311. },
  312. {
  313. title: '项目名称',
  314. dataIndex: 'taskName',
  315. key: 'taskName',
  316. render: (text) => {
  317. return text && text.length > 8 ? text.substr(0, 8) + '…' : text
  318. },
  319. },
  320. {
  321. title: '项目数量',
  322. dataIndex: 'commodityQuantity',
  323. key: 'commodityQuantity',
  324. },
  325. {
  326. title: '订单编号',
  327. dataIndex: 'orderNo',
  328. key: 'orderNo',
  329. },
  330. {
  331. title: '合同编号',
  332. dataIndex: 'contractNo',
  333. key: 'contractNo',
  334. },
  335. {
  336. title: '业务类别',
  337. dataIndex: 'cname',
  338. key: 'cname',
  339. },
  340. {
  341. title: '客户名称',
  342. dataIndex: 'userName',
  343. key: 'userName',
  344. className: 'userName',
  345. },
  346. {
  347. title: '分配状态',
  348. dataIndex: 'taskStatus',
  349. key: 'taskStatus',
  350. render: (text) => {
  351. return getTaskStatus(text)
  352. },
  353. },
  354. {
  355. title: '项目状态',
  356. dataIndex: 'projectStatus',
  357. key: 'projectStatus',
  358. render: (text) => {
  359. return getProjectStatus(text)
  360. },
  361. },
  362. {
  363. title: '审核状态',
  364. dataIndex: 'outsourceStatus',
  365. key: 'outsourceStatus',
  366. render: (text,record) => {
  367. if(record.outsourceType === 1){
  368. return '供应商'
  369. }else{
  370. if (text === 0) {
  371. return <Tag color="#f50">外包待审核</Tag>
  372. } else if (text === 1) {
  373. return <Tag color="#87d068">外包已通过</Tag>
  374. } else if (text === 2) {
  375. return <Tag color="#2db7f5">外包被驳回</Tag>
  376. } else {
  377. return <div style={{textAlign:'center'}}>/</div>
  378. }
  379. return text
  380. }
  381. },
  382. },
  383. {
  384. title: '分配时间',
  385. dataIndex: 'taskDate',
  386. key: 'taskDate',
  387. },
  388. {
  389. title: '订单部门',
  390. dataIndex: 'depName',
  391. key: 'depName',
  392. },
  393. {
  394. title: '累计工时(小时)',
  395. dataIndex: 'hours',
  396. key: 'hours',
  397. },
  398. {
  399. title: '操作',
  400. dataIndex: 'caozuo',
  401. key: 'caozuo',
  402. render: (text, record) => {
  403. return (
  404. <div>
  405. <Button
  406. type="primary"
  407. onClick={(e) => {
  408. e.stopPropagation(), this.evaluate(record, '咨询师')
  409. }}
  410. >
  411. 转交
  412. </Button>
  413. <Button
  414. type="primary"
  415. style={{ marginLeft: 10 }}
  416. onClick={(e) => {
  417. e.stopPropagation(),
  418. this.evaluate(record, '咨询师经理', true)
  419. }}
  420. >
  421. 回退
  422. </Button>
  423. <Button
  424. type="primary"
  425. style={{ margin: '0 10px' }}
  426. onClick={(e) => {
  427. e.stopPropagation(), this.okCancel(record)
  428. }}
  429. >
  430. 添加工时
  431. </Button>
  432. <Button
  433. type="primary"
  434. onClick={(e) => {
  435. e.stopPropagation()
  436. this.setState({
  437. timeVisible: true,
  438. })
  439. this.timeDetail(record)
  440. }}
  441. >
  442. 工时记录
  443. </Button>
  444. </div>
  445. )
  446. },
  447. },
  448. ],
  449. dataSource: [],
  450. searchTime: [],
  451. columnsX: [
  452. {
  453. title: '业务项目名称',
  454. dataIndex: 'commodityName',
  455. key: 'commodityName',
  456. },
  457. {
  458. title: '项目类别',
  459. dataIndex: 'cname',
  460. key: 'cname',
  461. },
  462. {
  463. title: '项目数量',
  464. dataIndex: 'commodityQuantity',
  465. key: 'commodityQuantity',
  466. render: (text, record) => {
  467. if (record.splitStatus == 1) {
  468. return (
  469. <span>
  470. {text}{' '}
  471. <Tag
  472. color="#108ee9"
  473. onClick={(e) => {
  474. e.stopPropagation()
  475. this.showRes(record)
  476. }}
  477. >
  478. 已拆
  479. </Tag>
  480. </span>
  481. )
  482. } else {
  483. return text
  484. }
  485. },
  486. },
  487. {
  488. title: '金额(万元)',
  489. dataIndex: 'commodityPrice',
  490. key: 'commodityPrice',
  491. },
  492. {
  493. title: '负责人',
  494. dataIndex: 'contacts',
  495. key: 'contacts',
  496. },
  497. {
  498. title: '负责人电话',
  499. dataIndex: 'contactsMobile',
  500. key: 'contactsMobile',
  501. },
  502. {
  503. title: '主要项目',
  504. dataIndex: 'main',
  505. key: 'main',
  506. render: (text) => {
  507. return text ? '是' : '否'
  508. },
  509. },
  510. {
  511. title: '项目说明',
  512. dataIndex: 'taskComment',
  513. key: 'taskComment',
  514. render: (text) => {
  515. return text && text.length > 8 ? text.substr(0, 8) + '…' : text
  516. },
  517. },
  518. ],
  519. columnsA: [
  520. {
  521. title: '流程',
  522. dataIndex: 'content',
  523. key: 'content',
  524. align: 'center',
  525. },
  526. {
  527. title: '操作人',
  528. dataIndex: 'aName',
  529. key: 'aName',
  530. align: 'center',
  531. },
  532. {
  533. title: '时间',
  534. dataIndex: 'createTimes',
  535. key: 'createTimes',
  536. align: 'center',
  537. },
  538. ],
  539. dataSourceX: [],
  540. dataSourceA: [],
  541. ContactsLists: [
  542. {
  543. title: '批次',
  544. dataIndex: 'num',
  545. key: 'num',
  546. },
  547. {
  548. title: '下证时间',
  549. dataIndex: 'licenceTimes',
  550. key: 'licenceTimes',
  551. render: (text, record) => {
  552. return (
  553. <div>
  554. <DatePicker
  555. style={{ marginTop: '5px' }}
  556. showTime
  557. format="YYYY-MM-DD"
  558. onOk={() => {}}
  559. value={
  560. record.licenceTimes ? moment(record.licenceTimes) : null
  561. }
  562. onChange={(data, dataString) => {
  563. record.licenceTimes = dataString
  564. this.setState({ contactList: this.state.contactList })
  565. }}
  566. />
  567. </div>
  568. )
  569. },
  570. },
  571. {
  572. title: '下证数量',
  573. dataIndex: 'alreadyNumber',
  574. key: 'alreadyNumber',
  575. render: (text, record) => {
  576. return (
  577. <div>
  578. {
  579. <Input
  580. value={record.alreadyNumber}
  581. placeholder="请输入下证数量"
  582. key={record.id}
  583. required="required"
  584. onChange={(e) => {
  585. record.alreadyNumber = e.target.value
  586. this.setState({ contactList: this.state.contactList })
  587. }}
  588. style={{ width: '120px' }}
  589. />
  590. }
  591. </div>
  592. )
  593. },
  594. },
  595. {
  596. title: '未下证数量',
  597. dataIndex: 'notCount',
  598. key: 'notCount',
  599. },
  600. {
  601. title: '操作',
  602. dataIndex: 'dels',
  603. key: 'dels',
  604. render: (text, record, index) => {
  605. return (
  606. <div>
  607. {
  608. <Popconfirm
  609. title="是否删除?"
  610. onConfirm={() => {
  611. this.confirmDelet(record)
  612. }}
  613. okText="删除"
  614. cancelText="不删除"
  615. >
  616. <Button
  617. style={{
  618. marginRight: '10px',
  619. color: '#ffffff',
  620. background: '#f00',
  621. border: 'none',
  622. }}
  623. >
  624. 删除
  625. </Button>
  626. </Popconfirm>
  627. }
  628. {record.flag ? (
  629. ''
  630. ) : (
  631. <Button
  632. type="primary"
  633. onClick={(e) => {
  634. e.stopPropagation(), this.contactSave(record, index)
  635. }}
  636. >
  637. 保存
  638. </Button>
  639. )}
  640. </div>
  641. )
  642. },
  643. },
  644. ],
  645. // 专利
  646. ContactsListsNew: [],
  647. //付款节点表头
  648. PayNodeTableColunms: [],
  649. }
  650. },
  651. /* 分派 */
  652. evaluate(record, nub, flag) {
  653. this.setState(
  654. {
  655. nub: nub,
  656. assignData: record,
  657. flag,
  658. },
  659. () => {
  660. this.setState({
  661. assignVisible: true,
  662. })
  663. }
  664. )
  665. },
  666. componentWillMount() {
  667. this.departmentList()
  668. this.loadData()
  669. },
  670. componentDidMount() {
  671. this.setColor()
  672. },
  673. //用于判断 第三方信息表格显示
  674. projectTypeTabContent(projectType) {
  675. if(projectType === 0 || !projectType){ //0正常 1专利 2软著 3审计
  676. this.setState({
  677. ContactsListsNew: [
  678. {
  679. title: '供应商名称',
  680. dataIndex: 'companyName',
  681. key: 'companyName',
  682. render: (text, record, index) => {
  683. if (text) {
  684. return <span>{text}</span>
  685. }
  686. },
  687. },
  688. {
  689. title: '单价(万元)',
  690. dataIndex: 'unitPrice',
  691. key: 'unitPrice',
  692. render: (text, record) => {
  693. if (text) {
  694. return <span>{text}</span>
  695. }
  696. },
  697. },
  698. {
  699. title: '数量',
  700. dataIndex: 'quantity',
  701. key: 'quantity',
  702. render: (text, record) => {
  703. if (text) {
  704. return <span>{text}</span>
  705. }
  706. },
  707. },
  708. {
  709. title: '总价(万元)',
  710. dataIndex: 'totalAmount',
  711. key: 'totalAmount',
  712. render: (text, record) => {
  713. if (text) {
  714. return <span>{text}</span>
  715. }
  716. },
  717. },
  718. {
  719. title: '备注',
  720. dataIndex: 'remarks',
  721. key: 'remarks',
  722. },
  723. {
  724. title: '操作',
  725. dataIndex: 'action',
  726. key: 'action',
  727. render: (text, record) => {
  728. return (
  729. <div>
  730. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  731. {/*存在支付节点时不显示第三方的申请付款*/}
  732. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  733. {
  734. <Button disabled={
  735. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  736. } type="primary" onClick={() => {
  737. this.setState({
  738. previewPayVisible: true,
  739. previewPayInfor: record,
  740. })
  741. }}>
  742. 申请付款
  743. </Button>
  744. }
  745. <Popconfirm
  746. title="是否删除?"
  747. onConfirm={() => {
  748. this.confirmDeletNew(record)
  749. }}
  750. okText="删除"
  751. cancelText="不删除"
  752. >
  753. <Button
  754. onClick={(e) => {
  755. e.stopPropagation()
  756. }}
  757. style={{
  758. marginLeft: '10px',
  759. color: '#ffffff',
  760. background: '#f00',
  761. border: 'none',
  762. }}
  763. >
  764. 删除
  765. </Button>
  766. </Popconfirm>
  767. </div>
  768. )
  769. },
  770. },
  771. ],
  772. })
  773. }else if(projectType === 2){ //2软著
  774. this.setState({
  775. ContactsListsNew: [
  776. {
  777. title: '供应商名称',
  778. dataIndex: 'companyName',
  779. key: 'companyName',
  780. render: (text, record, index) => {
  781. if (text) {
  782. return <span>{text}</span>
  783. }
  784. },
  785. },
  786. {
  787. title: '单价(万元)',
  788. dataIndex: 'unitPrice',
  789. key: 'unitPrice',
  790. render: (text, record) => {
  791. if (text) {
  792. return <span>{text}</span>
  793. }
  794. },
  795. },
  796. {
  797. title: '数量',
  798. dataIndex: 'quantity',
  799. key: 'quantity',
  800. render: (text, record) => {
  801. if (text) {
  802. return <span>{text}</span>
  803. }
  804. },
  805. },
  806. {
  807. title: '总价(万元)',
  808. dataIndex: 'totalAmount',
  809. key: 'totalAmount',
  810. render: (text, record) => {
  811. if (text) {
  812. return <span>{text}</span>
  813. }
  814. },
  815. },
  816. {
  817. title: '材料',
  818. dataIndex: 'material',
  819. key: 'material',
  820. render: (text, record) => {
  821. return getMaterialStatus(text)
  822. },
  823. },
  824. {
  825. title: '加急',
  826. dataIndex: 'urgent',
  827. key: 'urgent',
  828. render: (text, record) => {
  829. return getUrgentStatus(text)
  830. },
  831. },
  832. {
  833. title: '操作',
  834. dataIndex: 'action',
  835. key: 'action',
  836. render: (text, record) => {
  837. return (
  838. <div>
  839. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  840. {/*存在支付节点时不显示第三方的申请付款*/}
  841. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  842. {
  843. <Button disabled={
  844. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  845. } type="primary" onClick={() => {
  846. this.setState({
  847. previewPayVisible: true,
  848. previewPayInfor: record,
  849. })
  850. }}>
  851. 申请付款
  852. </Button>
  853. }
  854. <Popconfirm
  855. title="是否删除?"
  856. onConfirm={() => {
  857. this.confirmDeletNew(record)
  858. }}
  859. okText="删除"
  860. cancelText="不删除"
  861. >
  862. <Button
  863. onClick={(e) => {
  864. e.stopPropagation()
  865. }}
  866. style={{
  867. marginLeft: '10px',
  868. color: '#ffffff',
  869. background: '#f00',
  870. border: 'none',
  871. }}
  872. >
  873. 删除
  874. </Button>
  875. </Popconfirm>
  876. </div>
  877. )
  878. },
  879. },
  880. ],
  881. })
  882. }else if(projectType === 1){ //1专利
  883. if(this.state.patentType === 0){ //专利申请
  884. this.setState({
  885. ContactsListsNew: [
  886. {
  887. title: '供应商名称',
  888. dataIndex: 'companyName',
  889. key: 'companyName',
  890. render: (text, record, index) => {
  891. if (text) {
  892. return <span>{text}</span>
  893. }
  894. },
  895. },
  896. {
  897. title: '单价(万元)',
  898. dataIndex: 'unitPrice',
  899. key: 'unitPrice',
  900. render: (text, record) => {
  901. if (text) {
  902. return <span>{text}</span>
  903. }
  904. },
  905. },
  906. {
  907. title: '数量',
  908. dataIndex: 'quantity',
  909. key: 'quantity',
  910. render: (text, record) => {
  911. if (text) {
  912. return <span>{text}</span>
  913. }
  914. },
  915. },
  916. {
  917. title: "官费",
  918. dataIndex: "officialCost",
  919. key: "officialCost",
  920. render: (text) => {
  921. return text === 1 ? '有官费' : '无官费'
  922. },
  923. },
  924. {
  925. title: "费减",
  926. dataIndex: "costReduction",
  927. key: "costReduction",
  928. render: (text) => {
  929. return text === 1 ? '有费减' : '无费减'
  930. },
  931. },
  932. {
  933. title: '总价(万元)',
  934. dataIndex: 'totalAmount',
  935. key: 'totalAmount',
  936. render: (text, record) => {
  937. if (text) {
  938. return <span>{text}</span>
  939. }
  940. },
  941. },
  942. {
  943. title: '备注',
  944. dataIndex: 'remarks',
  945. key: 'remarks',
  946. },
  947. {
  948. title: '操作',
  949. dataIndex: 'action',
  950. key: 'action',
  951. render: (text, record) => {
  952. return (
  953. <div>
  954. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  955. {/*存在支付节点时不显示第三方的申请付款*/}
  956. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  957. {
  958. <Button disabled={
  959. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  960. } type="primary" onClick={() => {
  961. this.setState({
  962. previewPayVisible: true,
  963. previewPayInfor: record,
  964. })
  965. }}>
  966. 申请付款
  967. </Button>
  968. }
  969. {
  970. <Button
  971. type="primary"
  972. style={{
  973. marginLeft: '10px',
  974. }}
  975. disabled={!(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)}
  976. onClick={() => {
  977. this.setState({
  978. previewPayVisible: true,
  979. previewPayInfor: record,
  980. })
  981. }}>
  982. 付官费
  983. </Button>
  984. }
  985. <Popconfirm
  986. title="是否删除?"
  987. onConfirm={() => {
  988. this.confirmDeletNew(record)
  989. }}
  990. okText="删除"
  991. cancelText="不删除"
  992. >
  993. <Button
  994. onClick={(e) => {
  995. e.stopPropagation()
  996. }}
  997. style={{
  998. marginLeft: '10px',
  999. color: '#ffffff',
  1000. background: '#f00',
  1001. border: 'none',
  1002. }}
  1003. >
  1004. 删除
  1005. </Button>
  1006. </Popconfirm>
  1007. </div>
  1008. )
  1009. },
  1010. },
  1011. ]
  1012. })
  1013. }else{
  1014. this.setState({
  1015. ContactsListsNew: [
  1016. {
  1017. title: '供应商名称',
  1018. dataIndex: 'companyName',
  1019. key: 'companyName',
  1020. render: (text, record, index) => {
  1021. if (text) {
  1022. return <span>{text}</span>
  1023. }
  1024. },
  1025. },
  1026. {
  1027. title: '单价(万元)',
  1028. dataIndex: 'unitPrice',
  1029. key: 'unitPrice',
  1030. render: (text, record) => {
  1031. if (text) {
  1032. return <span>{text}</span>
  1033. }
  1034. },
  1035. },
  1036. {
  1037. title: '数量',
  1038. dataIndex: 'quantity',
  1039. key: 'quantity',
  1040. render: (text, record) => {
  1041. if (text) {
  1042. return <span>{text}</span>
  1043. }
  1044. },
  1045. },
  1046. {
  1047. title: '总价(万元)',
  1048. dataIndex: 'totalAmount',
  1049. key: 'totalAmount',
  1050. render: (text, record) => {
  1051. if (text) {
  1052. return <span>{text}</span>
  1053. }
  1054. },
  1055. },
  1056. {
  1057. title: '备注',
  1058. dataIndex: 'remarks',
  1059. key: 'remarks',
  1060. },
  1061. {
  1062. title: '操作',
  1063. dataIndex: 'action',
  1064. key: 'action',
  1065. render: (text, record) => {
  1066. return (
  1067. <div>
  1068. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  1069. {/*存在支付节点时不显示第三方的申请付款*/}
  1070. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  1071. {
  1072. <Button disabled={
  1073. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  1074. } type="primary" onClick={() => {
  1075. this.setState({
  1076. previewPayVisible: true,
  1077. previewPayInfor: record,
  1078. })
  1079. }}>
  1080. 申请付款
  1081. </Button>
  1082. }
  1083. <Popconfirm
  1084. title="是否删除?"
  1085. onConfirm={() => {
  1086. this.confirmDeletNew(record)
  1087. }}
  1088. okText="删除"
  1089. cancelText="不删除"
  1090. >
  1091. <Button
  1092. onClick={(e) => {
  1093. e.stopPropagation()
  1094. }}
  1095. style={{
  1096. marginLeft: '10px',
  1097. color: '#ffffff',
  1098. background: '#f00',
  1099. border: 'none',
  1100. }}
  1101. >
  1102. 删除
  1103. </Button>
  1104. </Popconfirm>
  1105. </div>
  1106. )
  1107. },
  1108. },
  1109. ]
  1110. })
  1111. }
  1112. }else if(projectType === 3){ //3审计
  1113. this.setState({
  1114. ContactsListsNew: [
  1115. {
  1116. title: '供应商名称',
  1117. dataIndex: 'companyName',
  1118. key: 'companyName',
  1119. render: (text, record, index) => {
  1120. if (text) {
  1121. return <span>{text}</span>
  1122. }
  1123. },
  1124. },
  1125. {
  1126. title: '单价(万元)',
  1127. dataIndex: 'unitPrice',
  1128. key: 'unitPrice',
  1129. render: (text, record) => {
  1130. if (text) {
  1131. return <span>{text}</span>
  1132. }
  1133. },
  1134. },
  1135. {
  1136. title: '数量',
  1137. dataIndex: 'quantity',
  1138. key: 'quantity',
  1139. render: (text, record) => {
  1140. if (text) {
  1141. return <span>{text}</span>
  1142. }
  1143. },
  1144. },
  1145. {
  1146. title: '总价(万元)',
  1147. dataIndex: 'totalAmount',
  1148. key: 'totalAmount',
  1149. render: (text, record) => {
  1150. if (text) {
  1151. return <span>{text}</span>
  1152. }
  1153. },
  1154. },
  1155. {
  1156. title: '审计',
  1157. dataIndex: 'audit',
  1158. key: 'audit',
  1159. render: (text, record) => {
  1160. if (text) {
  1161. return <span>{text===0?'无审计':text===1?'年审':'专审'}</span>
  1162. }
  1163. },
  1164. },
  1165. {
  1166. title: '公司资产(万元)',
  1167. dataIndex: 'assets',
  1168. key: 'assets',
  1169. render: (text, record) => {
  1170. if (text) {
  1171. return <span>{text}</span>
  1172. }
  1173. },
  1174. },
  1175. {
  1176. title: '收入(万元)',
  1177. dataIndex: 'income',
  1178. key: 'income',
  1179. render: (text, record) => {
  1180. if (text) {
  1181. return <span>{text}</span>
  1182. }
  1183. },
  1184. },
  1185. {
  1186. title: '操作',
  1187. dataIndex: 'action',
  1188. key: 'action',
  1189. render: (text, record) => {
  1190. return (
  1191. <div>
  1192. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  1193. {/*存在支付节点时不显示第三方的申请付款*/}
  1194. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  1195. {
  1196. <Button disabled={
  1197. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  1198. } type="primary" onClick={() => {
  1199. this.setState({
  1200. previewPayVisible: true,
  1201. previewPayInfor: record,
  1202. })
  1203. }}>
  1204. 申请付款
  1205. </Button>
  1206. }
  1207. <Popconfirm
  1208. title="是否删除?"
  1209. onConfirm={() => {
  1210. this.confirmDeletNew(record)
  1211. }}
  1212. okText="删除"
  1213. cancelText="不删除"
  1214. >
  1215. <Button
  1216. onClick={(e) => {
  1217. e.stopPropagation()
  1218. }}
  1219. style={{
  1220. marginLeft: '10px',
  1221. color: '#ffffff',
  1222. background: '#f00',
  1223. border: 'none',
  1224. }}
  1225. >
  1226. 删除
  1227. </Button>
  1228. </Popconfirm>
  1229. </div>
  1230. )
  1231. },
  1232. },
  1233. ]
  1234. })
  1235. }
  1236. this.setState({
  1237. //付款节点表头
  1238. PayNodeTableColunms: [
  1239. {
  1240. title: '供应商名称',
  1241. dataIndex: 'companyName',
  1242. key: 'companyName',
  1243. render: (text, record, index) => {
  1244. if (text) {
  1245. return <span>{text}</span>
  1246. }
  1247. },
  1248. },
  1249. {
  1250. title: '付款科目',
  1251. dataIndex: 'dunType',
  1252. key: 'dunType',
  1253. render: (text, record) => {
  1254. if (text) {
  1255. return <span>{text}</span>
  1256. }
  1257. },
  1258. },
  1259. {
  1260. title: '付款时间',
  1261. dataIndex: 'partyTimes',
  1262. key: 'partyTimes',
  1263. render: (text, record) => {
  1264. return <span>{text ? text : '/'}</span>
  1265. },
  1266. },
  1267. {
  1268. title: '数量',
  1269. dataIndex: 'quantity',
  1270. key: 'quantity',
  1271. render: (text, record) => {
  1272. if (text) {
  1273. return <span>{text}</span>
  1274. }
  1275. },
  1276. },
  1277. {
  1278. title: '总价(万元)',
  1279. dataIndex: 'totalAmount',
  1280. key: 'totalAmount',
  1281. render: (text, record) => {
  1282. return <span>{text}</span>
  1283. },
  1284. },
  1285. {
  1286. title: '已付',
  1287. dataIndex: 'partyAmount',
  1288. key: 'partyAmount',
  1289. render: (text, record) => {
  1290. if (text) {
  1291. return <span>{text}</span>
  1292. }
  1293. },
  1294. },
  1295. {
  1296. title: '操作',
  1297. dataIndex: 'dels',
  1298. key: 'dels',
  1299. render: (text, record, index) => {
  1300. return (
  1301. <div>
  1302. <Popconfirm
  1303. title="是否删除?"
  1304. onConfirm={() => {
  1305. this.payNodeConfirmDeletNew(record)
  1306. }}
  1307. okText="删除"
  1308. cancelText="不删除"
  1309. >
  1310. <Button
  1311. onClick={(e) => {
  1312. e.stopPropagation()
  1313. }}
  1314. style={{
  1315. marginRight: '10px',
  1316. color: '#ffffff',
  1317. background: '#f00',
  1318. border: 'none',
  1319. }}
  1320. >
  1321. 删除
  1322. </Button>
  1323. </Popconfirm>
  1324. </div>
  1325. )
  1326. },
  1327. },
  1328. ],
  1329. })
  1330. },
  1331. setColor() {
  1332. $('.userName span').after(
  1333. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  1334. )
  1335. },
  1336. // 获取csort下的数据
  1337. getCsortData(cSort) {
  1338. cuiJieDian.map((item) => {
  1339. if (item.value == cSort) {
  1340. console.log(item.children)
  1341. this.setState({
  1342. paySubject: item.children,
  1343. })
  1344. }
  1345. })
  1346. },
  1347. tableRowClick(record) {
  1348. this.state.RowData = record
  1349. let str = record.taskName
  1350. let test = str.indexOf('会员')
  1351. if (test == -1) {
  1352. this.setState({
  1353. isHuiyuan: false,
  1354. })
  1355. } else {
  1356. this.setState({
  1357. isHuiyuan: true,
  1358. })
  1359. }
  1360. if (record.taskName.substring(0, 5) === '软件著作权') {
  1361. this.setState({
  1362. speVisible: true,
  1363. id: record.id,
  1364. splitStatus: record.splitStatus,
  1365. splitSuper: record.splitSuper,
  1366. splitId: record.splitId,
  1367. dataArr: record,
  1368. commodityQuantity: record.commodityQuantity,
  1369. })
  1370. } else {
  1371. this.setState({
  1372. visible: true,
  1373. splitStatus: record.splitStatus,
  1374. splitSuper: record.splitSuper,
  1375. splitId: record.splitId,
  1376. })
  1377. }
  1378. this.setState({
  1379. projectType: record.projectType
  1380. })
  1381. this.xiangqing(record.id, record.taskName)
  1382. this.xiangqings(record.orderNo)
  1383. this.xiangmu(record.orderNo)
  1384. this.loaduserss(record)
  1385. // 获取第三方信息表格
  1386. this.thirdTable(record.id);
  1387. //获取支付节点信息表格
  1388. this.payNodeTable(record.id);
  1389. //查看外包状态日志
  1390. this.getSelectOutsourceLog(record.id);
  1391. // 获取Csort
  1392. this.getCsortData(localStorage.getItem('cSort'))
  1393. this.projectTypeTabContent(record.projectType)
  1394. console.log('项目类型',record.projectType)
  1395. },
  1396. //点击修改项目详情
  1397. tijiaoOk() {
  1398. let attachmentUrls = []
  1399. if (this.state.attachmentUrl.length) {
  1400. let picArr = []
  1401. this.state.attachmentUrl.map(function (item) {
  1402. if (item.response && item.response.data && item.response.data.length) {
  1403. picArr.push(item.response.data)
  1404. }
  1405. })
  1406. attachmentUrls = picArr.join(',')
  1407. }
  1408. this.setState({
  1409. loading: true,
  1410. })
  1411. $.ajax({
  1412. method: 'POST',
  1413. dataType: 'json',
  1414. crossDomain: false,
  1415. url: globalConfig.context + '/api/admin/orderProject/updateOrderTask',
  1416. data: {
  1417. id: this.state.id, //项目编号
  1418. orderNo: this.state.orderNo, //订单编号
  1419. projectStatus: this.state.projectStatus, //项目状态
  1420. taskStatus: this.state.taskStatus, //项目状态
  1421. taskComment: this.state.taskComment, //说明
  1422. startDate: this.state.startDate, //启动日期
  1423. endDate: this.state.endDate, //结束日期
  1424. acceptDate: this.state.acceptDate, //受理日期
  1425. reviewDate: this.state.reviewDate, //评审日期
  1426. publicityDate: this.state.publicityDate, //公示日期
  1427. licenceDate: this.state.licenceDate, //发证日期
  1428. attachmentUrl: attachmentUrls.length ? attachmentUrls : '', //附件
  1429. contacts: this.state.contacts, //联系人
  1430. contactMobile: this.state.contactMobile, //联系人电话
  1431. legalPerson: this.state.legalPerson, //法人
  1432. legalPersonTel: this.state.legalPersonTel, //法人电话
  1433. certificateNumber: this.state.certificateNumber, //证书编号
  1434. status: this.state.status, //状态
  1435. formRetrieve: this.state.formRetrieve, //满意度表格
  1436. taskRefund: this.state.taskRefund, //退单
  1437. refundContent: this.state.refundContent, //退单信息
  1438. retrieveContent: this.state.retrieveContent, //回收信息
  1439. locationProvince: this.state.ProvinceCity[0],
  1440. locationCity: this.state.ProvinceCity[1],
  1441. locationArea: this.state.ProvinceCity[2],
  1442. postalAddress: this.state.postalAddress, //详细地址
  1443. arrivalMoney: this.state.arrivalMoney, //是否到款
  1444. setUpAmount: this.state.setUpAmount, //立项金额
  1445. declareUser: this.state.declareUser, //账号
  1446. declarePwd: this.state.declarePwd, //密码
  1447. outsourceName: this.state.outsourceName, //外包公司
  1448. outsourcePrice: this.state.outsourcePrice, //外包价格
  1449. declarationBatch: this.state.declarationBatch,
  1450. },
  1451. }).done(
  1452. function (data) {
  1453. this.setState({
  1454. loading: false,
  1455. })
  1456. if (!data.error.length) {
  1457. message.success('保存成功!')
  1458. this.visitCancel()
  1459. } else {
  1460. message.warning(data.error[0].message)
  1461. }
  1462. }.bind(this)
  1463. )
  1464. },
  1465. //点击修改项目详情
  1466. tianjiaOk() {
  1467. if (this.state.attachmentUrl.length) {
  1468. let picArr = []
  1469. this.state.attachmentUrl.map(function (item) {
  1470. if (item.response && item.response.data && item.response.data.length) {
  1471. picArr.push(item.response.data)
  1472. }
  1473. })
  1474. }
  1475. $.ajax({
  1476. method: 'POST',
  1477. dataType: 'json',
  1478. crossDomain: false,
  1479. url: globalConfig.context + '/api/admin/orderProject/addTaskHours',
  1480. data: {
  1481. taskId: this.state.taskId, //项目编号
  1482. hours: this.state.hours, //工时
  1483. remarks: this.state.remarks, //说明
  1484. taskDate: this.state.taskDate, //日期
  1485. taskComment: this.state.taskComment, //说明
  1486. },
  1487. }).done(
  1488. function (data) {
  1489. this.setState({
  1490. loading: false,
  1491. })
  1492. if (!data.error.length) {
  1493. message.success('保存成功!')
  1494. this.noCancel()
  1495. } else {
  1496. message.warning(data.error[0].message)
  1497. }
  1498. }.bind(this)
  1499. )
  1500. },
  1501. //订单详情
  1502. xiangqing(id) {
  1503. $.ajax({
  1504. method: 'get',
  1505. dataType: 'json',
  1506. crossDomain: false,
  1507. url: globalConfig.context + '/api/admin/orderProject/orderTaskDetail',
  1508. data: {
  1509. id: id,
  1510. },
  1511. success: function (data) {
  1512. let thisdata = data.data
  1513. if (data.error.length || data.data.list == '') {
  1514. if (data.error && data.error.length) {
  1515. message.warning(data.error[0].message)
  1516. }
  1517. } else {
  1518. this.setState({
  1519. id: thisdata.id, //ID
  1520. orderNo: thisdata.orderNo, //订单编号
  1521. userName: thisdata.userName, //客户名称
  1522. taskName: thisdata.taskName, //项目名称
  1523. cname: thisdata.cname, //项目品类
  1524. contractNo: thisdata.contractNo, //合同编号
  1525. projectStatus: thisdata.projectStatus.toString(), //项目状态
  1526. taskStatus: thisdata.taskStatus.toString(), //项目状态
  1527. taskDate: thisdata.taskDate, //分配时间
  1528. taskComment: thisdata.taskComment, //说明
  1529. attachmentUrl: thisdata.attachmentUrl
  1530. ? splitUrl(
  1531. thisdata.attachmentUrl,
  1532. ',',
  1533. globalConfig.avatarHost + '/upload'
  1534. )
  1535. : [], //图片地址
  1536. salesmanName: thisdata.salesmanName, //订单负责人
  1537. startDate: thisdata.startDate, //启动日期
  1538. endDate: thisdata.endDate, //结束日期
  1539. acceptDate: thisdata.acceptDate, //受理日期
  1540. reviewDate: thisdata.reviewDate, //评审日期
  1541. publicityDate: thisdata.publicityDate, //公示日期
  1542. licenceDate: thisdata.licenceDate, //发证日期
  1543. contacts: thisdata.contacts, //联系人
  1544. contactMobile: thisdata.contactMobile, //联系人电话
  1545. legalPerson: thisdata.legalPerson, //法人
  1546. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1547. certificateNumber: thisdata.certificateNumber, //证书编号
  1548. status: thisdata.status, //状态
  1549. formRetrieve: thisdata.formRetrieve, //满意度表格
  1550. taskRefund: thisdata.taskRefund, //退单
  1551. refundContent: thisdata.refundContent, //退单信息
  1552. retrieveContent: thisdata.retrieveContent, //回收信息
  1553. arrivalMoney: thisdata.arrivalMoney, //是否到款
  1554. setUpAmount: thisdata.setUpAmount, //立项金额
  1555. declareUser: thisdata.declareUser, //账号
  1556. declarePwd: thisdata.declarePwd, //密码
  1557. outsourceName: thisdata.outsourceName, //外包公司
  1558. outsourcePrice: thisdata.outsourcePrice, //外包价格
  1559. declarationBatch: thisdata.declarationBatch,
  1560. })
  1561. }
  1562. }.bind(this),
  1563. }).always(
  1564. function () {
  1565. this.setState({
  1566. loading: false,
  1567. })
  1568. }.bind(this)
  1569. )
  1570. },
  1571. //订单详情
  1572. xiangqings(orderNos) {
  1573. $.ajax({
  1574. method: 'get',
  1575. dataType: 'json',
  1576. crossDomain: false,
  1577. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  1578. data: {
  1579. orderNo: orderNos,
  1580. },
  1581. success: function (data) {
  1582. let thisdata = data.data
  1583. let ProvinceCityArr = []
  1584. let ProvinceS = thisdata.locationProvince //省
  1585. let citys = thisdata.locationCity //市
  1586. let Areas = thisdata.locationArea //区
  1587. ProvinceCityArr.push(ProvinceS, citys, Areas)
  1588. if (data.error.length || data.data.list == '') {
  1589. if (data.error && data.error.length) {
  1590. message.warning(data.error[0].message)
  1591. }
  1592. } else {
  1593. this.setState({
  1594. processStatus: thisdata.processStatus, //流程状态
  1595. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1596. approval: thisdata.approval, //特批状态
  1597. orderRemarks: thisdata.orderRemarks, //订单留言
  1598. salesmanName: thisdata.salesmanName, //营销员名称
  1599. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1600. financeName: thisdata.financeName, //财务名称
  1601. financeMobile: thisdata.financeMobile, //财务电话
  1602. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  1603. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  1604. nowFinance: thisdata.nowFinance, //财务名称
  1605. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  1606. depName: thisdata.depName, //订单部门
  1607. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1608. postalAddress: thisdata.postalAddress, //详细地址
  1609. })
  1610. }
  1611. }.bind(this),
  1612. }).always(
  1613. function () {
  1614. this.setState({
  1615. loading: false,
  1616. })
  1617. }.bind(this)
  1618. )
  1619. },
  1620. //项目列表
  1621. xiangmu(orderNos) {
  1622. $.ajax({
  1623. method: 'get',
  1624. dataType: 'json',
  1625. crossDomain: false,
  1626. url: globalConfig.context + '/api/admin/newOrder/getOrderTask',
  1627. data: {
  1628. orderNo: orderNos,
  1629. },
  1630. success: function (data) {
  1631. let theArr = []
  1632. if (data.error.length || data.data.list == '') {
  1633. if (data.error && data.error.length) {
  1634. message.warning(data.error[0].message)
  1635. }
  1636. } else {
  1637. for (let i = 0; i < data.data.length; i++) {
  1638. let thisdata = data.data[i]
  1639. localStorage.setItem('cSort', thisdata.cSort)
  1640. theArr.push({
  1641. key: i,
  1642. id: thisdata.id,
  1643. orderNo: thisdata.orderNo, //订单编号
  1644. commodityId: thisdata.commodityId, //项目ID
  1645. commodityName: thisdata.commodityName, //项目名称
  1646. cname: thisdata.cname, //项目类别
  1647. commodityPrice: thisdata.commodityPrice, //项目价格
  1648. commodityQuantity: thisdata.commodityQuantity, //项目数量
  1649. main: thisdata.main, //是否为主要项目
  1650. taskComment: thisdata.taskComment, //项目说明
  1651. contacts: thisdata.contacts, //联系人
  1652. contactsMobile: thisdata.contactsMobile, //联系人电话
  1653. taskStatus: thisdata.taskStatus, //是否分配
  1654. contractNo: thisdata.contractNo, //合同编号
  1655. certificateNumber: thisdata.certificateNumber,
  1656. splitStatus: thisdata.splitStatus,
  1657. officialCost: thisdata.officialCost,
  1658. costReduction: thisdata.costReduction,
  1659. type: thisdata.type,
  1660. cSort: thisdata.cSort,
  1661. })
  1662. }
  1663. }
  1664. this.setState({
  1665. dataSourceX: theArr,
  1666. type: theArr[0].type,
  1667. cSort: theArr[0].cSort,
  1668. })
  1669. }.bind(this),
  1670. }).always(
  1671. function () {
  1672. this.setState({
  1673. loading: false,
  1674. })
  1675. }.bind(this)
  1676. )
  1677. },
  1678. //导出
  1679. exportExec() {
  1680. let departmentName = '',
  1681. depart = this.state.departmentArr || []
  1682. depart.map((item) => {
  1683. if (this.state.departmentId == item.id) {
  1684. departmentName = item.name
  1685. return
  1686. }
  1687. })
  1688. let data = {
  1689. departmentId: this.state.departmentId,
  1690. departmentName: departmentName,
  1691. salesName: this.state.orderRefundSearch, //订单负责人
  1692. startTime: this.state.releaseDate[0],
  1693. endTime: this.state.releaseDate[1],
  1694. grantStatus: this.state.grantStatus,
  1695. }
  1696. window.location.href =
  1697. globalConfig.context +
  1698. '/api/admin/orderProject/exporProjectList?' +
  1699. $.param(data)
  1700. },
  1701. //关闭详情
  1702. visitCancel() {
  1703. this.setState({
  1704. visible: false,
  1705. speVisible: false,
  1706. activeKey: '1',
  1707. })
  1708. this.reset()
  1709. },
  1710. visitOk() {
  1711. this.setState({
  1712. visible: false,
  1713. speVisible: false,
  1714. })
  1715. this.reset()
  1716. },
  1717. closeDesc(e, s) {
  1718. this.state.showDesc = e
  1719. if (s) {
  1720. this.loadData(this.state.page)
  1721. }
  1722. },
  1723. closeAssign(e, s) {
  1724. this.state.roleName = ''
  1725. this.state.assignVisible = e
  1726. if (s) {
  1727. this.loadData(this.state.page)
  1728. }
  1729. },
  1730. //添加工时
  1731. okCancel(record) {
  1732. this.setState({
  1733. lookVisible: true,
  1734. taskId: record.id,
  1735. })
  1736. },
  1737. //测试
  1738. getOrgCodeUrl(e) {
  1739. this.setState({ orgCodeUrl: e })
  1740. },
  1741. //查看下证信息
  1742. loaduserss(record) {
  1743. $.ajax({
  1744. method: 'get',
  1745. dataType: 'json',
  1746. crossDomain: false,
  1747. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  1748. data: {
  1749. tid: record.id,
  1750. },
  1751. success: function (data) {
  1752. let theArr = []
  1753. let thisData = []
  1754. if (!thisData) {
  1755. if (data.error && data.error.length) {
  1756. message.warning(data.error[0].message)
  1757. }
  1758. thisData = {}
  1759. } else {
  1760. for (let i = 0; i < data.data.length; i++) {
  1761. thisData = data.data[i]
  1762. theArr.push({
  1763. num: i + 1,
  1764. key: i,
  1765. id: thisData.id, //编号
  1766. alreadyNumber: thisData.alreadyNumber, //下证数
  1767. licenceTimes: thisData.licenceTimes, //下证时间
  1768. notCount: thisData.notCount, //未下证数
  1769. flag: true,
  1770. })
  1771. }
  1772. this.setState({
  1773. contactList: theArr,
  1774. tid: record.id,
  1775. })
  1776. }
  1777. }.bind(this),
  1778. }).always(
  1779. function () {
  1780. this.setState({
  1781. loading: false,
  1782. })
  1783. }.bind(this)
  1784. )
  1785. },
  1786. // 拆分详细
  1787. showRes(record) {
  1788. this.setState({
  1789. resVisible: true,
  1790. resRecord: record,
  1791. })
  1792. },
  1793. resCancel() {
  1794. this.setState({
  1795. resVisible: false,
  1796. })
  1797. },
  1798. //下证信息保存
  1799. contactSave(record) {
  1800. if (!record.licenceTimes) {
  1801. message.warning('下证日期不能为空')
  1802. return
  1803. }
  1804. if (!record.alreadyNumber) {
  1805. message.warning('下证数量不能为空')
  1806. return
  1807. }
  1808. this.setState({
  1809. loading: true,
  1810. })
  1811. $.ajax({
  1812. url: globalConfig.context + '/api/admin/orderProject/createTaskProgress',
  1813. method: 'post',
  1814. data: {
  1815. taskId: this.state.id,
  1816. licenceTimes: record.licenceTimes,
  1817. alreadyNumber: record.alreadyNumber,
  1818. },
  1819. }).done(
  1820. function (data) {
  1821. this.setState({
  1822. loading: false,
  1823. })
  1824. if (!data.error.length) {
  1825. message.success('保存成功!')
  1826. record.flag = true
  1827. this.loaduserss(this.state.dataArr)
  1828. } else {
  1829. message.warning(data.error[0].message)
  1830. }
  1831. }.bind(this)
  1832. )
  1833. },
  1834. //下证信息删除
  1835. contactDele(record) {
  1836. this.setState({
  1837. loading: true,
  1838. })
  1839. $.ajax({
  1840. url: globalConfig.context + '/api/admin/orderProject/delectTaskProgress',
  1841. method: 'post',
  1842. data: {
  1843. id: record.id,
  1844. },
  1845. }).done(
  1846. function (data) {
  1847. this.setState({
  1848. loading: false,
  1849. })
  1850. if (!data.error.length) {
  1851. this.loaduserss(this.state.dataArr)
  1852. } else {
  1853. message.warning(data.error[0].message)
  1854. }
  1855. }.bind(this)
  1856. )
  1857. },
  1858. //点击新增下证信息
  1859. addcontact() {
  1860. this.state.contactList.push({
  1861. num: this.state.contactList.length + 1,
  1862. key: this.state.contactList.length,
  1863. licenceTimes: '',
  1864. alreadyNumber: '',
  1865. notCount: '',
  1866. dels: '',
  1867. flag: false,
  1868. aflag: false,
  1869. })
  1870. this.setState({
  1871. contactList: this.state.contactList,
  1872. })
  1873. },
  1874. //删除下证信息
  1875. confirmDelet(record) {
  1876. this.state.contactList.splice(record.key, 1)
  1877. this.setState({
  1878. contactList: this.state.contactList,
  1879. })
  1880. if (record.id) {
  1881. this.contactDele(record)
  1882. }
  1883. },
  1884. caozuorizhi() {
  1885. this.setState({
  1886. visibleA: true,
  1887. })
  1888. $.ajax({
  1889. method: 'get',
  1890. dataType: 'json',
  1891. crossDomain: false,
  1892. url: globalConfig.context + '/api/admin/orderProject/TaskLogList',
  1893. data: {
  1894. id: this.state.id,
  1895. },
  1896. success: function (data) {
  1897. let theArr = []
  1898. if (data.error.length || data.data.list == '') {
  1899. if (data.error && data.error.length) {
  1900. message.warning(data.error[0].message)
  1901. }
  1902. } else {
  1903. for (let i = 0; i < data.data.length; i++) {
  1904. let thisdata = data.data[i]
  1905. theArr.push({
  1906. key: i,
  1907. id: thisdata.id, //日志ID
  1908. content: thisdata.content, //流程
  1909. taskId: thisdata.taskId, //项目ID
  1910. aName: thisdata.aName, //负责人
  1911. createTimes: thisdata.createTimes, //时间
  1912. })
  1913. }
  1914. }
  1915. this.setState({
  1916. dataSourceA: theArr,
  1917. })
  1918. }.bind(this),
  1919. }).always(
  1920. function () {
  1921. this.setState({
  1922. loading: false,
  1923. })
  1924. }.bind(this)
  1925. )
  1926. },
  1927. //关闭操作工时
  1928. visitCancelA() {
  1929. this.setState({
  1930. visibleA: false,
  1931. })
  1932. },
  1933. nextCancel() {
  1934. this.setState({
  1935. addnextVisible: false,
  1936. displayFees: 'none',
  1937. officialCost: '', //是否有官费
  1938. costReduction: '', //是否有费减
  1939. })
  1940. },
  1941. //点击打卡项目详情
  1942. tableRowClickX(record) {
  1943. if (record.type == '1') {
  1944. this.setState({
  1945. displayFees: 'block',
  1946. costReduction: record.costReduction,
  1947. officialCost: record.officialCost,
  1948. })
  1949. }
  1950. this.setState({
  1951. jid: record.id, //项目ID
  1952. kid: record.commodityId, //商品ID
  1953. commodityName: record.commodityName, //金额
  1954. commodityPrice: record.commodityPrice, //金额
  1955. commodityQuantity: record.commodityQuantity, //数量
  1956. taskComment: record.taskComment, //备注
  1957. main: record.main.toString(), //是否为主要
  1958. addnextVisible: true,
  1959. addState: 0,
  1960. })
  1961. },
  1962. //关闭添加工时
  1963. noCancel() {
  1964. this.setState({
  1965. lookVisible: false,
  1966. })
  1967. this.reset()
  1968. },
  1969. search() {
  1970. this.loadData()
  1971. },
  1972. reset(flag) {
  1973. if (flag) {
  1974. this.state.nameSearch = ''
  1975. this.state.orderNoSearch = ''
  1976. this.state.contractNoSearch = undefined
  1977. this.state.taskNoSearch = ''
  1978. this.state.departmenttSearch = undefined
  1979. this.state.projectStatusSearch = undefined //项目状态
  1980. this.state.approvalSearch = undefined
  1981. this.state.outsourceStatusSearch = []
  1982. }
  1983. this.state.id = '' //项目编号
  1984. this.state.orderNo = '' //订单编号
  1985. this.state.projectStatus = undefined //项目状态
  1986. this.state.taskStatuSearch = undefined //项目状态
  1987. this.state.taskComment = '' //说明
  1988. this.state.startDate = '' //启动日期
  1989. this.state.endDate = '' //结束日期
  1990. this.state.acceptDate = '' //受理日期
  1991. this.state.reviewDate = '' //评审日期
  1992. this.state.publicityDate = '' //公示日期
  1993. this.state.licenceDate = '' //发证日期
  1994. this.state.partyTimes = '' //付款时间
  1995. attachmentUrl: [] //附件
  1996. this.state.contacts = '' //联系人
  1997. this.state.contactMobile = '' //联系人电话
  1998. this.state.legalPerson = '' //法人
  1999. this.state.legalPersonTel = '' //法人电话
  2000. this.state.taskId = '' //项目编号
  2001. this.state.hours = '' //工时
  2002. this.state.remarks = '' //说明
  2003. this.state.taskDate = '' //日期
  2004. this.state.taskComment = '' //说明
  2005. this.state.releaseDate = []
  2006. this.state.outsourceName = ''
  2007. this.state.outsourcePrice = undefined
  2008. this.state.distribution = undefined
  2009. this.loadData(this.state.page)
  2010. this.state.companyName = undefined
  2011. this.state.unitPrice = undefined
  2012. this.state.unitNumber = undefined
  2013. this.state.amount = undefined
  2014. this.state.outsourceRemarks = undefined
  2015. this.state.pictureUrl = []
  2016. },
  2017. searchSwitch() {
  2018. this.setState({
  2019. searchMore: !this.state.searchMore,
  2020. })
  2021. },
  2022. //部门
  2023. departmentList() {
  2024. this.setState({
  2025. loading: true,
  2026. })
  2027. $.ajax({
  2028. method: 'get',
  2029. dataType: 'json',
  2030. crossDomain: false,
  2031. url: globalConfig.context + '/api/admin/organization/selectSuperId',
  2032. data: {},
  2033. success: function (data) {
  2034. let thedata = data.data
  2035. let theArr = []
  2036. if (!thedata) {
  2037. if (data.error && data.error.length) {
  2038. message.warning(data.error[0].message)
  2039. }
  2040. thedata = {}
  2041. } else {
  2042. thedata.map(function (item, index) {
  2043. theArr.push({
  2044. key: index,
  2045. name: item.name,
  2046. id: item.id,
  2047. })
  2048. })
  2049. }
  2050. this.setState({
  2051. departmentArr: theArr,
  2052. })
  2053. }.bind(this),
  2054. }).always(
  2055. function () {
  2056. this.setState({
  2057. loading: false,
  2058. })
  2059. }.bind(this)
  2060. )
  2061. },
  2062. changeList(arr) {
  2063. const newArr = []
  2064. this.state.columns.forEach((item) => {
  2065. arr.forEach((val) => {
  2066. if (val === item.title) {
  2067. newArr.push(item)
  2068. }
  2069. })
  2070. })
  2071. this.setState({
  2072. changeList: newArr,
  2073. })
  2074. },
  2075. timeClose() {
  2076. this.setState({
  2077. timeVisible: false,
  2078. })
  2079. },
  2080. timeDetail(record) {
  2081. console.log(record)
  2082. this.setState({
  2083. loading: true,
  2084. recordHour: record.hours,
  2085. })
  2086. $.ajax({
  2087. method: 'get',
  2088. dataType: 'json',
  2089. crossDomain: false,
  2090. url:
  2091. globalConfig.context + '/api/admin/orderProject/taskHoursDetailsList',
  2092. data: {
  2093. taskId: record.id,
  2094. },
  2095. success: function (data) {
  2096. if (data.error && data.error.length) {
  2097. message.warning(data.error[0].message)
  2098. } else {
  2099. this.setState({
  2100. dataSourceTime: data.data,
  2101. })
  2102. console.log(this.state.dataSourceTime)
  2103. }
  2104. }.bind(this),
  2105. }).always(
  2106. function () {
  2107. this.setState({
  2108. loading: false,
  2109. })
  2110. }.bind(this)
  2111. )
  2112. },
  2113. showDeleteConfirm(num, fn) {
  2114. let text = getProjectStatus(num)
  2115. confirm({
  2116. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  2117. content: (
  2118. <p style={{ fontWeight: 900, color: 'red' }}>
  2119. 当前的项目状态为{text},保存后将触发对应的催款节点!!!您确定保存?
  2120. </p>
  2121. ),
  2122. okText: '确定',
  2123. okType: 'danger',
  2124. cancelText: '取消',
  2125. onOk() {
  2126. fn()
  2127. },
  2128. onCancel() {},
  2129. })
  2130. },
  2131. // 项目发起外包
  2132. sureOut(startType) {
  2133. if (this.state.startType !== 0 && this.state.startType !== 1) {
  2134. message.warning('请选择类型')
  2135. return
  2136. }
  2137. //0正常 1专利 2软著 3审计
  2138. if (this.state.projectType === 1) {
  2139. //专利
  2140. if (this.state.patentType === -1) {
  2141. message.warning('请选择专利类型')
  2142. return
  2143. }
  2144. if (this.state.patentNameType === -1) {
  2145. message.warning('请选择专利类型名称')
  2146. return
  2147. }
  2148. if (this.state.patentNameType == 3) {
  2149. if (!this.state.patentName) {
  2150. message.warning('请填写专利名称')
  2151. return
  2152. }
  2153. }
  2154. }
  2155. if (!this.state.outsourceRemarks) {
  2156. message.warning('备注不能为空')
  2157. return
  2158. }
  2159. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝
  2160. if(!this.state.reason && (this.state.refundStatus === 2 || typeof this.state.refundStatus === 'undefined')){
  2161. message.warning('发起原因不能为空')
  2162. return
  2163. }
  2164. // if (!this.state.pictureUrl && !Array.isArray(this.state.pictureUrl)) {
  2165. // message.warning('合同扫描件不能为空')
  2166. // return
  2167. // }
  2168. // if(this.state.pictureUrl.length === 0){
  2169. // message.warning('合同扫描件不能为空')
  2170. // return
  2171. // }
  2172. let _this = this;
  2173. confirm({
  2174. title: startType === 0 ? '确定要发起外包吗?' : '确定要提交供应商信息吗?',
  2175. content: startType === 0 ? '高于总部价格,费用个人承担' : '确定提交供应商信息后,不可修改',
  2176. onOk() {
  2177. return new Promise((resolve, reject) => {
  2178. _this.setState({
  2179. loading: true,
  2180. })
  2181. let data = {
  2182. tid: _this.state.id,
  2183. orderNo: _this.state.orderNo,
  2184. type: 1, //分类 0订单 1项目
  2185. startType: _this.state.startType, //支付类型 0外包 1供应商 false 0
  2186. companyName: _this.state.companyName,
  2187. amount: _this.state.amount,
  2188. outsourceRemarks: _this.state.outsourceRemarks,
  2189. unitNumber: _this.state.unitNumber,
  2190. unitPrice: _this.state.unitPrice,
  2191. id: _this.state.refundStatus == 2 ? _this.state.mid : undefined,
  2192. }
  2193. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝 审核被驳回时和第一次发起外包时,要填写发起原因
  2194. if(_this.state.refundStatus === 2 || typeof _this.state.refundStatus === 'undefined'){
  2195. data.reason = _this.state.reason
  2196. }
  2197. if (_this.state.projectType === 1) {
  2198. data.patentType = _this.state.patentType;
  2199. data.patentNameType = _this.state.patentNameType;
  2200. if (_this.state.patentNameType == 3) {
  2201. data.patentName = _this.state.patentName;
  2202. }
  2203. }
  2204. if (_this.state.pictureUrl && Array.isArray(_this.state.pictureUrl) && _this.state.pictureUrl.length !== 0){
  2205. data.pictureUrl = _this.getUrl(_this.state.pictureUrl).length
  2206. ? _this.getUrl(_this.state.pictureUrl)
  2207. : ''
  2208. }
  2209. $.ajax({
  2210. method: 'POST',
  2211. dataType: 'json',
  2212. crossDomain: false,
  2213. url:
  2214. globalConfig.context + '/api/admin/outsourceOrg/outsourceProjectAudit',
  2215. data: data,
  2216. }).done(
  2217. function (data) {
  2218. _this.setState({
  2219. loading: false,
  2220. })
  2221. if (!data.error.length) {
  2222. resolve();
  2223. message.success('提交成功!')
  2224. _this.visitCancel()
  2225. } else {
  2226. reject();
  2227. message.warning(data.error[0].message)
  2228. }
  2229. }.bind(_this)
  2230. )
  2231. }).catch((err) => console.log(err));
  2232. },
  2233. onCancel() {},
  2234. });
  2235. },
  2236. callback(e) {
  2237. this.setState({
  2238. activeKey: e,
  2239. })
  2240. if (e == 3) {
  2241. this.orderDetailData(this.state.orderNo)
  2242. this.xiangmu(this.state.orderNo)
  2243. this.jiedian(this.state.orderNo)
  2244. this.jiedianNew(this.state.orderNo)
  2245. }
  2246. },
  2247. getOrgCodeUrlWai(e) {
  2248. this.setState({ pictureUrl: e })
  2249. },
  2250. getUrl(url) {
  2251. let theorgCodeUrl = []
  2252. if (url.length) {
  2253. let picArr = []
  2254. url.map(function (item) {
  2255. if (item.response && item.response.data && item.response.data.length) {
  2256. picArr.push(item.response.data)
  2257. }
  2258. })
  2259. theorgCodeUrl = picArr.join(',')
  2260. }
  2261. return theorgCodeUrl
  2262. },
  2263. waiDetail() {
  2264. let url = window.location.href.substring(7)
  2265. this.setState({
  2266. loading: true,
  2267. })
  2268. $.ajax({
  2269. method: 'get',
  2270. dataType: 'json',
  2271. crossDomain: false,
  2272. url:
  2273. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  2274. data: {
  2275. tid: this.state.id,
  2276. orderNo: this.state.orderNo,
  2277. },
  2278. }).done(
  2279. function (data) {
  2280. this.setState({
  2281. loading: false,
  2282. })
  2283. if (!data.error.length && data.data) {
  2284. this.setState({
  2285. startType: data.data.startType, //类型
  2286. patentType: data.data.patentType, //专利类型
  2287. patentNameType: data.data.patentNameType, //专利名称类型
  2288. patentName: data.data.patentName, //专利名称
  2289. outsourceRemarks: data.data.outsourceRemarks,
  2290. remarks: data.data.remarks,
  2291. companyName: data.data.companyName,
  2292. amount: data.data.amount,
  2293. mid: data.data.id,
  2294. unitPrice: data.data.unitPrice,
  2295. refundStatus: data.data.refundStatus,
  2296. unitNumber: data.data.unitNumber,
  2297. pictureUrl: data.data.pictureUrl
  2298. ? splitUrl(
  2299. data.data.pictureUrl,
  2300. ',',
  2301. globalConfig.avatarHost + '/upload',
  2302. url
  2303. )
  2304. : [], //图片地址
  2305. createTimes: data.data.createTimes,
  2306. auditTimes: data.data.auditTimes,
  2307. })
  2308. } else if (data.error && data.error.length) {
  2309. message.warning(data.error[0].message)
  2310. } else if (!data.data) {
  2311. this.setState({
  2312. refundStatus: undefined,
  2313. })
  2314. }
  2315. }.bind(this)
  2316. )
  2317. },
  2318. rizhi() {
  2319. this.setState({
  2320. loading: true,
  2321. })
  2322. $.ajax({
  2323. method: 'get',
  2324. dataType: 'json',
  2325. crossDomain: false,
  2326. url: '/api/admin/newOrder/selectOrderLog',
  2327. data: {
  2328. orderNo: this.state.orderNo,
  2329. },
  2330. success: function (data) {
  2331. let theArr = []
  2332. let thisData = data.data
  2333. if (!thisData.length) {
  2334. if (data.error && data.error.length) {
  2335. message.warning(data.error[0].message)
  2336. }
  2337. thisData = {}
  2338. } else {
  2339. for (let i = 0; i < data.data.length; i++) {
  2340. let thisdata = data.data[i]
  2341. theArr.push({
  2342. processName: thisdata.processName,
  2343. adminName: thisdata.adminName,
  2344. createDate: thisdata.createDate,
  2345. remarks: thisdata.remarks,
  2346. })
  2347. }
  2348. }
  2349. this.setState({
  2350. dataSourceY: theArr,
  2351. })
  2352. }.bind(this),
  2353. }).always(
  2354. function () {
  2355. this.setState({
  2356. loading: false,
  2357. })
  2358. }.bind(this)
  2359. )
  2360. },
  2361. closeOrderLog() {
  2362. this.setState({
  2363. avisible: false,
  2364. })
  2365. },
  2366. getOrderLog() {
  2367. this.setState({
  2368. avisible: true,
  2369. })
  2370. this.rizhi()
  2371. },
  2372. orderChange(key) {
  2373. this.setState({
  2374. activeKey: key,
  2375. })
  2376. if (key == 3) {
  2377. this.orderDetailData(this.state.orderNo)
  2378. this.xiangmu(this.state.orderNo)
  2379. this.jiedian(this.state.orderNo)
  2380. this.jiedianNew(this.state.orderNo)
  2381. }
  2382. if (key == 2) {
  2383. this.waiDetail()
  2384. }
  2385. },
  2386. //节点列表
  2387. jiedian(orderNos) {
  2388. $.ajax({
  2389. method: 'get',
  2390. dataType: 'json',
  2391. crossDomain: false,
  2392. url: globalConfig.context + '/api/admin/newOrder/selectOrderDun',
  2393. data: {
  2394. orderNo: orderNos,
  2395. },
  2396. success: function (data) {
  2397. let theArr = []
  2398. let thisData = []
  2399. if (data.error.length || data.data.list == '') {
  2400. if (data.error && data.error.length) {
  2401. message.warning(data.error[0].message)
  2402. }
  2403. } else {
  2404. for (let i = 0; i < data.data.length; i++) {
  2405. thisData = data.data[i]
  2406. theArr.push({
  2407. key: i,
  2408. dunSubject: thisData.dunSubject
  2409. ? thisData.dunSubject.toString()
  2410. : '', //催款科目
  2411. id: thisData.id, //节点Id
  2412. money: thisData.money, //催款金额
  2413. dunStatus: thisData.dunStatus, //催款状态
  2414. })
  2415. }
  2416. this.setState({
  2417. jiedian: theArr,
  2418. })
  2419. }
  2420. }.bind(this),
  2421. })
  2422. },
  2423. jiedianNew(orderNos) {
  2424. $.ajax({
  2425. method: 'get',
  2426. dataType: 'json',
  2427. crossDomain: false,
  2428. url:
  2429. globalConfig.context + '/api/admin/newOrderDun/selectListNewOrderDun',
  2430. data: {
  2431. orderNo: orderNos,
  2432. },
  2433. success: function (data) {
  2434. if (data.error && data.error.length) {
  2435. message.warning(data.error[0].message)
  2436. } else {
  2437. let theArr = []
  2438. let thisData = []
  2439. let arr = data.data || []
  2440. let totalCui = 0
  2441. for (let i = 0; i < arr.length; i++) {
  2442. thisData = arr[i]
  2443. totalCui += +thisData.money
  2444. theArr.push({
  2445. key: i,
  2446. dunSubject: thisData.dunSubject
  2447. ? thisData.dunSubject.toString()
  2448. : '', //催款科目
  2449. id: thisData.id, //节点Id
  2450. tid: thisData.tid, //节点指定的第三方id
  2451. money: thisData.money, //催款金额
  2452. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2453. commodityName: thisData.commodityName,
  2454. projectType: thisData.projectType,
  2455. dunTypeName: thisData.dunTypeName,
  2456. status: thisData.status,
  2457. waitDay: thisData.waitDay,
  2458. effectiveCount: thisData.effectiveCount,
  2459. startDate: thisData.startDate,
  2460. dunType: thisData.dunType,
  2461. appropriationRatio: thisData.appropriationRatio,
  2462. customizeName: thisData.customizeName,
  2463. customizeTimes: thisData.customizeTimes,
  2464. })
  2465. }
  2466. if (!totalCui) {
  2467. totalCui = 0
  2468. }
  2469. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6)
  2470. this.setState({
  2471. jiedianNew: theArr,
  2472. totalCui,
  2473. })
  2474. }
  2475. }.bind(this),
  2476. }).always(
  2477. function () {
  2478. this.setState({
  2479. loading: false,
  2480. })
  2481. }.bind(this)
  2482. )
  2483. },
  2484. orderDetailData(orderNos) {
  2485. this.setState({
  2486. loading: true,
  2487. })
  2488. $.ajax({
  2489. method: 'get',
  2490. dataType: 'json',
  2491. crossDomain: false,
  2492. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  2493. data: {
  2494. orderNo: orderNos,
  2495. },
  2496. success: function (data) {
  2497. if (data.error.length || data.data.list == '') {
  2498. if (data.error && data.error.length) {
  2499. message.warning(data.error[0].message)
  2500. this.setState({
  2501. loading: false,
  2502. })
  2503. }
  2504. } else {
  2505. let thisdata = data.data
  2506. this.setState({
  2507. loading: false,
  2508. userName: thisdata.userName,
  2509. primaryOrderNo: thisdata.primaryOrder,
  2510. additionalOrder: thisdata.additionalOrder,
  2511. contractNo: thisdata.contractNo,
  2512. orderData: thisdata,
  2513. isAddition: thisdata.additionalOrder ? true : false,
  2514. contractPictureUrl: thisdata.contractPictureUrl
  2515. ? splitUrl(
  2516. thisdata.contractPictureUrl,
  2517. ',',
  2518. globalConfig.avatarHost + '/upload'
  2519. )
  2520. : [],
  2521. })
  2522. }
  2523. }.bind(this),
  2524. })
  2525. },
  2526. //点击新增供应商
  2527. addcontactNew() {
  2528. this.state.contactListNew.push({
  2529. key: this.state.contactListNew.length,
  2530. money: '',
  2531. dunSubject: undefined,
  2532. orderNo: this.state.orderNo,
  2533. dunTarget: this.state.kehuId,
  2534. })
  2535. this.setState({
  2536. contactListNew: this.state.contactListNew,
  2537. cuiFlag: true,
  2538. })
  2539. },
  2540. //查看第三方信息表格
  2541. thirdTable(id) {
  2542. this.setState({
  2543. loadData: true,
  2544. })
  2545. $.ajax({
  2546. method: 'get',
  2547. dataType: 'json',
  2548. crossDomain: false,
  2549. url: globalConfig.context + '/api/admin/company/selectCompany',
  2550. data: {
  2551. tid: id,
  2552. },
  2553. success: function (data) {
  2554. if (data.error && data.error.length) {
  2555. message.warning(data.error[0].message)
  2556. } else {
  2557. let companyNameArr = []
  2558. let theArr = []
  2559. let thisData = []
  2560. let arr = data.data || []
  2561. let allTotalAmount = 0
  2562. let type = 0;
  2563. let patentNameType = 0;
  2564. for (let i = 0; i < arr.length; i++) {
  2565. thisData = arr[i]
  2566. allTotalAmount =
  2567. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  2568. companyNameArr.push(thisData.companyName);
  2569. thisData.key = i;
  2570. thisData.patentType = thisData.type;
  2571. theArr.push(thisData);
  2572. type=thisData.type
  2573. patentNameType= thisData.patentNameType
  2574. }
  2575. if (!allTotalAmount) {
  2576. allTotalAmount = 0
  2577. }
  2578. for(let d=0;d<theArr.length;d++){
  2579. theArr[d].companyName = theArr[d].companyName+ '-' + theArr[d].id;
  2580. companyNameArr[d] = {
  2581. companyName: theArr[d].companyName,
  2582. id: theArr[d].id,
  2583. }
  2584. }
  2585. if(type === 1 || type === 2){
  2586. this.setState({
  2587. patentType: type === 1 ? 0 : type === 2 ? 1 : -1, //0其他 1专利申请 2专利买卖
  2588. patentNameType: patentNameType, //0实用新型 1发明专利 2外观专利 3 其他
  2589. })
  2590. }
  2591. this.setState({
  2592. tid: id,
  2593. PayNodeCompany: companyNameArr,
  2594. thirdInfoList: theArr,
  2595. allTotalAmount: allTotalAmount,
  2596. },()=>{
  2597. this.projectTypeTabContent(this.state.projectType);
  2598. })
  2599. }
  2600. }.bind(this),
  2601. }).always(
  2602. function () {
  2603. this.setState({
  2604. loading: false,
  2605. })
  2606. }.bind(this)
  2607. )
  2608. },
  2609. //外包日志列表
  2610. getSelectOutsourceLog(tid){
  2611. $.ajax({
  2612. method: 'get',
  2613. dataType: 'json',
  2614. crossDomain: false,
  2615. url: globalConfig.context + '/api/admin/outsourceOrg/selectOutsourceLog',
  2616. data: {
  2617. tid: tid,
  2618. },
  2619. success: function (data) {
  2620. if (data.error.length) {
  2621. if (data.error && data.error.length) {
  2622. message.warning(data.error[0].message);
  2623. }
  2624. } else {
  2625. this.setState({
  2626. outsourceLogs: data.data
  2627. })
  2628. }
  2629. }.bind(this),
  2630. }).always(
  2631. function () {
  2632. }.bind(this)
  2633. )
  2634. },
  2635. payNodeTable(id) {
  2636. this.setState({
  2637. loadData: true,
  2638. })
  2639. $.ajax({
  2640. method: 'get',
  2641. dataType: 'json',
  2642. crossDomain: false,
  2643. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  2644. data: {
  2645. tid: id,
  2646. },
  2647. success: function (data) {
  2648. if (data.error && data.error.length) {
  2649. message.warning(data.error[0].message)
  2650. } else {
  2651. let payNodeArr = []
  2652. let thisData = []
  2653. let arr = data.data || []
  2654. // console.log('this.state.paySubject', this.state.paySubject)
  2655. //对#5283自定义的补充展示
  2656. this.state.paySubject.push({ key: '自定义', value: '0' })
  2657. for (let i = 0; i < arr.length; i++) {
  2658. thisData = arr[i]
  2659. //遍历paySubject,获取当前dunType对应的key
  2660. this.state.paySubject.map((item) => {
  2661. if (item.value == thisData.dunType) {
  2662. thisData.dunType = item.key
  2663. }
  2664. })
  2665. payNodeArr.push({
  2666. key: i,
  2667. id: thisData.id, //付款节点Id
  2668. nodeId: thisData.id, //付款节点Id
  2669. tid: thisData.tid,
  2670. companyName: thisData.companyName, //供应商名称
  2671. projectType: thisData.projectType, //项目分类
  2672. dunType: thisData.dunType, //催款分类
  2673. unitPrice: thisData.unitPrice, //单价
  2674. quantity: thisData.quantity, //数量
  2675. totalAmount: thisData.totalAmount, //总价
  2676. partyAmount: thisData.partyAmount, //付款
  2677. partyTimes: thisData.partyTimes, //付款时间
  2678. cid: thisData.cid, //机构id
  2679. status: thisData.status, //催款状态 0-未支付 1-待全款 ,2已全款 status=2的时候已经全款,申请付款按钮可以去掉了
  2680. })
  2681. }
  2682. for(let d=0;d<payNodeArr.length;d++){
  2683. payNodeArr[d].companyName = payNodeArr[d].companyName+ '-' + payNodeArr[d].cid;
  2684. }
  2685. console.log('payNodeArr:', payNodeArr)
  2686. this.setState({
  2687. tid: id,
  2688. payNodeList: payNodeArr,
  2689. })
  2690. }
  2691. }.bind(this),
  2692. }).always(
  2693. function () {
  2694. this.setState({
  2695. loading: false,
  2696. })
  2697. }.bind(this)
  2698. )
  2699. },
  2700. // 新增第三方供应商信息
  2701. addThirdList() {
  2702. this.setState({
  2703. ThirdListVisible: true,
  2704. })
  2705. },
  2706. // 新增支付节点
  2707. addPayNode() {
  2708. this.setState({
  2709. PayNodeVisible: true,
  2710. })
  2711. },
  2712. // 第三方信息自动计算总金额
  2713. calculatedAmount() {
  2714. let currentTotalPrice
  2715. currentTotalPrice = this.state.thirdUnitPrice * this.state.thirdQuantity
  2716. currentTotalPrice = currentTotalPrice.toFixed(6)
  2717. this.setState({
  2718. currentTotalPrice: currentTotalPrice,
  2719. })
  2720. },
  2721. // 付款节点自动计算总金额
  2722. payNodeCalculatedAmount(num) {
  2723. let currentTotalPrice,quantity,unitPrice
  2724. //获取当前供应商名称对应的单价并更新
  2725. this.state.thirdInfoList.forEach((item) => {
  2726. if (item.companyName === this.state.thirdCompanyName) {
  2727. currentTotalPrice = num ? item.unitPrice * num : item.quantity * item.unitPrice;
  2728. currentTotalPrice = currentTotalPrice.toFixed(6);
  2729. quantity = num ? num : item.quantity;
  2730. unitPrice = item.unitPrice;
  2731. }
  2732. })
  2733. this.setState({
  2734. payNodeQuantity: num ? num : quantity,
  2735. })
  2736. if(this.state.projectType !== 2){
  2737. this.setState({
  2738. currentTotalPrice: currentTotalPrice,
  2739. thirdUnitPrice: unitPrice
  2740. })
  2741. }
  2742. },
  2743. // 保存供应商信息
  2744. handleCancelq() {
  2745. let api
  2746. if (this.state.ThirdId) {
  2747. //修改
  2748. api = '/api/admin/company/updateCompany'
  2749. } else {
  2750. //新增
  2751. api = '/api/admin/company/addCompany'
  2752. }
  2753. let customerId = 0;
  2754. let isHave =this.state.customerArr.some((value)=>{
  2755. if(value.companyName === this.state.thirdCompanyName){
  2756. customerId = value.id
  2757. return true;
  2758. }
  2759. });
  2760. if(!isHave && this.state.projectType !== 0){
  2761. message.warning('请输入正确的供应商名称')
  2762. return;
  2763. }
  2764. this.setState({
  2765. loading: true,
  2766. })
  2767. // material: this.state.thirdMaterial, //材料
  2768. // urgent: this.state.thirdUrgent, //加急
  2769. // unitPrice: this.state.thirdUnitPrice, //单价
  2770. let data = {
  2771. id: this.state.ThirdId, //id
  2772. tid: this.state.tid, //订单编号
  2773. companyName: this.state.thirdCompanyName, //第三方名称
  2774. quantity: this.state.thirdQuantity, //数量
  2775. // totalAmount: this.state.currentTotalPrice, //总价
  2776. remarks: this.state.thirdRemarks, //备注
  2777. }
  2778. if(this.state.projectType === 0){
  2779. data.unitPrice = this.state.thirdUnitPrice;
  2780. }
  2781. if(isHave){
  2782. data.cid = customerId ////公司id
  2783. }
  2784. $.ajax({
  2785. url: globalConfig.context + api,
  2786. method: 'post',
  2787. dataType: 'json',
  2788. crossDomain: false,
  2789. data: data,
  2790. }).done(
  2791. function (data) {
  2792. this.setState({
  2793. loading: false,
  2794. })
  2795. if (!data.error.length) {
  2796. message.success('保存成功!')
  2797. this.setState({
  2798. ThirdId: '',
  2799. ThirdListVisible: false,
  2800. thirdCompanyName: '', //第三方名称
  2801. thirdUnitPrice: '', //单价
  2802. thirdQuantity: '', //数量
  2803. currentTotalPrice: '', //总价
  2804. thirdRemarks: '',
  2805. thirdUrgent: 0,
  2806. })
  2807. // this.visitCancel();
  2808. this.thirdTable(this.state.tid)
  2809. } else {
  2810. message.warning(data.error[0].message)
  2811. }
  2812. }.bind(this)
  2813. )
  2814. },
  2815. //保存付款节点
  2816. savePayNode() {
  2817. let api
  2818. if (this.state.ThirdId) {
  2819. //修改
  2820. api = '/api/admin/company/updatePaymentNode'
  2821. } else {
  2822. //新增
  2823. api = '/api/admin/company/addPaymentNode'
  2824. }
  2825. // totalAmount: this.state.currentTotalPrice, //总价
  2826. // partyAmount: this.state.partyAmount, //付款金额
  2827. //
  2828. let customerId=0;
  2829. this.state.PayNodeCompany.some((value)=>{
  2830. if(value.companyName === this.state.thirdCompanyName){
  2831. customerId = value.id
  2832. return true;
  2833. }
  2834. });
  2835. if(!this.state.thirdCompanyName){
  2836. message.error('请选择供应商名称');
  2837. return;
  2838. }
  2839. if(!this.state.paySubjectName){
  2840. message.error('请选择付款科目');
  2841. return;
  2842. }
  2843. if(!this.state.payNodeQuantity){
  2844. message.error('请输入数量');
  2845. return;
  2846. }
  2847. let data = {
  2848. id: this.state.ThirdId, //id
  2849. tid: this.state.tid, //订单编号
  2850. cid: customerId,//对应的第三方信息
  2851. companyName: this.state.thirdCompanyName.split('-')[0], //第三方名称
  2852. quantity: this.state.payNodeQuantity, //数量
  2853. dunType: this.state.dunType, //催款节点
  2854. projectType: this.state.cSort, //项目分类
  2855. }
  2856. if(this.state.paySubjectName === '0'){
  2857. if(!this.state.partyTimes){
  2858. message.error('请选择付款时间');
  2859. return;
  2860. }
  2861. data.partyTimes = this.state.partyTimes //付款时间
  2862. }
  2863. if(this.state.projectType !== 2){ //其他类型 0正常 1专利 2软著 3审计
  2864. data.totalAmount = this.state.currentTotalPrice //总价
  2865. data.unitPrice = this.state.thirdUnitPrice //单价
  2866. }
  2867. this.setState({
  2868. loading: true,
  2869. })
  2870. $.ajax({
  2871. url: globalConfig.context + api,
  2872. method: 'post',
  2873. dataType: 'json',
  2874. crossDomain: false,
  2875. data: data,
  2876. }).done(
  2877. function (data) {
  2878. this.setState({
  2879. loading: false,
  2880. })
  2881. if (!data.error.length) {
  2882. message.success('保存成功!')
  2883. this.setState({
  2884. ThirdId: '',
  2885. PayNodeVisible: false,
  2886. thirdCompanyName: '', //第三方名称
  2887. paySubjectName: '', //付款科目名称
  2888. thirdUnitPrice: '', //单价
  2889. thirdQuantity: '', //数量
  2890. payNodeQuantity: 1, //付款节点数量
  2891. currentTotalPrice: '', //总价
  2892. partyAmount: '', //付款金额
  2893. partyTimes: '', //付款时间
  2894. dunType: '', //催款节点
  2895. })
  2896. // this.visitCancel();
  2897. this.payNodeTable(this.state.tid)
  2898. } else {
  2899. message.warning(data.error[0].message)
  2900. }
  2901. }.bind(this)
  2902. )
  2903. },
  2904. // 取消
  2905. handleCancelclose() {
  2906. this.setState({
  2907. PayNodeVisible: false,
  2908. payNodeInfor: {},
  2909. ThirdId: '',
  2910. ThirdListVisible: false,
  2911. thirdCompanyName: '', //第三方名称
  2912. paySubjectName: '', //付款科目名称
  2913. thirdUnitPrice: '', //单价
  2914. partyTimes: '',
  2915. thirdQuantity: 1, //数量
  2916. payNodeQuantity: 1,
  2917. currentTotalPrice: '', //总价
  2918. thirdRemarks: '',
  2919. thirdUrgent: 0, //加急状态
  2920. })
  2921. },
  2922. // 删除供应商信息
  2923. confirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  2924. this.setState({
  2925. loading: true,
  2926. ThirdListVisible: false,
  2927. })
  2928. let id = '';
  2929. if(index === -1){
  2930. if(this.state.thirdInfoList.length === 1){
  2931. id = this.state.thirdInfoList[0].id
  2932. }else{
  2933. this.state.thirdInfoList.map((value,index)=>{
  2934. id+=value.id+',';
  2935. })
  2936. }
  2937. }else{
  2938. id = index.id
  2939. }
  2940. $.ajax({
  2941. url: globalConfig.context + '/api/admin/company/deleteCompany',
  2942. method: 'post',
  2943. data: {
  2944. id: id,
  2945. },
  2946. }).done(
  2947. function (data) {
  2948. this.setState({
  2949. loading: false,
  2950. })
  2951. if (!data.error.length) {
  2952. message.success('删除成功!')
  2953. this.thirdTable(this.state.tid)
  2954. resolve();
  2955. } else {
  2956. message.warning(data.error[0].message)
  2957. reject();
  2958. }
  2959. }.bind(this)
  2960. )
  2961. },
  2962. // 删除付款节点
  2963. payNodeConfirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  2964. this.setState({
  2965. loading: true,
  2966. PayNodeVisible: false,
  2967. })
  2968. let id = '';
  2969. if(index === -1){
  2970. this.state.payNodeList.map((value,index)=>{
  2971. id+=value.id+',';
  2972. })
  2973. }else{
  2974. id = index.id
  2975. }
  2976. $.ajax({
  2977. url: globalConfig.context + '/api/admin/company/deletePaymentNode',
  2978. method: 'post',
  2979. data: {
  2980. id: id,
  2981. },
  2982. }).done(
  2983. function (data) {
  2984. this.setState({
  2985. loading: false,
  2986. })
  2987. if (!data.error.length) {
  2988. message.success('删除成功!')
  2989. resolve();
  2990. this.payNodeTable(this.state.tid)
  2991. } else {
  2992. message.warning(data.error[0].message)
  2993. reject();
  2994. }
  2995. }.bind(this)
  2996. )
  2997. },
  2998. //点击供应商详情
  2999. tableRowClickOne(record) {
  3000. this.setState({
  3001. ThirdListVisible: true,
  3002. ThirdId: record.id, //供应商id
  3003. thirdCompanyName: record.companyName, //第三方名称
  3004. thirdUnitPrice: record.unitPrice, //单价
  3005. thirdQuantity: record.quantity, //数量
  3006. currentTotalPrice: record.totalAmount, //总价
  3007. thirdMaterial: record.material, //有无材料
  3008. thirdUrgent: record.urgent, //加急情况
  3009. thirdRemarks: record.remarks,
  3010. audit: record.audit,//审计
  3011. assets: record.assets,//公司资产
  3012. income: record.income,//收入
  3013. })
  3014. },
  3015. //点击付款节点详情
  3016. payNodeTableRowClickOne(record) {
  3017. this.setState({
  3018. PayNodeVisible: true,
  3019. ThirdId: record.id, //供应商id
  3020. thirdCompanyName: record.companyName, //第三方名称
  3021. thirdUnitPrice: record.unitPrice, //单价
  3022. thirdQuantity: record.quantity, //供应商数量
  3023. payNodeQuantity: record.quantity, //付款节点数量
  3024. currentTotalPrice: record.totalAmount, //总价
  3025. partyTimes: record.partyTimes,
  3026. paySubjectName: record.dunType,
  3027. payNodeInfor: record, //付款节点详情
  3028. })
  3029. },
  3030. render() {
  3031. const formItemLayout = {
  3032. labelCol: { span: 8 },
  3033. wrapperCol: { span: 14 },
  3034. }
  3035. let departmentArr = this.state.departmentArr || []
  3036. return (
  3037. <div className="user-content">
  3038. {this.state.resVisible ? (
  3039. <ResolutionDetail
  3040. cancel={this.resCancel}
  3041. detail={this.state.resRecord}
  3042. visible={this.state.resVisible}
  3043. id={this.state.resRecord.orderNo}
  3044. />
  3045. ) : (
  3046. ''
  3047. )}
  3048. <ShowModalDiv ShowModal={this.state.showModal} />
  3049. <div className="content-title" style={{ marginBottom: 10 }}>
  3050. <span style={{ fontWeight: 900, fontSize: 16 }}>项目任务</span>
  3051. </div>
  3052. <Tabs defaultActiveKey="2" className="test" bordered>
  3053. <TabPane tab="更改表格显示数据" key="1">
  3054. <div style={{ marginLeft: 10 }}>
  3055. <ChooseList
  3056. columns={this.state.columns}
  3057. changeFn={this.changeList}
  3058. changeList={this.state.changeList}
  3059. top={55}
  3060. margin={11}
  3061. />
  3062. </div>
  3063. </TabPane>
  3064. <TabPane tab="搜索" key="2">
  3065. <div className="user-search" style={{ marginLeft: 10 }}>
  3066. <Input
  3067. placeholder="客户名称"
  3068. value={this.state.nameSearch}
  3069. onChange={(e) => {
  3070. this.setState({ nameSearch: e.target.value })
  3071. }}
  3072. />
  3073. <Input
  3074. placeholder="订单编号"
  3075. value={this.state.orderNoSearch}
  3076. onChange={(e) => {
  3077. this.setState({ orderNoSearch: e.target.value })
  3078. }}
  3079. />
  3080. <Input
  3081. placeholder="合同编号"
  3082. value={this.state.contractNoSearch}
  3083. onChange={(e) => {
  3084. this.setState({ contractNoSearch: e.target.value })
  3085. }}
  3086. />
  3087. <Input
  3088. placeholder="项目编号"
  3089. value={this.state.taskNoSearch}
  3090. onChange={(e) => {
  3091. this.setState({ taskNoSearch: e.target.value })
  3092. }}
  3093. />
  3094. <Select
  3095. placeholder="选择部门"
  3096. style={{ width: 150, marginRight: '10px' }}
  3097. value={this.state.departmenttSearch}
  3098. onChange={(e) => {
  3099. this.setState({ departmenttSearch: e })
  3100. }}
  3101. >
  3102. {departmentArr.map(function (item) {
  3103. return (
  3104. <Select.Option key={item.id}>{item.name}</Select.Option>
  3105. )
  3106. })}
  3107. </Select>
  3108. <Select
  3109. placeholder="项目状态"
  3110. style={{ width: 150, marginRight: '10px' }}
  3111. value={this.state.projectStatusSearch}
  3112. onChange={(e) => {
  3113. this.setState({ projectStatusSearch: e })
  3114. console.log(this.state.projectStatusSearch)
  3115. }}
  3116. >
  3117. {projectStatus.map(function (item) {
  3118. return (
  3119. <Select.Option key={item.value}>{item.key}</Select.Option>
  3120. )
  3121. })}
  3122. </Select>
  3123. <Select
  3124. placeholder="特批状态"
  3125. style={{ width: 150, marginRight: '10px' }}
  3126. value={this.state.approvalSearch}
  3127. onChange={(e) => {
  3128. this.setState({ approvalSearch: e })
  3129. console.log(this.state.approvalSearch)
  3130. }}
  3131. >
  3132. <Select.Option key={0}>非特批</Select.Option>
  3133. <Select.Option key={1}>特批</Select.Option>
  3134. </Select>
  3135. <Select
  3136. placeholder="外包状态"
  3137. style={{ width: 150, marginRight: '10px' }}
  3138. value={this.state.outsourceStatusSearch}
  3139. onChange={(e) => {
  3140. this.setState({ outsourceStatusSearch: e })
  3141. console.log(this.state.outsourceStatusSearch)
  3142. }}
  3143. >
  3144. <Select.Option key={0}>外包待审核</Select.Option>
  3145. {/* <Select.Option key={1}>外包审核通过</Select.Option> */}
  3146. <Select.Option key={2}>外包审核驳回</Select.Option>
  3147. <Select.Option key={999}>全部</Select.Option>
  3148. </Select>
  3149. <Button type="primary" onClick={this.search}>
  3150. 搜索
  3151. </Button>
  3152. <Button
  3153. onClick={(e) => {
  3154. this.reset(true)
  3155. }}
  3156. >
  3157. 重置
  3158. </Button>
  3159. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3160. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3161. <span>订单时间 :</span>
  3162. <RangePicker
  3163. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3164. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3165. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3166. </div> */}
  3167. </div>
  3168. </TabPane>
  3169. <TabPane tab="导出Excel" key="3">
  3170. <Button
  3171. type="primary"
  3172. style={{ margin: '11px 0 10px 10px' }}
  3173. onClick={this.exportExec}
  3174. >
  3175. 导出Excel
  3176. </Button>
  3177. </TabPane>
  3178. {/* <TabPane tab="批量操作" key="6">
  3179. <Button
  3180. type="primary"
  3181. disabled={this.state.selectedRowKeys.length == 0}
  3182. style={{ margin: "0px 0px 10px 10px" }}
  3183. onClick={e => {
  3184. e.stopPropagation(),
  3185. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3186. }}
  3187. >
  3188. 转交
  3189. </Button>
  3190. </TabPane> */}
  3191. </Tabs>
  3192. {/* <div className="user-search">
  3193. <Input
  3194. placeholder="客户名称"
  3195. value={this.state.nameSearch}
  3196. onChange={e => {
  3197. this.setState({ nameSearch: e.target.value });
  3198. }}
  3199. />
  3200. <Input
  3201. placeholder="订单编号"
  3202. value={this.state.orderNoSearch}
  3203. onChange={e => {
  3204. this.setState({ orderNoSearch: e.target.value });
  3205. }}
  3206. />
  3207. <Input
  3208. placeholder="项目编号"
  3209. value={this.state.taskNoSearch}
  3210. onChange={e => {
  3211. this.setState({ taskNoSearch: e.target.value });
  3212. }}
  3213. />
  3214. <Select
  3215. placeholder="选择部门"
  3216. style={{ width: 150, marginRight: "10px" }}
  3217. value={this.state.departmenttSearch}
  3218. onChange={e => {
  3219. this.setState({ departmenttSearch: e });
  3220. }}
  3221. >
  3222. {departmentArr.map(function(item) {
  3223. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  3224. })}
  3225. </Select>
  3226. <Button type="primary" onClick={this.search}>
  3227. 搜索
  3228. </Button>
  3229. <Button onClick={this.reset}>重置</Button>
  3230. <Button
  3231. type="primary"
  3232. style={{ marginLeft: "10px" }}
  3233. onClick={this.exportExec}
  3234. >
  3235. 导出Excel
  3236. </Button>
  3237. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3238. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3239. <span>订单时间 :</span>
  3240. <RangePicker
  3241. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3242. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3243. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3244. </div>
  3245. </div> */}
  3246. <div className="patent-table">
  3247. <Spin spinning={this.state.loading}>
  3248. <Table
  3249. columns={
  3250. this.state.changeList == undefined
  3251. ? this.state.columns
  3252. : this.state.changeList
  3253. }
  3254. dataSource={this.state.dataSource}
  3255. pagination={this.state.pagination}
  3256. scroll={{ x: 'max-content', y: 0 }}
  3257. onRowClick={this.tableRowClick.bind(this)}
  3258. bordered
  3259. size={'small'}
  3260. />
  3261. </Spin>
  3262. </div>
  3263. <Assign
  3264. title="项目"
  3265. selApi={'/api/admin/orderProject/projectDistribution'}
  3266. data={this.state.assignData}
  3267. showDesc={this.state.assignVisible}
  3268. closeDesc={this.closeAssign.bind(this)}
  3269. fenpaiData={8}
  3270. specially={0}
  3271. roleName={this.state.nub}
  3272. requestMethod={'post'}
  3273. flag={this.state.flag}
  3274. all={this.state}
  3275. />
  3276. {this.state.visible ? <Modal
  3277. className="customeDetails"
  3278. footer=""
  3279. title=""
  3280. width="900px"
  3281. visible={this.state.visible}
  3282. onOk={this.visitOk}
  3283. onCancel={this.visitCancel}
  3284. >
  3285. <Tabs
  3286. activeKey={this.state.activeKey}
  3287. onChange={(e) => {
  3288. this.callback(e)
  3289. if (e == 2) {
  3290. this.waiDetail();
  3291. this.thirdTable(this.state.tid);
  3292. this.payNodeTable(this.state.tid);
  3293. this.getSelectOutsourceLog(this.state.tid);
  3294. }
  3295. }}
  3296. >
  3297. <TabPane tab="项目概况" key="1">
  3298. <Form
  3299. layout="horizontal"
  3300. onSubmit={this.handleSubmit}
  3301. id="demand-form"
  3302. style={{ paddingBottom: '00px' }}
  3303. >
  3304. <Spin spinning={this.state.loading}>
  3305. <div className="clearfix">
  3306. <div className="clearfix">
  3307. <FormItem
  3308. className="half-item"
  3309. {...formItemLayout}
  3310. label="当前项目情况"
  3311. >
  3312. <Radio.Group
  3313. value={this.state.status}
  3314. onChange={(e) => {
  3315. this.setState({ status: e.target.value })
  3316. }}
  3317. >
  3318. <Radio value={0}>开启</Radio>
  3319. <Radio value={1}>暂停</Radio>
  3320. </Radio.Group>
  3321. <Button
  3322. type="primary"
  3323. size="small"
  3324. style={{ marginTop: '5px', position: 'absolute' }}
  3325. onClick={this.caozuorizhi}
  3326. >
  3327. 操作日志
  3328. </Button>
  3329. </FormItem>
  3330. <FormItem
  3331. className="half-item"
  3332. {...formItemLayout}
  3333. label="合同编号"
  3334. >
  3335. <span>{this.state.contractNo}</span>
  3336. </FormItem>
  3337. </div>
  3338. <div className="clearfix">
  3339. <FormItem
  3340. className="half-item"
  3341. {...formItemLayout}
  3342. label="项目状态"
  3343. >
  3344. <Select
  3345. placeholder="选择项目状态"
  3346. style={{ width: '200px' }}
  3347. value={this.state.projectStatus}
  3348. onChange={(e) => {
  3349. this.setState({ projectStatus: e })
  3350. }}
  3351. >
  3352. {projectStatus.map(function (item) {
  3353. return (
  3354. <Select.Option key={item.value}>
  3355. {item.key}
  3356. </Select.Option>
  3357. )
  3358. })}
  3359. </Select>
  3360. </FormItem>
  3361. <FormItem
  3362. className="half-item"
  3363. {...formItemLayout}
  3364. label="是否特批"
  3365. >
  3366. <span>{getApproval(this.state.approval)}</span>
  3367. </FormItem>
  3368. <FormItem
  3369. className="half-item"
  3370. {...formItemLayout}
  3371. label="结算状态"
  3372. >
  3373. <span>
  3374. {getLiquidationStatus(this.state.liquidationStatus)}
  3375. </span>
  3376. </FormItem>
  3377. <FormItem
  3378. className="half-item"
  3379. {...formItemLayout}
  3380. label="流程状态"
  3381. >
  3382. <span>
  3383. {getProcessStatus(this.state.processStatus)}
  3384. </span>
  3385. </FormItem>
  3386. <FormItem
  3387. className="half-item"
  3388. {...formItemLayout}
  3389. label="订单编号"
  3390. >
  3391. <span>{this.state.orderNo}</span>
  3392. </FormItem>
  3393. </div>
  3394. <div className="clearfix">
  3395. <FormItem
  3396. className="half-item"
  3397. {...formItemLayout}
  3398. label="满意度表格"
  3399. >
  3400. <Radio.Group
  3401. value={this.state.formRetrieve}
  3402. onChange={(e) => {
  3403. this.setState({ formRetrieve: e.target.value })
  3404. }}
  3405. >
  3406. <Radio value={0}>未收回</Radio>
  3407. <Radio value={1}>已收回</Radio>
  3408. <Radio value={2}>其他</Radio>
  3409. </Radio.Group>
  3410. </FormItem>
  3411. <FormItem
  3412. className="half-item"
  3413. {...formItemLayout}
  3414. label="退单"
  3415. >
  3416. <Radio.Group
  3417. value={this.state.taskRefund}
  3418. onChange={(e) => {
  3419. this.setState({ taskRefund: e.target.value })
  3420. }}
  3421. >
  3422. <Radio value={0}>已完成</Radio>
  3423. <Radio value={1}>未完成</Radio>
  3424. <Radio value={2}>其他</Radio>
  3425. </Radio.Group>
  3426. </FormItem>
  3427. </div>
  3428. <div className="clearfix">
  3429. {
  3430. <FormItem
  3431. className="half-item"
  3432. {...formItemLayout}
  3433. label="(满意度)备注"
  3434. >
  3435. <Input
  3436. type="textarea"
  3437. placeholder="请输入备注"
  3438. rows={2}
  3439. value={this.state.retrieveContent}
  3440. onChange={(e) => {
  3441. this.setState({
  3442. retrieveContent: e.target.value,
  3443. })
  3444. }}
  3445. />
  3446. </FormItem>
  3447. }
  3448. {
  3449. <FormItem
  3450. className="half-item"
  3451. {...formItemLayout}
  3452. label="(退单)备注"
  3453. >
  3454. <Input
  3455. type="textarea"
  3456. placeholder="请输入备注"
  3457. rows={2}
  3458. value={this.state.refundContent}
  3459. onChange={(e) => {
  3460. this.setState({ refundContent: e.target.value })
  3461. }}
  3462. />
  3463. </FormItem>
  3464. }
  3465. </div>
  3466. <div className="clearfix">
  3467. <h3 className="sub-title">订单负责人信息</h3>
  3468. <FormItem
  3469. className="half-item"
  3470. {...formItemLayout}
  3471. label="负责人"
  3472. >
  3473. <span>
  3474. {this.state.salesmanName +
  3475. '(' +
  3476. this.state.depName +
  3477. ')'}
  3478. </span>
  3479. </FormItem>
  3480. <FormItem
  3481. className="half-item"
  3482. {...formItemLayout}
  3483. label="负责人电话"
  3484. >
  3485. <span>{this.state.salesmanMobile}</span>
  3486. </FormItem>
  3487. <FormItem
  3488. className="half-item"
  3489. {...formItemLayout}
  3490. label="当前财务负责人"
  3491. >
  3492. <span>{this.state.nowFinance}</span>
  3493. </FormItem>
  3494. <FormItem
  3495. className="half-item"
  3496. {...formItemLayout}
  3497. label="当前财务负责人电话"
  3498. >
  3499. <span>{this.state.nowFinanceMobile}</span>
  3500. </FormItem>
  3501. <FormItem
  3502. className="half-item"
  3503. {...formItemLayout}
  3504. style={{ opacity: '.5' }}
  3505. label="原负责人"
  3506. >
  3507. <span>{this.state.oldSalesmanName}</span>
  3508. </FormItem>
  3509. <FormItem
  3510. className="half-item"
  3511. {...formItemLayout}
  3512. style={{ opacity: '.5' }}
  3513. label="原负责人电话"
  3514. >
  3515. <span>{this.state.oldSalesmanMobile}</span>
  3516. </FormItem>
  3517. <FormItem
  3518. className="half-item"
  3519. {...formItemLayout}
  3520. style={{ opacity: '.5' }}
  3521. label="实际财务操作人"
  3522. >
  3523. <span>{this.state.financeName}</span>
  3524. </FormItem>
  3525. <FormItem
  3526. className="half-item"
  3527. {...formItemLayout}
  3528. style={{ opacity: '.5' }}
  3529. label="实际财务操作人电话"
  3530. >
  3531. <span>{this.state.financeMobile}</span>
  3532. </FormItem>
  3533. <FormItem
  3534. className="half-item"
  3535. {...formItemLayout}
  3536. label="订单留言"
  3537. >
  3538. <span>{this.state.orderRemarks}</span>
  3539. </FormItem>
  3540. <FormItem
  3541. className="half-item"
  3542. {...formItemLayout}
  3543. label=""
  3544. >
  3545. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  3546. </FormItem>
  3547. <OrderRiZi
  3548. dataSourcerizhi={this.state.dataSourceY}
  3549. closeOrderLog={this.closeOrderLog}
  3550. visible={this.state.avisible}
  3551. loading={this.state.loading}
  3552. />
  3553. </div>
  3554. {/*<div className="clearfix">*/}
  3555. {/* <h3 className="sub-title">外包信息</h3>*/}
  3556. {/* <FormItem*/}
  3557. {/* className="half-item"*/}
  3558. {/* {...formItemLayout}*/}
  3559. {/* label="外包公司"*/}
  3560. {/* >*/}
  3561. {/* <Input*/}
  3562. {/* value={this.state.outsourceName}*/}
  3563. {/* onChange={(e) => {*/}
  3564. {/* this.setState({*/}
  3565. {/* outsourceName: e.target.value,*/}
  3566. {/* })*/}
  3567. {/* }}*/}
  3568. {/* placeholder="请输入外包公司"*/}
  3569. {/* style={{ width: '200px' }}*/}
  3570. {/* />*/}
  3571. {/* </FormItem>*/}
  3572. {/* <FormItem*/}
  3573. {/* className="half-item"*/}
  3574. {/* {...formItemLayout}*/}
  3575. {/* label="外包成本(万元)"*/}
  3576. {/* >*/}
  3577. {/* <Input*/}
  3578. {/* value={this.state.outsourcePrice}*/}
  3579. {/* onChange={(e) => {*/}
  3580. {/* this.setState({*/}
  3581. {/* outsourcePrice: e.target.value,*/}
  3582. {/* })*/}
  3583. {/* }}*/}
  3584. {/* placeholder="请输入外包成本"*/}
  3585. {/* style={{ width: '200px' }}*/}
  3586. {/* />*/}
  3587. {/* </FormItem>*/}
  3588. {/*</div>*/}
  3589. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3590. <div className="clearfix">
  3591. <h3 className="sub-title">联系信息</h3>
  3592. <FormItem
  3593. className="half-item"
  3594. {...formItemLayout}
  3595. label="客户名称"
  3596. >
  3597. <span>{this.state.userName}</span>
  3598. </FormItem>
  3599. <FormItem
  3600. className="half-item"
  3601. {...formItemLayout}
  3602. label="企业法人"
  3603. >
  3604. <Input
  3605. placeholder="请输入法人名称"
  3606. value={this.state.legalPerson}
  3607. style={{ width: '200px' }}
  3608. onChange={(e) => {
  3609. this.setState({ legalPerson: e.target.value })
  3610. }}
  3611. ref="commodityQuantity"
  3612. />
  3613. </FormItem>
  3614. <FormItem
  3615. className="half-item"
  3616. {...formItemLayout}
  3617. label="法人电话"
  3618. >
  3619. <Input
  3620. placeholder="请输入法人电话"
  3621. value={this.state.legalPersonTel}
  3622. style={{ width: '200px' }}
  3623. onChange={(e) => {
  3624. this.setState({ legalPersonTel: e.target.value })
  3625. }}
  3626. ref="commodityQuantity"
  3627. />
  3628. </FormItem>
  3629. <FormItem
  3630. className="half-item"
  3631. {...formItemLayout}
  3632. label="客户联系人"
  3633. >
  3634. <Input
  3635. placeholder="请输入联系人名称"
  3636. value={this.state.contacts}
  3637. style={{ width: '200px' }}
  3638. onChange={(e) => {
  3639. this.setState({ contacts: e.target.value })
  3640. }}
  3641. ref="commodityQuantity"
  3642. />
  3643. </FormItem>
  3644. <FormItem
  3645. className="half-item"
  3646. {...formItemLayout}
  3647. label="联系人电话"
  3648. >
  3649. <Input
  3650. placeholder="请输入联系人电话"
  3651. value={this.state.contactMobile}
  3652. style={{ width: '200px' }}
  3653. onChange={(e) => {
  3654. this.setState({ contactMobile: e.target.value })
  3655. }}
  3656. ref="commodityQuantity"
  3657. />
  3658. </FormItem>
  3659. <FormItem
  3660. className="half-item"
  3661. {...formItemLayout}
  3662. label="企业地址"
  3663. >
  3664. <Cascader
  3665. options={areaSelect()}
  3666. value={this.state.ProvinceCity}
  3667. placeholder="选择城市"
  3668. style={{ width: '200px' }}
  3669. onChange={(e) => {
  3670. this.setState({ ProvinceCity: e })
  3671. }}
  3672. />
  3673. </FormItem>
  3674. <FormItem
  3675. className="half-item"
  3676. {...formItemLayout}
  3677. label=""
  3678. ></FormItem>
  3679. <FormItem
  3680. className="half-item"
  3681. {...formItemLayout}
  3682. label=""
  3683. >
  3684. <Input
  3685. placeholder="请输入详细地址"
  3686. value={this.state.postalAddress}
  3687. style={{ width: '200px', marginLeft: '12em' }}
  3688. onChange={(e) => {
  3689. this.setState({ postalAddress: e.target.value })
  3690. }}
  3691. ref="commodityQuantity"
  3692. />
  3693. </FormItem>
  3694. </div>
  3695. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3696. <div className="clearfix">
  3697. <h3 className="sub-title">项目信息</h3>
  3698. <FormItem
  3699. className="half-item"
  3700. {...formItemLayout}
  3701. label="项目编号"
  3702. >
  3703. <span>
  3704. {this.state.splitStatus == 2
  3705. ? this.state.splitSuper + '-' + this.state.splitId
  3706. : this.state.id}
  3707. </span>
  3708. </FormItem>
  3709. <FormItem
  3710. className="half-item"
  3711. {...formItemLayout}
  3712. label="项目名称"
  3713. >
  3714. <span>{this.state.taskName}</span>
  3715. </FormItem>
  3716. <FormItem
  3717. className="half-item"
  3718. {...formItemLayout}
  3719. label="项目状态"
  3720. >
  3721. <Select
  3722. placeholder="选择项目状态"
  3723. style={{ width: '200px' }}
  3724. value={this.state.taskStatus}
  3725. onChange={(e) => {
  3726. this.setState({ taskStatus: e })
  3727. }}
  3728. >
  3729. {taskStatus.map(function (item) {
  3730. return (
  3731. <Select.Option key={item.value}>
  3732. {item.key}
  3733. </Select.Option>
  3734. )
  3735. })}
  3736. </Select>
  3737. </FormItem>
  3738. <FormItem
  3739. className="half-item"
  3740. {...formItemLayout}
  3741. label="项目类别"
  3742. >
  3743. <span>{this.state.cname}</span>
  3744. </FormItem>
  3745. <FormItem
  3746. className="half-item"
  3747. {...formItemLayout}
  3748. label="证书编号"
  3749. >
  3750. <Input
  3751. placeholder="请输入证书编号"
  3752. value={this.state.certificateNumber}
  3753. style={{ width: '200px' }}
  3754. onChange={(e) => {
  3755. this.setState({
  3756. certificateNumber: e.target.value,
  3757. })
  3758. }}
  3759. ref="commodityQuantity"
  3760. />
  3761. </FormItem>
  3762. </div>
  3763. <div className="clearfix">
  3764. <h3 className="sub-title">申报系统账户信息</h3>
  3765. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  3766. <FormItem
  3767. className="half-item"
  3768. {...formItemLayout}
  3769. label="用户名"
  3770. >
  3771. <Input
  3772. placeholder="请输入用户名"
  3773. value={this.state.declareUser}
  3774. style={{ width: '200px' }}
  3775. onChange={(e) => {
  3776. this.setState({ declareUser: e.target.value })
  3777. }}
  3778. />
  3779. </FormItem>
  3780. <FormItem
  3781. className="half-item"
  3782. {...formItemLayout}
  3783. label="密码"
  3784. >
  3785. <Input
  3786. placeholder="请输入密码"
  3787. value={this.state.declarePwd}
  3788. style={{ width: '200px' }}
  3789. onChange={(e) => {
  3790. this.setState({ declarePwd: e.target.value })
  3791. }}
  3792. />
  3793. </FormItem>
  3794. </div>
  3795. <div className="clearfix">
  3796. <h3 className="sub-title">项目申报进度</h3>
  3797. <FormItem
  3798. className="half-item"
  3799. {...formItemLayout}
  3800. label="申报批次"
  3801. >
  3802. <Select
  3803. style={{ width: 200 }}
  3804. placeholder="请选择批次"
  3805. value={
  3806. this.state.declarationBatch
  3807. ? this.state.declarationBatch
  3808. : undefined
  3809. }
  3810. onChange={(e) => {
  3811. this.setState({
  3812. declarationBatch: e,
  3813. })
  3814. }}
  3815. >
  3816. <Option value={1}>第一批</Option>
  3817. <Option value={2}>第二批</Option>
  3818. <Option value={3}>第三批</Option>
  3819. <Option value={4}>第四批</Option>
  3820. </Select>
  3821. </FormItem>
  3822. <FormItem
  3823. className="half-item"
  3824. {...formItemLayout}
  3825. label="启动时间"
  3826. >
  3827. <DatePicker
  3828. style={{
  3829. marginTop: '2px',
  3830. width: '200px',
  3831. height: '32px',
  3832. }}
  3833. showTime
  3834. format="YYYY-MM-DD"
  3835. onOk={() => {}}
  3836. value={
  3837. this.state.startDate
  3838. ? moment(this.state.startDate)
  3839. : null
  3840. }
  3841. onChange={(data, dataString) => {
  3842. this.setState({ startDate: dataString })
  3843. }}
  3844. />
  3845. </FormItem>
  3846. <FormItem
  3847. className="half-item"
  3848. {...formItemLayout}
  3849. label="完成时间"
  3850. >
  3851. <DatePicker
  3852. style={{
  3853. marginTop: '2px',
  3854. width: '200px',
  3855. height: '32px',
  3856. }}
  3857. showTime
  3858. format="YYYY-MM-DD"
  3859. onOk={() => {}}
  3860. value={
  3861. this.state.endDate
  3862. ? moment(this.state.endDate)
  3863. : null
  3864. }
  3865. onChange={(data, dataString) => {
  3866. this.setState({ endDate: dataString })
  3867. }}
  3868. />
  3869. </FormItem>
  3870. <FormItem
  3871. className="half-item"
  3872. {...formItemLayout}
  3873. label="受理时间"
  3874. >
  3875. <DatePicker
  3876. style={{
  3877. marginTop: '2px',
  3878. width: '200px',
  3879. height: '32px',
  3880. }}
  3881. showTime
  3882. format="YYYY-MM-DD"
  3883. onOk={() => {}}
  3884. value={
  3885. this.state.acceptDate
  3886. ? moment(this.state.acceptDate)
  3887. : null
  3888. }
  3889. onChange={(data, dataString) => {
  3890. this.setState({ acceptDate: dataString })
  3891. }}
  3892. />
  3893. </FormItem>
  3894. <FormItem
  3895. className="half-item"
  3896. {...formItemLayout}
  3897. label="评审时间"
  3898. >
  3899. <DatePicker
  3900. style={{
  3901. marginTop: '2px',
  3902. width: '200px',
  3903. height: '32px',
  3904. }}
  3905. showTime
  3906. format="YYYY-MM-DD"
  3907. onOk={() => {}}
  3908. value={
  3909. this.state.reviewDate
  3910. ? moment(this.state.reviewDate)
  3911. : null
  3912. }
  3913. onChange={(data, dataString) => {
  3914. this.setState({ reviewDate: dataString })
  3915. }}
  3916. />
  3917. </FormItem>
  3918. <FormItem
  3919. className="half-item"
  3920. {...formItemLayout}
  3921. label="公示时间"
  3922. >
  3923. <DatePicker
  3924. style={{
  3925. marginTop: '2px',
  3926. width: '200px',
  3927. height: '32px',
  3928. }}
  3929. showTime
  3930. format="YYYY-MM-DD"
  3931. onOk={() => {}}
  3932. value={
  3933. this.state.publicityDate
  3934. ? moment(this.state.publicityDate)
  3935. : null
  3936. }
  3937. onChange={(data, dataString) => {
  3938. this.setState({ publicityDate: dataString })
  3939. }}
  3940. />
  3941. </FormItem>
  3942. <FormItem
  3943. className="half-item"
  3944. {...formItemLayout}
  3945. label="发证时间"
  3946. >
  3947. <DatePicker
  3948. style={{
  3949. marginTop: '2px',
  3950. width: '200px',
  3951. height: '32px',
  3952. }}
  3953. showTime
  3954. format="YYYY-MM-DD"
  3955. onOk={() => {}}
  3956. value={
  3957. this.state.licenceDate
  3958. ? moment(this.state.licenceDate)
  3959. : null
  3960. }
  3961. onChange={(data, dataString) => {
  3962. this.setState({ licenceDate: dataString })
  3963. }}
  3964. />
  3965. </FormItem>
  3966. <FormItem
  3967. className="half-item"
  3968. {...formItemLayout}
  3969. label="立项金额(万元)"
  3970. >
  3971. <Input
  3972. placeholder="请输入立项金额"
  3973. value={this.state.setUpAmount}
  3974. style={{ width: '200px' }}
  3975. onChange={(e) => {
  3976. this.setState({ setUpAmount: e.target.value })
  3977. }}
  3978. ref="commodityQuantity"
  3979. />
  3980. </FormItem>
  3981. <FormItem
  3982. className="half-item"
  3983. {...formItemLayout}
  3984. label="是否到款"
  3985. >
  3986. <Radio.Group
  3987. value={this.state.arrivalMoney}
  3988. onChange={(e) => {
  3989. this.setState({ arrivalMoney: e.target.value })
  3990. }}
  3991. >
  3992. <Radio value={0}>未到企业</Radio>
  3993. <Radio value={1}>已到企业</Radio>
  3994. </Radio.Group>
  3995. </FormItem>
  3996. </div>
  3997. <div className="clearfix">
  3998. <FormItem
  3999. labelCol={{ span: 3 }}
  4000. wrapperCol={{ span: 16 }}
  4001. label="附件"
  4002. >
  4003. <Picture
  4004. fileList={(e) => {
  4005. this.setState({ attachmentUrl: e })
  4006. }}
  4007. pictureUrl={this.state.attachmentUrl}
  4008. visible={this.props.visible}
  4009. data={{
  4010. sign: 'order_task_file',
  4011. url: '/api/admin/orderProject/uploadOrderTaskFile',
  4012. number: 8,
  4013. }}
  4014. />
  4015. </FormItem>
  4016. </div>
  4017. <div className="clearfix">
  4018. <FormItem
  4019. labelCol={{ span: 3 }}
  4020. wrapperCol={{ span: 16 }}
  4021. label="备注"
  4022. >
  4023. <Input
  4024. type="textarea"
  4025. placeholder="请输入备注"
  4026. rows={4}
  4027. value={this.state.taskComment}
  4028. onChange={(e) => {
  4029. this.setState({ taskComment: e.target.value })
  4030. }}
  4031. />
  4032. </FormItem>
  4033. </div>
  4034. <div>
  4035. <h3 className="sub-title">项目业务</h3>
  4036. {this.state.processStatus == 0 ? (
  4037. <Button
  4038. type="primary"
  4039. onClick={this.addDetailed}
  4040. style={{
  4041. float: 'right',
  4042. marginRight: '50px',
  4043. marginBottom: '15px',
  4044. }}
  4045. >
  4046. 添加项目明细
  4047. </Button>
  4048. ) : (
  4049. ''
  4050. )}
  4051. </div>
  4052. <div className="patent-table">
  4053. <Spin spinning={this.state.loading}>
  4054. <Table
  4055. columns={this.state.columnsX}
  4056. dataSource={this.state.dataSourceX}
  4057. pagination={this.state.paginations}
  4058. onRowClick={this.tableRowClickX}
  4059. bordered
  4060. size="small"
  4061. />
  4062. </Spin>
  4063. </div>
  4064. <div className="clearfix">
  4065. <Button
  4066. className="cancel"
  4067. type="primary"
  4068. // onClick={this.tijiaoOk}
  4069. onClick={() => {
  4070. let num = this.state.projectStatus
  4071. if (
  4072. num != 0 &&
  4073. num != 10 &&
  4074. num != 11 &&
  4075. num != 12 &&
  4076. num != 2 &&
  4077. num != 5 &&
  4078. num != 6
  4079. ) {
  4080. this.showDeleteConfirm(num, this.tijiaoOk)
  4081. } else {
  4082. this.tijiaoOk()
  4083. }
  4084. }}
  4085. style={{ marginLeft: '200px', marginTop: '10px' }}
  4086. htmlType="submit"
  4087. >
  4088. 保存
  4089. </Button>
  4090. <Button
  4091. className="cancel"
  4092. type="ghost"
  4093. onClick={this.visitCancel}
  4094. style={{ marginLeft: '50px', marginTop: '10px' }}
  4095. >
  4096. 取消
  4097. </Button>
  4098. </div>
  4099. </div>
  4100. </Spin>
  4101. </Form>
  4102. </TabPane>
  4103. <TabPane tab="外包/供应商信息" key="2">
  4104. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  4105. <div style={{ marginTop: 10 }}>
  4106. <div className="clearfix">
  4107. <FormItem
  4108. className="half-item"
  4109. {...formItemLayout}
  4110. label={
  4111. <span>
  4112. <strong style={{ color: '#f00' }}>*</strong>
  4113. 类型
  4114. </span>
  4115. }
  4116. >
  4117. <Radio.Group
  4118. value={this.state.startType}
  4119. onChange={(e) => {
  4120. this.setState({ startType: e.target.value })
  4121. }}
  4122. >
  4123. <Radio value={0}>外包(不走总部)</Radio>
  4124. <Radio value={1}>供应商信息</Radio>
  4125. </Radio.Group>
  4126. </FormItem>
  4127. </div>
  4128. {/* 专利类型 */}
  4129. <div
  4130. className="clearfix"
  4131. style={{
  4132. display: this.state.projectType === 1 ? 'block' : 'none',
  4133. }}
  4134. >
  4135. <FormItem
  4136. className="half-item"
  4137. {...formItemLayout}
  4138. label={
  4139. <span>
  4140. <strong style={{ color: '#f00' }}>*</strong>
  4141. 专利类型
  4142. </span>
  4143. }
  4144. >
  4145. <Radio.Group
  4146. value={this.state.patentType}
  4147. onChange={(e) => {
  4148. let _this = this;
  4149. if(this.state.thirdInfoList.length >0){
  4150. confirm({
  4151. title: '确定要切换吗?',
  4152. content: '切换将删除所有第三信息和付款节点',
  4153. onOk() {
  4154. return new Promise((resolve, reject) => {
  4155. _this.setState({ patentType: e.target.value },()=>{
  4156. _this.projectTypeTabContent(_this.state.projectType);
  4157. })
  4158. _this.confirmDeletNew(-1,resolve,reject)
  4159. if(_this.state.payNodeList.length > 0){
  4160. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4161. }
  4162. }).catch(() => console.log('Oops errors!'));
  4163. },
  4164. onCancel() {},
  4165. });
  4166. }else{
  4167. this.setState({ patentType: e.target.value },()=>{
  4168. this.projectTypeTabContent(this.state.projectType);
  4169. })
  4170. }
  4171. }}
  4172. >
  4173. <Radio value={0}>专利申请/变更/转让</Radio>
  4174. <Radio value={1}>专利买卖</Radio>
  4175. </Radio.Group>
  4176. </FormItem>
  4177. </div>
  4178. <div
  4179. className="clearfix"
  4180. style={{
  4181. display: this.state.projectType === 1? 'block' : 'none',
  4182. }}
  4183. >
  4184. <FormItem
  4185. className="half-item"
  4186. {...formItemLayout}
  4187. label={
  4188. <span>
  4189. <strong style={{ color: '#f00' }}>*</strong>
  4190. 专利名称
  4191. </span>
  4192. }
  4193. >
  4194. <Radio.Group
  4195. value={this.state.patentNameType}
  4196. onChange={(e) => {
  4197. let _this = this;
  4198. if(this.state.thirdInfoList.length >0){
  4199. confirm({
  4200. title: '确定要切换吗?',
  4201. content: '切换将删除所有第三信息和付款节点',
  4202. onOk() {
  4203. return new Promise((resolve, reject) => {
  4204. _this.setState({ patentNameType: e.target.value },()=>{
  4205. _this.projectTypeTabContent(_this.state.projectType);
  4206. })
  4207. _this.confirmDeletNew(-1,resolve,reject)
  4208. if(_this.state.payNodeList.length > 0){
  4209. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4210. }
  4211. }).catch(() => console.log('Oops errors!'));
  4212. },
  4213. onCancel() {},
  4214. });
  4215. }else{
  4216. this.setState({ patentNameType: e.target.value },()=>{
  4217. this.projectTypeTabContent(this.state.projectType);
  4218. })
  4219. }
  4220. }}
  4221. >
  4222. <Radio value={0}>实用新型专利</Radio>
  4223. <Radio value={1}>发明专利</Radio>
  4224. <Radio value={2}>外观专利</Radio>
  4225. {/*<Radio value={3}>*/}
  4226. {/* 其他*/}
  4227. {/* <Input*/}
  4228. {/* disabled={this.state.patentNameType !== 3}*/}
  4229. {/* value={this.state.patentName}*/}
  4230. {/* style={{ marginLeft: '15px' }}*/}
  4231. {/* onChange={(e) => {*/}
  4232. {/* this.setState({*/}
  4233. {/* patentName: e.target.value,*/}
  4234. {/* })*/}
  4235. {/* }}*/}
  4236. {/* placeholder="请填写专利名称"*/}
  4237. {/* />*/}
  4238. {/*</Radio>*/}
  4239. </Radio.Group>
  4240. </FormItem>
  4241. </div>
  4242. {/* 第三方信息专利 */}
  4243. <div
  4244. style={{
  4245. // display: this.state.type == 1 ? "block" : "none",
  4246. display: this.state.type == 1 ? 'block' : 'block',
  4247. }}
  4248. >
  4249. <span
  4250. style={{
  4251. marginLeft: '50px',
  4252. fontSize: '18px',
  4253. }}
  4254. >
  4255. 第三方信息
  4256. </span>
  4257. <span
  4258. style={{
  4259. display: 'inline-block',
  4260. marginLeft: 10,
  4261. color: 'red',
  4262. }}
  4263. >
  4264. 金额总计(万元): {this.state.allTotalAmount}
  4265. </span>
  4266. <Button
  4267. type="primary"
  4268. onClick={(e) => {
  4269. if(this.state.projectType === 1 && this.state.patentType === -1){
  4270. message.info('请先选择专利类型');
  4271. }else if(this.state.projectType === 1 && this.state.patentNameType === -1){
  4272. message.info('请先选择专利名称');
  4273. }
  4274. else{
  4275. this.addThirdList()
  4276. }
  4277. }}
  4278. style={{
  4279. float: 'right',
  4280. marginRight: '50px',
  4281. marginBottom: '15px',
  4282. }}
  4283. >
  4284. +新增供应商名称
  4285. </Button>
  4286. </div>
  4287. <div
  4288. className="clearfix"
  4289. style={{
  4290. // display: this.state.type == 1 ? "block" : "none",
  4291. display: this.state.type == 1 ? 'block' : 'block',
  4292. }}
  4293. >
  4294. <Spin spinning={this.state.loading}>
  4295. <Form layout="horizontal">
  4296. <Table
  4297. pagination={false}
  4298. columns={this.state.ContactsListsNew}
  4299. dataSource={this.state.thirdInfoList}
  4300. onRowClick={this.tableRowClickOne}
  4301. scroll={{ x: 'max-content', y: 0 }}
  4302. bordered
  4303. size="small"
  4304. />
  4305. <Col
  4306. span={24}
  4307. offset={9}
  4308. style={{ marginTop: '15px' }}
  4309. />
  4310. </Form>
  4311. </Spin>
  4312. </div>
  4313. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  4314. <div
  4315. style={{
  4316. display: (this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block', //0正常 1专利 2软著 3审计
  4317. }}
  4318. >
  4319. <span
  4320. style={{
  4321. marginLeft: '50px',
  4322. fontSize: '18px',
  4323. }}
  4324. >
  4325. 付款节点
  4326. </span>
  4327. <span
  4328. style={{
  4329. display: 'inline-block',
  4330. marginLeft: 10,
  4331. color: 'red',
  4332. }}
  4333. ></span>
  4334. <Button
  4335. type="primary"
  4336. onClick={(e) => {
  4337. this.addPayNode()
  4338. }}
  4339. style={{
  4340. float: 'right',
  4341. marginRight: '50px',
  4342. marginBottom: '15px',
  4343. }}
  4344. >
  4345. +新增付款节点
  4346. </Button>
  4347. </div>
  4348. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  4349. <div
  4350. className="clearfix"
  4351. style={{
  4352. display: (this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block', //0正常 1专利 2软著 3审计
  4353. }}
  4354. >
  4355. <Spin spinning={this.state.loading}>
  4356. <Form layout="horizontal">
  4357. <Table
  4358. pagination={false}
  4359. columns={this.state.PayNodeTableColunms}
  4360. dataSource={this.state.payNodeList}
  4361. onRowClick={this.payNodeTableRowClickOne}
  4362. scroll={{ x: 'max-content', y: 0 }}
  4363. bordered
  4364. size="small"
  4365. />
  4366. <Col
  4367. span={24}
  4368. offset={9}
  4369. style={{ marginTop: '15px' }}
  4370. ></Col>
  4371. </Form>
  4372. </Spin>
  4373. </div>
  4374. <div className="clearfix">
  4375. <FormItem
  4376. className="half-item"
  4377. {...formItemLayout}
  4378. label={
  4379. <span>
  4380. <strong style={{ color: '#f00' }}>*</strong>备注
  4381. </span>
  4382. }
  4383. >
  4384. <TextArea
  4385. rows={4}
  4386. value={this.state.outsourceRemarks}
  4387. onChange={(e) => {
  4388. this.setState({
  4389. outsourceRemarks: e.target.value,
  4390. })
  4391. }}
  4392. placeholder="请输入备注"
  4393. />
  4394. </FormItem>
  4395. </div>
  4396. {/*<div className="clearfix">
  4397. <FormItem className="half-item"
  4398. {...formItemLayout}
  4399. label="上传协议文件" style={{height:"auto"}}>
  4400. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  4401. data={(e)=>{
  4402. return {
  4403. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  4404. }
  4405. }}
  4406. fileList={this.state.fileUrl}
  4407. onChange={(e)=>{
  4408. this.setState({
  4409. attachmentUrl:e.fileList,
  4410. fileUrl:e.fileList
  4411. })
  4412. }}>
  4413. {fileUrl.length>1?null:<Button>
  4414. <Icon type="upload" /> 点击上传
  4415. </Button>}
  4416. </Upload>
  4417. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  4418. </FormItem>
  4419. </div>*/}
  4420. <p
  4421. className="tip"
  4422. style={{
  4423. paddingBottom: '12px',
  4424. width: '240px',
  4425. marginLeft: '145px',
  4426. color: 'red',
  4427. }}
  4428. >
  4429. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  4430. </p>
  4431. <div className="clearfix">
  4432. <FormItem
  4433. labelCol={{ span: 4 }}
  4434. wrapperCol={{ span: 18 }}
  4435. label={
  4436. <span>
  4437. 合同/协议扫描件
  4438. </span>
  4439. }
  4440. >
  4441. <PicturesWall
  4442. fileList={this.getOrgCodeUrlWai}
  4443. pictureUrl={this.state.pictureUrl}
  4444. />
  4445. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  4446. </FormItem>
  4447. </div>
  4448. {/*只有审核拒绝和第一次发起外包的时候才要填写发起原因*/}
  4449. {typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2 ? <div className="clearfix">
  4450. <FormItem
  4451. className="half-item"
  4452. {...formItemLayout}
  4453. label={
  4454. <span>
  4455. <strong style={{ color: '#f00' }}>*</strong>发起原因
  4456. </span>
  4457. }
  4458. >
  4459. <TextArea
  4460. rows={4}
  4461. value={this.state.reason}
  4462. onChange={(e) => {
  4463. this.setState({
  4464. reason: e.target.value,
  4465. })
  4466. }}
  4467. placeholder="请输入发起原因"
  4468. />
  4469. </FormItem>
  4470. </div> : <div/>}
  4471. <div className="clearfix">
  4472. <div
  4473. style={{
  4474. display: 'inline-black',
  4475. textAlign: 'center',
  4476. }}
  4477. >
  4478. <Button
  4479. type="primary"
  4480. loading={this.state.loading}
  4481. onClick={()=>{
  4482. this.sureOut(this.state.startType);
  4483. }}
  4484. >
  4485. {
  4486. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  4487. }
  4488. </Button>
  4489. <p className="tip" style={{ color: 'red' }}>
  4490. {
  4491. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  4492. }
  4493. </p>
  4494. </div>
  4495. </div>
  4496. </div>
  4497. ) : (
  4498. <div>
  4499. {
  4500. this.state.visible && this.state.activeKey === '2' ?
  4501. <CheckProject
  4502. {...this.props}
  4503. tid={this.state.tid}
  4504. projectType={this.state.projectType} //0正常 1专利 2软著 3审计
  4505. patentNameType={this.state.patentNameType}
  4506. patentName={this.state.patentName}
  4507. patentType={this.state.patentType}
  4508. status={this.state.refundStatus}
  4509. isPreviewPay={true}
  4510. thirdInfoList={this.state.thirdInfoList}
  4511. dataSource={this.state.payNodeList}
  4512. outsourceRemarks={this.state.outsourceRemarks}
  4513. fileList={this.state.pictureUrl}
  4514. startType={this.state.startType}
  4515. projectStatus={this.state.projectStatus}
  4516. onRefresh={()=>{
  4517. this.waiDetail();
  4518. this.thirdTable(this.state.tid);
  4519. this.getSelectOutsourceLog(this.state.tid);
  4520. this.payNodeTable(this.state.tid)
  4521. this.loadData(this.state.page)
  4522. }}
  4523. /> : <div/>
  4524. }
  4525. </div>
  4526. )}
  4527. {(this.state.refundStatus == 1 ||
  4528. this.state.refundStatus == 0 ||
  4529. this.state.refundStatus == 2) &&
  4530. this.state.startType !== 1
  4531. ? (
  4532. <div className="clearfix"
  4533. style={{
  4534. display: this.state.refundStatus == 0 ? 'none' : 'block',
  4535. }}
  4536. >
  4537. <hr className="division" />
  4538. {parseInt(this.state.startType) !== 1 ? <div style={{
  4539. color:'#F00',
  4540. fontWeight: 'bolder',
  4541. paddingBottom: '20px',
  4542. }}>
  4543. 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>
  4544. </div> : <div/>}
  4545. <div className="outsourceLogList">
  4546. {
  4547. this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(
  4548. <div key={index} className="outsourceLogItem outsource">
  4549. <div style={{
  4550. display:'flex',
  4551. flexFlow:'row nowrap',
  4552. paddingBottom: '3px',
  4553. paddingTop: '3px',
  4554. }}>
  4555. <div>
  4556. {value.aname}
  4557. </div>
  4558. <div style={{paddingLeft:'5px'}}>
  4559. {
  4560. value.status === 0 ?
  4561. <Tag color="#2db7f5">发起外包审核</Tag> :
  4562. value.status === 1 ? <Tag color="#87d068">通过</Tag> :
  4563. <Tag color="#f50">驳回</Tag>
  4564. }
  4565. </div>
  4566. <div style={{
  4567. wordBreak: 'break-all',
  4568. maxWidth:'67%',
  4569. }}>
  4570. {value.remarks}
  4571. </div>
  4572. <div style={{paddingLeft: '10px'}}>
  4573. {value.createTimes}
  4574. </div>
  4575. </div>
  4576. </div>
  4577. ))
  4578. }
  4579. </div>
  4580. {/* <div*/}
  4581. {/* className="clearfix"*/}
  4582. {/* style={{*/}
  4583. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4584. {/* }}*/}
  4585. {/* >*/}
  4586. {/* <FormItem*/}
  4587. {/* className="half-item"*/}
  4588. {/* {...formItemLayout}*/}
  4589. {/* label="审核意见"*/}
  4590. {/* >*/}
  4591. {/* <span>{this.state.remarks}</span>*/}
  4592. {/* </FormItem>*/}
  4593. {/* </div>*/}
  4594. {/* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*/}
  4595. {/* <FormItem*/}
  4596. {/* className="half-item"*/}
  4597. {/* {...formItemLayout}*/}
  4598. {/* label="审核结果"*/}
  4599. {/* >*/}
  4600. {/* <span>{getRefundStatus(this.state.refundStatus)}</span>*/}
  4601. {/* </FormItem>*/}
  4602. {/* </div> : <div/>}*/}
  4603. {/* <div*/}
  4604. {/* className="clearfix"*/}
  4605. {/* style={{*/}
  4606. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4607. {/* }}*/}
  4608. {/* >*/}
  4609. {/* <FormItem*/}
  4610. {/* className="half-item"*/}
  4611. {/* {...formItemLayout}*/}
  4612. {/* label="审核时间"*/}
  4613. {/* >*/}
  4614. {/* <span>{this.state.auditTimes}</span>*/}
  4615. {/* </FormItem>*/}
  4616. {/* </div>*/}
  4617. </div>
  4618. ) : (
  4619. ''
  4620. )}
  4621. </TabPane>
  4622. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4623. <TabPane tab="订单详情" key="3">
  4624. <Spin spinning={this.state.loading}>
  4625. <OrderDetail
  4626. orderData={this.state.orderData}
  4627. getOrderLog={this.getOrderLog}
  4628. dataSourceX={this.state.dataSourceX}
  4629. contactList={this.state.jiedian}
  4630. orderNo={this.state.orderNo}
  4631. totalCui={this.state.totalCui}
  4632. contactListNew={this.state.jiedianNew}
  4633. pictureUrl={this.state.contractPictureUrl}
  4634. />
  4635. </Spin>
  4636. </TabPane>
  4637. ) : (
  4638. ''
  4639. )}
  4640. </Tabs>
  4641. </Modal> : <div/>}
  4642. <Modal
  4643. maskClosable={false}
  4644. visible={this.state.lookVisible}
  4645. onOk={this.noCancel}
  4646. onCancel={this.noCancel}
  4647. width="500px"
  4648. title={'添加工时'}
  4649. footer=""
  4650. className="admin-desc-content"
  4651. >
  4652. <Form layout="horizontal" id="demand-form">
  4653. <Spin spinning={this.state.loading}>
  4654. <div className="clearfix">
  4655. <FormItem {...formItemLayout} label="工作日期">
  4656. <DatePicker
  4657. style={{ marginTop: '2px', width: '200px', height: '32px' }}
  4658. showTime
  4659. format="YYYY-MM-DD"
  4660. onOk={() => {}}
  4661. value={
  4662. this.state.taskDate ? moment(this.state.taskDate) : null
  4663. }
  4664. onChange={(data, dataString) => {
  4665. this.setState({ taskDate: dataString })
  4666. }}
  4667. />
  4668. </FormItem>
  4669. </div>
  4670. <div className="clearfix">
  4671. <FormItem {...formItemLayout} label="工作时长">
  4672. <Input
  4673. placeholder="请输入工作时长"
  4674. value={this.state.hours}
  4675. style={{ width: '200px' }}
  4676. onChange={(e) => {
  4677. this.setState({ hours: e.target.value })
  4678. }}
  4679. ref="commodityQuantity"
  4680. />
  4681. </FormItem>
  4682. </div>
  4683. <div className="clearfix">
  4684. <FormItem {...formItemLayout} label="工作内容">
  4685. <Input
  4686. type="textarea"
  4687. placeholder="请输入备注"
  4688. rows={4}
  4689. value={this.state.remarks}
  4690. onChange={(e) => {
  4691. this.setState({ remarks: e.target.value })
  4692. }}
  4693. />
  4694. </FormItem>
  4695. </div>
  4696. <div className="clearfix">
  4697. <Button
  4698. className="cancel"
  4699. type="primary"
  4700. onClick={this.tianjiaOk}
  4701. style={{ marginLeft: '100px' }}
  4702. htmlType="submit"
  4703. >
  4704. 确定
  4705. </Button>
  4706. <Button
  4707. className="cancel"
  4708. type="ghost"
  4709. onClick={this.noCancel}
  4710. style={{ marginLeft: '50px' }}
  4711. >
  4712. 取消
  4713. </Button>
  4714. </div>
  4715. </Spin>
  4716. </Form>
  4717. </Modal>
  4718. {this.state.addnextVisible ? <Modal
  4719. maskClosable={false}
  4720. visible={this.state.addnextVisible}
  4721. onOk={this.nextCancel}
  4722. onCancel={this.nextCancel}
  4723. width="800px"
  4724. title="项目详情"
  4725. footer=""
  4726. className="admin-desc-content"
  4727. >
  4728. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  4729. <Spin spinning={this.state.loading}>
  4730. <div className="clearfix">
  4731. <FormItem
  4732. className="half-item"
  4733. {...formItemLayout}
  4734. label="项目名称"
  4735. >
  4736. <span>{this.state.commodityName}</span>
  4737. </FormItem>
  4738. <FormItem
  4739. className="half-item"
  4740. {...formItemLayout}
  4741. label="项目数量"
  4742. >
  4743. <span>{this.state.commodityQuantity}</span>
  4744. </FormItem>
  4745. <FormItem
  4746. className="half-item"
  4747. {...formItemLayout}
  4748. label="官费"
  4749. style={{ display: this.state.displayFees }}
  4750. >
  4751. <span>
  4752. {this.state.officialCost == 0 ? '无官费' : '有官费'}
  4753. </span>
  4754. </FormItem>
  4755. <FormItem
  4756. className="half-item"
  4757. {...formItemLayout}
  4758. label="费减"
  4759. style={{ display: this.state.displayFees }}
  4760. >
  4761. <span>
  4762. {this.state.costReduction == 0 ? '无费减' : '有费减'}
  4763. </span>
  4764. </FormItem>
  4765. <FormItem
  4766. className="half-item"
  4767. {...formItemLayout}
  4768. label="金额(万元)"
  4769. >
  4770. <span>{this.state.commodityPrice ? '***' : 0}</span>
  4771. </FormItem>
  4772. <FormItem
  4773. className="half-item"
  4774. {...formItemLayout}
  4775. label="主要项目"
  4776. >
  4777. <span>{getboutique(this.state.main)}</span>
  4778. </FormItem>
  4779. <div className="clearfix">
  4780. <FormItem
  4781. labelCol={{ span: 3 }}
  4782. wrapperCol={{ span: 18 }}
  4783. label="服务说明"
  4784. >
  4785. <span>{this.state.taskComment}</span>
  4786. </FormItem>
  4787. </div>
  4788. </div>
  4789. </Spin>
  4790. </Form>
  4791. </Modal> : <div/>}
  4792. <Modal
  4793. maskClosable={false}
  4794. visible={this.state.speVisible}
  4795. onOk={this.visitOk}
  4796. onCancel={this.visitCancel}
  4797. width="900px"
  4798. title=""
  4799. footer=""
  4800. className="admin-desc-content"
  4801. >
  4802. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
  4803. <TabPane tab="项目概况" key="1">
  4804. <div className="clearfix">
  4805. <FormItem
  4806. className="half-item"
  4807. {...formItemLayout}
  4808. label="当前项目情况"
  4809. >
  4810. <Radio.Group
  4811. value={this.state.status}
  4812. onChange={(e) => {
  4813. this.setState({ status: e.target.value })
  4814. }}
  4815. >
  4816. <Radio value={0}>开启</Radio>
  4817. <Radio value={1}>暂停</Radio>
  4818. </Radio.Group>
  4819. <Button
  4820. type="primary"
  4821. size="small"
  4822. style={{ marginTop: '5px', position: 'absolute' }}
  4823. onClick={this.caozuorizhi}
  4824. >
  4825. 操作日志
  4826. </Button>
  4827. </FormItem>
  4828. <FormItem
  4829. className="half-item"
  4830. {...formItemLayout}
  4831. label="合同编号"
  4832. >
  4833. <span>{this.state.contractNo}</span>
  4834. </FormItem>
  4835. </div>
  4836. <div className="clearfix">
  4837. <FormItem
  4838. className="half-item"
  4839. {...formItemLayout}
  4840. label="项目状态"
  4841. >
  4842. <Select
  4843. placeholder="选择项目状态"
  4844. style={{ width: '200px' }}
  4845. value={this.state.projectStatus}
  4846. onChange={(e) => {
  4847. this.setState({ projectStatus: e })
  4848. }}
  4849. >
  4850. {projectStatus.map(function (item) {
  4851. return (
  4852. <Select.Option key={item.value}>
  4853. {item.key}
  4854. </Select.Option>
  4855. )
  4856. })}
  4857. </Select>
  4858. </FormItem>
  4859. <FormItem
  4860. className="half-item"
  4861. {...formItemLayout}
  4862. label="是否特批"
  4863. >
  4864. <span>{getApproval(this.state.approval)}</span>
  4865. </FormItem>
  4866. <FormItem
  4867. className="half-item"
  4868. {...formItemLayout}
  4869. label="结算状态"
  4870. >
  4871. <span>
  4872. {getLiquidationStatus(this.state.liquidationStatus)}
  4873. </span>
  4874. </FormItem>
  4875. <FormItem
  4876. className="half-item"
  4877. {...formItemLayout}
  4878. label="流程状态"
  4879. >
  4880. <span>{getProcessStatus(this.state.processStatus)}</span>
  4881. </FormItem>
  4882. <FormItem
  4883. className="half-item"
  4884. {...formItemLayout}
  4885. label="订单编号"
  4886. >
  4887. <span>{this.state.orderNo}</span>
  4888. </FormItem>
  4889. </div>
  4890. <div className="clearfix">
  4891. <FormItem
  4892. className="half-item"
  4893. {...formItemLayout}
  4894. label="满意度表格"
  4895. >
  4896. <Radio.Group
  4897. value={this.state.formRetrieve}
  4898. onChange={(e) => {
  4899. this.setState({ formRetrieve: e.target.value })
  4900. }}
  4901. >
  4902. <Radio value={0}>未收回</Radio>
  4903. <Radio value={1}>已收回</Radio>
  4904. <Radio value={2}>其他</Radio>
  4905. </Radio.Group>
  4906. </FormItem>
  4907. <FormItem
  4908. className="half-item"
  4909. {...formItemLayout}
  4910. label="退单"
  4911. >
  4912. <Radio.Group
  4913. value={this.state.taskRefund}
  4914. onChange={(e) => {
  4915. this.setState({ taskRefund: e.target.value })
  4916. }}
  4917. >
  4918. <Radio value={0}>已完成</Radio>
  4919. <Radio value={1}>未完成</Radio>
  4920. <Radio value={2}>其他</Radio>
  4921. </Radio.Group>
  4922. </FormItem>
  4923. </div>
  4924. <div className="clearfix">
  4925. {
  4926. <FormItem
  4927. className="half-item"
  4928. {...formItemLayout}
  4929. label="(满意度)备注"
  4930. >
  4931. <Input
  4932. type="textarea"
  4933. placeholder="请输入备注"
  4934. rows={2}
  4935. value={this.state.retrieveContent}
  4936. onChange={(e) => {
  4937. this.setState({ retrieveContent: e.target.value })
  4938. }}
  4939. />
  4940. </FormItem>
  4941. }
  4942. {
  4943. <FormItem
  4944. className="half-item"
  4945. {...formItemLayout}
  4946. label="(退单)备注"
  4947. >
  4948. <Input
  4949. type="textarea"
  4950. placeholder="请输入备注"
  4951. rows={2}
  4952. value={this.state.refundContent}
  4953. onChange={(e) => {
  4954. this.setState({ refundContent: e.target.value })
  4955. }}
  4956. />
  4957. </FormItem>
  4958. }
  4959. </div>
  4960. <div className="clearfix">
  4961. <h3 className="sub-title">订单负责人信息</h3>
  4962. <FormItem
  4963. className="half-item"
  4964. {...formItemLayout}
  4965. label="负责人"
  4966. >
  4967. <span>
  4968. {this.state.salesmanName + '(' + this.state.depName + ')'}
  4969. </span>
  4970. </FormItem>
  4971. <FormItem
  4972. className="half-item"
  4973. {...formItemLayout}
  4974. label="负责人电话"
  4975. >
  4976. <span>{this.state.salesmanMobile}</span>
  4977. </FormItem>
  4978. <FormItem
  4979. className="half-item"
  4980. {...formItemLayout}
  4981. label="当前财务负责人"
  4982. >
  4983. <span>{this.state.nowFinance}</span>
  4984. </FormItem>
  4985. <FormItem
  4986. className="half-item"
  4987. {...formItemLayout}
  4988. label="当前财务负责人电话"
  4989. >
  4990. <span>{this.state.nowFinanceMobile}</span>
  4991. </FormItem>
  4992. <FormItem
  4993. className="half-item"
  4994. {...formItemLayout}
  4995. style={{ opacity: '.5' }}
  4996. label="原负责人"
  4997. >
  4998. <span>{this.state.oldSalesmanName}</span>
  4999. </FormItem>
  5000. <FormItem
  5001. className="half-item"
  5002. {...formItemLayout}
  5003. style={{ opacity: '.5' }}
  5004. label="原负责人电话"
  5005. >
  5006. <span>{this.state.oldSalesmanMobile}</span>
  5007. </FormItem>
  5008. <FormItem
  5009. className="half-item"
  5010. {...formItemLayout}
  5011. style={{ opacity: '.5' }}
  5012. label="实际财务操作人"
  5013. >
  5014. <span>{this.state.financeName}</span>
  5015. </FormItem>
  5016. <FormItem
  5017. className="half-item"
  5018. {...formItemLayout}
  5019. style={{ opacity: '.5' }}
  5020. label="实际财务操作人电话"
  5021. >
  5022. <span>{this.state.financeMobile}</span>
  5023. </FormItem>
  5024. <FormItem
  5025. className="half-item"
  5026. {...formItemLayout}
  5027. label="订单留言"
  5028. >
  5029. <span>{this.state.orderRemarks}</span>
  5030. </FormItem>
  5031. <FormItem className="half-item" {...formItemLayout} label="">
  5032. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  5033. </FormItem>
  5034. <OrderRiZi
  5035. dataSourcerizhi={this.state.dataSourceY}
  5036. closeOrderLog={this.closeOrderLog}
  5037. visible={this.state.avisible}
  5038. loading={this.state.loading}
  5039. />
  5040. </div>
  5041. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5042. <div className="clearfix">
  5043. <h3 className="sub-title">联系信息</h3>
  5044. <FormItem
  5045. className="half-item"
  5046. {...formItemLayout}
  5047. label="客户名称"
  5048. >
  5049. <span>{this.state.userName}</span>
  5050. </FormItem>
  5051. <FormItem
  5052. className="half-item"
  5053. {...formItemLayout}
  5054. label="企业法人"
  5055. >
  5056. <Input
  5057. placeholder="请输入法人名称"
  5058. value={this.state.legalPerson}
  5059. style={{ width: '200px' }}
  5060. onChange={(e) => {
  5061. this.setState({ legalPerson: e.target.value })
  5062. }}
  5063. ref="commodityQuantity"
  5064. />
  5065. </FormItem>
  5066. <FormItem
  5067. className="half-item"
  5068. {...formItemLayout}
  5069. label="法人电话"
  5070. >
  5071. <Input
  5072. placeholder="请输入法人电话"
  5073. value={this.state.legalPersonTel}
  5074. style={{ width: '200px' }}
  5075. onChange={(e) => {
  5076. this.setState({ legalPersonTel: e.target.value })
  5077. }}
  5078. ref="commodityQuantity"
  5079. />
  5080. </FormItem>
  5081. <FormItem
  5082. className="half-item"
  5083. {...formItemLayout}
  5084. label="客户联系人"
  5085. >
  5086. <Input
  5087. placeholder="请输入联系人名称"
  5088. value={this.state.contacts}
  5089. style={{ width: '200px' }}
  5090. onChange={(e) => {
  5091. this.setState({ contacts: e.target.value })
  5092. }}
  5093. ref="commodityQuantity"
  5094. />
  5095. </FormItem>
  5096. <FormItem
  5097. className="half-item"
  5098. {...formItemLayout}
  5099. label="联系人电话"
  5100. >
  5101. <Input
  5102. placeholder="请输入联系人电话"
  5103. value={this.state.contactMobile}
  5104. style={{ width: '200px' }}
  5105. onChange={(e) => {
  5106. this.setState({ contactMobile: e.target.value })
  5107. }}
  5108. ref="commodityQuantity"
  5109. />
  5110. </FormItem>
  5111. <FormItem
  5112. className="half-item"
  5113. {...formItemLayout}
  5114. label="企业地址"
  5115. >
  5116. <Cascader
  5117. options={areaSelect()}
  5118. value={this.state.ProvinceCity}
  5119. placeholder="选择城市"
  5120. style={{ width: '200px' }}
  5121. onChange={(e) => {
  5122. this.setState({ ProvinceCity: e })
  5123. }}
  5124. />
  5125. </FormItem>
  5126. <FormItem
  5127. className="half-item"
  5128. {...formItemLayout}
  5129. label=""
  5130. ></FormItem>
  5131. <FormItem className="half-item" {...formItemLayout} label="">
  5132. <Input
  5133. placeholder="请输入详细地址"
  5134. value={this.state.postalAddress}
  5135. style={{ width: '200px', marginLeft: '12em' }}
  5136. onChange={(e) => {
  5137. this.setState({ postalAddress: e.target.value })
  5138. }}
  5139. ref="commodityQuantity"
  5140. />
  5141. </FormItem>
  5142. </div>
  5143. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5144. <div className="clearfix">
  5145. <h3 className="sub-title">项目信息</h3>
  5146. <FormItem
  5147. className="half-item"
  5148. {...formItemLayout}
  5149. label="项目编号"
  5150. >
  5151. <span>
  5152. {this.state.splitStatus == 2
  5153. ? this.state.splitSuper + '-' + this.state.splitId
  5154. : this.state.id}
  5155. </span>
  5156. </FormItem>
  5157. <FormItem
  5158. className="half-item"
  5159. {...formItemLayout}
  5160. label="项目名称"
  5161. >
  5162. <span>{this.state.taskName}</span>
  5163. </FormItem>
  5164. <FormItem
  5165. className="half-item"
  5166. {...formItemLayout}
  5167. label="项目状态"
  5168. >
  5169. <Select
  5170. placeholder="选择项目状态"
  5171. style={{ width: '200px' }}
  5172. value={this.state.taskStatus}
  5173. onChange={(e) => {
  5174. this.setState({ taskStatus: e })
  5175. }}
  5176. >
  5177. {taskStatus.map(function (item) {
  5178. return (
  5179. <Select.Option key={item.value}>
  5180. {item.key}
  5181. </Select.Option>
  5182. )
  5183. })}
  5184. </Select>
  5185. </FormItem>
  5186. <FormItem
  5187. className="half-item"
  5188. {...formItemLayout}
  5189. label="项目类别"
  5190. >
  5191. <span>{this.state.cname}</span>
  5192. </FormItem>
  5193. <FormItem
  5194. className="half-item"
  5195. {...formItemLayout}
  5196. label="证书编号"
  5197. >
  5198. <Input
  5199. placeholder="请输入证书编号"
  5200. value={this.state.certificateNumber}
  5201. style={{ width: '200px' }}
  5202. onChange={(e) => {
  5203. this.setState({ certificateNumber: e.target.value })
  5204. }}
  5205. ref="commodityQuantity"
  5206. />
  5207. </FormItem>
  5208. </div>
  5209. <div className="clearfix" style={{ marginTop: '10px' }}>
  5210. <FormItem
  5211. labelCol={{ span: 3 }}
  5212. wrapperCol={{ span: 14 }}
  5213. label="附件"
  5214. >
  5215. <Picture
  5216. fileList={(e) => {
  5217. this.setState({ attachmentUrl: e })
  5218. }}
  5219. pictureUrl={this.state.attachmentUrl}
  5220. visible={this.props.visible}
  5221. data={{
  5222. sign: 'order_task_file',
  5223. url: '/api/admin/orderProject/uploadOrderTaskFile',
  5224. number: 8,
  5225. }}
  5226. />
  5227. </FormItem>
  5228. </div>
  5229. <div className="clearfix">
  5230. <FormItem
  5231. labelCol={{ span: 3 }}
  5232. wrapperCol={{ span: 16 }}
  5233. label="备注"
  5234. >
  5235. <Input
  5236. type="textarea"
  5237. placeholder="请输入备注"
  5238. rows={4}
  5239. value={this.state.taskComment}
  5240. onChange={(e) => {
  5241. this.setState({ taskComment: e.target.value })
  5242. }}
  5243. />
  5244. </FormItem>
  5245. </div>
  5246. <div className="clearfix">
  5247. <h3 className="sub-title">项目申报进度</h3>
  5248. <FormItem
  5249. className="half-item"
  5250. {...formItemLayout}
  5251. label="申报批次"
  5252. >
  5253. <Select
  5254. value={
  5255. this.state.declarationBatch
  5256. ? this.state.declarationBatch
  5257. : undefined
  5258. }
  5259. placeholder="请选择批次"
  5260. style={{ width: 200 }}
  5261. onChange={(e) => {
  5262. this.setState({
  5263. declarationBatch: e,
  5264. })
  5265. }}
  5266. >
  5267. <Option value={1}>第一批</Option>
  5268. <Option value={2}>第二批</Option>
  5269. <Option value={3}>第三批</Option>
  5270. <Option value={4}>第四批</Option>
  5271. </Select>
  5272. </FormItem>
  5273. <FormItem
  5274. className="half-item"
  5275. {...formItemLayout}
  5276. label="软著派单数量"
  5277. >
  5278. <span>{this.state.commodityQuantity}</span>
  5279. <Button
  5280. type="primary"
  5281. size="small"
  5282. style={{ marginLeft: '45px' }}
  5283. onClick={this.addcontact}
  5284. >
  5285. +增加下证信息
  5286. </Button>
  5287. </FormItem>
  5288. <div className="patent-table">
  5289. <Spin spinning={this.state.loading}>
  5290. <Table
  5291. columns={this.state.ContactsLists}
  5292. dataSource={this.state.contactList}
  5293. pagination={false}
  5294. bordered
  5295. size="small"
  5296. />
  5297. </Spin>
  5298. </div>
  5299. </div>
  5300. <div className="clearfix">
  5301. <h3 className="sub-title">项目业务</h3>
  5302. <div className="patent-table">
  5303. <Spin spinning={this.state.loading}>
  5304. <Table
  5305. columns={this.state.columnsX}
  5306. dataSource={this.state.dataSourceX}
  5307. pagination={this.state.paginations}
  5308. onRowClick={this.tableRowClickX}
  5309. bordered
  5310. size="small"
  5311. />
  5312. </Spin>
  5313. </div>
  5314. </div>
  5315. <div className="clearfix">
  5316. <Button
  5317. className="cancel"
  5318. type="primary"
  5319. onClick={this.tijiaoOk}
  5320. style={{ marginLeft: '200px', marginTop: '10px' }}
  5321. htmlType="submit"
  5322. >
  5323. 保存
  5324. </Button>
  5325. <Button
  5326. className="cancel"
  5327. type="ghost"
  5328. onClick={this.visitCancel}
  5329. style={{ marginLeft: '50px', marginTop: '10px' }}
  5330. >
  5331. 取消
  5332. </Button>
  5333. </div>
  5334. </TabPane>
  5335. <TabPane tab="外包(不走本部)" key="2">
  5336. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  5337. <div style={{ marginTop: 10 }}>
  5338. <div className="clearfix">
  5339. <FormItem
  5340. className="half-item"
  5341. {...formItemLayout}
  5342. label={
  5343. <span>
  5344. <strong style={{ color: '#f00' }}>*</strong>
  5345. 外包公司
  5346. </span>
  5347. }
  5348. >
  5349. <Input
  5350. value={this.state.companyName}
  5351. onChange={(e) => {
  5352. this.setState({
  5353. companyName: e.target.value,
  5354. })
  5355. }}
  5356. placeholder="请填写外包公司名称"
  5357. />
  5358. </FormItem>
  5359. <span className="tip" style={{ color: 'red' }}>
  5360. 如多个公司,请用间隔
  5361. </span>
  5362. </div>
  5363. <div className="clearfix">
  5364. <FormItem
  5365. className="half-item"
  5366. {...formItemLayout}
  5367. label={
  5368. <span>
  5369. <strong style={{ color: '#f00' }}>*</strong>
  5370. 单价(万元)
  5371. </span>
  5372. }
  5373. >
  5374. <Input
  5375. value={this.state.unitPrice}
  5376. onChange={(e) => {
  5377. this.setState({
  5378. unitPrice: e.target.value,
  5379. })
  5380. }}
  5381. placeholder="请填写本次外包公司的价格"
  5382. />
  5383. </FormItem>
  5384. </div>
  5385. <div className="clearfix">
  5386. <FormItem
  5387. className="half-item"
  5388. {...formItemLayout}
  5389. label={
  5390. <span>
  5391. <strong style={{ color: '#f00' }}>*</strong>
  5392. 数量(个)
  5393. </span>
  5394. }
  5395. >
  5396. <Input
  5397. value={this.state.unitNumber}
  5398. onChange={(e) => {
  5399. this.setState({
  5400. unitNumber: e.target.value,
  5401. })
  5402. }}
  5403. placeholder="请填写本次外包公司的价格"
  5404. />
  5405. </FormItem>
  5406. </div>
  5407. <div className="clearfix">
  5408. <FormItem
  5409. className="half-item"
  5410. {...formItemLayout}
  5411. label={
  5412. <span>
  5413. <strong style={{ color: '#f00' }}>*</strong>
  5414. 总金额(万元)
  5415. </span>
  5416. }
  5417. >
  5418. <Input
  5419. value={this.state.amount}
  5420. onChange={(e) => {
  5421. this.setState({
  5422. amount: e.target.value,
  5423. })
  5424. }}
  5425. placeholder="请填写本次外包公司的价格"
  5426. />
  5427. </FormItem>
  5428. </div>
  5429. <div className="clearfix">
  5430. <FormItem
  5431. className="half-item"
  5432. {...formItemLayout}
  5433. label={
  5434. <span>
  5435. <strong style={{ color: '#f00' }}>*</strong>备注
  5436. </span>
  5437. }
  5438. >
  5439. <TextArea
  5440. rows={4}
  5441. value={this.state.outsourceRemarks}
  5442. onChange={(e) => {
  5443. this.setState({
  5444. outsourceRemarks: e.target.value,
  5445. })
  5446. }}
  5447. placeholder="请输入备注"
  5448. />
  5449. </FormItem>
  5450. </div>
  5451. <p
  5452. className="tip"
  5453. style={{
  5454. paddingBottom: '12px',
  5455. width: '240px',
  5456. marginLeft: '145px',
  5457. color: 'red',
  5458. }}
  5459. >
  5460. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  5461. </p>
  5462. <div className="clearfix">
  5463. <FormItem
  5464. labelCol={{ span: 4 }}
  5465. wrapperCol={{ span: 18 }}
  5466. label={
  5467. <span>
  5468. 合同/协议扫描件
  5469. </span>
  5470. }
  5471. >
  5472. <PicturesWall
  5473. fileList={this.getOrgCodeUrlWai}
  5474. pictureUrl={this.state.pictureUrl}
  5475. />
  5476. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  5477. </FormItem>
  5478. </div>
  5479. <div className="clearfix">
  5480. <div
  5481. style={{
  5482. display: 'inline-black',
  5483. textAlign: 'center',
  5484. }}
  5485. >
  5486. <Button
  5487. type="primary"
  5488. loading={this.state.loading}
  5489. onClick={()=>{
  5490. this.sureOut(this.state.startType);
  5491. }}
  5492. >
  5493. {
  5494. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  5495. }
  5496. </Button>
  5497. <p className="tip" style={{ color: 'red' }}>
  5498. {
  5499. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  5500. }
  5501. </p>
  5502. </div>
  5503. </div>
  5504. </div>
  5505. ) : (
  5506. <div>
  5507. <div className="clearfix">
  5508. <FormItem
  5509. className="half-item"
  5510. {...formItemLayout}
  5511. label="外包公司"
  5512. >
  5513. <span>{this.state.companyName}</span>
  5514. </FormItem>
  5515. </div>
  5516. <div className="clearfix">
  5517. <FormItem
  5518. className="half-item"
  5519. {...formItemLayout}
  5520. label="单价(万元)"
  5521. >
  5522. <span>{this.state.unitPrice}</span>
  5523. </FormItem>
  5524. </div>
  5525. <div className="clearfix">
  5526. <FormItem
  5527. className="half-item"
  5528. {...formItemLayout}
  5529. label="数量(个)"
  5530. >
  5531. <span>{this.state.unitNumber}</span>
  5532. </FormItem>
  5533. </div>
  5534. <div className="clearfix">
  5535. <FormItem
  5536. className="half-item"
  5537. {...formItemLayout}
  5538. label="总金额(万元)"
  5539. >
  5540. <span>{this.state.amount}</span>
  5541. </FormItem>
  5542. </div>
  5543. <div className="clearfix">
  5544. <FormItem
  5545. className="half-item"
  5546. {...formItemLayout}
  5547. label="备注"
  5548. >
  5549. <span>{this.state.outsourceRemarks}</span>
  5550. </FormItem>
  5551. </div>
  5552. <div className="clearfix">
  5553. <FormItem
  5554. labelCol={{ span: 4 }}
  5555. wrapperCol={{ span: 18 }}
  5556. label="合同/协议扫描件"
  5557. >
  5558. {/*<Upload*/}
  5559. {/* className="demandDetailShow-upload"*/}
  5560. {/* listType="picture-card"*/}
  5561. {/* fileList={this.state.pictureUrl}*/}
  5562. {/* onPreview={(file) => {*/}
  5563. {/* this.setState({*/}
  5564. {/* previewImage: file.url || file.thumbUrl,*/}
  5565. {/* previewVisible: true,*/}
  5566. {/* })*/}
  5567. {/* }}*/}
  5568. {/*/>*/}
  5569. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  5570. <ImgList fileList={this.state.pictureUrl} ItemWidth={'96px'}/>
  5571. </div>
  5572. <Modal
  5573. maskClosable={false}
  5574. footer={null}
  5575. visible={this.state.previewVisible}
  5576. onCancel={() => {
  5577. this.setState({ previewVisible: false })
  5578. }}
  5579. >
  5580. <img
  5581. alt=""
  5582. style={{ width: '100%' }}
  5583. src={this.state.previewImage || ''}
  5584. />
  5585. </Modal>
  5586. </FormItem>
  5587. </div>
  5588. </div>
  5589. )}
  5590. {this.state.refundStatus == 1 ||
  5591. this.state.refundStatus == 0 ||
  5592. this.state.refundStatus == 2 ? (
  5593. <div className="clearfix">
  5594. <hr className="division" />
  5595. <div
  5596. className="clearfix"
  5597. style={{
  5598. display: this.state.refundStatus == 0 ? 'none' : 'block',
  5599. }}
  5600. >
  5601. <FormItem
  5602. className="half-item"
  5603. {...formItemLayout}
  5604. label="审核意见"
  5605. >
  5606. <span>{this.state.remarks}</span>
  5607. </FormItem>
  5608. </div>
  5609. <div className="clearfix">
  5610. <FormItem
  5611. className="half-item"
  5612. {...formItemLayout}
  5613. label="审核结果"
  5614. >
  5615. <span>{getRefundStatus(this.state.refundStatus)}</span>
  5616. </FormItem>
  5617. </div>
  5618. <div
  5619. className="clearfix"
  5620. style={{
  5621. display: this.state.refundStatus == 0 ? 'none' : 'block',
  5622. }}
  5623. >
  5624. <FormItem
  5625. className="half-item"
  5626. {...formItemLayout}
  5627. label="审核时间"
  5628. >
  5629. <span>{this.state.auditTimes}</span>
  5630. </FormItem>
  5631. </div>
  5632. </div>
  5633. ) : (
  5634. ''
  5635. )}
  5636. </TabPane>
  5637. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  5638. <TabPane tab="订单详情" key="3">
  5639. <Spin spinning={this.state.loading}>
  5640. <OrderDetail
  5641. orderData={this.state.orderData}
  5642. getOrderLog={this.getOrderLog}
  5643. dataSourceX={this.state.dataSourceX}
  5644. contactList={this.state.jiedian}
  5645. orderNo={this.state.orderNo}
  5646. totalCui={this.state.totalCui}
  5647. contactListNew={this.state.jiedianNew}
  5648. pictureUrl={this.state.contractPictureUrl}
  5649. />
  5650. </Spin>
  5651. </TabPane>
  5652. ) : (
  5653. ''
  5654. )}
  5655. </Tabs>
  5656. </Modal>
  5657. <Modal
  5658. width="800px"
  5659. visible={this.state.visibleA}
  5660. onCancel={this.visitCancelA}
  5661. title="操作日志"
  5662. footer=""
  5663. className="admin-desc-content"
  5664. >
  5665. <div className="patent-table patent-table-center">
  5666. <Spin spinning={this.state.loading}>
  5667. <Table
  5668. columns={this.state.columnsA}
  5669. dataSource={this.state.dataSourceA}
  5670. pagination={false}
  5671. bordered
  5672. size="small"
  5673. />
  5674. </Spin>
  5675. </div>
  5676. </Modal>
  5677. <Modal
  5678. title="工时记录"
  5679. visible={this.state.timeVisible}
  5680. onCancel={this.timeClose}
  5681. width={800}
  5682. footer={null}
  5683. >
  5684. <Spin spinning={this.state.loading}>
  5685. <Table
  5686. columns={this.state.columnsTime}
  5687. dataSource={this.state.dataSourceTime}
  5688. pagination={false}
  5689. scroll={{ x: 'max-content', y: 0 }}
  5690. bordered
  5691. size={'small'}
  5692. />
  5693. <p style={{ marginTop: 10, color: 'red' }}>
  5694. 累计工时(小时):{this.state.recordHour}
  5695. </p>
  5696. </Spin>
  5697. </Modal>
  5698. {this.state.ThirdListVisible ? <NewSupplier
  5699. patentNameType={this.state.patentNameType}
  5700. ThirdId={this.state.ThirdId}
  5701. tid={this.state.tid}
  5702. patentType={this.state.patentType}
  5703. projectType={this.state.projectType}
  5704. thirdCompanyName={this.state.thirdCompanyName}
  5705. thirdUnitPrice={this.state.thirdUnitPrice}
  5706. thirdQuantity={this.state.thirdQuantity}
  5707. thirdRemarks={this.state.thirdRemarks}
  5708. spinning={this.state.loading}
  5709. visible={this.state.ThirdListVisible}
  5710. thirdMaterial={this.state.thirdMaterial}
  5711. thirdUrgent={this.state.thirdUrgent}
  5712. audit={this.state.audit}
  5713. assets={this.state.assets}
  5714. income={this.state.income}
  5715. onDetermine={this.handleCancelq}
  5716. onCancel={()=>{
  5717. this.thirdTable(this.state.tid);
  5718. this.setState({
  5719. ThirdListVisible: false,
  5720. ThirdId: '', //供应商id
  5721. thirdCompanyName: '', //第三方名称
  5722. thirdUnitPrice: '', //单价
  5723. thirdQuantity: '', //数量
  5724. currentTotalPrice: '', //总价
  5725. thirdMaterial: 0, //有无材料
  5726. thirdUrgent: 0, //加急情况
  5727. thirdRemarks: '',
  5728. audit: 0,
  5729. assets: '',
  5730. income: '',
  5731. })
  5732. }}
  5733. otherOperations={(data)=>{
  5734. this.setState({
  5735. thirdMaterial: data.thirdMaterial,
  5736. thirdUrgent: data.thirdUrgent,
  5737. customerArr: data.customerArr,
  5738. thirdCompanyName: data.thirdCompanyName
  5739. })
  5740. }}/> : <div/>}
  5741. {this.state.PayNodeVisible ? <Modal
  5742. visible={this.state.PayNodeVisible}
  5743. onCancel={this.handleCancelclose}
  5744. width={800}
  5745. title={this.state.ThirdId ? "修改付款节点" : "新增付款节点"}
  5746. footer=""
  5747. // width={1300}
  5748. className="admin-desc-content"
  5749. >
  5750. <Form
  5751. layout="horizontal"
  5752. // onSubmit={this.handleSubmit1}
  5753. // id="demand-form"
  5754. style={{ paddingBottom: '40px' }}
  5755. >
  5756. <Spin spinning={this.state.loading}>
  5757. <div className="clearfix">
  5758. <div className="clearfix">
  5759. <FormItem {...formItemLayout} label="供应商名称">
  5760. <Select
  5761. value={this.state.thirdCompanyName}
  5762. onChange={(val) => {
  5763. this.setState(
  5764. {
  5765. thirdCompanyName: val,
  5766. },
  5767. () => this.payNodeCalculatedAmount()
  5768. ) //更新完state调用
  5769. }}
  5770. defaultValue="请选择供应商"
  5771. style={{ width: 220 }}
  5772. >
  5773. {this.state.PayNodeCompany.map((item, index) => (
  5774. <Select.Option value={item.companyName} key={index}>
  5775. {item.companyName}
  5776. </Select.Option>
  5777. ))}
  5778. </Select>
  5779. <span className="mandatory">*</span>
  5780. </FormItem>
  5781. </div>
  5782. <div className="clearfix">
  5783. <FormItem {...formItemLayout} label="付款科目">
  5784. <Select
  5785. value={this.state.paySubjectName}
  5786. onChange={(val) => {
  5787. this.setState({
  5788. paySubjectName: val,
  5789. dunType: val,
  5790. })
  5791. }}
  5792. defaultValue="请选择付款科目"
  5793. style={{ width: 220 }}
  5794. >
  5795. {this.state.paySubject.map((item, index) => (
  5796. <Select.Option value={item.value} key={index}>
  5797. {item.key}
  5798. </Select.Option>
  5799. ))}
  5800. <Select.Option key={0} value={0}>
  5801. 自定义
  5802. </Select.Option>
  5803. </Select>
  5804. <span className="mandatory">*</span>
  5805. </FormItem>
  5806. </div>
  5807. <div className="clearfix">
  5808. {parseInt(this.state.paySubjectName) === 0 ? <FormItem {...formItemLayout} label="付款时间">
  5809. <DatePicker
  5810. value={
  5811. this.state.partyTimes
  5812. ? moment(this.state.partyTimes)
  5813. : null
  5814. }
  5815. onChange={(data, dataString) => {
  5816. this.setState({ partyTimes: dataString })
  5817. }}
  5818. style={{ width: '220px' }}
  5819. />
  5820. <span className="mandatory">*</span>
  5821. </FormItem> : <div/>}
  5822. </div>
  5823. <div className="clearfix">
  5824. <FormItem {...formItemLayout} label="数量">
  5825. <Input
  5826. value={this.state.payNodeQuantity}
  5827. placeholder="请输入数量(必填项)"
  5828. required="required"
  5829. type={'number'}
  5830. onChange={(e) => {
  5831. //TODO 数量为1时不可修改,需要将次块分成组件
  5832. let num = e.target.value ? (e.target.value < 1 ? 1 : e.target.value) : 1
  5833. this.setState(
  5834. {
  5835. payNodeQuantity: num,
  5836. }, () => this.payNodeCalculatedAmount(num))
  5837. }}
  5838. style={{ width: '220px' }}
  5839. />
  5840. <span className="mandatory">*</span>
  5841. </FormItem>
  5842. </div>
  5843. {this.state.projectType !== 2 ? <div className="clearfix">
  5844. <FormItem {...formItemLayout} label="总价(万元)">
  5845. <Input
  5846. type={'number'}
  5847. value={this.state.currentTotalPrice}
  5848. placeholder="请输入总价"
  5849. // required="required"
  5850. // onBlur={this.payNodeCalculatedAmount}
  5851. onChange={(e) =>
  5852. this.setState({
  5853. currentTotalPrice: e.target.value,
  5854. })
  5855. }
  5856. style={{ width: '220px' }}
  5857. />
  5858. <span className="mandatory">*</span>
  5859. </FormItem>
  5860. </div> : <div/>}
  5861. <div className="clearfix">
  5862. <div className="addSave" style={{ marginTop: '15px' }}>
  5863. <Button
  5864. className="cancel"
  5865. type="primary"
  5866. onClick={this.savePayNode}
  5867. style={{ marginLeft: '300px' }}
  5868. htmlType="submit"
  5869. >
  5870. 保存
  5871. </Button>
  5872. <Button
  5873. className="cancel"
  5874. type="ghost"
  5875. onClick={this.handleCancelclose}
  5876. style={{ marginLeft: '50px' }}
  5877. >
  5878. 取消
  5879. </Button>
  5880. </div>
  5881. </div>
  5882. </div>
  5883. </Spin>
  5884. </Form>
  5885. </Modal> : <div/>}
  5886. {/*<OperationPayNode*/}
  5887. {/* visible={this.state.PayNodeVisible}*/}
  5888. {/* onCancel={this.handleCancelclose}*/}
  5889. {/* thirdId={this.state.ThirdId}*/}
  5890. {/* thirdInfoList={this.state.thirdInfoList}*/}
  5891. {/* supplierList={this.state.PayNodeCompany}*/}
  5892. {/* payNodeInfor={this.state.payNodeInfor}*/}
  5893. {/*/>*/}
  5894. </div>
  5895. )
  5896. },
  5897. })
  5898. export default Task