myTaskOutsource.jsx 212 KB

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