myTaskOutsource.jsx 203 KB

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