myTask.jsx 262 KB

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