myTask.jsx 265 KB

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