myTaskOutsource.jsx 202 KB

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