myTaskOutsource.jsx 200 KB

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