myTaskOutsource.jsx 199 KB

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