myTaskOutsource.jsx 205 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709
  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. import Cascaders from "../../../common/cascaders";
  63. const FormItem = Form.Item;
  64. const { Option } = Select;
  65. const { TextArea } = Input;
  66. const confirm = Modal.confirm
  67. const PicturesWall = React.createClass({
  68. getInitialState() {
  69. return {
  70. fileList: [],
  71. }
  72. },
  73. handleChange(info) {
  74. let fileList = info.fileList
  75. this.setState({
  76. fileList,
  77. })
  78. this.props.fileList(fileList)
  79. },
  80. componentWillReceiveProps(nextProps) {
  81. this.state.fileList = nextProps.pictureUrl
  82. this.state.pojectApplicationUrl = undefined
  83. },
  84. render() {
  85. const { fileList } = this.state
  86. return (
  87. <div style={{ display: 'inline-block' }}>
  88. <ImgList
  89. domId={this.props.domId}
  90. uploadConfig={{
  91. action: globalConfig.context + '/api/admin/outsourceOrg/uploadOutsourceFile',
  92. multiple: true,
  93. data: { sign: 'order_outsource' },
  94. listType: "picture-card",
  95. }}
  96. onChange={(infor) => {
  97. this.handleChange(infor)
  98. }}
  99. fileList={fileList}
  100. />
  101. </div>
  102. )
  103. },
  104. })
  105. const MyTaskOutsource = React.createClass({
  106. loadData(pageNo) {
  107. this.state.data = [];
  108. this.setState({
  109. loading: true,
  110. });
  111. $.ajax({
  112. method: "get",
  113. dataType: "json",
  114. crossDomain: false,
  115. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  116. data: {
  117. pageNo: pageNo || 1,
  118. pageSize: this.state.pagination.pageSize,
  119. specially: 0, //个人
  120. name: this.state.nameSearch, //客户名称
  121. deps: this.state.departmenttSearch, //订单部门
  122. orderNo: this.state.orderNoSearch, //订单编号
  123. contractNo: this.state.contractNoSearch, //合同编号
  124. taskId: this.state.taskNoSearch, //项目编号
  125. taskStatus: this.state.taskStatuSearch, //项目状态
  126. adminName: this.state.adminName, //项目受理人
  127. outsource: 1,
  128. approval: this.state.approvalSearch, //特批状态搜索
  129. projectStatus: this.state.projectStatusSearch && this.state.projectStatusSearch.length > 0 ?
  130. (typeof this.state.projectStatusSearch[0] === 'string' ? this.state.projectStatusSearch[1] : this.state.projectStatusSearch[0]) : undefined //项目状态
  131. },
  132. success: function (data) {
  133. ShowModal(this);
  134. let theArr = [];
  135. if (!data.data || !data.data.list) {
  136. if (data.error && data.error.length) {
  137. message.warning(data.error[0].message);
  138. }
  139. } else {
  140. for (let i = 0; i < data.data.list.length; i++) {
  141. let thisdata = data.data.list[i];
  142. thisdata.key = i;
  143. thisdata.userName = thisdata.taskName.substring(0, 5) === "软件著作权"
  144. ? thisdata.userName +
  145. "(" +
  146. thisdata.commodityQuantity.toString() +
  147. "/" +
  148. thisdata.alreadyNumber +
  149. ")"
  150. : thisdata.userName;
  151. theArr.push(thisdata);
  152. }
  153. }
  154. this.state.pagination.current = data.data.pageNo;
  155. this.state.pagination.total = data.data.totalCount;
  156. if (data.data && data.data.list && !data.data.list.length) {
  157. this.state.pagination.current = 0;
  158. this.state.pagination.total = 0;
  159. }
  160. this.setState({
  161. dataSource: theArr,
  162. page: data.data.pageNo,
  163. pagination: this.state.pagination,
  164. });
  165. }.bind(this),
  166. }).always(
  167. function () {
  168. this.setState({
  169. loading: false,
  170. });
  171. }.bind(this)
  172. );
  173. },
  174. waiDetail() {
  175. let url = window.location.href.substring(7)
  176. this.setState({
  177. waiDetailLoading: true,
  178. })
  179. $.ajax({
  180. method: 'get',
  181. dataType: 'json',
  182. crossDomain: false,
  183. url:
  184. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  185. data: {
  186. tid: this.state.id,
  187. orderNo: this.state.orderNo,
  188. },
  189. }).done(
  190. function (data) {
  191. if (!data.error.length && data.data) {
  192. if (!isNaN(parseFloat(data.data.unitNumber))) {
  193. this.setState({
  194. oldInfor: {
  195. companyName: data.data.companyName,
  196. unitPrice: data.data.unitPrice,
  197. unitNumber: data.data.unitNumber,
  198. amount: data.data.amount,
  199. outsourceRemarks: data.data.outsourceRemarks,
  200. refundStatus: data.data.refundStatus,
  201. pictureUrl: data.data.pictureUrl
  202. ? splitUrl(
  203. data.data.pictureUrl,
  204. ',',
  205. globalConfig.avatarHost + '/upload',
  206. url
  207. )
  208. : [], //图片地址
  209. }
  210. }, () => {
  211. this.setState({
  212. waiDetailLoading: false,
  213. })
  214. this.thirdTable(this.state.tid);
  215. this.payNodeTable(this.state.tid)
  216. })
  217. } else {
  218. this.setState({
  219. oldInfor: {}
  220. })
  221. }
  222. this.setState({
  223. startType: data.data.startType, //类型
  224. patentType: data.data.patentType, //专利类型
  225. patentNameType: data.data.patentNameType, //专利名称类型
  226. patentName: data.data.patentName, //专利名称
  227. outsourceRemarks: data.data.outsourceRemarks,
  228. remarks: data.data.remarks,
  229. companyName: data.data.companyName,
  230. amount: data.data.amount,
  231. mid: data.data.id,
  232. unitPrice: data.data.unitPrice,
  233. refundStatus: data.data.refundStatus,
  234. unitNumber: data.data.unitNumber,
  235. pictureUrl: data.data.pictureUrl
  236. ? splitUrl(
  237. data.data.pictureUrl,
  238. ',',
  239. globalConfig.avatarHost + '/upload',
  240. url
  241. )
  242. : [], //图片地址
  243. createTimes: data.data.createTimes,
  244. auditTimes: data.data.auditTimes,
  245. containOfficialFees: data.data.actualOfficial,//官费类型 0实际已缴费 1实际未缴费
  246. }, () => {
  247. this.setState({
  248. waiDetailLoading: false,
  249. })
  250. this.thirdTable(this.state.tid);
  251. this.payNodeTable(this.state.tid)
  252. })
  253. } else if (data.error && data.error.length) {
  254. message.warning(data.error[0].message);
  255. this.setState({
  256. waiDetailLoading: false,
  257. })
  258. } else if (!data.data) {
  259. this.setState({
  260. refundStatus: undefined,
  261. waiDetailLoading: false,
  262. })
  263. }
  264. }.bind(this)
  265. )
  266. },
  267. getInitialState() {
  268. return {
  269. PayNodeCompany: [],
  270. containOfficialFees: 0,//官费缴费情况
  271. oldInfor: {},
  272. paySubject: [],
  273. orderData: [],
  274. orderNo: "",
  275. jiedian: [],
  276. jiedianNew: [],
  277. page: 1,
  278. timeVisible: false,
  279. searchMore: true,
  280. assignVisible: false,
  281. releaseDate: [],
  282. // 判断是否是退回给咨询师经理
  283. flag: false,
  284. roleName: "",
  285. modKey: "1",
  286. timeRecordparse: {},
  287. testFlag: true,
  288. boHuivisible: false,
  289. companyProvinceArr: [],
  290. selectedRowKeys: [],
  291. departmentArr: [],
  292. selectedRows: [],
  293. attachmentUrl: [],
  294. contactList: [],
  295. //特批状态搜索
  296. approvalSearch: undefined,
  297. paginations: false,
  298. loading: false,
  299. waiDetailLoading: false,
  300. pagination: {
  301. defaultCurrent: 1,
  302. defaultPageSize: 10,
  303. showQuickJumper: true,
  304. pageSize: 10,
  305. onChange: function (page) {
  306. this.loadData(page);
  307. }.bind(this),
  308. showTotal: function (total) {
  309. return "共" + total + "条数据";
  310. },
  311. },
  312. // 子组件改变的表格title数组
  313. changeList: undefined,
  314. columnsTime: [
  315. {
  316. title: "工作时长(小时)",
  317. dataIndex: "hours",
  318. key: "hours",
  319. },
  320. {
  321. title: "工作时间",
  322. dataIndex: "taskDays",
  323. key: "taskDays",
  324. },
  325. // {
  326. // title: "项目负责人",
  327. // dataIndex: "remarks",
  328. // key: "remarks"
  329. // },
  330. {
  331. title: "备注",
  332. dataIndex: "remarks",
  333. key: "remarks",
  334. },
  335. ],
  336. columns: [
  337. {
  338. title: "项目编号",
  339. dataIndex: "id",
  340. key: "id",
  341. render: (text, record) => {
  342. if (record.splitStatus == 2) {
  343. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  344. } else {
  345. return text;
  346. }
  347. },
  348. },
  349. {
  350. title: "项目名称",
  351. dataIndex: "taskName",
  352. key: "taskName",
  353. render: (text, record) => {
  354. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  355. }
  356. },
  357. {
  358. title: "项目数量",
  359. dataIndex: "commodityQuantity",
  360. key: "commodityQuantity",
  361. },
  362. {
  363. title: "订单编号",
  364. dataIndex: "orderNo",
  365. key: "orderNo",
  366. },
  367. {
  368. title: "合同编号",
  369. dataIndex: "contractNo",
  370. key: "contractNo",
  371. },
  372. {
  373. title: "业务类别",
  374. dataIndex: "cname",
  375. key: "cname",
  376. },
  377. {
  378. title: "客户名称",
  379. dataIndex: "userName",
  380. key: "userName",
  381. className: "userName",
  382. render: text => {
  383. return (
  384. <Tooltip title={text}>
  385. <div style={{
  386. maxWidth: '150px',
  387. overflow: 'hidden',
  388. textOverflow: "ellipsis",
  389. whiteSpace: 'nowrap',
  390. }}>{text}</div>
  391. </Tooltip>
  392. )
  393. }
  394. },
  395. // {
  396. // title: "外包公司",
  397. // dataIndex: "outsourceName",
  398. // key: "outsourceName",
  399. // },
  400. {
  401. title: "分配状态",
  402. dataIndex: "taskStatus",
  403. key: "taskStatus",
  404. render: (text) => {
  405. return getTaskStatus(text);
  406. },
  407. },
  408. {
  409. title: "项目状态",
  410. dataIndex: "projectStatus",
  411. key: "projectStatus",
  412. render: (text) => {
  413. return getProjectName(text);
  414. },
  415. },
  416. {
  417. title: "特批状态",
  418. dataIndex: "approval",
  419. key: "approval",
  420. render: (text) => {
  421. return getApproval(text, true);
  422. },
  423. },
  424. {
  425. title: "分配时间",
  426. dataIndex: "taskDate",
  427. key: "taskDate",
  428. },
  429. {
  430. title: "订单部门",
  431. dataIndex: "depName",
  432. key: "depName",
  433. },
  434. {
  435. title: "累计工时(小时)",
  436. dataIndex: "hours",
  437. key: "hours",
  438. },
  439. {
  440. title: "项目金额(万元)",
  441. dataIndex: "commodityPrice",
  442. key: "commodityPrice",
  443. },
  444. {
  445. title: "外包成本(万元)",
  446. dataIndex: "costAmount",
  447. key: "costAmount",
  448. render: (text, record) => {
  449. return (<span>
  450. {
  451. isNaN(parseFloat(text)) ? text : parseFloat(text)
  452. }
  453. </span>)
  454. }
  455. },
  456. {
  457. title: "已付(万元)",
  458. dataIndex: "partyAmount",
  459. key: "partyAmount",
  460. render: (text, record) => {
  461. return (<span>
  462. {
  463. isNaN(parseFloat(text)) ? text : parseFloat(text)
  464. }
  465. </span>)
  466. }
  467. },
  468. {
  469. title: "操作",
  470. dataIndex: "caozuo",
  471. key: "caozuo",
  472. render: (text, record) => {
  473. return (
  474. <div>
  475. <Button
  476. type="primary"
  477. onClick={(e) => {
  478. e.stopPropagation(), this.evaluate(record, "咨询师");
  479. }}
  480. >
  481. 转交
  482. </Button>
  483. {this.props.isZxs ? <Button
  484. type="primary"
  485. style={{ marginLeft: 10 }}
  486. onClick={(e) => {
  487. e.stopPropagation();
  488. this.evaluate(record, "咨询师经理", true);
  489. }}
  490. >
  491. 回退
  492. </Button> : null}
  493. <Button
  494. type="primary"
  495. style={{ margin: "0 10px" }}
  496. onClick={(e) => {
  497. e.stopPropagation();
  498. this.okCancel(record);
  499. }}
  500. >
  501. 添加工时
  502. </Button>
  503. <Button
  504. type="primary"
  505. onClick={(e) => {
  506. e.stopPropagation();
  507. this.setState({
  508. timeVisible: true,
  509. });
  510. this.timeDetail(record);
  511. }}
  512. >
  513. 工时记录
  514. </Button>
  515. <Button
  516. type="primary"
  517. style={{ marginLeft: '10px' }}
  518. onClick={(e) => {
  519. e.stopPropagation()
  520. this.setState({
  521. projectLogVisible: true,
  522. projectLogId: record.id
  523. })
  524. }}
  525. >
  526. 项目日志
  527. </Button>
  528. </div>
  529. );
  530. },
  531. },
  532. ],
  533. dataSource: [],
  534. searchTime: [],
  535. columnsX: [
  536. {
  537. title: "业务项目名称",
  538. dataIndex: "commodityName",
  539. key: "commodityName",
  540. render: (text, record) => {
  541. return (
  542. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  543. )
  544. }
  545. },
  546. {
  547. title: "项目类别",
  548. dataIndex: "cname",
  549. key: "cname",
  550. },
  551. {
  552. title: "项目数量",
  553. dataIndex: "commodityQuantity",
  554. key: "commodityQuantity",
  555. render: (text, record) => {
  556. if (record.splitStatus == 1) {
  557. return (
  558. <span>
  559. {text}{" "}
  560. <Tag
  561. color="#108ee9"
  562. onClick={(e) => {
  563. e.stopPropagation();
  564. this.showRes(record);
  565. }}
  566. >
  567. 已拆
  568. </Tag>
  569. </span>
  570. );
  571. } else {
  572. return text;
  573. }
  574. },
  575. },
  576. {
  577. title: "金额(万元)",
  578. dataIndex: "commodityPrice",
  579. key: "commodityPrice",
  580. render: (text, record) => {
  581. return (
  582. <span>
  583. {this.props.isZxs || text === -1 ? '***' : text}
  584. </span>
  585. )
  586. }
  587. },
  588. {
  589. title: "负责人",
  590. dataIndex: "contacts",
  591. key: "contacts",
  592. },
  593. {
  594. title: "负责人电话",
  595. dataIndex: "contactsMobile",
  596. key: "contactsMobile",
  597. },
  598. {
  599. title: "主要项目",
  600. dataIndex: "main",
  601. key: "main",
  602. render: (text) => {
  603. return text ? "是" : "否";
  604. },
  605. },
  606. {
  607. title: "总年限",
  608. dataIndex: "yearSum",
  609. key: "yearSum",
  610. render: (text, record) => {
  611. return (
  612. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  613. );
  614. }
  615. },
  616. {
  617. title: "年限",
  618. dataIndex: "serviceLife",
  619. key: "serviceLife",
  620. render: (text, record) => {
  621. return (
  622. <div>{!!text && JSON.parse(text).toString()}</div>
  623. );
  624. }
  625. },
  626. {
  627. title: "本次派单",
  628. dataIndex: "serviceYear",
  629. key: "serviceYear",
  630. render: (text, record) => {
  631. return (
  632. <div>{!text ? "" : text}</div>
  633. );
  634. }
  635. },
  636. {
  637. title: "项目说明",
  638. dataIndex: "taskComment",
  639. key: "taskComment",
  640. render: (text) => {
  641. return (
  642. <Tooltip title={text}>
  643. <div
  644. style={{
  645. width: 100,
  646. overflow: "hidden",
  647. whiteSpace: "nowrap",
  648. textOverflow: "ellipsis",
  649. }}
  650. >{text}</div>
  651. </Tooltip>
  652. )
  653. },
  654. },
  655. ],
  656. columnsA: [
  657. {
  658. title: "流程",
  659. dataIndex: "content",
  660. key: "content",
  661. align: "center",
  662. },
  663. {
  664. title: "操作人",
  665. dataIndex: "aName",
  666. key: "aName",
  667. align: "center",
  668. },
  669. {
  670. title: "时间",
  671. dataIndex: "createTimes",
  672. key: "createTimes",
  673. align: "center",
  674. },
  675. ],
  676. dataSourceX: [],
  677. dataSourceA: [],
  678. ContactsLists: [
  679. {
  680. title: "批次",
  681. dataIndex: "num",
  682. key: "num",
  683. },
  684. {
  685. title: "下证时间",
  686. dataIndex: "licenceTimes",
  687. key: "licenceTimes",
  688. render: (text, record) => {
  689. return (
  690. <div>
  691. <DatePicker
  692. style={{ marginTop: "5px" }}
  693. showTime
  694. disabled={record.flag}
  695. format="YYYY-MM-DD"
  696. onOk={() => { }}
  697. value={
  698. record.licenceTimes ? moment(record.licenceTimes) : null
  699. }
  700. onChange={(data, dataString) => {
  701. record.licenceTimes = dataString;
  702. this.setState({ contactList: this.state.contactList });
  703. }}
  704. />
  705. </div>
  706. );
  707. },
  708. },
  709. {
  710. title: "下证数量",
  711. dataIndex: "alreadyNumber",
  712. key: "alreadyNumber",
  713. render: (text, record) => {
  714. return (
  715. <div>
  716. {
  717. <Input
  718. disabled={record.flag}
  719. value={record.alreadyNumber}
  720. placeholder="请输入下证数量"
  721. key={record.id}
  722. required="required"
  723. onChange={(e) => {
  724. record.alreadyNumber = e.target.value;
  725. this.setState({ contactList: this.state.contactList });
  726. }}
  727. style={{ width: "120px" }}
  728. />
  729. }
  730. </div>
  731. );
  732. },
  733. },
  734. {
  735. title: "未下证数量",
  736. dataIndex: "notCount",
  737. key: "notCount",
  738. },
  739. {
  740. title: "操作",
  741. dataIndex: "dels",
  742. key: "dels",
  743. render: (text, record, index) => {
  744. return (
  745. <div>
  746. {
  747. <Popconfirm
  748. title="是否删除?"
  749. onConfirm={() => {
  750. this.confirmDelet(record);
  751. }}
  752. okText="删除"
  753. cancelText="不删除"
  754. >
  755. <Button
  756. style={{
  757. marginRight: "10px",
  758. color: "#ffffff",
  759. background: "#f00",
  760. border: "none",
  761. }}
  762. >
  763. 删除
  764. </Button>
  765. </Popconfirm>
  766. }
  767. {record.flag ? (
  768. ""
  769. ) : (
  770. <Button
  771. type="primary"
  772. lo
  773. onClick={(e) => {
  774. e.stopPropagation();
  775. this.contactSave(record, index);
  776. }}
  777. >
  778. 保存
  779. </Button>
  780. )}
  781. </div>
  782. );
  783. },
  784. },
  785. ],
  786. status: 0,
  787. companyColumns: [
  788. {
  789. title: "公司",
  790. dataIndex: "name",
  791. key: "name",
  792. //fixed:'left',
  793. width: 160,
  794. },
  795. {
  796. title: "联系人",
  797. dataIndex: "contacts",
  798. key: "contacts",
  799. },
  800. {
  801. title: "联系人电话",
  802. dataIndex: "contactsMobile",
  803. key: "contactsMobile",
  804. },
  805. {
  806. title: "地址",
  807. dataIndex: "companyProvinceArr",
  808. key: "companyProvinceArr",
  809. width: 140,
  810. render: (test) => {
  811. return test[0] === null
  812. ? ""
  813. : getprovince(test[0]) +
  814. "/" +
  815. getprovince(test[1]) +
  816. "/" +
  817. getprovince(test[2]);
  818. },
  819. },
  820. {
  821. title: "详细地址",
  822. dataIndex: "address",
  823. key: "address",
  824. },
  825. {
  826. title: "操作",
  827. width: 160,
  828. render: (text, record) => {
  829. return (
  830. <div>
  831. <Button
  832. type="primary"
  833. onClick={() => {
  834. this.setState({
  835. companyId: record.id,
  836. updataSwicth: true,
  837. cName: record.name,
  838. companyContacts: record.contacts,
  839. companyContactsMobile: record.contactsMobile,
  840. companyProvinceArr: record.companyProvinceArr,
  841. companyAddress: record.address,
  842. companyRemarks: record.remarks,
  843. });
  844. this.openNotification();
  845. }}
  846. >
  847. 修改
  848. </Button>
  849. <Popconfirm
  850. title="是否确认删除?"
  851. okText="确定"
  852. onConfirm={() => {
  853. this.deleteCompany(record.id);
  854. }}
  855. cancelText="取消"
  856. >
  857. <Button type="danger" style={{ marginLeft: "10px" }}>
  858. 删除
  859. </Button>
  860. </Popconfirm>
  861. </div>
  862. );
  863. },
  864. },
  865. ],
  866. displayFees: 'none',
  867. costReduction: '',
  868. officialCost: '',
  869. };
  870. },
  871. /* 分派 */
  872. evaluate(record, nub, flag) {
  873. this.state.assignData = record;
  874. this.setState(
  875. {
  876. nub,
  877. assignData: record,
  878. flag,
  879. },
  880. () => {
  881. this.setState({
  882. assignVisible: true,
  883. });
  884. }
  885. );
  886. },
  887. componentWillMount() {
  888. // this.departmentList();
  889. this.loadData();
  890. },
  891. componentDidMount() {
  892. this.setColor();
  893. },
  894. setColor() {
  895. $(".userName span").after(
  896. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  897. );
  898. },
  899. async tableRowClick(record) {
  900. this.state.RowData = record;
  901. let str = record.taskName;
  902. let test = str.indexOf("会员");
  903. if (test == -1) {
  904. this.setState({
  905. isHuiyuan: false,
  906. });
  907. } else {
  908. this.setState({
  909. isHuiyuan: true,
  910. });
  911. }
  912. if (record.taskName.substring(0, 5) === "软件著作权") {
  913. this.setState({
  914. speVisible: true,
  915. id: record.id,
  916. splitStatus: record.splitStatus,
  917. splitSuper: record.splitSuper,
  918. splitId: record.splitId,
  919. dataArr: record,
  920. commodityQuantity: record.commodityQuantity,
  921. });
  922. } else {
  923. this.setState({
  924. visible: true,
  925. splitStatus: record.splitStatus,
  926. splitSuper: record.splitSuper,
  927. splitId: record.splitId,
  928. patentNameType: record.patentNameType,
  929. patentName: record.patentName,
  930. });
  931. }
  932. this.setState({
  933. orderNo: record.orderNo,
  934. id: record.id,
  935. isIso: record.taskName.indexOf("贯标") !== -1,
  936. projectType: record.projectType,
  937. })
  938. this.xiangqings(record.orderNo);
  939. this.xiangmu(record.orderNo);
  940. this.loaduserss(record);
  941. // 获取第三方信息表格
  942. this.thirdTable(record.id)
  943. await this.xiangqing(record.id);
  944. // 获取Csort
  945. await this.getCsortData(this.state.sort)
  946. await this.payNodeTable(record.id);
  947. this.projectTypeTabContent(record.projectType)
  948. },
  949. //点击修改项目详情
  950. tijiaoOk(status = '', fn) {
  951. if (moneyVerify(this.state.setUpAmount)) {
  952. return;
  953. }
  954. let attachmentUrls = [];
  955. if (this.state.attachmentUrl.length) {
  956. let picArr = [];
  957. this.state.attachmentUrl.map(function (item) {
  958. if (item.response && item.response.data && item.response.data.length) {
  959. picArr.push(item.response.data);
  960. }
  961. });
  962. attachmentUrls = picArr.join(",");
  963. }
  964. this.setState({
  965. loading: true,
  966. });
  967. $.ajax({
  968. method: "POST",
  969. dataType: "json",
  970. crossDomain: false,
  971. url: globalConfig.context + "/api/admin/orderProject/updateOrderTask",
  972. data: {
  973. id: this.state.id, //项目编号
  974. orderNo: this.state.orderNo, //订单编号
  975. projectStatus: status || this.state.projectStatus, //项目状态
  976. status: this.state.status, //状态
  977. taskStatus: this.state.taskStatus, //项目状态
  978. taskComment: this.state.taskComment, //说明
  979. startDate: this.state.startDate, //启动日期
  980. endDate: this.state.endDate, //结束日期
  981. acceptDate: this.state.acceptDate, //受理日期
  982. reviewDate: this.state.reviewDate, //评审日期
  983. publicityDate: this.state.publicityDate, //公示日期
  984. licenceDate: this.state.licenceDate, //发证日期
  985. attachmentUrl: attachmentUrls.length ? attachmentUrls : "", //附件
  986. contacts: this.state.contacts, //联系人
  987. contactMobile: this.state.contactMobile, //联系人电话
  988. legalPerson: this.state.legalPerson, //法人
  989. legalPersonTel: this.state.legalPersonTel, //法人电话
  990. certificateNumber: this.state.certificateNumber, //证书编号
  991. formRetrieve: this.state.formRetrieve, //满意度表格
  992. taskRefund: this.state.taskRefund, //退单
  993. refundContent: this.state.refundContent, //退单信息
  994. retrieveContent: this.state.retrieveContent, //回收信息
  995. locationProvince: this.state.ProvinceCity[0],
  996. locationCity: this.state.ProvinceCity[1],
  997. locationArea: this.state.ProvinceCity[2],
  998. postalAddress: this.state.postalAddress, //详细地址
  999. arrivalMoney: this.state.arrivalMoney, //是否到款
  1000. setUpAmount: this.state.setUpAmount, //立项金额
  1001. declareUser: this.state.declareUser, //账号
  1002. declarePwd: this.state.declarePwd, //密码
  1003. outsourceName: this.state.outsourceName, //外包公司名称
  1004. outsourcePrice: this.state.outsourcePrice, //外包价格
  1005. declarationBatch: this.state.declarationBatch,
  1006. specialComment: this.state.specialComment || undefined,//特别说明
  1007. setUpStatus: typeof this.state.setUpStatus === 'number' ? this.state.setUpStatus : undefined,//是否立项
  1008. setUpTime: this.state.setUpTime || undefined,//立项时间
  1009. highTechStatus: typeof this.state.highTechStatus === 'number' ? this.state.highTechStatus : undefined,//是否高新
  1010. spotCheckStatus: typeof this.state.spotCheckStatus === 'number' ? this.state.spotCheckStatus : undefined,//是否抽查 0否 1未通过 2通过
  1011. urgentDay: typeof this.state.urgentDay === 'number' ? this.state.urgentDay : undefined,//加急天数
  1012. ifMaterial: typeof this.state.ifMaterial === 'number' ? this.state.ifMaterial : undefined,//有无材料
  1013. acceptCount: this.state.acceptCount || undefined,
  1014. certificatesCount: this.state.certificatesCount || undefined,
  1015. rejectCount: this.state.rejectCount || undefined,
  1016. certificationCorporate: this.state.certificationCorporate || undefined,//认证费公司
  1017. certificationFee: this.state.certificationFee,//认证费
  1018. ifCertificationFee: this.state.ifCertificationFee,//是否包含认证费
  1019. },
  1020. }).done(
  1021. function (data) {
  1022. this.setState({
  1023. loading: false,
  1024. });
  1025. if (!data.error.length) {
  1026. message.success("保存成功!");
  1027. fn ? fn() : this.visitCancel();
  1028. } else {
  1029. message.warning(data.error[0].message);
  1030. }
  1031. }.bind(this)
  1032. );
  1033. },
  1034. //点击修改项目详情
  1035. tianjiaOk() {
  1036. if (this.state.attachmentUrl.length) {
  1037. let picArr = [];
  1038. this.state.attachmentUrl.map(function (item) {
  1039. if (item.response && item.response.data && item.response.data.length) {
  1040. picArr.push(item.response.data);
  1041. }
  1042. });
  1043. }
  1044. $.ajax({
  1045. method: "POST",
  1046. dataType: "json",
  1047. crossDomain: false,
  1048. url: globalConfig.context + "/api/admin/orderProject/addTaskHours",
  1049. data: {
  1050. taskId: this.state.taskId, //项目编号
  1051. hours: this.state.hours, //工时
  1052. remarks: this.state.remarks, //说明
  1053. taskDate: this.state.taskDate, //日期
  1054. taskComment: this.state.taskComment, //说明
  1055. },
  1056. }).done(
  1057. function (data) {
  1058. this.setState({
  1059. loading: false,
  1060. });
  1061. if (!data.error.length) {
  1062. message.success("保存成功!");
  1063. this.noCancel();
  1064. } else {
  1065. message.warning(data.error[0].message);
  1066. }
  1067. }.bind(this)
  1068. );
  1069. },
  1070. //订单详情
  1071. xiangqing(id) {
  1072. return $.ajax({
  1073. method: "get",
  1074. dataType: "json",
  1075. crossDomain: false,
  1076. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  1077. data: {
  1078. id: id,
  1079. },
  1080. success: function (data) {
  1081. let thisdata = data.data;
  1082. if (data.error.length || data.data.list == "") {
  1083. if (data.error && data.error.length) {
  1084. message.warning(data.error[0].message);
  1085. }
  1086. } else {
  1087. localStorage.setItem('cSort', thisdata.sort);
  1088. this.setState({
  1089. cSort: thisdata.sort,
  1090. certificationCorporate: thisdata.certificationCorporate,//认证费公司
  1091. certificationFee: thisdata.certificationFee,//认证费
  1092. ifCertificationFee: thisdata.ifCertificationFee,//是否包含认证费
  1093. id: thisdata.id, //ID
  1094. sort: thisdata.sort,
  1095. orderNo: thisdata.orderNo, //订单编号
  1096. splitId: thisdata.splitId,//拆分序号
  1097. splitStatus: thisdata.splitStatus,//0未拆分 1已拆分
  1098. splitSuper: thisdata.splitSuper,//拆分前项目编号
  1099. userName: thisdata.userName, //客户名称
  1100. taskName: thisdata.taskName, //项目名称
  1101. cname: thisdata.cname, //项目品类
  1102. contractNo: thisdata.contractNo, //合同编号
  1103. projectStatus: thisdata.projectStatus.toString(), //项目状态
  1104. taskStatus: thisdata.taskStatus.toString(), //项目状态
  1105. taskDate: thisdata.taskDate, //分配时间
  1106. taskComment: thisdata.taskComment, //说明
  1107. taskCommentData: thisdata.taskComment, //原项目说明
  1108. attachmentUrl: thisdata.attachmentUrl
  1109. ? splitUrl(
  1110. thisdata.attachmentUrl,
  1111. ",",
  1112. globalConfig.avatarHost + "/upload"
  1113. )
  1114. : [], //图片地址
  1115. salesmanName: thisdata.salesmanName, //订单负责人
  1116. startDate: thisdata.startDate, //启动日期
  1117. endDate: thisdata.endDate, //结束日期
  1118. acceptDate: thisdata.acceptDate, //受理日期
  1119. reviewDate: thisdata.reviewDate, //评审日期
  1120. publicityDate: thisdata.publicityDate, //公示日期
  1121. licenceDate: thisdata.licenceDate, //发证日期
  1122. contacts: thisdata.contacts, //联系人
  1123. contactMobile: thisdata.contactMobile, //联系人电话
  1124. legalPerson: thisdata.legalPerson, //法人
  1125. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1126. certificateNumber: thisdata.certificateNumber, //证书编号
  1127. status: thisdata.status, //状态 0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  1128. // modifyProjectStatus: thisdata.status,
  1129. formRetrieve: thisdata.formRetrieve, //满意度表格
  1130. taskRefund: thisdata.taskRefund, //退单
  1131. refundContent: thisdata.refundContent, //退单信息
  1132. retrieveContent: thisdata.retrieveContent, //回收信息
  1133. arrivalMoney: thisdata.arrivalMoney, //是否到款
  1134. setUpAmount: thisdata.setUpAmount, //立项金额
  1135. declareUser: thisdata.declareUser, //账号
  1136. declarePwd: thisdata.declarePwd, //密码
  1137. outsourceName: thisdata.outsourceName, //外包公司名称
  1138. outsourcePrice: thisdata.outsourcePrice, //外包价格
  1139. declarationBatch: thisdata.declarationBatch,
  1140. orderTaskOfficialCost: thisdata.officialCost, //官费 0无 1有
  1141. orderTaskCostReduction: thisdata.costReduction,//费减
  1142. bpType: thisdata.bpType,//0 正常 1专利 2软著 3审计 4双软 5高新 6商标
  1143. specialComment: thisdata.specialComment,
  1144. urgentDay: thisdata.urgentDay, //有无材料
  1145. ifMaterial: thisdata.ifMaterial, //加急情况
  1146. spotCheckStatus: thisdata.spotCheckStatus,
  1147. setUpStatus: thisdata.setUpStatus,
  1148. setUpTime: thisdata.setUpTime,
  1149. highTechStatus: thisdata.highTechStatus,
  1150. acceptCount: thisdata.acceptCount, //受理数
  1151. certificatesCount: thisdata.certificatesCount, //授权数
  1152. rejectCount: thisdata.rejectCount, //驳回数
  1153. commodityQuantity: thisdata.commodityQuantity, //派单项目数PatentSchedule
  1154. timeRecord: thisdata.timeRecord || '{}',//项目状态JSON
  1155. timeRecordparse: thisdata.timeRecord ? JSON.parse(thisdata.timeRecord) : {},//项目状态JSON
  1156. checkStatus: thisdata.checkStatus,//核对状态
  1157. patentTypeName: thisdata.patentTypeName,
  1158. patentTypeId: thisdata.patentType,//官费专利类型
  1159. });
  1160. }
  1161. }.bind(this),
  1162. }).always(
  1163. function () {
  1164. this.setState({
  1165. loading: false,
  1166. });
  1167. }.bind(this)
  1168. );
  1169. },
  1170. //订单详情
  1171. xiangqings(orderNos) {
  1172. $.ajax({
  1173. method: "get",
  1174. dataType: "json",
  1175. crossDomain: false,
  1176. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1177. data: {
  1178. orderNo: orderNos,
  1179. },
  1180. success: function (data) {
  1181. let thisdata = data.data;
  1182. let ProvinceCityArr = [];
  1183. let ProvinceS = thisdata.locationProvince; //省
  1184. let citys = thisdata.locationCity; //市
  1185. let Areas = thisdata.locationArea; //区
  1186. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1187. if (data.error.length || data.data.list == "") {
  1188. if (data.error && data.error.length) {
  1189. message.warning(data.error[0].message);
  1190. }
  1191. } else {
  1192. this.setState({
  1193. orderUid: thisdata.uid,
  1194. examineName: thisdata.examineName,
  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. message.warning("公司名称不能为空!");
  1620. return;
  1621. }
  1622. if (this.state.companyContacts === undefined) {
  1623. message.warning("联系人不能为空!");
  1624. return;
  1625. }
  1626. if (this.state.companyContactsMobile === undefined) {
  1627. message.warning("联系人电话不能为空!");
  1628. return;
  1629. }
  1630. return true;
  1631. },
  1632. //删除外包
  1633. deleteCompany(id) {
  1634. $.ajax({
  1635. method: "post",
  1636. dataType: "json",
  1637. crossDomain: false,
  1638. url: globalConfig.context + "/api/admin/outsourceOrg/deleteOutsourceOrg",
  1639. data: {
  1640. id: id,
  1641. },
  1642. success: function () { }.bind(this),
  1643. }).done(
  1644. function () {
  1645. this.setState({
  1646. loading: false,
  1647. });
  1648. message.warning("删除成功");
  1649. }.bind(this)
  1650. );
  1651. },
  1652. //重置外包
  1653. companyReset() {
  1654. this.setState({
  1655. cName: undefined,
  1656. companyContacts: undefined,
  1657. companyContactsMobile: undefined,
  1658. companyProvinceArr: [],
  1659. companyAddress: undefined,
  1660. companyRemarks: undefined,
  1661. });
  1662. },
  1663. foo2() {
  1664. this.setState({
  1665. testFlag1: false,
  1666. });
  1667. },
  1668. foo1() {
  1669. this.setState({
  1670. testFlag1: true,
  1671. });
  1672. },
  1673. foo() {
  1674. this.setState({
  1675. testFlag: false,
  1676. });
  1677. },
  1678. nextCancel() {
  1679. this.setState({
  1680. projectOperationVisible: false,
  1681. dataInfor: {},
  1682. }, () => {
  1683. this.xiangmu(this.state.orderNo);
  1684. });
  1685. },
  1686. //点击打卡项目详情
  1687. tableRowClickX(record) {
  1688. this.setState({
  1689. projectOperationVisible: true,
  1690. dataInfor: record,
  1691. });
  1692. },
  1693. //关闭添加工时
  1694. noCancel() {
  1695. this.setState({
  1696. lookVisible: false,
  1697. });
  1698. this.reset();
  1699. },
  1700. search() {
  1701. this.loadData();
  1702. },
  1703. reset(page) {
  1704. this.state.id = ""; //项目编号
  1705. this.state.orderNo = ""; //订单编号
  1706. this.state.contractNoSearch = undefined; //订单编号
  1707. this.state.projectStatus = undefined; //项目状态
  1708. this.state.projectStatusSearch = undefined; //项目状态
  1709. this.state.taskStatuSearch = undefined; //项目状态
  1710. this.state.taskComment = ""; //说明
  1711. this.state.taskCommentData = "";
  1712. this.state.startDate = ""; //启动日期
  1713. this.state.endDate = ""; //结束日期
  1714. this.state.acceptDate = ""; //受理日期
  1715. this.state.reviewDate = ""; //评审日期
  1716. this.state.publicityDate = ""; //公示日期
  1717. this.state.licenceDate = ""; //发证日期
  1718. // attachmentUrl: []; //附件
  1719. this.state.contacts = ""; //联系人
  1720. this.state.contactMobile = ""; //联系人电话
  1721. this.state.legalPerson = ""; //法人
  1722. this.state.legalPersonTel = ""; //法人电话
  1723. this.state.taskId = ""; //项目编号
  1724. this.state.hours = ""; //工时
  1725. this.state.remarks = ""; //说明
  1726. this.state.taskDate = ""; //日期
  1727. this.state.nameSearch = "";
  1728. this.state.releaseDate = [];
  1729. this.state.orderNoSearch = "";
  1730. this.state.taskNoSearch = "";
  1731. this.state.distribution = undefined;
  1732. this.state.departmenttSearch = undefined;
  1733. this.state.outsourceName = ""; //外包公司名称
  1734. this.state.outsourcePrice = ""; //外包价格
  1735. this.state.approvalSearch = undefined;
  1736. this.Cascaders.empty();
  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.orderNoSearch}
  3214. onChange={(e) => {
  3215. this.setState({ orderNoSearch: e.target.value });
  3216. }}
  3217. />
  3218. <Input
  3219. placeholder="合同编号"
  3220. value={this.state.contractNoSearch}
  3221. onChange={(e) => {
  3222. this.setState({ contractNoSearch: e.target.value });
  3223. }}
  3224. />
  3225. <Input
  3226. placeholder="客户名称"
  3227. value={this.state.nameSearch}
  3228. onChange={(e) => {
  3229. this.setState({ nameSearch: 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. <Cascaders
  3240. ref={ref => this.Cascaders = ref}
  3241. placeholder="选择部门"
  3242. height={28}
  3243. onSel={(e) => {
  3244. this.setState({
  3245. departmenttSearch: JSON.stringify(e)
  3246. })
  3247. }}
  3248. />
  3249. {/* <Select
  3250. placeholder="选择部门"
  3251. style={{ width: 200, marginRight: "10px" }}
  3252. value={this.state.departmenttSearch}
  3253. onChange={(e) => {
  3254. this.setState({ departmenttSearch: e });
  3255. }}
  3256. >
  3257. {departmentArr.map(function (item) {
  3258. return (
  3259. <Select.Option key={item.id}>{item.name}</Select.Option>
  3260. );
  3261. })}
  3262. </Select> */}
  3263. <Cascader
  3264. placeholder="项目状态"
  3265. style={{ width: 150, marginRight: '10px' }}
  3266. options={projectStatusCascader}
  3267. value={this.state.projectStatusSearch}
  3268. onChange={(e) => {
  3269. this.setState({
  3270. projectStatusSearch: e
  3271. })
  3272. }}
  3273. />
  3274. <Select
  3275. placeholder="特批状态"
  3276. style={{ width: 150, marginRight: "10px" }}
  3277. value={this.state.approvalSearch}
  3278. onChange={(e) => {
  3279. this.setState({ approvalSearch: e });
  3280. // console.log(this.state.approvalSearch);
  3281. }}
  3282. >
  3283. <Select.Option key={0}>非特批</Select.Option>
  3284. <Select.Option key={1}>总裁特批</Select.Option>
  3285. <Select.Option key={2}>董事长特批</Select.Option>
  3286. </Select>
  3287. <Button type="primary" onClick={this.search}>
  3288. 搜索
  3289. </Button>
  3290. <Button onClick={() => {
  3291. this.reset();
  3292. }}>重置</Button>
  3293. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3294. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3295. <span>订单时间 :</span>
  3296. <RangePicker
  3297. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3298. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3299. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3300. </div> */}
  3301. </div>
  3302. </TabPane>
  3303. <TabPane tab="导出Excel" key="3">
  3304. <Button
  3305. type="primary"
  3306. style={{ margin: "11px 0 10px 10px" }}
  3307. onClick={this.exportExec}
  3308. >
  3309. 导出Excel
  3310. </Button>
  3311. </TabPane>
  3312. <TabPane tab="更改表格显示数据" key="1">
  3313. <div style={{ marginLeft: 10 }}>
  3314. <ChooseList
  3315. columns={this.state.columns}
  3316. changeFn={this.changeList}
  3317. changeList={this.state.changeList}
  3318. top={55}
  3319. margin={11}
  3320. />
  3321. </div>
  3322. </TabPane>
  3323. {/* <TabPane tab="批量操作" key="6">
  3324. <Button
  3325. type="primary"
  3326. disabled={this.state.selectedRowKeys.length == 0}
  3327. style={{ margin: "0px 0px 10px 10px" }}
  3328. onClick={e => {
  3329. e.stopPropagation(),
  3330. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3331. }}
  3332. >
  3333. 转交
  3334. </Button>
  3335. </TabPane> */}
  3336. </Tabs>
  3337. <div className="patent-table">
  3338. <Spin spinning={this.state.loading}>
  3339. <Table
  3340. columns={
  3341. this.state.changeList == undefined
  3342. ? this.state.columns
  3343. : this.state.changeList
  3344. }
  3345. style={{
  3346. cursor: 'pointer',
  3347. }}
  3348. dataSource={this.state.dataSource}
  3349. pagination={this.state.pagination}
  3350. onRowClick={this.tableRowClick.bind(this)}
  3351. scroll={{ x: "max-content", y: 0 }}
  3352. bordered
  3353. size={"small"}
  3354. />
  3355. </Spin>
  3356. </div>
  3357. <Assign
  3358. title="项目"
  3359. selApi={"/api/admin/orderProject/projectDistribution"}
  3360. data={this.state.assignData}
  3361. showDesc={this.state.assignVisible}
  3362. closeDesc={this.closeAssign.bind(this)}
  3363. fenpaiData={8}
  3364. specially={0}
  3365. type={this.props.isZxs ? (this.state.flag ? 4 : 3) : 1}
  3366. roleName={this.state.nub}
  3367. requestMethod={"post"}
  3368. flag={this.state.flag}
  3369. isZhuan={this.state.isZhuan} //是否转交
  3370. />
  3371. {this.state.visible ? <Modal
  3372. className="customeDetails"
  3373. footer=""
  3374. title=""
  3375. width="1200px"
  3376. maskClosable={false}
  3377. visible={this.state.visible}
  3378. onOk={this.visitOk}
  3379. onCancel={() => {
  3380. this.setState({
  3381. visible: false,
  3382. speVisible: false,
  3383. modKey: "1",
  3384. updataSwicth: false,
  3385. projectSituationVisible: false,
  3386. });
  3387. this.companyReset();
  3388. this.loadData(this.state.page);
  3389. }}
  3390. >
  3391. <div style={{ position: "relative" }}>
  3392. <div style={{
  3393. position: "absolute",
  3394. top: 0,
  3395. left: 0,
  3396. right: 0,
  3397. bottom: 0,
  3398. zIndex: 1000,
  3399. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3400. display: parseInt(this.state.projectStatus) === 0 ? 'flex' : 'none',
  3401. justifyContent: 'center',
  3402. paddingTop: '300px',
  3403. background: 'rgba(0,0,0,0.7)',
  3404. borderRadius: '4px',
  3405. borderTopRightRadius: '96px',
  3406. }}>
  3407. <Button
  3408. type="primary"
  3409. style={{
  3410. }}
  3411. size='large'
  3412. onClick={() => {
  3413. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3414. this.updateProjectStatus(1, () => {
  3415. this.xiangqing(this.state.id)
  3416. });
  3417. }}>
  3418. 开始启动项目
  3419. </Button>
  3420. </div>
  3421. <Tabs
  3422. onChange={this.callBack}
  3423. activeKey={this.state.modKey}
  3424. tabBarExtraContent={
  3425. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  3426. <span>
  3427. 项目名称:
  3428. <span style={{ color: '#F00', paddingRight: '5px' }}>{this.state.taskName}</span>
  3429. </span>
  3430. <span style={{ marginLeft: '15px' }}>
  3431. 项目编号:
  3432. <span style={{ color: '#F00', paddingRight: '5px' }}>
  3433. {this.state.id}
  3434. {
  3435. this.state.splitStatus === 2 ? '(' + this.state.splitSuper + '-' + this.state.splitId + ')' : ''
  3436. }
  3437. </span>
  3438. </span>
  3439. <OrderItemStatus deleteSign={this.state.deleteSign} />
  3440. </div>
  3441. }
  3442. >
  3443. <TabPane tab="项目概况" key="1">
  3444. {this.state.modKey === "1" ? <Form
  3445. layout="horizontal"
  3446. onSubmit={this.handleSubmit}
  3447. id="demand-form"
  3448. style={{ paddingBottom: "00px" }}
  3449. >
  3450. <Spin spinning={this.state.loading}>
  3451. <div className="clearfix">
  3452. <div className="clearfix">
  3453. <FormItem
  3454. className="half-item"
  3455. {...formItemLayout}
  3456. label="项目状态"
  3457. >
  3458. {
  3459. getProjectName(parseInt(this.state.projectStatus))
  3460. }
  3461. {
  3462. this.state.projectStatus !== 0 ? <Button
  3463. type="primary"
  3464. size="small"
  3465. style={{
  3466. marginTop: "5px",
  3467. marginLeft: '5px',
  3468. }}
  3469. onClick={() => {
  3470. this.setState({
  3471. projectSituationVisible: true,
  3472. })
  3473. }}
  3474. >
  3475. 修改
  3476. </Button> : null
  3477. }
  3478. <Button
  3479. type="primary"
  3480. size="small"
  3481. style={{
  3482. marginTop: "5px",
  3483. position: "absolute",
  3484. zIndex: 1,
  3485. marginLeft: '5px',
  3486. }}
  3487. onClick={this.caozuorizhi}
  3488. >
  3489. 操作日志
  3490. </Button>
  3491. </FormItem>
  3492. <FormItem
  3493. className="half-item"
  3494. {...formItemLayout}
  3495. label="合同编号"
  3496. >
  3497. <span>{this.state.contractNo}</span>
  3498. </FormItem>
  3499. </div>
  3500. <div className="clearfix">
  3501. <FormItem
  3502. className="half-item"
  3503. {...formItemLayout}
  3504. label="是否特批"
  3505. >
  3506. <span>{getApproval(this.state.approval)}</span>
  3507. </FormItem>
  3508. <FormItem
  3509. className="half-item"
  3510. {...formItemLayout}
  3511. label="结算状态"
  3512. >
  3513. <span>
  3514. {getLiquidationStatus(this.state.liquidationStatus)}
  3515. </span>
  3516. </FormItem>
  3517. <FormItem
  3518. className="half-item"
  3519. {...formItemLayout}
  3520. label="流程状态"
  3521. >
  3522. <span>
  3523. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  3524. </span>
  3525. </FormItem>
  3526. <FormItem
  3527. className="half-item"
  3528. {...formItemLayout}
  3529. label="订单编号"
  3530. >
  3531. <span>{this.state.orderNo}</span>
  3532. </FormItem>
  3533. </div>
  3534. <div className="clearfix">
  3535. <FormItem
  3536. className="half-item"
  3537. {...formItemLayout}
  3538. label="满意度表格"
  3539. >
  3540. <Radio.Group
  3541. value={this.state.formRetrieve}
  3542. onChange={(e) => {
  3543. this.setState({ formRetrieve: e.target.value });
  3544. }}
  3545. >
  3546. <Radio value={0}>未收回</Radio>
  3547. <Radio value={1}>已收回</Radio>
  3548. <Radio value={2}>其他</Radio>
  3549. </Radio.Group>
  3550. </FormItem>
  3551. {
  3552. <FormItem
  3553. className="half-item"
  3554. {...formItemLayout}
  3555. label="(满意度)备注"
  3556. >
  3557. <Input
  3558. type="textarea"
  3559. placeholder="请输入备注"
  3560. rows={2}
  3561. value={this.state.retrieveContent}
  3562. onChange={(e) => {
  3563. this.setState({
  3564. retrieveContent: e.target.value,
  3565. });
  3566. }}
  3567. />
  3568. </FormItem>
  3569. }
  3570. {/*<FormItem*/}
  3571. {/* className="half-item"*/}
  3572. {/* {...formItemLayout}*/}
  3573. {/* label="退单"*/}
  3574. {/*>*/}
  3575. {/* <Radio.Group*/}
  3576. {/* value={this.state.taskRefund}*/}
  3577. {/* onChange={(e) => {*/}
  3578. {/* this.setState({ taskRefund: e.target.value });*/}
  3579. {/* }}*/}
  3580. {/* >*/}
  3581. {/* <Radio value={0}>已完成</Radio>*/}
  3582. {/* <Radio value={1}>未完成</Radio>*/}
  3583. {/* <Radio value={2}>其他</Radio>*/}
  3584. {/* </Radio.Group>*/}
  3585. {/*</FormItem>*/}
  3586. </div>
  3587. <div className="clearfix">
  3588. <div style={{
  3589. paddingLeft: '8%',
  3590. }}>
  3591. <div style={{ color: '#000', fontWeight: 500 }}>
  3592. 特别说明
  3593. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  3594. </div>
  3595. <div style={{ display: 'flex', alignItems: 'center', paddingTop: '10px' }}>
  3596. <div>备注:</div>
  3597. <Input
  3598. type="textarea"
  3599. placeholder="请输入备注"
  3600. rows={3}
  3601. style={{
  3602. width: '33%',
  3603. marginLeft: '10px',
  3604. }}
  3605. value={this.state.specialComment}
  3606. onChange={(e) => {
  3607. this.setState({ specialComment: e.target.value });
  3608. }}
  3609. />
  3610. </div>
  3611. </div>
  3612. {
  3613. // <FormItem
  3614. // className="half-item"
  3615. // {...formItemLayout}
  3616. // label="(退单)备注"
  3617. // >
  3618. // <Input
  3619. // type="textarea"
  3620. // placeholder="请输入备注"
  3621. // rows={2}
  3622. // value={this.state.refundContent}
  3623. // onChange={(e) => {
  3624. // this.setState({ refundContent: e.target.value });
  3625. // }}
  3626. // />
  3627. // </FormItem>
  3628. }
  3629. </div>
  3630. <div className="clearfix">
  3631. <h3 className="sub-title">订单负责人信息</h3>
  3632. <FormItem
  3633. className="half-item"
  3634. {...formItemLayout}
  3635. label="负责人"
  3636. >
  3637. <span>
  3638. {this.state.salesmanName +
  3639. "(" +
  3640. this.state.depName +
  3641. ")"}
  3642. </span>
  3643. </FormItem>
  3644. <FormItem
  3645. className="half-item"
  3646. {...formItemLayout}
  3647. label="负责人电话"
  3648. >
  3649. <span>{this.state.salesmanMobile}</span>
  3650. </FormItem>
  3651. <FormItem
  3652. className="half-item"
  3653. {...formItemLayout}
  3654. label="当前财务负责人"
  3655. >
  3656. <span>{this.state.nowFinance}</span>
  3657. </FormItem>
  3658. <FormItem
  3659. className="half-item"
  3660. {...formItemLayout}
  3661. label="当前财务负责人电话"
  3662. >
  3663. <span>{this.state.nowFinanceMobile}</span>
  3664. </FormItem>
  3665. <FormItem
  3666. className="half-item"
  3667. {...formItemLayout}
  3668. style={{ opacity: ".5" }}
  3669. label="原负责人"
  3670. >
  3671. <span>{this.state.oldSalesmanName}</span>
  3672. </FormItem>
  3673. <FormItem
  3674. className="half-item"
  3675. {...formItemLayout}
  3676. style={{ opacity: ".5" }}
  3677. label="原负责人电话"
  3678. >
  3679. <span>{this.state.oldSalesmanMobile}</span>
  3680. </FormItem>
  3681. <FormItem
  3682. className="half-item"
  3683. {...formItemLayout}
  3684. style={{ opacity: ".5" }}
  3685. label="实际财务操作人"
  3686. >
  3687. <span>{this.state.financeName}</span>
  3688. </FormItem>
  3689. <FormItem
  3690. className="half-item"
  3691. {...formItemLayout}
  3692. style={{ opacity: ".5" }}
  3693. label="实际财务操作人电话"
  3694. >
  3695. <span>{this.state.financeMobile}</span>
  3696. </FormItem>
  3697. <FormItem
  3698. className="half-item"
  3699. {...formItemLayout}
  3700. label="订单留言"
  3701. >
  3702. <span>{this.state.orderRemarks}</span>
  3703. </FormItem>
  3704. <FormItem
  3705. className="half-item"
  3706. {...formItemLayout}
  3707. label=""
  3708. >
  3709. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  3710. </FormItem>
  3711. <OrderRiZi
  3712. dataSourcerizhi={this.state.dataSourceY}
  3713. closeOrderLog={this.closeOrderLog}
  3714. visible={this.state.avisible}
  3715. loading={this.state.loading}
  3716. />
  3717. </div>
  3718. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3719. <div className="clearfix">
  3720. <h3 className="sub-title">联系信息</h3>
  3721. <FormItem
  3722. className="half-item"
  3723. {...formItemLayout}
  3724. label="客户名称"
  3725. >
  3726. <span>{this.state.userName}</span>
  3727. <EnterpriseNameChange
  3728. type='journal'
  3729. style={{ marginLeft: 10 }}
  3730. enterpriseId={this.state.orderUid} />
  3731. </FormItem>
  3732. <FormItem
  3733. className="half-item"
  3734. {...formItemLayout}
  3735. label="企业法人"
  3736. >
  3737. <Input
  3738. placeholder="请输入法人名称"
  3739. value={this.state.legalPerson}
  3740. style={{ width: "200px" }}
  3741. onChange={(e) => {
  3742. this.setState({ legalPerson: e.target.value });
  3743. }}
  3744. ref="commodityQuantity"
  3745. />
  3746. </FormItem>
  3747. <FormItem
  3748. className="half-item"
  3749. {...formItemLayout}
  3750. label="法人电话"
  3751. >
  3752. <Input
  3753. placeholder="请输入法人电话"
  3754. value={this.state.legalPersonTel}
  3755. style={{ width: "200px" }}
  3756. onChange={(e) => {
  3757. this.setState({ legalPersonTel: e.target.value });
  3758. }}
  3759. ref="commodityQuantity"
  3760. />
  3761. </FormItem>
  3762. <FormItem
  3763. className="half-item"
  3764. {...formItemLayout}
  3765. label="客户联系人"
  3766. >
  3767. <Input
  3768. placeholder="请输入联系人名称"
  3769. value={this.state.contacts}
  3770. style={{ width: "200px" }}
  3771. onChange={(e) => {
  3772. this.setState({ contacts: e.target.value });
  3773. }}
  3774. ref="commodityQuantity"
  3775. />
  3776. </FormItem>
  3777. <FormItem
  3778. className="half-item"
  3779. {...formItemLayout}
  3780. label="联系人电话"
  3781. >
  3782. <Input
  3783. placeholder="请输入联系人电话"
  3784. value={this.state.contactMobile}
  3785. style={{ width: "200px" }}
  3786. onChange={(e) => {
  3787. this.setState({ contactMobile: e.target.value });
  3788. }}
  3789. ref="commodityQuantity"
  3790. />
  3791. </FormItem>
  3792. <FormItem
  3793. className="half-item"
  3794. {...formItemLayout}
  3795. label="企业地址"
  3796. >
  3797. <Cascader
  3798. options={areaSelect()}
  3799. value={this.state.ProvinceCity}
  3800. placeholder="选择城市"
  3801. style={{ width: "200px" }}
  3802. onChange={(e) => {
  3803. this.setState({ ProvinceCity: e });
  3804. }}
  3805. />
  3806. </FormItem>
  3807. <FormItem
  3808. className="half-item"
  3809. {...formItemLayout}
  3810. label=""
  3811. />
  3812. <FormItem
  3813. className="half-item"
  3814. {...formItemLayout}
  3815. label=""
  3816. >
  3817. <Input
  3818. placeholder="请输入详细地址"
  3819. value={this.state.postalAddress}
  3820. style={{ width: "200px", marginLeft: "12em" }}
  3821. onChange={(e) => {
  3822. this.setState({ postalAddress: e.target.value });
  3823. }}
  3824. ref="commodityQuantity"
  3825. />
  3826. </FormItem>
  3827. </div>
  3828. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3829. <div className="clearfix">
  3830. <h3 className="sub-title">项目信息</h3>
  3831. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  3832. {/*贯标需要显示*/}
  3833. {
  3834. this.state.isIso ?
  3835. <div>
  3836. <FormItem
  3837. className="half-item"
  3838. {...formItemLayout}
  3839. label="认证费"
  3840. >
  3841. <span>
  3842. {
  3843. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  3844. }
  3845. </span>
  3846. </FormItem>
  3847. {this.state.ifCertificationFee === 1 ? <FormItem
  3848. className="half-item"
  3849. {...formItemLayout}
  3850. label="认证费(万元)"
  3851. >
  3852. <Input
  3853. placeholder="请输入认证金额"
  3854. value={this.state.certificationFee}
  3855. style={{ width: '200px' }}
  3856. onChange={(e) => {
  3857. this.setState({ certificationFee: e.target.value })
  3858. }}
  3859. />
  3860. </FormItem> : null}
  3861. {this.state.ifCertificationFee === 1 ? <FormItem
  3862. className="half-item"
  3863. {...formItemLayout}
  3864. label=""
  3865. /> : null}
  3866. {this.state.ifCertificationFee === 1 ? <FormItem
  3867. className="half-item"
  3868. {...formItemLayout}
  3869. label="付款公司名称"
  3870. >
  3871. <Input
  3872. placeholder="请输入代付款公司名称"
  3873. value={this.state.certificationCorporate}
  3874. style={{ width: '200px' }}
  3875. onChange={(e) => {
  3876. this.setState({ certificationCorporate: e.target.value })
  3877. }}
  3878. ref="commodityQuantity"
  3879. />
  3880. </FormItem> : null}
  3881. </div> : null
  3882. }
  3883. <FormItem
  3884. className="half-item"
  3885. {...formItemLayout}
  3886. label="项目编号"
  3887. >
  3888. <span>
  3889. {this.state.splitStatus == 2
  3890. ? this.state.splitSuper + "-" + this.state.splitId
  3891. : this.state.id}
  3892. </span>
  3893. </FormItem>
  3894. <FormItem
  3895. className="half-item"
  3896. {...formItemLayout}
  3897. label="项目名称"
  3898. >
  3899. <span>{this.state.taskName}</span>
  3900. </FormItem>
  3901. {/*<FormItem*/}
  3902. {/* className="half-item"*/}
  3903. {/* {...formItemLayout}*/}
  3904. {/* label="项目状态"*/}
  3905. {/*>*/}
  3906. {/* <Select*/}
  3907. {/* placeholder="选择项目状态"*/}
  3908. {/* style={{ width: "200px" }}*/}
  3909. {/* value={this.state.taskStatus}*/}
  3910. {/* onChange={(e) => {*/}
  3911. {/* this.setState({ taskStatus: e });*/}
  3912. {/* }}*/}
  3913. {/* >*/}
  3914. {/* {taskStatus.map(function (item) {*/}
  3915. {/* return (*/}
  3916. {/* <Select.Option key={item.value}>*/}
  3917. {/* {item.key}*/}
  3918. {/* </Select.Option>*/}
  3919. {/* );*/}
  3920. {/* })}*/}
  3921. {/* </Select>*/}
  3922. {/*</FormItem>*/}
  3923. <FormItem
  3924. className="half-item"
  3925. {...formItemLayout}
  3926. label="项目类别"
  3927. >
  3928. <span>{this.state.cname}</span>
  3929. </FormItem>
  3930. <FormItem
  3931. className="half-item"
  3932. {...formItemLayout}
  3933. label="证书编号"
  3934. >
  3935. {this.state.certificateNumber}
  3936. </FormItem>
  3937. </div>
  3938. <div className="clearfix">
  3939. <h3 className="sub-title">申报系统账户信息</h3>
  3940. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  3941. <FormItem
  3942. className="half-item"
  3943. {...formItemLayout}
  3944. label="用户名"
  3945. >
  3946. <Input
  3947. placeholder="请输入用户名"
  3948. value={this.state.declareUser}
  3949. style={{ width: "200px" }}
  3950. onChange={(e) => {
  3951. this.setState({ declareUser: e.target.value });
  3952. }}
  3953. />
  3954. </FormItem>
  3955. <FormItem
  3956. className="half-item"
  3957. {...formItemLayout}
  3958. label="密码"
  3959. >
  3960. <Input
  3961. placeholder="请输入密码"
  3962. value={this.state.declarePwd}
  3963. style={{ width: "200px" }}
  3964. onChange={(e) => {
  3965. this.setState({ declarePwd: e.target.value });
  3966. }}
  3967. />
  3968. </FormItem>
  3969. </div>
  3970. <div className="clearfix">
  3971. <h3 className="sub-title">项目申报进度</h3>
  3972. <DeclarationProgress
  3973. timeRecordparse={this.state.timeRecordparse}
  3974. startDate={this.state.startDate}
  3975. taskDate={this.state.taskDate}
  3976. list={[
  3977. { id: 4, name: '完成时间', value: this.state.endDate },
  3978. { id: 6, name: '受理时间', value: this.state.acceptDate },
  3979. { id: 8, name: '公示时间', value: this.state.publicityDate },
  3980. { id: 10, name: '发证时间', value: this.state.licenceDate },
  3981. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  3982. ]} />
  3983. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  3984. {
  3985. this.state.bpType === 1 || this.state.bpType === 6 ?
  3986. <div>
  3987. <FormItem
  3988. className="half-item"
  3989. {...formItemLayout}
  3990. label="是否高新企业"
  3991. >
  3992. <Radio.Group
  3993. value={this.state.highTechStatus}
  3994. onChange={(e) => {
  3995. this.setState({ highTechStatus: e.target.value })
  3996. }}
  3997. >
  3998. <Radio value={1}>是</Radio>
  3999. <Radio value={0}>否</Radio>
  4000. </Radio.Group>
  4001. </FormItem>
  4002. <FormItem />
  4003. <PatentSchedule
  4004. bpType={this.state.bpType}
  4005. taskId={this.state.id}
  4006. acceptCount={this.state.acceptCount}
  4007. certificatesCount={this.state.certificatesCount}
  4008. rejectCount={this.state.rejectCount}
  4009. commodityQuantity={this.state.commodityQuantity}
  4010. refresh={() => { this.xiangqing(this.state.id) }}
  4011. onChange={(key, value) => {
  4012. if (key === 'acceptCount') {
  4013. this.setState({
  4014. acceptCount: value
  4015. })
  4016. }
  4017. if (key === 'certificatesCount') {
  4018. this.setState({
  4019. certificatesCount: value
  4020. })
  4021. }
  4022. if (key === 'rejectCount') {
  4023. this.setState({
  4024. rejectCount: value
  4025. })
  4026. }
  4027. }}
  4028. />
  4029. </div> :
  4030. <div>
  4031. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4032. {this.state.bpType === 5 ? <FormItem
  4033. className="half-item"
  4034. {...formItemLayout}
  4035. label="是否抽查">
  4036. <Radio.Group
  4037. value={this.state.spotCheckStatus}
  4038. onChange={(e) => {
  4039. this.setState({ spotCheckStatus: e.target.value })
  4040. }}
  4041. >
  4042. <Radio value={0}>否</Radio>
  4043. <Radio value={1}>是,未通过</Radio>
  4044. <Radio value={2}>是,通过</Radio>
  4045. </Radio.Group>
  4046. </FormItem> : null}
  4047. {this.state.bpType === 5 ? <FormItem /> : null}
  4048. {this.state.bpType === 5 ? <FormItem
  4049. className="half-item"
  4050. {...formItemLayout}
  4051. label="是否立项"
  4052. >
  4053. <Radio.Group
  4054. value={this.state.setUpStatus}
  4055. onChange={(e) => {
  4056. this.setState({ setUpStatus: e.target.value })
  4057. }}
  4058. >
  4059. <Radio value={0}>否</Radio>
  4060. <Radio value={1}>是</Radio>
  4061. </Radio.Group>
  4062. </FormItem> : null}
  4063. {this.state.bpType === 5 ? <FormItem
  4064. className="half-item"
  4065. {...formItemLayout}
  4066. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  4067. >
  4068. {this.state.setUpStatus === 1 ? <DatePicker
  4069. style={{
  4070. marginTop: '2px',
  4071. width: '200px',
  4072. height: '27px',
  4073. }}
  4074. showTime
  4075. format="YYYY-MM-DD"
  4076. onOk={() => { }}
  4077. value={
  4078. this.state.setUpTime
  4079. ? moment(this.state.setUpTime)
  4080. : null
  4081. }
  4082. onChange={(data, dataString) => {
  4083. this.setState({ setUpTime: dataString })
  4084. }}
  4085. /> : null}
  4086. </FormItem> : null}
  4087. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4088. {/*sort: 3 科技项目 6: 会员*/}
  4089. {(this.state.bpType === 5 || this.state.sort === 3) && <FormItem
  4090. className="half-item"
  4091. {...formItemLayout}
  4092. label="申报批次"
  4093. >
  4094. <Select
  4095. value={
  4096. this.state.declarationBatch
  4097. ? this.state.declarationBatch
  4098. : undefined
  4099. }
  4100. placeholder="请选择批次"
  4101. style={{ width: 200 }}
  4102. onChange={(e) => {
  4103. this.setState({
  4104. declarationBatch: e,
  4105. });
  4106. }}
  4107. >
  4108. <Option value={1}>第一批</Option>
  4109. <Option value={2}>第二批</Option>
  4110. <Option value={3}>第三批</Option>
  4111. <Option value={4}>第四批</Option>
  4112. </Select>
  4113. </FormItem>}
  4114. {/*只有科技项目才有是否到款*/}
  4115. {/*cSort: 3 科技项目 6: 会员*/}
  4116. {this.state.sort === 3 && <FormItem
  4117. className="half-item"
  4118. {...formItemLayout}
  4119. label="是否到款"
  4120. >
  4121. <Radio.Group
  4122. value={this.state.arrivalMoney}
  4123. onChange={(e) => {
  4124. this.setState({ arrivalMoney: e.target.value });
  4125. }}
  4126. >
  4127. <Radio value={0}>未到企业</Radio>
  4128. <Radio value={1}>已到企业</Radio>
  4129. </Radio.Group>
  4130. </FormItem>}
  4131. </div>}
  4132. </div>
  4133. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  4134. <FormItem
  4135. labelCol={{ span: 3 }}
  4136. wrapperCol={{ span: 16 }}
  4137. label="附件"
  4138. >
  4139. <Picture
  4140. domId={'myTaskOutsource1'}
  4141. fileList={(e) => {
  4142. this.setState({ attachmentUrl: e });
  4143. }}
  4144. pictureUrl={this.state.attachmentUrl}
  4145. visible={this.props.visible}
  4146. data={{
  4147. sign: "order_task_file",
  4148. url: "/api/admin/orderProject/uploadOrderTaskFile",
  4149. number: 8,
  4150. }}
  4151. />
  4152. </FormItem>
  4153. </div> : null}
  4154. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  4155. <FormItem
  4156. labelCol={{ span: 3 }}
  4157. wrapperCol={{ span: 16 }}
  4158. label="项目说明"
  4159. >
  4160. <Input
  4161. type="textarea"
  4162. placeholder="请输入项目说明"
  4163. rows={4}
  4164. disabled
  4165. value={this.state.taskComment}
  4166. onChange={(e) => {
  4167. let len = this.state.taskCommentData.length;
  4168. if (e.target.value.slice(0, len) !== this.state.taskCommentData) {
  4169. message.warning('项目说明不允许删除与修改已存在的内容');
  4170. return;
  4171. }
  4172. this.setState({ taskComment: e.target.value });
  4173. }}
  4174. />
  4175. </FormItem>
  4176. </div> : null}
  4177. <div>
  4178. <h3 className="sub-title">项目业务</h3>
  4179. {this.state.processStatus == 0 ? (
  4180. <Button
  4181. type="primary"
  4182. onClick={this.addDetailed}
  4183. style={{
  4184. float: "right",
  4185. marginRight: "50px",
  4186. marginBottom: "15px",
  4187. }}
  4188. >
  4189. 添加项目明细
  4190. </Button>
  4191. ) : (
  4192. ""
  4193. )}
  4194. </div>
  4195. <div className="patent-table">
  4196. <Spin spinning={this.state.loading}>
  4197. <Table
  4198. style={{
  4199. cursor: 'pointer',
  4200. }}
  4201. columns={this.state.columnsX}
  4202. dataSource={this.state.dataSourceX}
  4203. pagination={this.state.paginations}
  4204. onRowClick={this.tableRowClickX}
  4205. bordered
  4206. size="small"
  4207. />
  4208. </Spin>
  4209. </div>
  4210. <div className="clearfix" style={{ display: "flex", justifyContent: "center" }}>
  4211. <Button
  4212. className="cancel"
  4213. type="primary"
  4214. onClick={() => { this.tijiaoOk() }}
  4215. style={{ margin: 25 }}
  4216. htmlType="submit"
  4217. >
  4218. 保存
  4219. </Button>
  4220. <Button
  4221. className="cancel"
  4222. type="ghost"
  4223. onClick={this.visitCancel}
  4224. style={{ margin: 25 }}
  4225. >
  4226. 取消
  4227. </Button>
  4228. </div>
  4229. </div>
  4230. </Spin>
  4231. </Form> : <div />}
  4232. </TabPane>
  4233. <TabPane tab="外包/供应商信息" key="2">
  4234. <Spin spinning={this.state.waiDetailLoading}>
  4235. {this.state.visible && this.state.modKey === '2' ? <div>
  4236. {
  4237. this.state.refundStatus !== 0 && this.state.refundStatus !== 1 ? (
  4238. <div style={{ marginTop: 10 }}>
  4239. <div className="clearfix">
  4240. <FormItem
  4241. className="half-item"
  4242. labelCol={{ span: 3 }}
  4243. wrapperCol={{ span: 14 }}
  4244. label={
  4245. <span>
  4246. <strong style={{ color: '#f00' }}>*</strong>
  4247. 类型
  4248. </span>
  4249. }
  4250. >
  4251. <Radio.Group
  4252. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  4253. value={this.state.startType}
  4254. onChange={(e) => {
  4255. let _this = this;
  4256. if (this.state.thirdInfoList.length > 0) {
  4257. confirm({
  4258. title: '确定要切换吗?',
  4259. content: '切换将删除所有第三信息和付款节点',
  4260. onOk() {
  4261. return new Promise((resolve, reject) => {
  4262. _this.setState({ startType: e.target.value }, () => {
  4263. _this.projectTypeTabContent(_this.state.projectType);
  4264. })
  4265. _this.confirmDeletNew(-1, resolve, reject)
  4266. if (_this.state.payNodeList.length > 0) {
  4267. _this.payNodeConfirmDeletNew(-1, resolve, reject);
  4268. }
  4269. }).catch(() => console.log('Oops errors!'));
  4270. },
  4271. onCancel() { },
  4272. });
  4273. } else {
  4274. this.setState({ startType: e.target.value }, () => {
  4275. this.projectTypeTabContent(this.state.projectType);
  4276. })
  4277. }
  4278. }}
  4279. >
  4280. <Radio value={0}>外包(不走总部)</Radio>
  4281. <Radio value={1}>供应商信息</Radio>
  4282. </Radio.Group>
  4283. </FormItem>
  4284. </div>
  4285. {/* 专利类型 */}
  4286. <div
  4287. className="clearfix"
  4288. style={{
  4289. display: this.state.projectType === 1 ? 'block' : 'none',
  4290. }}
  4291. >
  4292. <FormItem
  4293. className="half-item"
  4294. labelCol={{ span: 4 }}
  4295. wrapperCol={{ span: 14 }}
  4296. label={
  4297. <span>
  4298. <strong style={{ color: '#f00' }}>*</strong>
  4299. 专利类型
  4300. </span>
  4301. }
  4302. >
  4303. <Radio.Group
  4304. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  4305. value={this.state.patentType}
  4306. onChange={(e) => {
  4307. let _this = this;
  4308. if (this.state.thirdInfoList.length > 0) {
  4309. confirm({
  4310. title: '确定要切换吗?',
  4311. content: '切换将删除所有第三信息和付款节点',
  4312. onOk() {
  4313. return new Promise((resolve, reject) => {
  4314. _this.setState({ patentType: e.target.value }, () => {
  4315. _this.projectTypeTabContent(_this.state.projectType);
  4316. })
  4317. _this.confirmDeletNew(-1, resolve, reject)
  4318. if (_this.state.payNodeList.length > 0) {
  4319. _this.payNodeConfirmDeletNew(-1, resolve, reject);
  4320. }
  4321. }).catch(() => console.log('Oops errors!'));
  4322. },
  4323. onCancel() { },
  4324. });
  4325. } else {
  4326. this.setState({ patentType: e.target.value }, () => {
  4327. this.projectTypeTabContent(this.state.projectType);
  4328. })
  4329. }
  4330. }}
  4331. >
  4332. <Radio value={0}>专利申请/变更/转让</Radio>
  4333. <Radio value={1}>专利买卖</Radio>
  4334. </Radio.Group>
  4335. </FormItem>
  4336. </div>
  4337. <div
  4338. className="clearfix"
  4339. style={{
  4340. display: this.state.projectType === 1 ? 'block' : 'none',
  4341. }}
  4342. >
  4343. <FormItem
  4344. className="half-item"
  4345. labelCol={{ span: 4 }}
  4346. wrapperCol={{ span: 14 }}
  4347. label={
  4348. <span>
  4349. <strong style={{ color: '#f00' }}>*</strong>
  4350. 专利名称
  4351. </span>
  4352. }
  4353. >
  4354. <Radio.Group
  4355. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  4356. value={this.state.patentNameType}
  4357. onChange={(e) => {
  4358. let _this = this;
  4359. if (this.state.thirdInfoList.length > 0) {
  4360. confirm({
  4361. title: '确定要切换吗?',
  4362. content: '切换将删除所有第三信息和付款节点',
  4363. onOk() {
  4364. return new Promise((resolve, reject) => {
  4365. _this.setState({ patentNameType: e.target.value }, () => {
  4366. _this.projectTypeTabContent(_this.state.projectType);
  4367. })
  4368. _this.confirmDeletNew(-1, resolve, reject)
  4369. if (_this.state.payNodeList.length > 0) {
  4370. _this.payNodeConfirmDeletNew(-1, resolve, reject);
  4371. }
  4372. }).catch(() => console.log('Oops errors!'));
  4373. },
  4374. onCancel() { },
  4375. });
  4376. } else {
  4377. this.setState({ patentNameType: e.target.value }, () => {
  4378. this.projectTypeTabContent(this.state.projectType);
  4379. })
  4380. }
  4381. }}
  4382. >
  4383. <Radio value={0}>实用新型专利</Radio>
  4384. <Radio value={1}>发明专利</Radio>
  4385. <Radio value={2}>外观专利</Radio>
  4386. {/*<Radio value={3}>*/}
  4387. {/* 其他*/}
  4388. {/* <Input*/}
  4389. {/* disabled={this.state.patentNameType !== 3}*/}
  4390. {/* value={this.state.patentName}*/}
  4391. {/* style={{ marginLeft: '15px' }}*/}
  4392. {/* onChange={(e) => {*/}
  4393. {/* this.setState({*/}
  4394. {/* patentName: e.target.value,*/}
  4395. {/* })*/}
  4396. {/* }}*/}
  4397. {/* placeholder="请填写专利名称"*/}
  4398. {/* />*/}
  4399. {/*</Radio>*/}
  4400. </Radio.Group>
  4401. </FormItem>
  4402. </div>
  4403. {/*外包类型无此选项*/}
  4404. {this.state.startType !== 0 && this.state.projectType === 1 ? <div className="clearfix">
  4405. <FormItem
  4406. className="half-item"
  4407. labelCol={{ span: 3 }}
  4408. wrapperCol={{ span: 15 }}
  4409. label={<span>官费</span>}>
  4410. {
  4411. this.state.patentType === 1 ?
  4412. <Radio.Group
  4413. value={this.state.containOfficialFees}
  4414. onChange={(e) => {
  4415. this.setState({ containOfficialFees: e.target.value })
  4416. }}
  4417. >
  4418. <Radio value={0}>实际已缴费</Radio>
  4419. <Radio value={1}>实际未缴费</Radio>
  4420. </Radio.Group> :
  4421. <PatentCheck
  4422. style={{
  4423. display: 'flex',
  4424. alignItems: 'center',
  4425. }}
  4426. id={this.state.id}
  4427. patentTypeName={this.props.patentTypeName}
  4428. patentTypeId={this.state.patentTypeId}
  4429. checkStatus={this.state.checkStatus} //核对状态
  4430. projectType={this.state.projectType} //项目类型
  4431. patentType={this.state.patentType} //专利类型
  4432. startType={this.state.startType} //1供应商 0外包
  4433. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //1含官费 0不含官费
  4434. orderTaskCostReduction={this.state.orderTaskCostReduction} //1有费减 0无费减
  4435. isPreviewPay={true}
  4436. status={this.state.refundStatus}
  4437. onRefresh={() => {
  4438. this.xiangqing(this.state.id);
  4439. }}
  4440. />
  4441. }
  4442. </FormItem>
  4443. </div> : <div />}
  4444. {/* 第三方信息专利 */}
  4445. <div>
  4446. <span
  4447. style={{
  4448. fontSize: '18px',
  4449. }}
  4450. >
  4451. 第三方信息
  4452. </span>
  4453. <span
  4454. style={{
  4455. display: 'inline-block',
  4456. marginLeft: 10,
  4457. color: 'red',
  4458. }}
  4459. >
  4460. 金额总计(万元): {this.state.allTotalAmount}
  4461. </span>
  4462. <Button
  4463. type="primary"
  4464. onClick={(e) => {
  4465. //this.state.startType 0外包 1供应商 类型为外包时,当普通单
  4466. if (this.state.projectType === 1 && this.state.patentType === -1) {
  4467. message.info('请先选择专利类型');
  4468. } else if (this.state.projectType === 1 && this.state.patentNameType === -1) {
  4469. message.info('请先选择专利名称');
  4470. } else {
  4471. this.addThirdList()
  4472. }
  4473. }}
  4474. style={{
  4475. float: 'right',
  4476. marginRight: '50px',
  4477. marginBottom: '15px',
  4478. }}
  4479. >
  4480. +新增第三方信息
  4481. </Button>
  4482. </div>
  4483. <div
  4484. className="clearfix"
  4485. >
  4486. <Spin spinning={this.state.thirdInfoLoading}>
  4487. <Form layout="horizontal">
  4488. <Table
  4489. pagination={false}
  4490. columns={this.state.ContactsListsNew}
  4491. dataSource={this.state.thirdInfoList}
  4492. onRowClick={this.tableRowClickOne}
  4493. scroll={{ x: 'max-content', y: 0 }}
  4494. bordered
  4495. size="small"
  4496. />
  4497. <Col
  4498. span={24}
  4499. offset={9}
  4500. style={{ marginTop: '15px' }}
  4501. />
  4502. </Form>
  4503. </Spin>
  4504. </div>
  4505. {/*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*/}
  4506. {/*this.state.startType 0外包 1供应商*/}
  4507. <div
  4508. style={{
  4509. display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2 ? 'none' : 'block'), //0正常 1专利 2软著 3审计
  4510. }}
  4511. >
  4512. <span
  4513. style={{
  4514. fontSize: '18px',
  4515. }}
  4516. >
  4517. 付款节点
  4518. </span>
  4519. <span
  4520. style={{
  4521. display: 'inline-block',
  4522. marginLeft: 10,
  4523. color: 'red',
  4524. }}
  4525. />
  4526. <Button
  4527. type="primary"
  4528. onClick={(e) => {
  4529. this.addPayNode()
  4530. }}
  4531. style={{
  4532. float: 'right',
  4533. marginRight: '50px',
  4534. marginBottom: '15px',
  4535. }}
  4536. >
  4537. +新增付款节点
  4538. </Button>
  4539. </div>
  4540. {/*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*/}
  4541. <div
  4542. className="clearfix"
  4543. style={{
  4544. display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2 ? 'none' : 'block'), //0正常 1专利 2软著 3审计
  4545. }}
  4546. >
  4547. <Spin spinning={this.state.payNodeLoading}>
  4548. <Form layout="horizontal">
  4549. <Table
  4550. pagination={false}
  4551. columns={this.state.PayNodeTableColunms}
  4552. dataSource={this.state.payNodeList}
  4553. onRowClick={this.payNodeTableRowClickOne}
  4554. scroll={{ x: 'max-content', y: 0 }}
  4555. bordered
  4556. size="small"
  4557. />
  4558. <Col
  4559. span={24}
  4560. offset={9}
  4561. style={{ marginTop: '15px' }}
  4562. />
  4563. </Form>
  4564. </Spin>
  4565. </div>
  4566. <div className="clearfix">
  4567. <FormItem
  4568. className="half-item"
  4569. {...formItemLayout}
  4570. label={
  4571. <span>
  4572. <strong style={{ color: '#f00' }}>*</strong>备注
  4573. </span>
  4574. }
  4575. >
  4576. <TextArea
  4577. rows={4}
  4578. value={this.state.outsourceRemarks}
  4579. onChange={(e) => {
  4580. this.setState({
  4581. outsourceRemarks: e.target.value,
  4582. })
  4583. }}
  4584. placeholder="请输入备注"
  4585. />
  4586. </FormItem>
  4587. </div>
  4588. <p
  4589. className="tip"
  4590. style={{
  4591. paddingBottom: '12px',
  4592. width: '240px',
  4593. marginLeft: '145px',
  4594. color: 'red',
  4595. }}
  4596. >
  4597. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  4598. </p>
  4599. <div className="clearfix">
  4600. <FormItem
  4601. labelCol={{ span: 4 }}
  4602. wrapperCol={{ span: 18 }}
  4603. label={
  4604. <span>
  4605. 合同/协议扫描件
  4606. </span>
  4607. }
  4608. >
  4609. <PicturesWall
  4610. domId={'myTask3'}
  4611. fileList={this.getOrgCodeUrlWai}
  4612. pictureUrl={this.state.pictureUrl}
  4613. />
  4614. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  4615. </FormItem>
  4616. </div>
  4617. {/*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*/}
  4618. {/*this.state.startType 0外包 1供应商*/}
  4619. {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">
  4620. <FormItem
  4621. className="half-item"
  4622. {...formItemLayout}
  4623. label={
  4624. <span>
  4625. <strong style={{ color: '#f00' }}>*</strong>发起原因
  4626. </span>
  4627. }
  4628. >
  4629. <TextArea
  4630. rows={4}
  4631. value={this.state.reason}
  4632. onChange={(e) => {
  4633. this.setState({
  4634. reason: e.target.value,
  4635. })
  4636. }}
  4637. placeholder="请输入发起原因"
  4638. />
  4639. </FormItem>
  4640. </div> : <div />}
  4641. <div className="clearfix">
  4642. <div
  4643. style={{
  4644. display: 'inline-black',
  4645. textAlign: 'center',
  4646. }}
  4647. >
  4648. <Button
  4649. type="primary"
  4650. loading={this.state.loading}
  4651. onClick={() => {
  4652. this.sureOut(this.state.startType);
  4653. }}
  4654. >
  4655. {
  4656. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  4657. }
  4658. </Button>
  4659. <p className="tip" style={{ color: 'red' }}>
  4660. {
  4661. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  4662. }
  4663. </p>
  4664. </div>
  4665. </div>
  4666. </div>) :
  4667. <CheckProject
  4668. {...this.props}
  4669. tid={this.state.tid}
  4670. sort={this.state.sort}
  4671. orderTaskCostReduction={this.state.orderTaskCostReduction} //是否含费减 0无1有
  4672. patentTypeName={this.state.patentTypeName} //官费类型
  4673. patentTypeId={this.state.patentTypeId}
  4674. commodityQuantity={this.state.commodityQuantity} //项目数量
  4675. checkStatus={this.state.checkStatus}
  4676. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有
  4677. containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费
  4678. status={this.state.refundStatus}
  4679. projectType={this.state.projectType}
  4680. oldInfor={this.state.oldInfor}
  4681. patentNameType={this.state.patentNameType}
  4682. patentName={this.state.patentName}
  4683. patentType={this.state.patentType}
  4684. isPreviewPay={true}
  4685. mid={this.state.mid}
  4686. thirdInfoList={this.state.thirdInfoList}
  4687. dataSource={this.state.payNodeList}
  4688. outsourceRemarks={this.state.outsourceRemarks}
  4689. fileList={this.state.pictureUrl}
  4690. startType={this.state.startType}
  4691. projectStatus={this.state.projectStatus}
  4692. onRefresh={() => {
  4693. this.waiDetail();
  4694. this.xiangqing(this.state.id);
  4695. this.loadData(this.state.page)
  4696. }}
  4697. />
  4698. }
  4699. </div> : <div />}
  4700. </Spin>
  4701. </TabPane>
  4702. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4703. <TabPane tab="订单详情" key="3">
  4704. <Spin spinning={this.state.loading}>
  4705. <OrderDetail
  4706. orderUid={this.state.orderUid}
  4707. orderData={this.state.orderData}
  4708. getOrderLog={this.getOrderLog}
  4709. dataSourceX={this.state.dataSourceX}
  4710. contactList={this.state.jiedian}
  4711. orderNo={this.state.orderNo}
  4712. totalCui={this.state.totalCui}
  4713. contactListNew={this.state.jiedianNew}
  4714. pictureUrl={this.state.contractPictureUrl}
  4715. />
  4716. </Spin>
  4717. <OrderRiZi
  4718. dataSourcerizhi={this.state.dataSourceY}
  4719. closeOrderLog={this.closeOrderLog}
  4720. visible={this.state.avisible}
  4721. loading={this.state.loading}
  4722. />
  4723. </TabPane>
  4724. ) : (
  4725. ""
  4726. )}
  4727. </Tabs>
  4728. </div>
  4729. </Modal> : <div />}
  4730. <Modal
  4731. maskClosable={false}
  4732. visible={this.state.lookVisible}
  4733. onOk={this.noCancel}
  4734. onCancel={this.noCancel}
  4735. width="500px"
  4736. title={"添加工时"}
  4737. footer=""
  4738. className="admin-desc-content"
  4739. >
  4740. <Form layout="horizontal" id="demand-form">
  4741. <Spin spinning={this.state.loading}>
  4742. <div className="clearfix">
  4743. <FormItem {...formItemLayout} label="工作日期">
  4744. <DatePicker
  4745. style={{ marginTop: "2px", width: "200px", height: "27px" }}
  4746. showTime
  4747. format="YYYY-MM-DD"
  4748. onOk={() => { }}
  4749. value={
  4750. this.state.taskDate ? moment(this.state.taskDate) : null
  4751. }
  4752. onChange={(data, dataString) => {
  4753. this.setState({ taskDate: dataString });
  4754. }}
  4755. />
  4756. </FormItem>
  4757. </div>
  4758. <div className="clearfix">
  4759. <FormItem {...formItemLayout} label="工作时长">
  4760. <Input
  4761. placeholder="请输入工作时长"
  4762. value={this.state.hours}
  4763. style={{ width: "200px" }}
  4764. onChange={(e) => {
  4765. this.setState({ hours: e.target.value });
  4766. }}
  4767. ref="commodityQuantity"
  4768. />
  4769. </FormItem>
  4770. </div>
  4771. <div className="clearfix">
  4772. <FormItem {...formItemLayout} label="工作内容">
  4773. <Input
  4774. type="textarea"
  4775. placeholder="请输入备注"
  4776. rows={4}
  4777. value={this.state.remarks}
  4778. onChange={(e) => {
  4779. this.setState({ remarks: e.target.value });
  4780. }}
  4781. />
  4782. </FormItem>
  4783. </div>
  4784. <div className="clearfix">
  4785. <Button
  4786. className="cancel"
  4787. type="primary"
  4788. onClick={this.tianjiaOk}
  4789. style={{ marginLeft: "100px", marginTop: "10px" }}
  4790. htmlType="submit"
  4791. >
  4792. 确定
  4793. </Button>
  4794. <Button
  4795. className="cancel"
  4796. type="ghost"
  4797. onClick={this.noCancel}
  4798. style={{ marginLeft: "50px" }}
  4799. >
  4800. 取消
  4801. </Button>
  4802. </div>
  4803. </Spin>
  4804. </Form>
  4805. </Modal>
  4806. {this.state.projectOperationVisible ? <ProjectOperation
  4807. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  4808. orderNo={this.state.orderNo}
  4809. visible={this.state.projectOperationVisible}
  4810. dataInfor={this.state.dataInfor}
  4811. onCancel={this.nextCancel}
  4812. /> : null}
  4813. <Modal
  4814. maskClosable={false}
  4815. visible={this.state.speVisible}
  4816. onOk={this.visitOk}
  4817. onCancel={() => {
  4818. this.setState({
  4819. visible: false,
  4820. speVisible: false,
  4821. modKey: "1",
  4822. updataSwicth: false,
  4823. projectSituationVisible: false,
  4824. });
  4825. this.companyReset();
  4826. this.loadData(this.state.page);
  4827. }}
  4828. width="1200px"
  4829. title=""
  4830. footer=""
  4831. className="admin-desc-content"
  4832. >
  4833. <div style={{ position: "relative" }}>
  4834. <div style={{
  4835. position: "absolute",
  4836. top: 0,
  4837. left: 0,
  4838. right: 0,
  4839. bottom: 0,
  4840. zIndex: 1000,
  4841. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  4842. display: parseInt(this.state.projectStatus) === 0 ? 'flex' : 'none',
  4843. justifyContent: 'center',
  4844. paddingTop: '300px',
  4845. background: 'rgba(0,0,0,0.7)',
  4846. borderRadius: '4px',
  4847. borderTopRightRadius: '96px',
  4848. }}>
  4849. <Button
  4850. type="primary"
  4851. style={{
  4852. }}
  4853. size='large'
  4854. onClick={() => {
  4855. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  4856. this.updateProjectStatus(1, () => {
  4857. this.xiangqing(this.state.id)
  4858. });
  4859. }}>
  4860. 开始启动项目
  4861. </Button>
  4862. </div>
  4863. <Tabs
  4864. activeKey={this.state.modKey}
  4865. onChange={this.callBack}
  4866. type="card"
  4867. tabBarExtraContent={
  4868. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  4869. <OrderItemStatus deleteSign={this.state.deleteSign} />
  4870. </div>
  4871. }
  4872. >
  4873. <TabPane tab="项目概况" key="1">
  4874. <div className="clearfix">
  4875. <FormItem
  4876. className="half-item"
  4877. {...formItemLayout}
  4878. label="项目状态"
  4879. >
  4880. {
  4881. getProjectName(parseInt(this.state.projectStatus))
  4882. }
  4883. {
  4884. this.state.projectStatus !== 0 ? <Button
  4885. type="primary"
  4886. size="small"
  4887. style={{
  4888. marginTop: "5px",
  4889. marginLeft: '5px',
  4890. }}
  4891. onClick={() => {
  4892. this.setState({
  4893. projectSituationVisible: true,
  4894. })
  4895. }}
  4896. >
  4897. 修改
  4898. </Button> : null
  4899. }
  4900. <Button
  4901. type="primary"
  4902. size="small"
  4903. style={{
  4904. marginTop: "5px",
  4905. position: "absolute",
  4906. zIndex: 1,
  4907. marginLeft: '5px',
  4908. }}
  4909. onClick={this.caozuorizhi}
  4910. >
  4911. 操作日志
  4912. </Button>
  4913. </FormItem>
  4914. <FormItem
  4915. className="half-item"
  4916. {...formItemLayout}
  4917. label="合同编号"
  4918. >
  4919. <span>{this.state.contractNo}</span>
  4920. </FormItem>
  4921. </div>
  4922. <div className="clearfix">
  4923. {/*<FormItem*/}
  4924. {/* className="half-item"*/}
  4925. {/* {...formItemLayout}*/}
  4926. {/* label="项目状态"*/}
  4927. {/*>*/}
  4928. {/* <Select*/}
  4929. {/* placeholder="选择项目状态"*/}
  4930. {/* style={{ width: "200px" }}*/}
  4931. {/* value={this.state.projectStatus}*/}
  4932. {/* onChange={(e) => {*/}
  4933. {/* this.setState({ projectStatus: e });*/}
  4934. {/* }}*/}
  4935. {/* >*/}
  4936. {/* {projectStatus.map(function (item) {*/}
  4937. {/* return (*/}
  4938. {/* <Select.Option key={item.value}>*/}
  4939. {/* {item.key}*/}
  4940. {/* </Select.Option>*/}
  4941. {/* );*/}
  4942. {/* })}*/}
  4943. {/* </Select>*/}
  4944. {/*</FormItem>*/}
  4945. <FormItem
  4946. className="half-item"
  4947. {...formItemLayout}
  4948. label="是否特批"
  4949. >
  4950. <span>{getApproval(this.state.approval)}</span>
  4951. </FormItem>
  4952. <FormItem
  4953. className="half-item"
  4954. {...formItemLayout}
  4955. label="结算状态"
  4956. >
  4957. <span>
  4958. {getLiquidationStatus(this.state.liquidationStatus)}
  4959. </span>
  4960. </FormItem>
  4961. <FormItem
  4962. className="half-item"
  4963. {...formItemLayout}
  4964. label="流程状态"
  4965. >
  4966. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  4967. </FormItem>
  4968. <FormItem
  4969. className="half-item"
  4970. {...formItemLayout}
  4971. label="订单编号"
  4972. >
  4973. <span>{this.state.orderNo}</span>
  4974. </FormItem>
  4975. </div>
  4976. <div className="clearfix">
  4977. <FormItem
  4978. className="half-item"
  4979. {...formItemLayout}
  4980. label="满意度表格"
  4981. >
  4982. <Radio.Group
  4983. value={this.state.formRetrieve}
  4984. onChange={(e) => {
  4985. this.setState({ formRetrieve: e.target.value });
  4986. }}
  4987. >
  4988. <Radio value={0}>未收回</Radio>
  4989. <Radio value={1}>已收回</Radio>
  4990. <Radio value={2}>其他</Radio>
  4991. </Radio.Group>
  4992. </FormItem>
  4993. <FormItem
  4994. className="half-item"
  4995. {...formItemLayout}
  4996. label="(满意度)备注"
  4997. >
  4998. <Input
  4999. type="textarea"
  5000. placeholder="请输入备注"
  5001. rows={2}
  5002. value={this.state.retrieveContent}
  5003. onChange={(e) => {
  5004. this.setState({ retrieveContent: e.target.value });
  5005. }}
  5006. />
  5007. </FormItem>
  5008. {/*<FormItem*/}
  5009. {/* className="half-item"*/}
  5010. {/* {...formItemLayout}*/}
  5011. {/* label="退单"*/}
  5012. {/*>*/}
  5013. {/* <Radio.Group*/}
  5014. {/* value={this.state.taskRefund}*/}
  5015. {/* onChange={(e) => {*/}
  5016. {/* this.setState({ taskRefund: e.target.value });*/}
  5017. {/* }}*/}
  5018. {/* >*/}
  5019. {/* <Radio value={0}>已完成</Radio>*/}
  5020. {/* <Radio value={1}>未完成</Radio>*/}
  5021. {/* <Radio value={2}>其他</Radio>*/}
  5022. {/* </Radio.Group>*/}
  5023. {/*</FormItem>*/}
  5024. </div>
  5025. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  5026. {this.state.bpType === 2 ? <div className="clearfix">
  5027. <FormItem
  5028. className="half-item"
  5029. {...formItemLayout}
  5030. label="加急天数"
  5031. >
  5032. <Radio.Group
  5033. value={this.state.urgentDay}
  5034. onChange={(e) => {
  5035. this.setState({ urgentDay: e.target.value })
  5036. }}
  5037. >
  5038. <Radio value={1}>是</Radio>
  5039. <Radio value={0}>否</Radio>
  5040. </Radio.Group>
  5041. </FormItem>
  5042. <FormItem
  5043. className="half-item"
  5044. {...formItemLayout}
  5045. label="有无材料"
  5046. >
  5047. <Radio.Group
  5048. value={this.state.ifMaterial}
  5049. onChange={(e) => {
  5050. this.setState({ ifMaterial: e.target.value })
  5051. }}
  5052. >
  5053. <Radio value={1}>是</Radio>
  5054. <Radio value={0}>否</Radio>
  5055. </Radio.Group>
  5056. </FormItem>
  5057. </div> : null}
  5058. <div className="clearfix">
  5059. <div style={{
  5060. paddingLeft: '8%',
  5061. }}>
  5062. <div style={{ color: '#000', fontWeight: 500 }}>
  5063. 特别说明
  5064. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  5065. </div>
  5066. <div style={{ display: 'flex', alignItems: 'center', paddingTop: '10px' }}>
  5067. <div>备注:</div>
  5068. <Input
  5069. type="textarea"
  5070. placeholder="请输入备注"
  5071. rows={3}
  5072. style={{
  5073. width: '33%',
  5074. marginLeft: '10px',
  5075. }}
  5076. value={this.state.specialComment}
  5077. onChange={(e) => {
  5078. this.setState({ specialComment: e.target.value });
  5079. }}
  5080. />
  5081. </div>
  5082. </div>
  5083. {
  5084. // <FormItem
  5085. // className="half-item"
  5086. // {...formItemLayout}
  5087. // label="(退单)备注"
  5088. // >
  5089. // <Input
  5090. // type="textarea"
  5091. // placeholder="请输入备注"
  5092. // rows={2}
  5093. // value={this.state.refundContent}
  5094. // onChange={(e) => {
  5095. // this.setState({ refundContent: e.target.value });
  5096. // }}
  5097. // />
  5098. // </FormItem>
  5099. }
  5100. </div>
  5101. <div className="clearfix">
  5102. <h3 className="sub-title">订单负责人信息</h3>
  5103. <FormItem
  5104. className="half-item"
  5105. {...formItemLayout}
  5106. label="负责人"
  5107. >
  5108. <span>
  5109. {this.state.salesmanName + "(" + this.state.depName + ")"}
  5110. </span>
  5111. </FormItem>
  5112. <FormItem
  5113. className="half-item"
  5114. {...formItemLayout}
  5115. label="负责人电话"
  5116. >
  5117. <span>{this.state.salesmanMobile}</span>
  5118. </FormItem>
  5119. <FormItem
  5120. className="half-item"
  5121. {...formItemLayout}
  5122. label="财务负责人"
  5123. >
  5124. <span>{this.state.financeName}</span>
  5125. </FormItem>
  5126. <FormItem
  5127. className="half-item"
  5128. {...formItemLayout}
  5129. label="财务负责人电话"
  5130. >
  5131. <span>{this.state.financeMobile}</span>
  5132. </FormItem>
  5133. </div>
  5134. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5135. <div className="clearfix">
  5136. <h3 className="sub-title">联系信息</h3>
  5137. <FormItem
  5138. className="half-item"
  5139. {...formItemLayout}
  5140. label="客户名称"
  5141. >
  5142. <span>{this.state.userName}</span>
  5143. <EnterpriseNameChange
  5144. type='journal'
  5145. style={{ marginLeft: 10 }}
  5146. enterpriseId={this.state.orderUid} />
  5147. </FormItem>
  5148. <FormItem
  5149. className="half-item"
  5150. {...formItemLayout}
  5151. label="企业法人"
  5152. >
  5153. <Input
  5154. placeholder="请输入法人名称"
  5155. value={this.state.legalPerson}
  5156. style={{ width: "200px" }}
  5157. onChange={(e) => {
  5158. this.setState({ legalPerson: e.target.value });
  5159. }}
  5160. ref="commodityQuantity"
  5161. />
  5162. </FormItem>
  5163. <FormItem
  5164. className="half-item"
  5165. {...formItemLayout}
  5166. label="法人电话"
  5167. >
  5168. <Input
  5169. placeholder="请输入法人电话"
  5170. value={this.state.legalPersonTel}
  5171. style={{ width: "200px" }}
  5172. onChange={(e) => {
  5173. this.setState({ legalPersonTel: e.target.value });
  5174. }}
  5175. ref="commodityQuantity"
  5176. />
  5177. </FormItem>
  5178. <FormItem
  5179. className="half-item"
  5180. {...formItemLayout}
  5181. label="客户联系人"
  5182. >
  5183. <Input
  5184. placeholder="请输入联系人名称"
  5185. value={this.state.contacts}
  5186. style={{ width: "200px" }}
  5187. onChange={(e) => {
  5188. this.setState({ contacts: e.target.value });
  5189. }}
  5190. ref="commodityQuantity"
  5191. />
  5192. </FormItem>
  5193. <FormItem
  5194. className="half-item"
  5195. {...formItemLayout}
  5196. label="联系人电话"
  5197. >
  5198. <Input
  5199. placeholder="请输入联系人电话"
  5200. value={this.state.contactMobile}
  5201. style={{ width: "200px" }}
  5202. onChange={(e) => {
  5203. this.setState({ contactMobile: e.target.value });
  5204. }}
  5205. ref="commodityQuantity"
  5206. />
  5207. </FormItem>
  5208. <FormItem
  5209. className="half-item"
  5210. {...formItemLayout}
  5211. label="企业地址"
  5212. >
  5213. <Cascader
  5214. options={areaSelect()}
  5215. value={this.state.ProvinceCity}
  5216. placeholder="选择城市"
  5217. style={{ width: "200px" }}
  5218. onChange={(e) => {
  5219. this.setState({ ProvinceCity: e });
  5220. }}
  5221. />
  5222. </FormItem>
  5223. <FormItem
  5224. className="half-item"
  5225. {...formItemLayout}
  5226. label=""
  5227. />
  5228. <FormItem className="half-item" {...formItemLayout} label="">
  5229. <Input
  5230. placeholder="请输入详细地址"
  5231. value={this.state.postalAddress}
  5232. style={{ width: "200px", marginLeft: "12em" }}
  5233. onChange={(e) => {
  5234. this.setState({ postalAddress: e.target.value });
  5235. }}
  5236. ref="commodityQuantity"
  5237. />
  5238. </FormItem>
  5239. </div>
  5240. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5241. <div className="clearfix">
  5242. <h3 className="sub-title">项目信息</h3>
  5243. <FormItem
  5244. className="half-item"
  5245. {...formItemLayout}
  5246. label="项目编号"
  5247. >
  5248. <span>{this.state.id}</span>
  5249. </FormItem>
  5250. <FormItem
  5251. className="half-item"
  5252. {...formItemLayout}
  5253. label="项目名称"
  5254. >
  5255. <span>{this.state.taskName}</span>
  5256. </FormItem>
  5257. {/*<FormItem*/}
  5258. {/* className="half-item"*/}
  5259. {/* {...formItemLayout}*/}
  5260. {/* label="项目状态"*/}
  5261. {/*>*/}
  5262. {/* <Select*/}
  5263. {/* placeholder="选择项目状态"*/}
  5264. {/* style={{ width: "200px" }}*/}
  5265. {/* value={this.state.taskStatus}*/}
  5266. {/* onChange={(e) => {*/}
  5267. {/* this.setState({ taskStatus: e });*/}
  5268. {/* }}*/}
  5269. {/* >*/}
  5270. {/* {taskStatus.map(function (item) {*/}
  5271. {/* return (*/}
  5272. {/* <Select.Option key={item.value}>*/}
  5273. {/* {item.key}*/}
  5274. {/* </Select.Option>*/}
  5275. {/* );*/}
  5276. {/* })}*/}
  5277. {/* </Select>*/}
  5278. {/*</FormItem>*/}
  5279. <FormItem
  5280. className="half-item"
  5281. {...formItemLayout}
  5282. label="项目类别"
  5283. >
  5284. <span>{this.state.cname}</span>
  5285. </FormItem>
  5286. <FormItem
  5287. className="half-item"
  5288. {...formItemLayout}
  5289. label="证书编号"
  5290. >
  5291. {this.state.certificateNumber}
  5292. </FormItem>
  5293. </div>
  5294. <div className="clearfix" style={{ marginTop: "10px" }}>
  5295. <FormItem
  5296. labelCol={{ span: 3 }}
  5297. wrapperCol={{ span: 14 }}
  5298. label="附件"
  5299. >
  5300. <Picture
  5301. domId={'myTaskOutsource2'}
  5302. fileList={(e) => {
  5303. this.setState({ attachmentUrl: e });
  5304. }}
  5305. pictureUrl={this.state.attachmentUrl}
  5306. visible={this.props.visible}
  5307. data={{
  5308. sign: "order_task_file",
  5309. url: "/api/admin/orderProject/uploadOrderTaskFile",
  5310. number: 8,
  5311. }}
  5312. />
  5313. </FormItem>
  5314. </div>
  5315. <div className="clearfix">
  5316. <FormItem
  5317. labelCol={{ span: 3 }}
  5318. wrapperCol={{ span: 16 }}
  5319. label="项目说明"
  5320. >
  5321. <Input
  5322. type="textarea"
  5323. placeholder="请输入项目说明"
  5324. rows={4}
  5325. disabled
  5326. value={this.state.taskComment}
  5327. onChange={(e) => {
  5328. let len = this.state.taskCommentData.length;
  5329. if (e.target.value.slice(0, len) !== this.state.taskCommentData) {
  5330. message.warning('项目说明不允许删除与修改已存在的内容');
  5331. return;
  5332. }
  5333. this.setState({ taskComment: e.target.value });
  5334. }}
  5335. />
  5336. </FormItem>
  5337. </div>
  5338. <div className="clearfix">
  5339. <h3 className="sub-title">项目申报进度</h3>
  5340. <DeclarationProgress
  5341. timeRecordparse={this.state.timeRecordparse}
  5342. startDate={this.state.startDate}
  5343. taskDate={this.state.taskDate}
  5344. list={[
  5345. { id: 4, name: '完成时间', value: this.state.endDate },
  5346. { id: 6, name: '受理时间', value: this.state.acceptDate },
  5347. { id: 8, name: '公示时间', value: this.state.publicityDate },
  5348. { id: 10, name: '发证时间', value: this.state.licenceDate },
  5349. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  5350. ]} />
  5351. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  5352. {/*sort: 3 科技项目 6: 会员*/}
  5353. {(this.state.bpType === 5 || this.state.sort === 3) && <FormItem
  5354. className="half-item"
  5355. {...formItemLayout}
  5356. label="申报批次"
  5357. >
  5358. <Select
  5359. value={
  5360. this.state.declarationBatch
  5361. ? this.state.declarationBatch
  5362. : undefined
  5363. }
  5364. placeholder="请选择批次"
  5365. style={{ width: 200 }}
  5366. onChange={(e) => {
  5367. this.setState({
  5368. declarationBatch: e,
  5369. });
  5370. }}
  5371. >
  5372. <Option value={1}>第一批</Option>
  5373. <Option value={2}>第二批</Option>
  5374. <Option value={3}>第三批</Option>
  5375. <Option value={4}>第四批</Option>
  5376. </Select>
  5377. </FormItem>}
  5378. <FormItem
  5379. className="half-item"
  5380. {...formItemLayout}
  5381. label="启动时间"
  5382. >
  5383. <DatePicker
  5384. style={{ marginTop: "5px" }}
  5385. showTime
  5386. format="YYYY-MM-DD"
  5387. onOk={() => { }}
  5388. value={
  5389. this.state.startDate ? moment(this.state.startDate) : null
  5390. }
  5391. onChange={(data, dataString) => {
  5392. this.setState({ startDate: dataString });
  5393. }}
  5394. />
  5395. </FormItem>
  5396. <FormItem
  5397. className="half-item"
  5398. {...formItemLayout}
  5399. label="软著派单数量"
  5400. >
  5401. <span>{this.state.commodityQuantity}</span>
  5402. <Button
  5403. type="primary"
  5404. size="small"
  5405. style={{ marginLeft: "45px" }}
  5406. onClick={this.addcontact}
  5407. >
  5408. +增加下证信息
  5409. </Button>
  5410. </FormItem>
  5411. <div className="patent-table">
  5412. <Spin spinning={this.state.loading}>
  5413. <Table
  5414. columns={this.state.ContactsLists}
  5415. dataSource={this.state.contactList}
  5416. pagination={false}
  5417. bordered
  5418. size="small"
  5419. />
  5420. </Spin>
  5421. </div>
  5422. </div>
  5423. <div className="clearfix">
  5424. <h3 className="sub-title">项目业务</h3>
  5425. <div className="patent-table">
  5426. <Spin spinning={this.state.loading}>
  5427. <Table
  5428. columns={this.state.columnsX}
  5429. dataSource={this.state.dataSourceX}
  5430. pagination={this.state.paginations}
  5431. onRowClick={this.tableRowClickX}
  5432. bordered
  5433. size="small"
  5434. />
  5435. </Spin>
  5436. </div>
  5437. </div>
  5438. <div className="clearfix" style={{ display: "flex", justifyContent: "center" }}>
  5439. <Button
  5440. className="cancel"
  5441. type="primary"
  5442. onClick={() => {
  5443. this.tijiaoOk();
  5444. }}
  5445. style={{ margin: 25 }}
  5446. htmlType="submit"
  5447. >
  5448. 保存
  5449. </Button>
  5450. <Button
  5451. className="cancel"
  5452. type="ghost"
  5453. onClick={this.visitCancel}
  5454. style={{ margin: 25 }}
  5455. >
  5456. 取消
  5457. </Button>
  5458. </div>
  5459. </TabPane>
  5460. <TabPane tab="外包/供应商信息" key="2">
  5461. <Spin spinning={this.state.waiDetailLoading}>
  5462. {this.state.speVisible && this.state.modKey === '2' ? <CheckProject
  5463. {...this.props}
  5464. tid={this.state.tid}
  5465. sort={this.state.sort}
  5466. orderTaskCostReduction={this.state.orderTaskCostReduction} //是否含费减 0无1有
  5467. patentTypeName={this.state.patentTypeName} //官费类型
  5468. patentTypeId={this.state.patentTypeId}
  5469. commodityQuantity={this.state.commodityQuantity} //项目数量
  5470. checkStatus={this.state.checkStatus}
  5471. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有
  5472. containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费
  5473. status={this.state.refundStatus}
  5474. projectType={this.state.projectType}
  5475. oldInfor={this.state.oldInfor}
  5476. patentNameType={this.state.patentNameType}
  5477. patentName={this.state.patentName}
  5478. patentType={this.state.patentType}
  5479. isPreviewPay={true}
  5480. mid={this.state.mid}
  5481. thirdInfoList={this.state.thirdInfoList}
  5482. dataSource={this.state.payNodeList}
  5483. outsourceRemarks={this.state.outsourceRemarks}
  5484. fileList={this.state.pictureUrl}
  5485. startType={this.state.startType}
  5486. projectStatus={this.state.projectStatus}
  5487. onRefresh={() => {
  5488. this.waiDetail();
  5489. this.loadData(this.state.page)
  5490. this.xiangqing(this.state.id);
  5491. }}
  5492. /> : <div />}
  5493. </Spin>
  5494. </TabPane>
  5495. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  5496. <TabPane tab="订单详情" key="3">
  5497. <Spin spinning={this.state.loading}>
  5498. <OrderDetail
  5499. orderUid={this.state.orderUid}
  5500. orderData={this.state.orderData}
  5501. getOrderLog={this.getOrderLog}
  5502. dataSourceX={this.state.dataSourceX}
  5503. contactList={this.state.jiedian}
  5504. orderNo={this.state.orderNo}
  5505. totalCui={this.state.totalCui}
  5506. contactListNew={this.state.jiedianNew}
  5507. pictureUrl={this.state.contractPictureUrl}
  5508. />
  5509. </Spin>
  5510. <OrderRiZi
  5511. dataSourcerizhi={this.state.dataSourceY}
  5512. closeOrderLog={this.closeOrderLog}
  5513. visible={this.state.avisible}
  5514. loading={this.state.loading}
  5515. />
  5516. </TabPane>
  5517. ) : (
  5518. ""
  5519. )}
  5520. </Tabs>
  5521. </div>
  5522. </Modal>
  5523. {/* <Modal
  5524. width="800px"
  5525. visible={this.state.visibleA}
  5526. onCancel={this.visitCancelA}
  5527. title="操作日志"
  5528. footer=""
  5529. className="admin-desc-content"
  5530. >
  5531. <div className="patent-table patent-table-center">
  5532. <Spin spinning={this.state.loading}>
  5533. <Table
  5534. columns={this.state.columnsA}
  5535. dataSource={this.state.dataSourceA}
  5536. pagination={false}
  5537. />
  5538. </Spin>
  5539. </div>
  5540. </Modal> */}
  5541. <OrderRiZi
  5542. dataSourcerizhi={this.state.dataSourceA}
  5543. closeOrderLog={this.visitCancelA}
  5544. visible={this.state.visibleA}
  5545. loading={this.state.loading}
  5546. />
  5547. <Modal
  5548. title="工时记录"
  5549. maskClosable={false}
  5550. visible={this.state.timeVisible}
  5551. onCancel={this.timeClose}
  5552. width={800}
  5553. footer={null}
  5554. >
  5555. <Spin spinning={this.state.loading}>
  5556. <Table
  5557. columns={this.state.columnsTime}
  5558. dataSource={this.state.dataSourceTime}
  5559. pagination={false}
  5560. scroll={{ x: "max-content", y: 0 }}
  5561. bordered
  5562. size={"small"}
  5563. />
  5564. <p style={{ marginTop: 10, color: "red" }}>
  5565. 累计工时(小时):{this.state.recordHour}
  5566. </p>
  5567. </Spin>
  5568. </Modal>
  5569. {this.state.ThirdListVisible ? <NewSupplier
  5570. patentNameType={this.state.patentNameType}
  5571. ThirdId={this.state.ThirdId}
  5572. tid={this.state.tid}
  5573. patentType={this.state.patentType}
  5574. projectType={this.state.startType === 0 ? 0 : this.state.projectType}
  5575. realProjectType={this.state.projectType} //真实的项目类型
  5576. startType={this.state.startType} //项目类型 0外包 1供应商
  5577. thirdCompanyName={this.state.thirdCompanyName}
  5578. thirdUnitPrice={this.state.thirdUnitPrice}
  5579. thirdQuantity={this.state.thirdQuantity}
  5580. thirdRemarks={this.state.thirdRemarks}
  5581. spinning={this.state.loading}
  5582. visible={this.state.ThirdListVisible}
  5583. thirdMaterial={this.state.thirdMaterial}
  5584. thirdUrgent={this.state.thirdUrgent}
  5585. audit={this.state.audit}
  5586. assets={this.state.assets}
  5587. income={this.state.income}
  5588. onDetermine={this.handleCancelq}
  5589. onCancel={() => {
  5590. this.thirdTable(this.state.tid);
  5591. this.setState({
  5592. ThirdListVisible: false,
  5593. ThirdId: '', //供应商id
  5594. thirdCompanyName: '', //第三方名称
  5595. thirdUnitPrice: '', //单价
  5596. thirdQuantity: '', //数量
  5597. currentTotalPrice: '', //总价
  5598. thirdMaterial: 0, //有无材料
  5599. thirdUrgent: 0, //加急情况
  5600. thirdRemarks: '',
  5601. audit: 1,
  5602. assets: '',
  5603. income: '',
  5604. })
  5605. }}
  5606. otherOperations={(data) => {
  5607. this.setState({
  5608. thirdMaterial: data.thirdMaterial,
  5609. thirdUrgent: data.thirdUrgent,
  5610. customerArr: data.customerArr,
  5611. thirdCompanyName: data.thirdCompanyName
  5612. })
  5613. }} /> : <div />}
  5614. {this.state.PayNodeVisible ? <OperationPayNode
  5615. tid={this.state.tid}
  5616. cSort={this.state.sort}
  5617. visible={this.state.PayNodeVisible}
  5618. thirdId={this.state.ThirdId}
  5619. thirdInfoList={this.state.thirdInfoList}
  5620. supplierList={this.state.PayNodeCompany}
  5621. payNodeInfor={this.state.payNodeInfor}
  5622. thirdUnitPrice={this.state.thirdUnitPrice}
  5623. onCancel={() => {
  5624. this.setState({
  5625. PayNodeVisible: false,
  5626. payNodeInfor: {},
  5627. ThirdId: '',
  5628. thirdUnitPrice: '',
  5629. })
  5630. this.payNodeTable(this.state.tid)
  5631. }}
  5632. /> : <div />}
  5633. {this.state.projectSituationVisible ?
  5634. <NowProjectStatus
  5635. tid={this.state.tid}
  5636. cSort={parseInt(this.state.cSort)}
  5637. projectTypeJSON={this.state.timeRecord ? JSON.parse(this.state.timeRecord) : {}}
  5638. projectType={this.state.projectType}
  5639. projectStatus={this.state.projectStatus}
  5640. visible={this.state.projectSituationVisible}
  5641. oldData={{
  5642. endDate: this.state.endDate, //完成时间
  5643. acceptDate: this.state.acceptDate,//受理时间
  5644. publicityDate: this.state.publicityDate,//公示时间
  5645. licenceDate: this.state.licenceDate,//发证时间
  5646. setUpAmount: this.state.setUpAmount,//立项金额
  5647. }}
  5648. onCancel={() => {
  5649. this.setState({
  5650. projectSituationVisible: false
  5651. })
  5652. }}
  5653. onPreservation={(value) => {
  5654. this.xiangqing(this.state.id)
  5655. this.setState({
  5656. projectSituationVisible: false
  5657. })
  5658. }}
  5659. /> : null
  5660. }
  5661. {this.state.projectLogVisible && <ProjectLog
  5662. projectLogId={this.state.projectLogId}
  5663. visible={this.state.projectLogVisible}
  5664. onCancel={() => {
  5665. this.setState({
  5666. projectLogId: '',
  5667. projectLogVisible: false,
  5668. })
  5669. }}
  5670. />}
  5671. </div>
  5672. );
  5673. },
  5674. });
  5675. export default MyTaskOutsource;