myTask.jsx 266 KB

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