myTask.jsx 265 KB

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