myTaskOutsource.jsx 206 KB

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