myTaskOutsource.jsx 202 KB

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