myTask.jsx 257 KB

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