myTask.jsx 200 KB

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