myTask.jsx 225 KB

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