myTask.jsx 227 KB

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