myTaskOutsource.jsx 204 KB

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