myTask.jsx 248 KB

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