myTask.jsx 247 KB

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