myTask.jsx 195 KB

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