myTaskOutsource.jsx 202 KB

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