myTaskOutsource.jsx 204 KB

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