myTask.jsx 252 KB

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