myTaskOutsource.jsx 203 KB

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