myTaskOutsource.jsx 204 KB

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