myTask.jsx 267 KB

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