myTask.jsx 257 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451
  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. dataSource={this.state.dataSource}
  3480. pagination={this.state.pagination}
  3481. scroll={{ x: 'max-content', y: 0 }}
  3482. onRowClick={this.tableRowClick.bind(this)}
  3483. bordered
  3484. size={'small'}
  3485. />
  3486. </Spin>
  3487. </div>
  3488. <Assign
  3489. title="项目"
  3490. selApi={'/api/admin/orderProject/projectDistribution'}
  3491. data={this.state.assignData}
  3492. showDesc={this.state.assignVisible}
  3493. closeDesc={this.closeAssign.bind(this)}
  3494. fenpaiData={8}
  3495. specially={0}
  3496. roleName={this.state.nub}
  3497. requestMethod={'post'}
  3498. flag={this.state.flag}
  3499. all={this.state}
  3500. />
  3501. {this.state.visible ? <Modal
  3502. className="customeDetails"
  3503. footer=""
  3504. title=""
  3505. width="900px"
  3506. visible={this.state.visible}
  3507. maskClosable={false}
  3508. onOk={()=>{
  3509. this.visitOk();
  3510. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  3511. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  3512. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  3513. }}
  3514. onCancel={()=>{
  3515. this.visitCancel();
  3516. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  3517. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  3518. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  3519. }}
  3520. >
  3521. <div style={{position:"relative"}}>
  3522. <div style={{
  3523. position: "absolute",
  3524. inset:'-15px',
  3525. zIndex: 1000,
  3526. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3527. display: parseInt(this.state.projectStatus) === 0 ? 'flex' : 'none',
  3528. justifyContent:'center',
  3529. paddingTop: '300px',
  3530. background: 'rgba(0,0,0,0.7)',
  3531. borderRadius: '4px',
  3532. borderTopRightRadius: '96px',
  3533. }}>
  3534. <Button
  3535. type="primary"
  3536. size='large'
  3537. onClick={()=>{
  3538. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3539. this.updateProjectStatus(1,()=>{
  3540. this.xiangqing(this.state.id)
  3541. });
  3542. }}>
  3543. 开始启动项目
  3544. </Button>
  3545. </div>
  3546. <Tabs
  3547. tabBarExtraContent={
  3548. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  3549. <span>
  3550. 项目名称:
  3551. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  3552. </span>
  3553. <span style={{marginLeft:'15px'}}>
  3554. 项目编号:
  3555. <span style={{color:'#F00',paddingRight:'5px'}}>
  3556. {this.state.id}
  3557. {
  3558. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  3559. }
  3560. </span>
  3561. </span>
  3562. </div>
  3563. }
  3564. activeKey={this.state.activeKey}
  3565. onChange={(e) => {
  3566. this.callback(e)
  3567. if (e === "2") {
  3568. this.waiDetail();
  3569. this.thirdTable(this.state.tid);
  3570. this.payNodeTable(this.state.tid);
  3571. this.getSelectOutsourceLog(this.state.tid);
  3572. }else if(e === "1"){
  3573. this.xiangqing(this.state.tid);
  3574. }
  3575. }}
  3576. >
  3577. <TabPane tab="项目概况" key="1">
  3578. {this.state.activeKey === "1" ? <Form
  3579. layout="horizontal"
  3580. onSubmit={this.handleSubmit}
  3581. id="demand-form"
  3582. style={{ paddingBottom: '00px' }}
  3583. >
  3584. <Spin spinning={this.state.loading}>
  3585. <div className="clearfix">
  3586. <div className="clearfix">
  3587. <FormItem
  3588. className="half-item"
  3589. {...formItemLayout}
  3590. label="项目状态"
  3591. >
  3592. {
  3593. getProjectName(parseInt(this.state.projectStatus))
  3594. }
  3595. {
  3596. this.state.projectStatus !== 0 ? <Button
  3597. type="primary"
  3598. size="small"
  3599. style={{
  3600. marginTop: "5px",
  3601. marginLeft: '5px',
  3602. }}
  3603. onClick={()=>{
  3604. this.setState({
  3605. projectSituationVisible: true,
  3606. })
  3607. }}
  3608. >
  3609. 修改
  3610. </Button> : null
  3611. }
  3612. <Button
  3613. type="primary"
  3614. size="small"
  3615. style={{
  3616. marginTop: "5px",
  3617. position: "absolute",
  3618. zIndex: 1,
  3619. marginLeft: '5px',
  3620. }}
  3621. onClick={this.caozuorizhi}
  3622. >
  3623. 操作日志
  3624. </Button>
  3625. </FormItem>
  3626. <FormItem
  3627. className="half-item"
  3628. {...formItemLayout}
  3629. label="合同编号"
  3630. >
  3631. <span>{this.state.contractNo}</span>
  3632. </FormItem>
  3633. </div>
  3634. <div className="clearfix">
  3635. <FormItem
  3636. className="half-item"
  3637. {...formItemLayout}
  3638. label="是否特批"
  3639. >
  3640. <span>{getApproval(this.state.approval)}</span>
  3641. </FormItem>
  3642. <FormItem
  3643. className="half-item"
  3644. {...formItemLayout}
  3645. label="结算状态"
  3646. >
  3647. <span>
  3648. {getLiquidationStatus(this.state.liquidationStatus)}
  3649. </span>
  3650. </FormItem>
  3651. <FormItem
  3652. className="half-item"
  3653. {...formItemLayout}
  3654. label="流程状态"
  3655. >
  3656. <span>
  3657. {getProcessStatus(this.state.processStatus)}
  3658. </span>
  3659. </FormItem>
  3660. <FormItem
  3661. className="half-item"
  3662. {...formItemLayout}
  3663. label="订单编号"
  3664. >
  3665. <span>{this.state.orderNo}</span>
  3666. </FormItem>
  3667. </div>
  3668. <div className="clearfix">
  3669. <FormItem
  3670. className="half-item"
  3671. {...formItemLayout}
  3672. label="满意度表格"
  3673. >
  3674. <Radio.Group
  3675. value={this.state.formRetrieve}
  3676. onChange={(e) => {
  3677. this.setState({ formRetrieve: e.target.value })
  3678. }}
  3679. >
  3680. <Radio value={0}>未收回</Radio>
  3681. <Radio value={1}>已收回</Radio>
  3682. <Radio value={2}>其他</Radio>
  3683. </Radio.Group>
  3684. </FormItem>
  3685. <FormItem
  3686. className="half-item"
  3687. {...formItemLayout}
  3688. label="(满意度)备注"
  3689. >
  3690. <Input
  3691. type="textarea"
  3692. placeholder="请输入备注"
  3693. rows={2}
  3694. value={this.state.retrieveContent}
  3695. onChange={(e) => {
  3696. this.setState({
  3697. retrieveContent: e.target.value,
  3698. })
  3699. }}
  3700. />
  3701. </FormItem>
  3702. {/*<FormItem*/}
  3703. {/* className="half-item"*/}
  3704. {/* {...formItemLayout}*/}
  3705. {/* label="退单"*/}
  3706. {/*>*/}
  3707. {/* <Radio.Group*/}
  3708. {/* value={this.state.taskRefund}*/}
  3709. {/* onChange={(e) => {*/}
  3710. {/* this.setState({ taskRefund: e.target.value })*/}
  3711. {/* }}*/}
  3712. {/* >*/}
  3713. {/* <Radio value={0}>已完成</Radio>*/}
  3714. {/* <Radio value={1}>未完成</Radio>*/}
  3715. {/* <Radio value={2}>其他</Radio>*/}
  3716. {/* </Radio.Group>*/}
  3717. {/*</FormItem>*/}
  3718. </div>
  3719. <div className="clearfix">
  3720. {/*<FormItem*/}
  3721. {/* className="half-item"*/}
  3722. {/* {...formItemLayout}*/}
  3723. {/* label="(退单)备注"*/}
  3724. {/*>*/}
  3725. {/* <Input*/}
  3726. {/* type="textarea"*/}
  3727. {/* placeholder="请输入备注"*/}
  3728. {/* rows={2}*/}
  3729. {/* value={this.state.refundContent}*/}
  3730. {/* onChange={(e) => {*/}
  3731. {/* this.setState({ refundContent: e.target.value })*/}
  3732. {/* }}*/}
  3733. {/* />*/}
  3734. {/*</FormItem>*/}
  3735. <div style={{
  3736. paddingLeft: '8%',
  3737. }}>
  3738. <div style={{color:'#000',fontWeight:500}}>
  3739. 特别说明
  3740. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  3741. </div>
  3742. <div style={{display:'flex',alignItems:'center',paddingTop: '10px'}}>
  3743. <div>备注:</div>
  3744. <Input
  3745. type="textarea"
  3746. placeholder="请输入备注"
  3747. rows={3}
  3748. style={{
  3749. width:'33%',
  3750. marginLeft: '10px',
  3751. }}
  3752. value={this.state.specialComment}
  3753. onChange={(e) => {
  3754. this.setState({ specialComment: e.target.value });
  3755. }}
  3756. />
  3757. </div>
  3758. </div>
  3759. </div>
  3760. <div className="clearfix">
  3761. <h3 className="sub-title">订单负责人信息</h3>
  3762. <FormItem
  3763. className="half-item"
  3764. {...formItemLayout}
  3765. label="负责人"
  3766. >
  3767. <span>
  3768. {this.state.salesmanName +
  3769. '(' +
  3770. this.state.depName +
  3771. ')'}
  3772. </span>
  3773. </FormItem>
  3774. <FormItem
  3775. className="half-item"
  3776. {...formItemLayout}
  3777. label="负责人电话"
  3778. >
  3779. <span>{this.state.salesmanMobile}</span>
  3780. </FormItem>
  3781. <FormItem
  3782. className="half-item"
  3783. {...formItemLayout}
  3784. label="当前财务负责人"
  3785. >
  3786. <span>{this.state.nowFinance}</span>
  3787. </FormItem>
  3788. <FormItem
  3789. className="half-item"
  3790. {...formItemLayout}
  3791. label="当前财务负责人电话"
  3792. >
  3793. <span>{this.state.nowFinanceMobile}</span>
  3794. </FormItem>
  3795. <FormItem
  3796. className="half-item"
  3797. {...formItemLayout}
  3798. style={{ opacity: '.5' }}
  3799. label="原负责人"
  3800. >
  3801. <span>{this.state.oldSalesmanName}</span>
  3802. </FormItem>
  3803. <FormItem
  3804. className="half-item"
  3805. {...formItemLayout}
  3806. style={{ opacity: '.5' }}
  3807. label="原负责人电话"
  3808. >
  3809. <span>{this.state.oldSalesmanMobile}</span>
  3810. </FormItem>
  3811. <FormItem
  3812. className="half-item"
  3813. {...formItemLayout}
  3814. style={{ opacity: '.5' }}
  3815. label="实际财务操作人"
  3816. >
  3817. <span>{this.state.financeName}</span>
  3818. </FormItem>
  3819. <FormItem
  3820. className="half-item"
  3821. {...formItemLayout}
  3822. style={{ opacity: '.5' }}
  3823. label="实际财务操作人电话"
  3824. >
  3825. <span>{this.state.financeMobile}</span>
  3826. </FormItem>
  3827. <FormItem
  3828. className="half-item"
  3829. {...formItemLayout}
  3830. label="订单留言"
  3831. >
  3832. <span>{this.state.orderRemarks}</span>
  3833. </FormItem>
  3834. <FormItem
  3835. className="half-item"
  3836. {...formItemLayout}
  3837. label=""
  3838. >
  3839. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  3840. </FormItem>
  3841. <OrderRiZi
  3842. dataSourcerizhi={this.state.dataSourceY}
  3843. closeOrderLog={this.closeOrderLog}
  3844. visible={this.state.avisible}
  3845. loading={this.state.loading}
  3846. />
  3847. </div>
  3848. {/*<div className="clearfix">*/}
  3849. {/* <h3 className="sub-title">外包信息</h3>*/}
  3850. {/* <FormItem*/}
  3851. {/* className="half-item"*/}
  3852. {/* {...formItemLayout}*/}
  3853. {/* label="外包公司"*/}
  3854. {/* >*/}
  3855. {/* <Input*/}
  3856. {/* value={this.state.outsourceName}*/}
  3857. {/* onChange={(e) => {*/}
  3858. {/* this.setState({*/}
  3859. {/* outsourceName: e.target.value,*/}
  3860. {/* })*/}
  3861. {/* }}*/}
  3862. {/* placeholder="请输入外包公司"*/}
  3863. {/* style={{ width: '200px' }}*/}
  3864. {/* />*/}
  3865. {/* </FormItem>*/}
  3866. {/* <FormItem*/}
  3867. {/* className="half-item"*/}
  3868. {/* {...formItemLayout}*/}
  3869. {/* label="外包成本(万元)"*/}
  3870. {/* >*/}
  3871. {/* <Input*/}
  3872. {/* value={this.state.outsourcePrice}*/}
  3873. {/* onChange={(e) => {*/}
  3874. {/* this.setState({*/}
  3875. {/* outsourcePrice: e.target.value,*/}
  3876. {/* })*/}
  3877. {/* }}*/}
  3878. {/* placeholder="请输入外包成本"*/}
  3879. {/* style={{ width: '200px' }}*/}
  3880. {/* />*/}
  3881. {/* </FormItem>*/}
  3882. {/*</div>*/}
  3883. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3884. <div className="clearfix">
  3885. <h3 className="sub-title">联系信息</h3>
  3886. <FormItem
  3887. className="half-item"
  3888. {...formItemLayout}
  3889. label="客户名称"
  3890. >
  3891. <span>{this.state.userName}</span>
  3892. </FormItem>
  3893. <FormItem
  3894. className="half-item"
  3895. {...formItemLayout}
  3896. label="企业法人"
  3897. >
  3898. <Input
  3899. placeholder="请输入法人名称"
  3900. value={this.state.legalPerson}
  3901. style={{ width: '200px' }}
  3902. onChange={(e) => {
  3903. this.setState({ legalPerson: e.target.value })
  3904. }}
  3905. ref="commodityQuantity"
  3906. />
  3907. </FormItem>
  3908. <FormItem
  3909. className="half-item"
  3910. {...formItemLayout}
  3911. label="法人电话"
  3912. >
  3913. <Input
  3914. placeholder="请输入法人电话"
  3915. value={this.state.legalPersonTel}
  3916. style={{ width: '200px' }}
  3917. onChange={(e) => {
  3918. this.setState({ legalPersonTel: e.target.value })
  3919. }}
  3920. ref="commodityQuantity"
  3921. />
  3922. </FormItem>
  3923. <FormItem
  3924. className="half-item"
  3925. {...formItemLayout}
  3926. label="客户联系人"
  3927. >
  3928. <Input
  3929. placeholder="请输入联系人名称"
  3930. value={this.state.contacts}
  3931. style={{ width: '200px' }}
  3932. onChange={(e) => {
  3933. this.setState({ contacts: e.target.value })
  3934. }}
  3935. ref="commodityQuantity"
  3936. />
  3937. </FormItem>
  3938. <FormItem
  3939. className="half-item"
  3940. {...formItemLayout}
  3941. label="联系人电话"
  3942. >
  3943. <Input
  3944. placeholder="请输入联系人电话"
  3945. value={this.state.contactMobile}
  3946. style={{ width: '200px' }}
  3947. onChange={(e) => {
  3948. this.setState({ contactMobile: e.target.value })
  3949. }}
  3950. ref="commodityQuantity"
  3951. />
  3952. </FormItem>
  3953. <FormItem
  3954. className="half-item"
  3955. {...formItemLayout}
  3956. label="企业地址"
  3957. >
  3958. <Cascader
  3959. options={areaSelect()}
  3960. value={this.state.ProvinceCity}
  3961. placeholder="选择城市"
  3962. style={{ width: '200px' }}
  3963. onChange={(e) => {
  3964. this.setState({ ProvinceCity: e })
  3965. }}
  3966. />
  3967. </FormItem>
  3968. <FormItem
  3969. className="half-item"
  3970. {...formItemLayout}
  3971. label=""
  3972. ></FormItem>
  3973. <FormItem
  3974. className="half-item"
  3975. {...formItemLayout}
  3976. label=""
  3977. >
  3978. <Input
  3979. placeholder="请输入详细地址"
  3980. value={this.state.postalAddress}
  3981. style={{ width: '200px', marginLeft: '12em' }}
  3982. onChange={(e) => {
  3983. this.setState({ postalAddress: e.target.value })
  3984. }}
  3985. ref="commodityQuantity"
  3986. />
  3987. </FormItem>
  3988. </div>
  3989. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3990. <div className="clearfix">
  3991. <h3 className="sub-title">项目信息</h3>
  3992. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  3993. {/*贯标需要显示*/}
  3994. {
  3995. this.state.isIso ?
  3996. <div>
  3997. <FormItem
  3998. className="half-item"
  3999. {...formItemLayout}
  4000. label="认证费"
  4001. >
  4002. <span>
  4003. {
  4004. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  4005. }
  4006. </span>
  4007. </FormItem>
  4008. {this.state.ifCertificationFee === 1 ?<FormItem
  4009. className="half-item"
  4010. {...formItemLayout}
  4011. label="认证费(万元)"
  4012. >
  4013. <Input
  4014. placeholder="请输入认证金额"
  4015. value={this.state.certificationFee}
  4016. style={{ width: '200px'}}
  4017. onChange={(e) => {
  4018. this.setState({ certificationFee: e.target.value })
  4019. }}
  4020. />
  4021. </FormItem> : null}
  4022. {this.state.ifCertificationFee === 1 ? <FormItem
  4023. className="half-item"
  4024. {...formItemLayout}
  4025. label=""
  4026. /> : null}
  4027. {this.state.ifCertificationFee === 1 ? <FormItem
  4028. className="half-item"
  4029. {...formItemLayout}
  4030. label="付款公司名称"
  4031. >
  4032. <Input
  4033. placeholder="请输入代付款公司名称"
  4034. value={this.state.certificationCorporate}
  4035. style={{ width: '200px'}}
  4036. onChange={(e) => {
  4037. this.setState({ certificationCorporate: e.target.value })
  4038. }}
  4039. ref="commodityQuantity"
  4040. />
  4041. </FormItem>:null}
  4042. </div> : null
  4043. }
  4044. <FormItem
  4045. className="half-item"
  4046. {...formItemLayout}
  4047. label="项目编号"
  4048. >
  4049. <span>
  4050. {this.state.splitStatus == 2
  4051. ? this.state.splitSuper + '-' + this.state.splitId
  4052. : this.state.id}
  4053. </span>
  4054. </FormItem>
  4055. <FormItem
  4056. className="half-item"
  4057. {...formItemLayout}
  4058. label="项目名称"
  4059. >
  4060. <span>{this.state.taskName}</span>
  4061. </FormItem>
  4062. {/*<FormItem*/}
  4063. {/* className="half-item"*/}
  4064. {/* {...formItemLayout}*/}
  4065. {/* label="项目状态"*/}
  4066. {/*>*/}
  4067. {/* <Select*/}
  4068. {/* placeholder="选择项目状态"*/}
  4069. {/* style={{ width: '200px' }}*/}
  4070. {/* value={this.state.taskStatus}*/}
  4071. {/* onChange={(e) => {*/}
  4072. {/* this.setState({ taskStatus: e })*/}
  4073. {/* }}*/}
  4074. {/* >*/}
  4075. {/* {taskStatus.map(function (item) {*/}
  4076. {/* return (*/}
  4077. {/* <Select.Option key={item.value}>*/}
  4078. {/* {item.key}*/}
  4079. {/* </Select.Option>*/}
  4080. {/* )*/}
  4081. {/* })}*/}
  4082. {/* </Select>*/}
  4083. {/*</FormItem>*/}
  4084. <FormItem
  4085. className="half-item"
  4086. {...formItemLayout}
  4087. label="项目类别"
  4088. >
  4089. <span>{this.state.cname}</span>
  4090. </FormItem>
  4091. <FormItem
  4092. className="half-item"
  4093. {...formItemLayout}
  4094. label="证书编号"
  4095. >
  4096. {this.state.certificateNumber}
  4097. </FormItem>
  4098. </div>
  4099. <div className="clearfix">
  4100. <h3 className="sub-title">申报系统账户信息</h3>
  4101. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  4102. <FormItem
  4103. className="half-item"
  4104. {...formItemLayout}
  4105. label="用户名"
  4106. >
  4107. <Input
  4108. placeholder="请输入用户名"
  4109. value={this.state.declareUser}
  4110. style={{ width: '200px' }}
  4111. onChange={(e) => {
  4112. this.setState({ declareUser: e.target.value })
  4113. }}
  4114. />
  4115. </FormItem>
  4116. <FormItem
  4117. className="half-item"
  4118. {...formItemLayout}
  4119. label="密码"
  4120. >
  4121. <Input
  4122. placeholder="请输入密码"
  4123. value={this.state.declarePwd}
  4124. style={{ width: '200px' }}
  4125. onChange={(e) => {
  4126. this.setState({ declarePwd: e.target.value })
  4127. }}
  4128. />
  4129. </FormItem>
  4130. </div>
  4131. <div className="clearfix">
  4132. <h3 className="sub-title">项目申报进度</h3>
  4133. <DeclarationProgress
  4134. timeRecordparse={this.state.timeRecordparse}
  4135. startDate={this.state.startDate}
  4136. taskDate={this.state.taskDate}
  4137. list={[
  4138. {id:4,name:'完成时间',value:this.state.endDate},
  4139. {id:6,name:'受理时间',value:this.state.acceptDate},
  4140. {id:8,name:'公示时间',value:this.state.publicityDate},
  4141. {id:10,name:'发证时间',value:this.state.licenceDate},
  4142. {id:15,name:'立项金额',value:this.state.setUpAmount}
  4143. ]}/>
  4144. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4145. {
  4146. this.state.bpType === 1 || this.state.bpType === 6 ?
  4147. <div>
  4148. <FormItem
  4149. className="half-item"
  4150. {...formItemLayout}
  4151. label="是否高新企业"
  4152. >
  4153. <Radio.Group
  4154. value={this.state.highTechStatus}
  4155. onChange={(e) => {
  4156. this.setState({ highTechStatus: e.target.value })
  4157. }}
  4158. >
  4159. <Radio value={1}>是</Radio>
  4160. <Radio value={0}>否</Radio>
  4161. </Radio.Group>
  4162. </FormItem>
  4163. <FormItem/>
  4164. <PatentSchedule
  4165. taskId={this.state.id}
  4166. bpType={this.state.bpType}
  4167. acceptCount={this.state.acceptCount}
  4168. certificatesCount={this.state.certificatesCount}
  4169. rejectCount={this.state.rejectCount}
  4170. commodityQuantity={this.state.commodityQuantity}
  4171. refresh={()=>{this.xiangqing(this.state.id)}}
  4172. onChange={(key,value)=>{
  4173. if(key === 'acceptCount'){
  4174. this.setState({
  4175. acceptCount: value
  4176. })
  4177. }
  4178. if(key === 'certificatesCount'){
  4179. this.setState({
  4180. certificatesCount: value
  4181. })
  4182. }
  4183. if(key === 'rejectCount'){
  4184. this.setState({
  4185. rejectCount: value
  4186. })
  4187. }
  4188. }}
  4189. />
  4190. </div> :
  4191. <div>
  4192. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4193. {this.state.bpType === 5 ? <FormItem
  4194. className="half-item"
  4195. {...formItemLayout}
  4196. label="是否抽查">
  4197. <Radio.Group
  4198. value={this.state.spotCheckStatus}
  4199. onChange={(e) => {
  4200. this.setState({ spotCheckStatus: e.target.value })
  4201. }}
  4202. >
  4203. <Radio value={0}>否</Radio>
  4204. <Radio value={1}>是,未通过</Radio>
  4205. <Radio value={2}>是,通过</Radio>
  4206. </Radio.Group>
  4207. </FormItem> : null}
  4208. {this.state.bpType === 5 ? <FormItem/> : null}
  4209. {this.state.bpType === 5 ? <FormItem
  4210. className="half-item"
  4211. {...formItemLayout}
  4212. label="是否立项"
  4213. >
  4214. <Radio.Group
  4215. value={this.state.setUpStatus}
  4216. onChange={(e) => {
  4217. this.setState({ setUpStatus: e.target.value })
  4218. }}
  4219. >
  4220. <Radio value={0}>否</Radio>
  4221. <Radio value={1}>是</Radio>
  4222. </Radio.Group>
  4223. </FormItem> : null}
  4224. {this.state.bpType === 5 ? <FormItem
  4225. className="half-item"
  4226. {...formItemLayout}
  4227. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  4228. >
  4229. {this.state.setUpStatus === 1 ?<DatePicker
  4230. style={{
  4231. marginTop: '2px',
  4232. width: '200px',
  4233. height: '32px',
  4234. }}
  4235. showTime
  4236. format="YYYY-MM-DD"
  4237. onOk={() => {}}
  4238. value={
  4239. this.state.setUpTime
  4240. ? moment(this.state.setUpTime)
  4241. : null
  4242. }
  4243. onChange={(data, dataString) => {
  4244. this.setState({ setUpTime: dataString })
  4245. }}
  4246. /> : null }
  4247. </FormItem> : null}
  4248. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4249. {/*cSort: 3 科技项目 6: 会员*/}
  4250. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  4251. className="half-item"
  4252. {...formItemLayout}
  4253. label="申报批次"
  4254. >
  4255. <Select
  4256. style={{ width: 200 }}
  4257. placeholder="请选择批次"
  4258. value={
  4259. this.state.declarationBatch
  4260. ? this.state.declarationBatch
  4261. : undefined
  4262. }
  4263. onChange={(e) => {
  4264. this.setState({
  4265. declarationBatch: e,
  4266. })
  4267. }}
  4268. >
  4269. <Option value={1}>第一批</Option>
  4270. <Option value={2}>第二批</Option>
  4271. <Option value={3}>第三批</Option>
  4272. <Option value={4}>第四批</Option>
  4273. </Select>
  4274. </FormItem>}
  4275. {/*只有科技项目才有是否到款*/}
  4276. {/*cSort: 3 科技项目 6: 会员*/}
  4277. {this.state.cSort === 3 && <FormItem
  4278. className="half-item"
  4279. {...formItemLayout}
  4280. label="是否到款"
  4281. >
  4282. <Radio.Group
  4283. value={this.state.arrivalMoney}
  4284. onChange={(e) => {
  4285. this.setState({ arrivalMoney: e.target.value })
  4286. }}
  4287. >
  4288. <Radio value={0}>未到企业</Radio>
  4289. <Radio value={1}>已到企业</Radio>
  4290. </Radio.Group>
  4291. </FormItem>}
  4292. </div>}
  4293. </div>
  4294. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  4295. <FormItem
  4296. labelCol={{ span: 3 }}
  4297. wrapperCol={{ span: 16 }}
  4298. label="附件"
  4299. >
  4300. <Picture
  4301. domId={'myTask1'}
  4302. fileList={(e) => {
  4303. this.setState({ attachmentUrl: e })
  4304. }}
  4305. pictureUrl={this.state.attachmentUrl}
  4306. visible={this.props.visible}
  4307. data={{
  4308. sign: 'order_task_file',
  4309. url: '/api/admin/orderProject/uploadOrderTaskFile',
  4310. }}
  4311. />
  4312. </FormItem>
  4313. </div> : null}
  4314. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  4315. <FormItem
  4316. labelCol={{ span: 3 }}
  4317. wrapperCol={{ span: 16 }}
  4318. label="项目说明"
  4319. >
  4320. <Input
  4321. type="textarea"
  4322. placeholder="请输入项目说明"
  4323. rows={4}
  4324. disabled
  4325. value={this.state.taskComment}
  4326. onChange={(e) => {
  4327. if(this.state.taskCommentData){
  4328. let len = this.state.taskCommentData.length;
  4329. if(e.target.value.slice(0,len) !== this.state.taskCommentData){
  4330. message.warning('项目说明不允许删除与修改已存在的内容');
  4331. return;
  4332. }
  4333. }
  4334. this.setState({ taskComment: e.target.value })
  4335. }}
  4336. />
  4337. </FormItem>
  4338. </div> : null}
  4339. <div>
  4340. <h3 className="sub-title">项目业务</h3>
  4341. {this.state.processStatus == 0 ? (
  4342. <Button
  4343. type="primary"
  4344. onClick={this.addDetailed}
  4345. style={{
  4346. float: 'right',
  4347. marginRight: '50px',
  4348. marginBottom: '15px',
  4349. }}
  4350. >
  4351. 添加项目明细
  4352. </Button>
  4353. ) : (
  4354. ''
  4355. )}
  4356. </div>
  4357. <div className="patent-table">
  4358. <Spin spinning={this.state.loading}>
  4359. <Table
  4360. columns={this.state.columnsX}
  4361. dataSource={this.state.dataSourceX}
  4362. pagination={this.state.paginations}
  4363. onRowClick={this.tableRowClickX}
  4364. bordered
  4365. size="small"
  4366. />
  4367. </Spin>
  4368. </div>
  4369. <div className="clearfix">
  4370. <Button
  4371. className="cancel"
  4372. type="primary"
  4373. // onClick={this.tijiaoOk}
  4374. onClick={() => {
  4375. let num = this.state.projectStatus
  4376. if (
  4377. num != 1 &&
  4378. num != 20 &&
  4379. num != 21
  4380. ) {
  4381. this.showDeleteConfirm(num, this.tijiaoOk)
  4382. } else {
  4383. this.tijiaoOk()
  4384. }
  4385. }}
  4386. style={{ marginLeft: '200px', marginTop: '10px' }}
  4387. htmlType="submit"
  4388. >
  4389. 保存
  4390. </Button>
  4391. <Button
  4392. className="cancel"
  4393. type="ghost"
  4394. onClick={this.visitCancel}
  4395. style={{ marginLeft: '50px', marginTop: '10px' }}
  4396. >
  4397. 取消
  4398. </Button>
  4399. </div>
  4400. </div>
  4401. </Spin>
  4402. </Form> : <div/>}
  4403. </TabPane>
  4404. {/*<TabPane tab="外包/供应商信息" key="2">*/}
  4405. {/* <Spin spinning={this.state.sureOutLoading || this.state.waiDetailLoading || this.state.payNodeLoading || this.state.thirdInfoLoading}>*/}
  4406. {/* {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (*/}
  4407. {/* <div style={{ marginTop: 10 }}>*/}
  4408. {/* <div className="clearfix">*/}
  4409. {/* <FormItem*/}
  4410. {/* className="half-item"*/}
  4411. {/* labelCol={{ span: 3 }}*/}
  4412. {/* wrapperCol={{ span: 14 }}*/}
  4413. {/* label={*/}
  4414. {/* <span>*/}
  4415. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  4416. {/* 类型*/}
  4417. {/* </span>*/}
  4418. {/* }*/}
  4419. {/* >*/}
  4420. {/* <Radio.Group*/}
  4421. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  4422. {/* value={this.state.startType}*/}
  4423. {/* onChange={(e) => {*/}
  4424. {/* let _this = this;*/}
  4425. {/* if(this.state.thirdInfoList.length >0){*/}
  4426. {/* confirm({*/}
  4427. {/* title: '确定要切换吗?',*/}
  4428. {/* content: '切换将删除所有第三信息和付款节点',*/}
  4429. {/* onOk() {*/}
  4430. {/* return new Promise((resolve, reject) => {*/}
  4431. {/* _this.setState({ startType: e.target.value },()=>{*/}
  4432. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  4433. {/* })*/}
  4434. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  4435. {/* if(_this.state.payNodeList.length > 0){*/}
  4436. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  4437. {/* }*/}
  4438. {/* }).catch(() => console.log('Oops errors!'));*/}
  4439. {/* },*/}
  4440. {/* onCancel() {},*/}
  4441. {/* });*/}
  4442. {/* }else{*/}
  4443. {/* this.setState({ startType: e.target.value },()=>{*/}
  4444. {/* this.projectTypeTabContent(this.state.projectType);*/}
  4445. {/* })*/}
  4446. {/* }*/}
  4447. {/* }}*/}
  4448. {/* >*/}
  4449. {/* <Radio value={0}>外包(不走总部)</Radio>*/}
  4450. {/* <Radio value={1}>供应商信息</Radio>*/}
  4451. {/* </Radio.Group>*/}
  4452. {/* </FormItem>*/}
  4453. {/* </div>*/}
  4454. {/* /!* 专利类型 *!/*/}
  4455. {/* <div*/}
  4456. {/* className="clearfix"*/}
  4457. {/* style={{*/}
  4458. {/* display: this.state.projectType === 1 ? 'block' : 'none',*/}
  4459. {/* }}*/}
  4460. {/* >*/}
  4461. {/* <FormItem*/}
  4462. {/* className="half-item"*/}
  4463. {/* labelCol={{ span: 4 }}*/}
  4464. {/* wrapperCol={{ span: 14 }}*/}
  4465. {/* label={*/}
  4466. {/* <span>*/}
  4467. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  4468. {/* 专利类型*/}
  4469. {/* </span>*/}
  4470. {/* }*/}
  4471. {/* >*/}
  4472. {/* <Radio.Group*/}
  4473. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  4474. {/* value={this.state.patentType}*/}
  4475. {/* onChange={(e) => {*/}
  4476. {/* let _this = this;*/}
  4477. {/* if(this.state.thirdInfoList.length >0){*/}
  4478. {/* confirm({*/}
  4479. {/* title: '确定要切换吗?',*/}
  4480. {/* content: '切换将删除所有第三信息和付款节点',*/}
  4481. {/* onOk() {*/}
  4482. {/* return new Promise((resolve, reject) => {*/}
  4483. {/* _this.setState({ patentType: e.target.value },()=>{*/}
  4484. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  4485. {/* })*/}
  4486. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  4487. {/* if(_this.state.payNodeList.length > 0){*/}
  4488. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  4489. {/* }*/}
  4490. {/* }).catch(() => console.log('Oops errors!'));*/}
  4491. {/* },*/}
  4492. {/* onCancel() {},*/}
  4493. {/* });*/}
  4494. {/* }else{*/}
  4495. {/* this.setState({ patentType: e.target.value },()=>{*/}
  4496. {/* this.projectTypeTabContent(this.state.projectType);*/}
  4497. {/* })*/}
  4498. {/* }*/}
  4499. {/* }}*/}
  4500. {/* >*/}
  4501. {/* <Radio value={0}>专利申请/变更/转让</Radio>*/}
  4502. {/* <Radio value={1}>专利买卖</Radio>*/}
  4503. {/* </Radio.Group>*/}
  4504. {/* </FormItem>*/}
  4505. {/* </div>*/}
  4506. {/* <div*/}
  4507. {/* className="clearfix"*/}
  4508. {/* style={{*/}
  4509. {/* display: this.state.projectType === 1? 'block' : 'none',*/}
  4510. {/* }}*/}
  4511. {/* >*/}
  4512. {/* <FormItem*/}
  4513. {/* className="half-item"*/}
  4514. {/* labelCol={{ span: 4 }}*/}
  4515. {/* wrapperCol={{ span: 14 }}*/}
  4516. {/* label={*/}
  4517. {/* <span>*/}
  4518. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  4519. {/* 专利名称*/}
  4520. {/* </span>*/}
  4521. {/* }*/}
  4522. {/* >*/}
  4523. {/* <Radio.Group*/}
  4524. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  4525. {/* value={this.state.patentNameType}*/}
  4526. {/* onChange={(e) => {*/}
  4527. {/* let _this = this;*/}
  4528. {/* if(this.state.thirdInfoList.length >0){*/}
  4529. {/* confirm({*/}
  4530. {/* title: '确定要切换吗?',*/}
  4531. {/* content: '切换将删除所有第三信息和付款节点',*/}
  4532. {/* onOk() {*/}
  4533. {/* return new Promise((resolve, reject) => {*/}
  4534. {/* _this.setState({ patentNameType: e.target.value },()=>{*/}
  4535. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  4536. {/* })*/}
  4537. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  4538. {/* if(_this.state.payNodeList.length > 0){*/}
  4539. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  4540. {/* }*/}
  4541. {/* }).catch(() => console.log('Oops errors!'));*/}
  4542. {/* },*/}
  4543. {/* onCancel() {},*/}
  4544. {/* });*/}
  4545. {/* }else{*/}
  4546. {/* this.setState({ patentNameType: e.target.value },()=>{*/}
  4547. {/* this.projectTypeTabContent(this.state.projectType);*/}
  4548. {/* })*/}
  4549. {/* }*/}
  4550. {/* }}*/}
  4551. {/* >*/}
  4552. {/* <Radio value={0}>实用新型专利</Radio>*/}
  4553. {/* <Radio value={1}>发明专利</Radio>*/}
  4554. {/* <Radio value={2}>外观专利</Radio>*/}
  4555. {/* /!*<Radio value={3}>*!/*/}
  4556. {/* /!* 其他*!/*/}
  4557. {/* /!* <Input*!/*/}
  4558. {/* /!* disabled={this.state.patentNameType !== 3}*!/*/}
  4559. {/* /!* value={this.state.patentName}*!/*/}
  4560. {/* /!* style={{ marginLeft: '15px' }}*!/*/}
  4561. {/* /!* onChange={(e) => {*!/*/}
  4562. {/* /!* this.setState({*!/*/}
  4563. {/* /!* patentName: e.target.value,*!/*/}
  4564. {/* /!* })*!/*/}
  4565. {/* /!* }}*!/*/}
  4566. {/* /!* placeholder="请填写专利名称"*!/*/}
  4567. {/* /!* />*!/*/}
  4568. {/* /!*</Radio>*!/*/}
  4569. {/* </Radio.Group>*/}
  4570. {/* </FormItem>*/}
  4571. {/* </div>*/}
  4572. {/* /!*外包类型无此选项*!/*/}
  4573. {/* {this.state.orderTaskOfficialCost === 1 && this.state.startType !== 0 ? <div className="clearfix">*/}
  4574. {/* <FormItem*/}
  4575. {/* className="half-item"*/}
  4576. {/* labelCol={{ span: 4 }}*/}
  4577. {/* wrapperCol={{ span: 14 }}*/}
  4578. {/* label={<span>官费</span>}>*/}
  4579. {/* <Radio.Group*/}
  4580. {/* value={this.state.containOfficialFees}*/}
  4581. {/* onChange={(e) => {*/}
  4582. {/* this.setState({ containOfficialFees: e.target.value })*/}
  4583. {/* }}*/}
  4584. {/* >*/}
  4585. {/* <Radio value={0}>实际已缴费</Radio>*/}
  4586. {/* <Radio value={1}>实际未缴费</Radio>*/}
  4587. {/* </Radio.Group>*/}
  4588. {/* </FormItem>*/}
  4589. {/* </div> : <div/>}*/}
  4590. {/* /!* 第三方信息专利 *!/*/}
  4591. {/* <div>*/}
  4592. {/* <span*/}
  4593. {/* style={{*/}
  4594. {/* fontSize: '18px',*/}
  4595. {/* }}*/}
  4596. {/* >*/}
  4597. {/* 第三方信息*/}
  4598. {/* </span>*/}
  4599. {/* <span*/}
  4600. {/* style={{*/}
  4601. {/* display: 'inline-block',*/}
  4602. {/* marginLeft: 10,*/}
  4603. {/* color: 'red',*/}
  4604. {/* }}*/}
  4605. {/* >*/}
  4606. {/* 金额总计(万元): {this.state.allTotalAmount}*/}
  4607. {/* </span>*/}
  4608. {/* <Button*/}
  4609. {/* type="primary"*/}
  4610. {/* onClick={(e) => {*/}
  4611. {/* //this.state.startType 0外包 1供应商 类型为外包时,当普通单*/}
  4612. {/* if(this.state.projectType === 1 && this.state.patentType === -1){*/}
  4613. {/* message.info('请先选择专利类型');*/}
  4614. {/* }else if(this.state.projectType === 1 && this.state.patentNameType === -1){*/}
  4615. {/* message.info('请先选择专利名称');*/}
  4616. {/* } else{*/}
  4617. {/* this.addThirdList()*/}
  4618. {/* }*/}
  4619. {/* }}*/}
  4620. {/* style={{*/}
  4621. {/* float: 'right',*/}
  4622. {/* marginRight: '50px',*/}
  4623. {/* marginBottom: '15px',*/}
  4624. {/* }}*/}
  4625. {/* >*/}
  4626. {/* +新增供应商名称*/}
  4627. {/* </Button>*/}
  4628. {/* </div>*/}
  4629. {/* <div*/}
  4630. {/* className="clearfix"*/}
  4631. {/* style={{*/}
  4632. {/* // display: this.state.type == 1 ? "block" : "none",*/}
  4633. {/* display: this.state.type == 1 ? 'block' : 'block',*/}
  4634. {/* }}*/}
  4635. {/* >*/}
  4636. {/* <Spin spinning={this.state.thirdInfoLoading}>*/}
  4637. {/* <Form layout="horizontal">*/}
  4638. {/* <Table*/}
  4639. {/* pagination={false}*/}
  4640. {/* columns={this.state.ContactsListsNew}*/}
  4641. {/* dataSource={this.state.thirdInfoList}*/}
  4642. {/* onRowClick={this.tableRowClickOne}*/}
  4643. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  4644. {/* bordered*/}
  4645. {/* size="small"*/}
  4646. {/* />*/}
  4647. {/* <Col*/}
  4648. {/* span={24}*/}
  4649. {/* offset={9}*/}
  4650. {/* style={{ marginTop: '15px' }}*/}
  4651. {/* />*/}
  4652. {/* </Form>*/}
  4653. {/* </Spin>*/}
  4654. {/* </div>*/}
  4655. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*!/*/}
  4656. {/* /!*this.state.startType 0外包 1供应商*!/*/}
  4657. {/* <div*/}
  4658. {/* style={{*/}
  4659. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  4660. {/* }}*/}
  4661. {/* >*/}
  4662. {/* <span*/}
  4663. {/* style={{*/}
  4664. {/* fontSize: '18px',*/}
  4665. {/* }}*/}
  4666. {/* >*/}
  4667. {/* 付款节点*/}
  4668. {/* </span>*/}
  4669. {/* <span*/}
  4670. {/* style={{*/}
  4671. {/* display: 'inline-block',*/}
  4672. {/* marginLeft: 10,*/}
  4673. {/* color: 'red',*/}
  4674. {/* }}*/}
  4675. {/* />*/}
  4676. {/* <Button*/}
  4677. {/* type="primary"*/}
  4678. {/* onClick={(e) => {*/}
  4679. {/* this.addPayNode()*/}
  4680. {/* }}*/}
  4681. {/* style={{*/}
  4682. {/* float: 'right',*/}
  4683. {/* marginRight: '50px',*/}
  4684. {/* marginBottom: '15px',*/}
  4685. {/* }}*/}
  4686. {/* >*/}
  4687. {/* +新增付款节点*/}
  4688. {/* </Button>*/}
  4689. {/* </div>*/}
  4690. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*!/*/}
  4691. {/* <div*/}
  4692. {/* className="clearfix"*/}
  4693. {/* style={{*/}
  4694. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  4695. {/* }}*/}
  4696. {/* >*/}
  4697. {/* <Spin spinning={this.state.payNodeLoading}>*/}
  4698. {/* <Form layout="horizontal">*/}
  4699. {/* <Table*/}
  4700. {/* pagination={false}*/}
  4701. {/* columns={this.state.PayNodeTableColunms}*/}
  4702. {/* dataSource={this.state.payNodeList}*/}
  4703. {/* onRowClick={this.payNodeTableRowClickOne}*/}
  4704. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  4705. {/* bordered*/}
  4706. {/* size="small"*/}
  4707. {/* />*/}
  4708. {/* <Col*/}
  4709. {/* span={24}*/}
  4710. {/* offset={9}*/}
  4711. {/* style={{ marginTop: '15px' }}*/}
  4712. {/* />*/}
  4713. {/* </Form>*/}
  4714. {/* </Spin>*/}
  4715. {/* </div>*/}
  4716. {/* <div className="clearfix">*/}
  4717. {/* <FormItem*/}
  4718. {/* className="half-item"*/}
  4719. {/* {...formItemLayout}*/}
  4720. {/* label={*/}
  4721. {/* <span>*/}
  4722. {/* <strong style={{ color: '#f00' }}>*</strong>备注*/}
  4723. {/* </span>*/}
  4724. {/* }*/}
  4725. {/* >*/}
  4726. {/* <TextArea*/}
  4727. {/* rows={4}*/}
  4728. {/* value={this.state.outsourceRemarks}*/}
  4729. {/* onChange={(e) => {*/}
  4730. {/* this.setState({*/}
  4731. {/* outsourceRemarks: e.target.value,*/}
  4732. {/* })*/}
  4733. {/* }}*/}
  4734. {/* placeholder="请输入备注"*/}
  4735. {/* />*/}
  4736. {/* </FormItem>*/}
  4737. {/* </div>*/}
  4738. {/*<div className="clearfix">
  4739. <FormItem className="half-item"
  4740. {...formItemLayout}
  4741. label="上传协议文件" style={{height:"auto"}}>
  4742. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  4743. data={(e)=>{
  4744. return {
  4745. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  4746. }
  4747. }}
  4748. fileList={this.state.fileUrl}
  4749. onChange={(e)=>{
  4750. this.setState({
  4751. attachmentUrl:e.fileList,
  4752. fileUrl:e.fileList
  4753. })
  4754. }}>
  4755. {fileUrl.length>1?null:<Button>
  4756. <Icon type="upload" /> 点击上传
  4757. </Button>}
  4758. </Upload>
  4759. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  4760. </FormItem>
  4761. </div>*/}
  4762. {/* <p*/}
  4763. {/* className="tip"*/}
  4764. {/* style={{*/}
  4765. {/* paddingBottom: '12px',*/}
  4766. {/* width: '240px',*/}
  4767. {/* marginLeft: '145px',*/}
  4768. {/* color: 'red',*/}
  4769. {/* }}*/}
  4770. {/* >*/}
  4771. {/* 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司*/}
  4772. {/* </p>*/}
  4773. {/* <div className="clearfix">*/}
  4774. {/* <FormItem*/}
  4775. {/* labelCol={{ span: 4 }}*/}
  4776. {/* wrapperCol={{ span: 18 }}*/}
  4777. {/* label={*/}
  4778. {/* <span>*/}
  4779. {/* 合同/协议扫描件*/}
  4780. {/* </span>*/}
  4781. {/* }*/}
  4782. {/* >*/}
  4783. {/* <PicturesWall*/}
  4784. {/* domId={'myTask3'}*/}
  4785. {/* fileList={this.getOrgCodeUrlWai}*/}
  4786. {/* pictureUrl={this.state.pictureUrl}*/}
  4787. {/* />*/}
  4788. {/* <p style={{ color: 'red' }}>图片建议:要清晰。</p>*/}
  4789. {/* </FormItem>*/}
  4790. {/* </div>*/}
  4791. {/* /!*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*!/*/}
  4792. {/* /!*this.state.startType 0外包 1供应商*!/*/}
  4793. {/* {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">*/}
  4794. {/* <FormItem*/}
  4795. {/* className="half-item"*/}
  4796. {/* {...formItemLayout}*/}
  4797. {/* label={*/}
  4798. {/* <span>*/}
  4799. {/* <strong style={{ color: '#f00' }}>*</strong>发起原因*/}
  4800. {/* </span>*/}
  4801. {/* }*/}
  4802. {/* >*/}
  4803. {/* <TextArea*/}
  4804. {/* rows={4}*/}
  4805. {/* value={this.state.reason}*/}
  4806. {/* onChange={(e) => {*/}
  4807. {/* this.setState({*/}
  4808. {/* reason: e.target.value,*/}
  4809. {/* })*/}
  4810. {/* }}*/}
  4811. {/* placeholder="请输入发起原因"*/}
  4812. {/* />*/}
  4813. {/* </FormItem>*/}
  4814. {/* </div> : <div/>}*/}
  4815. {/* <div className="clearfix">*/}
  4816. {/* <div*/}
  4817. {/* style={{*/}
  4818. {/* display: 'inline-black',*/}
  4819. {/* textAlign: 'center',*/}
  4820. {/* }}*/}
  4821. {/* >*/}
  4822. {/* <Button*/}
  4823. {/* type="primary"*/}
  4824. {/* loading={this.state.loading}*/}
  4825. {/* onClick={()=>{*/}
  4826. {/* this.sureOut(this.state.startType);*/}
  4827. {/* }}*/}
  4828. {/* >*/}
  4829. {/* {*/}
  4830. {/* this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"*/}
  4831. {/* }*/}
  4832. {/* </Button>*/}
  4833. {/* <p className="tip" style={{ color: 'red' }}>*/}
  4834. {/* {*/}
  4835. {/* this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"*/}
  4836. {/* }*/}
  4837. {/* </p>*/}
  4838. {/* </div>*/}
  4839. {/* </div>*/}
  4840. {/* </div>*/}
  4841. {/*) : (*/}
  4842. {/* <div>*/}
  4843. {/* {*/}
  4844. {/* this.state.visible && this.state.activeKey === '2' ?*/}
  4845. {/* <CheckProject*/}
  4846. {/* {...this.props}*/}
  4847. {/* orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有*/}
  4848. {/* containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费*/}
  4849. {/* tid={this.state.tid}*/}
  4850. {/* oldInfor={this.state.oldInfor}*/}
  4851. {/* projectType={this.state.projectType} //0正常 1专利 2软著 3审计*/}
  4852. {/* patentNameType={this.state.patentNameType}*/}
  4853. {/* patentName={this.state.patentName}*/}
  4854. {/* patentType={this.state.patentType}*/}
  4855. {/* status={this.state.refundStatus}*/}
  4856. {/* isPreviewPay={true}*/}
  4857. {/* mid={this.state.mid}*/}
  4858. {/* thirdInfoList={this.state.thirdInfoList}*/}
  4859. {/* dataSource={this.state.payNodeList}*/}
  4860. {/* outsourceRemarks={this.state.outsourceRemarks}*/}
  4861. {/* fileList={this.state.pictureUrl}*/}
  4862. {/* startType={this.state.startType}*/}
  4863. {/* projectStatus={this.state.projectStatus}*/}
  4864. {/* onRefresh={()=>{*/}
  4865. {/* this.waiDetail();*/}
  4866. {/* this.thirdTable(this.state.tid);*/}
  4867. {/* this.getSelectOutsourceLog(this.state.tid);*/}
  4868. {/* this.payNodeTable(this.state.tid)*/}
  4869. {/* this.loadData(this.state.page)*/}
  4870. {/* }}*/}
  4871. {/* /> : <div/>*/}
  4872. {/* }*/}
  4873. {/* </div>*/}
  4874. {/*)}*/}
  4875. {/*{(this.state.refundStatus == 1 ||*/}
  4876. {/* this.state.refundStatus == 0 ||*/}
  4877. {/* this.state.refundStatus == 2) &&*/}
  4878. {/*this.state.startType !== 1*/}
  4879. {/* ? (*/}
  4880. {/* <div className="clearfix"*/}
  4881. {/* style={{*/}
  4882. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4883. {/* }}*/}
  4884. {/* >*/}
  4885. {/* <hr className="division" />*/}
  4886. {/* {parseInt(this.state.startType) !== 1 ? <div style={{*/}
  4887. {/* color:'#F00',*/}
  4888. {/* fontWeight: 'bolder',*/}
  4889. {/* paddingBottom: '20px',*/}
  4890. {/* }}>*/}
  4891. {/* 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>*/}
  4892. {/* </div> : <div/>}*/}
  4893. {/* <div className="outsourceLogList">*/}
  4894. {/* {*/}
  4895. {/* this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(*/}
  4896. {/* <div key={index} className="outsourceLogItem outsource">*/}
  4897. {/* <div style={{*/}
  4898. {/* display:'flex',*/}
  4899. {/* flexFlow:'row nowrap',*/}
  4900. {/* paddingBottom: '3px',*/}
  4901. {/* paddingTop: '3px',*/}
  4902. {/* }}>*/}
  4903. {/* <div>*/}
  4904. {/* {value.aname}*/}
  4905. {/* </div>*/}
  4906. {/* <div style={{paddingLeft:'5px'}}>*/}
  4907. {/* {*/}
  4908. {/* value.status === 0 ?*/}
  4909. {/* <Tag color="#2db7f5">发起外包审核</Tag> :*/}
  4910. {/* value.status === 1 ? <Tag color="#87d068">通过</Tag> :*/}
  4911. {/* <Tag color="#f50">驳回</Tag>*/}
  4912. {/* }*/}
  4913. {/* </div>*/}
  4914. {/* <div style={{*/}
  4915. {/* wordBreak: 'break-all',*/}
  4916. {/* maxWidth:'67%',*/}
  4917. {/* }}>*/}
  4918. {/* {value.remarks}*/}
  4919. {/* </div>*/}
  4920. {/* <div style={{paddingLeft: '10px'}}>*/}
  4921. {/* {value.createTimes}*/}
  4922. {/* </div>*/}
  4923. {/* </div>*/}
  4924. {/* </div>*/}
  4925. {/* ))*/}
  4926. {/* }*/}
  4927. {/* </div>*/}
  4928. {/* <div*/}
  4929. {/* className="clearfix"*/}
  4930. {/* style={{*/}
  4931. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4932. {/* }}*/}
  4933. {/* >*/}
  4934. {/* <FormItem*/}
  4935. {/* className="half-item"*/}
  4936. {/* {...formItemLayout}*/}
  4937. {/* label="审核意见"*/}
  4938. {/* >*/}
  4939. {/* <span>{this.state.remarks}</span>*/}
  4940. {/* </FormItem>*/}
  4941. {/* </div>*/}
  4942. {/* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*/}
  4943. {/* <FormItem*/}
  4944. {/* className="half-item"*/}
  4945. {/* {...formItemLayout}*/}
  4946. {/* label="审核结果"*/}
  4947. {/* >*/}
  4948. {/* <span>{getRefundStatus(this.state.refundStatus)}</span>*/}
  4949. {/* </FormItem>*/}
  4950. {/* </div> : <div/>}*/}
  4951. {/* <div*/}
  4952. {/* className="clearfix"*/}
  4953. {/* style={{*/}
  4954. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4955. {/* }}*/}
  4956. {/* >*/}
  4957. {/* <FormItem*/}
  4958. {/* className="half-item"*/}
  4959. {/* {...formItemLayout}*/}
  4960. {/* label="审核时间"*/}
  4961. {/* >*/}
  4962. {/* <span>{this.state.auditTimes}</span>*/}
  4963. {/* </FormItem>*/}
  4964. {/* </div>*/}
  4965. {/* </div>*/}
  4966. {/* ) : (*/}
  4967. {/* ''*/}
  4968. {/* )}*/}
  4969. {/* </Spin>*/}
  4970. {/*</TabPane>*/}
  4971. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4972. <TabPane tab="订单详情" key="3">
  4973. <Spin spinning={this.state.loading}>
  4974. {this.state.activeKey === "3" ? <OrderDetail
  4975. orderData={this.state.orderData}
  4976. getOrderLog={this.getOrderLog}
  4977. dataSourceX={this.state.dataSourceX}
  4978. contactList={this.state.jiedian}
  4979. orderNo={this.state.orderNo}
  4980. totalCui={this.state.totalCui}
  4981. contactListNew={this.state.jiedianNew}
  4982. pictureUrl={this.state.contractPictureUrl}
  4983. /> : <div/>}
  4984. </Spin>
  4985. <OrderRiZi
  4986. dataSourcerizhi={this.state.dataSourceY}
  4987. closeOrderLog={this.closeOrderLog}
  4988. visible={this.state.avisible}
  4989. loading={this.state.loading}
  4990. />
  4991. </TabPane>
  4992. ) : (
  4993. ''
  4994. )}
  4995. </Tabs>
  4996. </div>
  4997. </Modal> : <div/>}
  4998. <Modal
  4999. maskClosable={false}
  5000. visible={this.state.lookVisible}
  5001. onOk={this.noCancel}
  5002. onCancel={this.noCancel}
  5003. width="500px"
  5004. title={'添加工时'}
  5005. footer=""
  5006. className="admin-desc-content"
  5007. >
  5008. <Form layout="horizontal" id="demand-form">
  5009. <div className="clearfix">
  5010. <FormItem {...formItemLayout} label="工作日期">
  5011. <DatePicker
  5012. style={{ marginTop: '2px', width: '200px', height: '32px' }}
  5013. showTime
  5014. format="YYYY-MM-DD"
  5015. onOk={() => {}}
  5016. value={
  5017. this.state.taskDate ? moment(this.state.taskDate) : null
  5018. }
  5019. onChange={(data, dataString) => {
  5020. this.setState({ taskDate: dataString })
  5021. }}
  5022. />
  5023. </FormItem>
  5024. </div>
  5025. <div className="clearfix">
  5026. <FormItem {...formItemLayout} label="工作时长">
  5027. <Input
  5028. placeholder="请输入工作时长"
  5029. value={this.state.hours}
  5030. style={{ width: '200px' }}
  5031. onChange={(e) => {
  5032. this.setState({ hours: e.target.value })
  5033. }}
  5034. ref="commodityQuantity"
  5035. />
  5036. </FormItem>
  5037. </div>
  5038. <div className="clearfix">
  5039. <FormItem {...formItemLayout} label="工作内容">
  5040. <Input
  5041. type="textarea"
  5042. placeholder="请输入备注"
  5043. rows={4}
  5044. value={this.state.remarks}
  5045. onChange={(e) => {
  5046. this.setState({ remarks: e.target.value })
  5047. }}
  5048. />
  5049. </FormItem>
  5050. </div>
  5051. <div className="clearfix">
  5052. <Button
  5053. className="cancel"
  5054. type="primary"
  5055. onClick={this.tianjiaOk}
  5056. loading={this.state.loading}
  5057. style={{ marginLeft: '100px' }}
  5058. htmlType="submit"
  5059. >
  5060. 确定
  5061. </Button>
  5062. <Button
  5063. className="cancel"
  5064. type="ghost"
  5065. onClick={this.noCancel}
  5066. style={{ marginLeft: '50px' }}
  5067. >
  5068. 取消
  5069. </Button>
  5070. </div>
  5071. </Form>
  5072. </Modal>
  5073. {this.state.speVisible ? <Modal
  5074. maskClosable={false}
  5075. visible={this.state.speVisible}
  5076. onOk={()=>{
  5077. this.visitOk();
  5078. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  5079. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  5080. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  5081. }}
  5082. onCancel={()=>{
  5083. this.visitCancel();
  5084. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  5085. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  5086. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  5087. }}
  5088. width="900px"
  5089. title=""
  5090. footer=""
  5091. className="admin-desc-content"
  5092. >
  5093. <div style={{position:"relative"}}>
  5094. <div style={{
  5095. position: "absolute",
  5096. inset:'-15px',
  5097. zIndex: 1000,
  5098. display: parseInt(this.state.projectStatus) === 0 ? 'flex' : 'none',
  5099. justifyContent:'center',
  5100. paddingTop: '300px',
  5101. background: 'rgba(0,0,0,0.7)',
  5102. borderRadius: '4px',
  5103. borderTopRightRadius: '96px',
  5104. }}>
  5105. <Button
  5106. type="primary"
  5107. size='large'
  5108. onClick={()=>{
  5109. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  5110. this.updateProjectStatus(1,()=>{
  5111. this.xiangqing(this.state.id)
  5112. });
  5113. }}>
  5114. 开始启动项目
  5115. </Button>
  5116. </div>
  5117. <Tabs
  5118. tabBarExtraContent={
  5119. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  5120. <span>
  5121. 项目名称:
  5122. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  5123. </span>
  5124. <span style={{marginLeft:'15px'}}>
  5125. 项目编号:
  5126. <span style={{color:'#F00',paddingRight:'5px'}}>
  5127. {this.state.id}
  5128. {
  5129. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  5130. }
  5131. </span>
  5132. </span>
  5133. </div>
  5134. }
  5135. activeKey={this.state.activeKey}
  5136. onChange={this.orderChange}
  5137. >
  5138. <TabPane tab="项目概况" key="1">
  5139. <div className="clearfix">
  5140. <FormItem
  5141. className="half-item"
  5142. {...formItemLayout}
  5143. label="项目状态"
  5144. >
  5145. {
  5146. getProjectName(parseInt(this.state.projectStatus))
  5147. }
  5148. {
  5149. this.state.projectStatus !== 0 ? <Button
  5150. type="primary"
  5151. size="small"
  5152. style={{
  5153. marginTop: "5px",
  5154. marginLeft: '5px',
  5155. }}
  5156. onClick={()=>{
  5157. this.setState({
  5158. projectSituationVisible: true,
  5159. })
  5160. }}
  5161. >
  5162. 修改
  5163. </Button> : null
  5164. }
  5165. <Button
  5166. type="primary"
  5167. size="small"
  5168. style={{
  5169. marginTop: "5px",
  5170. position: "absolute",
  5171. zIndex: 1,
  5172. marginLeft: '5px',
  5173. }}
  5174. onClick={this.caozuorizhi}
  5175. >
  5176. 操作日志
  5177. </Button>
  5178. </FormItem>
  5179. <FormItem
  5180. className="half-item"
  5181. {...formItemLayout}
  5182. label="合同编号"
  5183. >
  5184. <span>{this.state.contractNo}</span>
  5185. </FormItem>
  5186. </div>
  5187. <div className="clearfix">
  5188. <FormItem
  5189. className="half-item"
  5190. {...formItemLayout}
  5191. label="是否特批"
  5192. >
  5193. <span>{getApproval(this.state.approval)}</span>
  5194. </FormItem>
  5195. <FormItem
  5196. className="half-item"
  5197. {...formItemLayout}
  5198. label="结算状态"
  5199. >
  5200. <span>
  5201. {getLiquidationStatus(this.state.liquidationStatus)}
  5202. </span>
  5203. </FormItem>
  5204. <FormItem
  5205. className="half-item"
  5206. {...formItemLayout}
  5207. label="流程状态"
  5208. >
  5209. <span>{getProcessStatus(this.state.processStatus)}</span>
  5210. </FormItem>
  5211. <FormItem
  5212. className="half-item"
  5213. {...formItemLayout}
  5214. label="订单编号"
  5215. >
  5216. <span>{this.state.orderNo}</span>
  5217. </FormItem>
  5218. </div>
  5219. <div className="clearfix">
  5220. <FormItem
  5221. className="half-item"
  5222. {...formItemLayout}
  5223. label="满意度表格"
  5224. >
  5225. <Radio.Group
  5226. value={this.state.formRetrieve}
  5227. onChange={(e) => {
  5228. this.setState({ formRetrieve: e.target.value })
  5229. }}
  5230. >
  5231. <Radio value={0}>未收回</Radio>
  5232. <Radio value={1}>已收回</Radio>
  5233. <Radio value={2}>其他</Radio>
  5234. </Radio.Group>
  5235. </FormItem>
  5236. {
  5237. <FormItem
  5238. className="half-item"
  5239. {...formItemLayout}
  5240. label="(满意度)备注"
  5241. >
  5242. <Input
  5243. type="textarea"
  5244. placeholder="请输入备注"
  5245. rows={2}
  5246. value={this.state.retrieveContent}
  5247. onChange={(e) => {
  5248. this.setState({ retrieveContent: e.target.value })
  5249. }}
  5250. />
  5251. </FormItem>
  5252. }
  5253. {/*<FormItem*/}
  5254. {/* className="half-item"*/}
  5255. {/* {...formItemLayout}*/}
  5256. {/* label="退单"*/}
  5257. {/*>*/}
  5258. {/* <Radio.Group*/}
  5259. {/* value={this.state.taskRefund}*/}
  5260. {/* onChange={(e) => {*/}
  5261. {/* this.setState({ taskRefund: e.target.value })*/}
  5262. {/* }}*/}
  5263. {/* >*/}
  5264. {/* <Radio value={0}>已完成</Radio>*/}
  5265. {/* <Radio value={1}>未完成</Radio>*/}
  5266. {/* <Radio value={2}>其他</Radio>*/}
  5267. {/* </Radio.Group>*/}
  5268. {/*</FormItem>*/}
  5269. </div>
  5270. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  5271. {this.state.bpType === 2 ? <div className="clearfix">
  5272. <FormItem
  5273. className="half-item"
  5274. {...formItemLayout}
  5275. label="加急天数"
  5276. >
  5277. <Radio.Group
  5278. value={this.state.urgentDay}
  5279. onChange={(e) => {
  5280. this.setState({ urgentDay: e.target.value })
  5281. }}
  5282. >
  5283. <Radio value={1}>是</Radio>
  5284. <Radio value={0}>否</Radio>
  5285. </Radio.Group>
  5286. </FormItem>
  5287. <FormItem
  5288. className="half-item"
  5289. {...formItemLayout}
  5290. label="有无材料"
  5291. >
  5292. <Radio.Group
  5293. value={this.state.ifMaterial}
  5294. onChange={(e) => {
  5295. this.setState({ ifMaterial: e.target.value })
  5296. }}
  5297. >
  5298. <Radio value={1}>是</Radio>
  5299. <Radio value={0}>否</Radio>
  5300. </Radio.Group>
  5301. </FormItem>
  5302. </div> : null}
  5303. <div className="clearfix">
  5304. <div style={{
  5305. paddingLeft: '8%',
  5306. }}>
  5307. <div style={{color:'#000',fontWeight:500}}>
  5308. 特别说明
  5309. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  5310. </div>
  5311. <div style={{display:'flex',alignItems:'center',paddingTop: '10px'}}>
  5312. <div>备注:</div>
  5313. <Input
  5314. type="textarea"
  5315. placeholder="请输入备注"
  5316. rows={3}
  5317. style={{
  5318. width:'33%',
  5319. marginLeft: '10px',
  5320. }}
  5321. value={this.state.specialComment}
  5322. onChange={(e) => {
  5323. this.setState({ specialComment: e.target.value });
  5324. }}
  5325. />
  5326. </div>
  5327. </div>
  5328. {
  5329. // <FormItem
  5330. // className="half-item"
  5331. // {...formItemLayout}
  5332. // label="(退单)备注"
  5333. // >
  5334. // <Input
  5335. // type="textarea"
  5336. // placeholder="请输入备注"
  5337. // rows={2}
  5338. // value={this.state.refundContent}
  5339. // onChange={(e) => {
  5340. // this.setState({ refundContent: e.target.value })
  5341. // }}
  5342. // />
  5343. // </FormItem>
  5344. }
  5345. </div>
  5346. <div className="clearfix">
  5347. <h3 className="sub-title">订单负责人信息</h3>
  5348. <FormItem
  5349. className="half-item"
  5350. {...formItemLayout}
  5351. label="负责人"
  5352. >
  5353. <span>
  5354. {this.state.salesmanName + '(' + this.state.depName + ')'}
  5355. </span>
  5356. </FormItem>
  5357. <FormItem
  5358. className="half-item"
  5359. {...formItemLayout}
  5360. label="负责人电话"
  5361. >
  5362. <span>{this.state.salesmanMobile}</span>
  5363. </FormItem>
  5364. <FormItem
  5365. className="half-item"
  5366. {...formItemLayout}
  5367. label="当前财务负责人"
  5368. >
  5369. <span>{this.state.nowFinance}</span>
  5370. </FormItem>
  5371. <FormItem
  5372. className="half-item"
  5373. {...formItemLayout}
  5374. label="当前财务负责人电话"
  5375. >
  5376. <span>{this.state.nowFinanceMobile}</span>
  5377. </FormItem>
  5378. <FormItem
  5379. className="half-item"
  5380. {...formItemLayout}
  5381. style={{ opacity: '.5' }}
  5382. label="原负责人"
  5383. >
  5384. <span>{this.state.oldSalesmanName}</span>
  5385. </FormItem>
  5386. <FormItem
  5387. className="half-item"
  5388. {...formItemLayout}
  5389. style={{ opacity: '.5' }}
  5390. label="原负责人电话"
  5391. >
  5392. <span>{this.state.oldSalesmanMobile}</span>
  5393. </FormItem>
  5394. <FormItem
  5395. className="half-item"
  5396. {...formItemLayout}
  5397. style={{ opacity: '.5' }}
  5398. label="实际财务操作人"
  5399. >
  5400. <span>{this.state.financeName}</span>
  5401. </FormItem>
  5402. <FormItem
  5403. className="half-item"
  5404. {...formItemLayout}
  5405. style={{ opacity: '.5' }}
  5406. label="实际财务操作人电话"
  5407. >
  5408. <span>{this.state.financeMobile}</span>
  5409. </FormItem>
  5410. <FormItem
  5411. className="half-item"
  5412. {...formItemLayout}
  5413. label="订单留言"
  5414. >
  5415. <span>{this.state.orderRemarks}</span>
  5416. </FormItem>
  5417. <FormItem className="half-item" {...formItemLayout} label="">
  5418. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  5419. </FormItem>
  5420. <OrderRiZi
  5421. dataSourcerizhi={this.state.dataSourceY}
  5422. closeOrderLog={this.closeOrderLog}
  5423. visible={this.state.avisible}
  5424. loading={this.state.loading}
  5425. />
  5426. </div>
  5427. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5428. <div className="clearfix">
  5429. <h3 className="sub-title">联系信息</h3>
  5430. <FormItem
  5431. className="half-item"
  5432. {...formItemLayout}
  5433. label="客户名称"
  5434. >
  5435. <span>{this.state.userName}</span>
  5436. </FormItem>
  5437. <FormItem
  5438. className="half-item"
  5439. {...formItemLayout}
  5440. label="企业法人"
  5441. >
  5442. <Input
  5443. placeholder="请输入法人名称"
  5444. value={this.state.legalPerson}
  5445. style={{ width: '200px' }}
  5446. onChange={(e) => {
  5447. this.setState({ legalPerson: e.target.value })
  5448. }}
  5449. ref="commodityQuantity"
  5450. />
  5451. </FormItem>
  5452. <FormItem
  5453. className="half-item"
  5454. {...formItemLayout}
  5455. label="法人电话"
  5456. >
  5457. <Input
  5458. placeholder="请输入法人电话"
  5459. value={this.state.legalPersonTel}
  5460. style={{ width: '200px' }}
  5461. onChange={(e) => {
  5462. this.setState({ legalPersonTel: e.target.value })
  5463. }}
  5464. ref="commodityQuantity"
  5465. />
  5466. </FormItem>
  5467. <FormItem
  5468. className="half-item"
  5469. {...formItemLayout}
  5470. label="客户联系人"
  5471. >
  5472. <Input
  5473. placeholder="请输入联系人名称"
  5474. value={this.state.contacts}
  5475. style={{ width: '200px' }}
  5476. onChange={(e) => {
  5477. this.setState({ contacts: e.target.value })
  5478. }}
  5479. ref="commodityQuantity"
  5480. />
  5481. </FormItem>
  5482. <FormItem
  5483. className="half-item"
  5484. {...formItemLayout}
  5485. label="联系人电话"
  5486. >
  5487. <Input
  5488. placeholder="请输入联系人电话"
  5489. value={this.state.contactMobile}
  5490. style={{ width: '200px' }}
  5491. onChange={(e) => {
  5492. this.setState({ contactMobile: e.target.value })
  5493. }}
  5494. ref="commodityQuantity"
  5495. />
  5496. </FormItem>
  5497. <FormItem
  5498. className="half-item"
  5499. {...formItemLayout}
  5500. label="企业地址"
  5501. >
  5502. <Cascader
  5503. options={areaSelect()}
  5504. value={this.state.ProvinceCity}
  5505. placeholder="选择城市"
  5506. style={{ width: '200px' }}
  5507. onChange={(e) => {
  5508. this.setState({ ProvinceCity: e })
  5509. }}
  5510. />
  5511. </FormItem>
  5512. <FormItem
  5513. className="half-item"
  5514. {...formItemLayout}
  5515. label=""
  5516. />
  5517. <FormItem className="half-item" {...formItemLayout} label="">
  5518. <Input
  5519. placeholder="请输入详细地址"
  5520. value={this.state.postalAddress}
  5521. style={{ width: '200px', marginLeft: '12em' }}
  5522. onChange={(e) => {
  5523. this.setState({ postalAddress: e.target.value })
  5524. }}
  5525. ref="commodityQuantity"
  5526. />
  5527. </FormItem>
  5528. </div>
  5529. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5530. <div className="clearfix">
  5531. <h3 className="sub-title">项目信息</h3>
  5532. <FormItem
  5533. className="half-item"
  5534. {...formItemLayout}
  5535. label="项目编号"
  5536. >
  5537. <span>
  5538. {this.state.splitStatus == 2
  5539. ? this.state.splitSuper + '-' + this.state.splitId
  5540. : this.state.id}
  5541. </span>
  5542. </FormItem>
  5543. <FormItem
  5544. className="half-item"
  5545. {...formItemLayout}
  5546. label="项目名称"
  5547. >
  5548. <span>{this.state.taskName}</span>
  5549. </FormItem>
  5550. {/*<FormItem*/}
  5551. {/* className="half-item"*/}
  5552. {/* {...formItemLayout}*/}
  5553. {/* label="项目状态"*/}
  5554. {/*>*/}
  5555. {/* <Select*/}
  5556. {/* placeholder="选择项目状态"*/}
  5557. {/* style={{ width: '200px' }}*/}
  5558. {/* value={this.state.taskStatus}*/}
  5559. {/* onChange={(e) => {*/}
  5560. {/* this.setState({ taskStatus: e })*/}
  5561. {/* }}*/}
  5562. {/* >*/}
  5563. {/* {taskStatus.map(function (item) {*/}
  5564. {/* return (*/}
  5565. {/* <Select.Option key={item.value}>*/}
  5566. {/* {item.key}*/}
  5567. {/* </Select.Option>*/}
  5568. {/* )*/}
  5569. {/* })}*/}
  5570. {/* </Select>*/}
  5571. {/*</FormItem>*/}
  5572. <FormItem
  5573. className="half-item"
  5574. {...formItemLayout}
  5575. label="项目类别"
  5576. >
  5577. <span>{this.state.cname}</span>
  5578. </FormItem>
  5579. <FormItem
  5580. className="half-item"
  5581. {...formItemLayout}
  5582. label="证书编号"
  5583. >
  5584. {this.state.certificateNumber}
  5585. </FormItem>
  5586. </div>
  5587. <div className="clearfix" style={{ marginTop: '10px' }}>
  5588. <FormItem
  5589. labelCol={{ span: 3 }}
  5590. wrapperCol={{ span: 14 }}
  5591. label="附件"
  5592. >
  5593. <Picture
  5594. domId={'myTask2'}
  5595. fileList={(e) => {
  5596. this.setState({ attachmentUrl: e })
  5597. }}
  5598. pictureUrl={this.state.attachmentUrl}
  5599. visible={this.props.visible}
  5600. data={{
  5601. sign: 'order_task_file',
  5602. url: '/api/admin/orderProject/uploadOrderTaskFile',
  5603. }}
  5604. />
  5605. </FormItem>
  5606. </div>
  5607. <div className="clearfix">
  5608. <FormItem
  5609. labelCol={{ span: 3 }}
  5610. wrapperCol={{ span: 16 }}
  5611. label="项目说明"
  5612. >
  5613. <Input
  5614. type="textarea"
  5615. placeholder="请输入项目说明"
  5616. rows={4}
  5617. disabled
  5618. value={this.state.taskComment}
  5619. onChange={(e) => {
  5620. if(this.state.taskCommentData){
  5621. let len = this.state.taskCommentData.length;
  5622. if(e.target.value.slice(0,len) !== this.state.taskCommentData){
  5623. message.warning('项目说明不允许删除与修改已存在的内容');
  5624. return;
  5625. }
  5626. }
  5627. this.setState({ taskComment: e.target.value })
  5628. }}
  5629. />
  5630. </FormItem>
  5631. </div>
  5632. <div className="clearfix">
  5633. <h3 className="sub-title">项目申报进度</h3>
  5634. <DeclarationProgress
  5635. timeRecordparse={this.state.timeRecordparse}
  5636. startDate={this.state.startDate}
  5637. taskDate={this.state.taskDate}
  5638. list={[
  5639. {id:4,name:'完成时间',value:this.state.endDate},
  5640. {id:6,name:'受理时间',value:this.state.acceptDate},
  5641. {id:8,name:'公示时间',value:this.state.publicityDate},
  5642. {id:10,name:'发证时间',value:this.state.licenceDate},
  5643. {id:15,name:'立项金额',value:this.state.setUpAmount}
  5644. ]}/>
  5645. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  5646. {/*cSort: 3 科技项目 6: 会员*/}
  5647. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  5648. className="half-item"
  5649. {...formItemLayout}
  5650. label="申报批次"
  5651. >
  5652. <Select
  5653. value={
  5654. this.state.declarationBatch
  5655. ? this.state.declarationBatch
  5656. : undefined
  5657. }
  5658. placeholder="请选择批次"
  5659. style={{ width: 200 }}
  5660. onChange={(e) => {
  5661. this.setState({
  5662. declarationBatch: e,
  5663. })
  5664. }}
  5665. >
  5666. <Option value={1}>第一批</Option>
  5667. <Option value={2}>第二批</Option>
  5668. <Option value={3}>第三批</Option>
  5669. <Option value={4}>第四批</Option>
  5670. </Select>
  5671. </FormItem>}
  5672. <FormItem
  5673. className="half-item"
  5674. {...formItemLayout}
  5675. label="软著派单数量"
  5676. >
  5677. <span>{this.state.commodityQuantity}</span>
  5678. <Button
  5679. type="primary"
  5680. size="small"
  5681. style={{ marginLeft: '45px' }}
  5682. onClick={this.addcontact}
  5683. >
  5684. +增加下证信息
  5685. </Button>
  5686. </FormItem>
  5687. <div className="patent-table">
  5688. <Spin spinning={this.state.loading}>
  5689. <Table
  5690. columns={this.state.ContactsLists}
  5691. dataSource={this.state.contactList}
  5692. pagination={false}
  5693. bordered
  5694. size="small"
  5695. />
  5696. </Spin>
  5697. </div>
  5698. </div>
  5699. <div className="clearfix">
  5700. <h3 className="sub-title">项目业务</h3>
  5701. <div className="patent-table">
  5702. <Spin spinning={this.state.loading}>
  5703. <Table
  5704. columns={this.state.columnsX}
  5705. dataSource={this.state.dataSourceX}
  5706. pagination={this.state.paginations}
  5707. onRowClick={this.tableRowClickX}
  5708. bordered
  5709. size="small"
  5710. />
  5711. </Spin>
  5712. </div>
  5713. </div>
  5714. <div className="clearfix">
  5715. <Button
  5716. className="cancel"
  5717. type="primary"
  5718. onClick={()=>{
  5719. this.tijiaoOk();
  5720. }}
  5721. style={{ marginLeft: '200px', marginTop: '10px' }}
  5722. htmlType="submit"
  5723. >
  5724. 保存
  5725. </Button>
  5726. <Button
  5727. className="cancel"
  5728. type="ghost"
  5729. onClick={this.visitCancel}
  5730. style={{ marginLeft: '50px', marginTop: '10px' }}
  5731. >
  5732. 取消
  5733. </Button>
  5734. </div>
  5735. </TabPane>
  5736. {/*<TabPane tab="外包/供应商信息" key="2">*/}
  5737. {/* <Spin spinning={this.state.sureOutLoading || this.state.waiDetailLoading || this.state.payNodeLoading || this.state.thirdInfoLoading}>*/}
  5738. {/* {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (*/}
  5739. {/* <div style={{ marginTop: 10 }}>*/}
  5740. {/* <div className="clearfix">*/}
  5741. {/* <FormItem*/}
  5742. {/* className="half-item"*/}
  5743. {/* labelCol={{ span: 3 }}*/}
  5744. {/* wrapperCol={{ span: 14 }}*/}
  5745. {/* label={*/}
  5746. {/* <span>*/}
  5747. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  5748. {/* 类型*/}
  5749. {/* </span>*/}
  5750. {/* }*/}
  5751. {/* >*/}
  5752. {/* <Radio.Group*/}
  5753. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  5754. {/* value={this.state.startType}*/}
  5755. {/* onChange={(e) => {*/}
  5756. {/* let _this = this;*/}
  5757. {/* if(this.state.thirdInfoList.length >0){*/}
  5758. {/* confirm({*/}
  5759. {/* title: '确定要切换吗?',*/}
  5760. {/* content: '切换将删除所有第三信息和付款节点',*/}
  5761. {/* onOk() {*/}
  5762. {/* return new Promise((resolve, reject) => {*/}
  5763. {/* _this.setState({ startType: e.target.value },()=>{*/}
  5764. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  5765. {/* })*/}
  5766. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  5767. {/* if(_this.state.payNodeList.length > 0){*/}
  5768. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  5769. {/* }*/}
  5770. {/* }).catch(() => console.log('Oops errors!'));*/}
  5771. {/* },*/}
  5772. {/* onCancel() {},*/}
  5773. {/* });*/}
  5774. {/* }else{*/}
  5775. {/* this.setState({ startType: e.target.value },()=>{*/}
  5776. {/* this.projectTypeTabContent(this.state.projectType);*/}
  5777. {/* })*/}
  5778. {/* }*/}
  5779. {/* }}*/}
  5780. {/* >*/}
  5781. {/* <Radio value={0}>外包(不走总部)</Radio>*/}
  5782. {/* <Radio value={1}>供应商信息</Radio>*/}
  5783. {/* </Radio.Group>*/}
  5784. {/* </FormItem>*/}
  5785. {/* </div>*/}
  5786. {/* /!* 专利类型 *!/*/}
  5787. {/* <div*/}
  5788. {/* className="clearfix"*/}
  5789. {/* style={{*/}
  5790. {/* display: this.state.projectType === 1 ? 'block' : 'none',*/}
  5791. {/* }}*/}
  5792. {/* >*/}
  5793. {/* <FormItem*/}
  5794. {/* className="half-item"*/}
  5795. {/* labelCol={{ span: 4 }}*/}
  5796. {/* wrapperCol={{ span: 14 }}*/}
  5797. {/* label={*/}
  5798. {/* <span>*/}
  5799. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  5800. {/* 专利类型*/}
  5801. {/* </span>*/}
  5802. {/* }*/}
  5803. {/* >*/}
  5804. {/* <Radio.Group*/}
  5805. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  5806. {/* value={this.state.patentType}*/}
  5807. {/* onChange={(e) => {*/}
  5808. {/* let _this = this;*/}
  5809. {/* if(this.state.thirdInfoList.length >0){*/}
  5810. {/* confirm({*/}
  5811. {/* title: '确定要切换吗?',*/}
  5812. {/* content: '切换将删除所有第三信息和付款节点',*/}
  5813. {/* onOk() {*/}
  5814. {/* return new Promise((resolve, reject) => {*/}
  5815. {/* _this.setState({ patentType: e.target.value },()=>{*/}
  5816. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  5817. {/* })*/}
  5818. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  5819. {/* if(_this.state.payNodeList.length > 0){*/}
  5820. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  5821. {/* }*/}
  5822. {/* }).catch(() => console.log('Oops errors!'));*/}
  5823. {/* },*/}
  5824. {/* onCancel() {},*/}
  5825. {/* });*/}
  5826. {/* }else{*/}
  5827. {/* this.setState({ patentType: e.target.value },()=>{*/}
  5828. {/* this.projectTypeTabContent(this.state.projectType);*/}
  5829. {/* })*/}
  5830. {/* }*/}
  5831. {/* }}*/}
  5832. {/* >*/}
  5833. {/* <Radio value={0}>专利申请/变更/转让</Radio>*/}
  5834. {/* <Radio value={1}>专利买卖</Radio>*/}
  5835. {/* </Radio.Group>*/}
  5836. {/* </FormItem>*/}
  5837. {/* </div>*/}
  5838. {/* <div*/}
  5839. {/* className="clearfix"*/}
  5840. {/* style={{*/}
  5841. {/* display: this.state.projectType === 1? 'block' : 'none',*/}
  5842. {/* }}*/}
  5843. {/* >*/}
  5844. {/* <FormItem*/}
  5845. {/* className="half-item"*/}
  5846. {/* labelCol={{ span: 3 }}*/}
  5847. {/* wrapperCol={{ span: 14 }}*/}
  5848. {/* label={*/}
  5849. {/* <span>*/}
  5850. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  5851. {/* 专利名称*/}
  5852. {/* </span>*/}
  5853. {/* }*/}
  5854. {/* >*/}
  5855. {/* <Radio.Group*/}
  5856. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  5857. {/* value={this.state.patentNameType}*/}
  5858. {/* onChange={(e) => {*/}
  5859. {/* let _this = this;*/}
  5860. {/* if(this.state.thirdInfoList.length >0){*/}
  5861. {/* confirm({*/}
  5862. {/* title: '确定要切换吗?',*/}
  5863. {/* content: '切换将删除所有第三信息和付款节点',*/}
  5864. {/* onOk() {*/}
  5865. {/* return new Promise((resolve, reject) => {*/}
  5866. {/* _this.setState({ patentNameType: e.target.value },()=>{*/}
  5867. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  5868. {/* })*/}
  5869. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  5870. {/* if(_this.state.payNodeList.length > 0){*/}
  5871. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  5872. {/* }*/}
  5873. {/* }).catch(() => console.log('Oops errors!'));*/}
  5874. {/* },*/}
  5875. {/* onCancel() {},*/}
  5876. {/* });*/}
  5877. {/* }else{*/}
  5878. {/* this.setState({ patentNameType: e.target.value },()=>{*/}
  5879. {/* this.projectTypeTabContent(this.state.projectType);*/}
  5880. {/* })*/}
  5881. {/* }*/}
  5882. {/* }}*/}
  5883. {/* >*/}
  5884. {/* <Radio value={0}>实用新型专利</Radio>*/}
  5885. {/* <Radio value={1}>发明专利</Radio>*/}
  5886. {/* <Radio value={2}>外观专利</Radio>*/}
  5887. {/* /!*<Radio value={3}>*!/*/}
  5888. {/* /!* 其他*!/*/}
  5889. {/* /!* <Input*!/*/}
  5890. {/* /!* disabled={this.state.patentNameType !== 3}*!/*/}
  5891. {/* /!* value={this.state.patentName}*!/*/}
  5892. {/* /!* style={{ marginLeft: '15px' }}*!/*/}
  5893. {/* /!* onChange={(e) => {*!/*/}
  5894. {/* /!* this.setState({*!/*/}
  5895. {/* /!* patentName: e.target.value,*!/*/}
  5896. {/* /!* })*!/*/}
  5897. {/* /!* }}*!/*/}
  5898. {/* /!* placeholder="请填写专利名称"*!/*/}
  5899. {/* /!* />*!/*/}
  5900. {/* /!*</Radio>*!/*/}
  5901. {/* </Radio.Group>*/}
  5902. {/* </FormItem>*/}
  5903. {/* </div>*/}
  5904. {/* {this.state.orderTaskOfficialCost === 1 && this.state.startType !== 0 ? <div className="clearfix">*/}
  5905. {/* <FormItem*/}
  5906. {/* className="half-item"*/}
  5907. {/* labelCol={{ span: 4 }}*/}
  5908. {/* wrapperCol={{ span: 14 }}*/}
  5909. {/* label={<span>官费</span>}>*/}
  5910. {/* <Radio.Group*/}
  5911. {/* value={this.state.containOfficialFees}*/}
  5912. {/* onChange={(e) => {*/}
  5913. {/* this.setState({ containOfficialFees: e.target.value })*/}
  5914. {/* }}*/}
  5915. {/* >*/}
  5916. {/* <Radio value={0}>实际已缴费</Radio>*/}
  5917. {/* <Radio value={1}>实际未缴费</Radio>*/}
  5918. {/* </Radio.Group>*/}
  5919. {/* </FormItem>*/}
  5920. {/* </div> : <div/>}*/}
  5921. {/* /!* 第三方信息专利 *!/*/}
  5922. {/* <div*/}
  5923. {/* style={{*/}
  5924. {/* // display: this.state.type == 1 ? "block" : "none",*/}
  5925. {/* display: this.state.type == 1 ? 'block' : 'block',*/}
  5926. {/* }}*/}
  5927. {/* >*/}
  5928. {/* <span*/}
  5929. {/* style={{*/}
  5930. {/* fontSize: '18px',*/}
  5931. {/* }}*/}
  5932. {/* >*/}
  5933. {/* 第三方信息*/}
  5934. {/* </span>*/}
  5935. {/* <span*/}
  5936. {/* style={{*/}
  5937. {/* display: 'inline-block',*/}
  5938. {/* marginLeft: 10,*/}
  5939. {/* color: 'red',*/}
  5940. {/* }}*/}
  5941. {/* >*/}
  5942. {/* 金额总计(万元): {this.state.allTotalAmount}*/}
  5943. {/* </span>*/}
  5944. {/* <Button*/}
  5945. {/* type="primary"*/}
  5946. {/* onClick={(e) => {*/}
  5947. {/* //this.state.startType 类型为外包时,当普通单*/}
  5948. {/* if(this.state.projectType === 1 && this.state.patentType === -1){*/}
  5949. {/* message.info('请先选择专利类型');*/}
  5950. {/* }else if(this.state.projectType === 1 && this.state.patentNameType === -1){*/}
  5951. {/* message.info('请先选择专利名称');*/}
  5952. {/* } else{*/}
  5953. {/* this.addThirdList()*/}
  5954. {/* }*/}
  5955. {/* }}*/}
  5956. {/* style={{*/}
  5957. {/* float: 'right',*/}
  5958. {/* marginRight: '50px',*/}
  5959. {/* marginBottom: '15px',*/}
  5960. {/* }}>*/}
  5961. {/* +新增供应商名称*/}
  5962. {/* </Button>*/}
  5963. {/* </div>*/}
  5964. {/* <div*/}
  5965. {/* className="clearfix"*/}
  5966. {/* style={{*/}
  5967. {/* // display: this.state.type == 1 ? "block" : "none",*/}
  5968. {/* display: this.state.type == 1 ? 'block' : 'block',*/}
  5969. {/* }}*/}
  5970. {/* >*/}
  5971. {/* <Spin spinning={this.state.thirdInfoLoading}>*/}
  5972. {/* <Form layout="horizontal">*/}
  5973. {/* <Table*/}
  5974. {/* pagination={false}*/}
  5975. {/* columns={this.state.ContactsListsNew}*/}
  5976. {/* dataSource={this.state.thirdInfoList}*/}
  5977. {/* onRowClick={this.tableRowClickOne}*/}
  5978. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  5979. {/* bordered*/}
  5980. {/* size="small"*/}
  5981. {/* />*/}
  5982. {/* <Col*/}
  5983. {/* span={24}*/}
  5984. {/* offset={9}*/}
  5985. {/* style={{ marginTop: '15px' }}*/}
  5986. {/* />*/}
  5987. {/* </Form>*/}
  5988. {/* </Spin>*/}
  5989. {/* </div>*/}
  5990. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点*!/*/}
  5991. {/* <div*/}
  5992. {/* style={{*/}
  5993. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  5994. {/* }}*/}
  5995. {/* >*/}
  5996. {/* <span*/}
  5997. {/* style={{*/}
  5998. {/* fontSize: '18px',*/}
  5999. {/* }}*/}
  6000. {/* >*/}
  6001. {/* 付款节点*/}
  6002. {/* </span>*/}
  6003. {/* <span*/}
  6004. {/* style={{*/}
  6005. {/* display: 'inline-block',*/}
  6006. {/* marginLeft: 10,*/}
  6007. {/* color: 'red',*/}
  6008. {/* }}*/}
  6009. {/* />*/}
  6010. {/* <Button*/}
  6011. {/* type="primary"*/}
  6012. {/* onClick={(e) => {*/}
  6013. {/* this.addPayNode()*/}
  6014. {/* }}*/}
  6015. {/* style={{*/}
  6016. {/* float: 'right',*/}
  6017. {/* marginRight: '50px',*/}
  6018. {/* marginBottom: '15px',*/}
  6019. {/* }}*/}
  6020. {/* >*/}
  6021. {/* +新增付款节点*/}
  6022. {/* </Button>*/}
  6023. {/* </div>*/}
  6024. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点但当为外包类型时,无需隐藏*!/*/}
  6025. {/* <div*/}
  6026. {/* className="clearfix"*/}
  6027. {/* style={{*/}
  6028. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  6029. {/* }}*/}
  6030. {/* >*/}
  6031. {/* <Spin spinning={this.state.payNodeLoading}>*/}
  6032. {/* <Form layout="horizontal">*/}
  6033. {/* <Table*/}
  6034. {/* pagination={false}*/}
  6035. {/* columns={this.state.PayNodeTableColunms}*/}
  6036. {/* dataSource={this.state.payNodeList}*/}
  6037. {/* onRowClick={this.payNodeTableRowClickOne}*/}
  6038. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  6039. {/* bordered*/}
  6040. {/* size="small"*/}
  6041. {/* />*/}
  6042. {/* <Col*/}
  6043. {/* span={24}*/}
  6044. {/* offset={9}*/}
  6045. {/* style={{ marginTop: '15px' }}*/}
  6046. {/* />*/}
  6047. {/* </Form>*/}
  6048. {/* </Spin>*/}
  6049. {/* </div>*/}
  6050. {/* <div className="clearfix">*/}
  6051. {/* <FormItem*/}
  6052. {/* className="half-item"*/}
  6053. {/* {...formItemLayout}*/}
  6054. {/* label={*/}
  6055. {/* <span>*/}
  6056. {/* <strong style={{ color: '#f00' }}>*</strong>备注*/}
  6057. {/* </span>*/}
  6058. {/* }*/}
  6059. {/* >*/}
  6060. {/* <TextArea*/}
  6061. {/* rows={4}*/}
  6062. {/* value={this.state.outsourceRemarks}*/}
  6063. {/* onChange={(e) => {*/}
  6064. {/* this.setState({*/}
  6065. {/* outsourceRemarks: e.target.value,*/}
  6066. {/* })*/}
  6067. {/* }}*/}
  6068. {/* placeholder="请输入备注"*/}
  6069. {/* />*/}
  6070. {/* </FormItem>*/}
  6071. {/* </div>*/}
  6072. {/* <p*/}
  6073. {/* className="tip"*/}
  6074. {/* style={{*/}
  6075. {/* paddingBottom: '12px',*/}
  6076. {/* width: '240px',*/}
  6077. {/* marginLeft: '145px',*/}
  6078. {/* color: 'red',*/}
  6079. {/* }}*/}
  6080. {/* >*/}
  6081. {/* 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司*/}
  6082. {/* </p>*/}
  6083. {/* <div className="clearfix">*/}
  6084. {/* <FormItem*/}
  6085. {/* labelCol={{ span: 4 }}*/}
  6086. {/* wrapperCol={{ span: 18 }}*/}
  6087. {/* label={*/}
  6088. {/* <span>*/}
  6089. {/* 合同/协议扫描件*/}
  6090. {/* </span>*/}
  6091. {/* }*/}
  6092. {/* >*/}
  6093. {/* <PicturesWall*/}
  6094. {/* domId={'myTask4'}*/}
  6095. {/* fileList={this.getOrgCodeUrlWai}*/}
  6096. {/* pictureUrl={this.state.pictureUrl}*/}
  6097. {/* />*/}
  6098. {/* <p style={{ color: 'red' }}>图片建议:要清晰。</p>*/}
  6099. {/* </FormItem>*/}
  6100. {/* </div>*/}
  6101. {/* /!*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*!/*/}
  6102. {/* /!*this.state.startType 0外包 1供应商*!/*/}
  6103. {/* {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">*/}
  6104. {/* <FormItem*/}
  6105. {/* className="half-item"*/}
  6106. {/* {...formItemLayout}*/}
  6107. {/* label={*/}
  6108. {/* <span>*/}
  6109. {/* <strong style={{ color: '#f00' }}>*</strong>发起原因*/}
  6110. {/* </span>*/}
  6111. {/* }*/}
  6112. {/* >*/}
  6113. {/* <TextArea*/}
  6114. {/* rows={4}*/}
  6115. {/* value={this.state.reason}*/}
  6116. {/* onChange={(e) => {*/}
  6117. {/* this.setState({*/}
  6118. {/* reason: e.target.value,*/}
  6119. {/* })*/}
  6120. {/* }}*/}
  6121. {/* placeholder="请输入发起原因"*/}
  6122. {/* />*/}
  6123. {/* </FormItem>*/}
  6124. {/* </div> : <div/>}*/}
  6125. {/* <div className="clearfix">*/}
  6126. {/* <div*/}
  6127. {/* style={{*/}
  6128. {/* display: 'inline-black',*/}
  6129. {/* textAlign: 'center',*/}
  6130. {/* }}*/}
  6131. {/* >*/}
  6132. {/* <Button*/}
  6133. {/* type="primary"*/}
  6134. {/* loading={this.state.loading}*/}
  6135. {/* onClick={()=>{*/}
  6136. {/* this.sureOut(this.state.startType);*/}
  6137. {/* }}*/}
  6138. {/* >*/}
  6139. {/* {*/}
  6140. {/* this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"*/}
  6141. {/* }*/}
  6142. {/* </Button>*/}
  6143. {/* <p className="tip" style={{ color: 'red' }}>*/}
  6144. {/* {*/}
  6145. {/* this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"*/}
  6146. {/* }*/}
  6147. {/* </p>*/}
  6148. {/* </div>*/}
  6149. {/* </div>*/}
  6150. {/* </div>*/}
  6151. {/* ) : (*/}
  6152. {/* <div>*/}
  6153. {/* {*/}
  6154. {/* this.state.speVisible && this.state.activeKey === '2' ?*/}
  6155. {/* <CheckProject*/}
  6156. {/* {...this.props}*/}
  6157. {/* tid={this.state.tid}*/}
  6158. {/* orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有*/}
  6159. {/* containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费*/}
  6160. {/* oldInfor={this.state.oldInfor}*/}
  6161. {/* projectType={this.state.projectType} //0正常 1专利 2软著 3审计*/}
  6162. {/* patentNameType={this.state.patentNameType}*/}
  6163. {/* patentName={this.state.patentName}*/}
  6164. {/* patentType={this.state.patentType}*/}
  6165. {/* status={this.state.refundStatus}*/}
  6166. {/* isPreviewPay={true}*/}
  6167. {/* mid={this.state.mid}*/}
  6168. {/* thirdInfoList={this.state.thirdInfoList}*/}
  6169. {/* dataSource={this.state.payNodeList}*/}
  6170. {/* outsourceRemarks={this.state.outsourceRemarks}*/}
  6171. {/* fileList={this.state.pictureUrl}*/}
  6172. {/* startType={this.state.startType}*/}
  6173. {/* projectStatus={this.state.projectStatus}*/}
  6174. {/* onRefresh={()=>{*/}
  6175. {/* this.waiDetail();*/}
  6176. {/* this.thirdTable(this.state.tid);*/}
  6177. {/* this.getSelectOutsourceLog(this.state.tid);*/}
  6178. {/* this.payNodeTable(this.state.tid)*/}
  6179. {/* this.loadData(this.state.page)*/}
  6180. {/* }}*/}
  6181. {/* /> : <div/>*/}
  6182. {/* }*/}
  6183. {/* </div>*/}
  6184. {/* )}*/}
  6185. {/* {(this.state.refundStatus == 1 ||*/}
  6186. {/* this.state.refundStatus == 0 ||*/}
  6187. {/* this.state.refundStatus == 2) &&*/}
  6188. {/* this.state.startType !== 1*/}
  6189. {/* ? (*/}
  6190. {/* <div className="clearfix"*/}
  6191. {/* style={{*/}
  6192. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  6193. {/* }}*/}
  6194. {/* >*/}
  6195. {/* <hr className="division" />*/}
  6196. {/* {parseInt(this.state.startType) !== 1 ? <div style={{*/}
  6197. {/* color:'#F00',*/}
  6198. {/* fontWeight: 'bolder',*/}
  6199. {/* paddingBottom: '20px',*/}
  6200. {/* }}>*/}
  6201. {/* 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>*/}
  6202. {/* </div> : <div/>}*/}
  6203. {/* <div className="outsourceLogList">*/}
  6204. {/* {*/}
  6205. {/* this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(*/}
  6206. {/* <div key={index} className="outsourceLogItem outsource">*/}
  6207. {/* <div style={{*/}
  6208. {/* display:'flex',*/}
  6209. {/* flexFlow:'row nowrap',*/}
  6210. {/* paddingBottom: '3px',*/}
  6211. {/* paddingTop: '3px',*/}
  6212. {/* }}>*/}
  6213. {/* <div>*/}
  6214. {/* {value.aname}*/}
  6215. {/* </div>*/}
  6216. {/* <div style={{paddingLeft:'5px'}}>*/}
  6217. {/* {*/}
  6218. {/* value.status === 0 ?*/}
  6219. {/* <Tag color="#2db7f5">发起外包审核</Tag> :*/}
  6220. {/* value.status === 1 ? <Tag color="#87d068">通过</Tag> :*/}
  6221. {/* <Tag color="#f50">驳回</Tag>*/}
  6222. {/* }*/}
  6223. {/* </div>*/}
  6224. {/* <div style={{*/}
  6225. {/* wordBreak: 'break-all',*/}
  6226. {/* maxWidth:'67%',*/}
  6227. {/* }}>*/}
  6228. {/* {value.remarks}*/}
  6229. {/* </div>*/}
  6230. {/* <div style={{paddingLeft: '10px'}}>*/}
  6231. {/* {value.createTimes}*/}
  6232. {/* </div>*/}
  6233. {/* </div>*/}
  6234. {/* </div>*/}
  6235. {/* ))*/}
  6236. {/* }*/}
  6237. {/* </div>*/}
  6238. {/* </div>*/}
  6239. {/* ) : (*/}
  6240. {/* ''*/}
  6241. {/* )}*/}
  6242. {/* </Spin>*/}
  6243. {/*</TabPane>*/}
  6244. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  6245. <TabPane tab="订单详情" key="3">
  6246. <Spin spinning={this.state.loading}>
  6247. <OrderDetail
  6248. orderData={this.state.orderData}
  6249. getOrderLog={this.getOrderLog}
  6250. dataSourceX={this.state.dataSourceX}
  6251. contactList={this.state.jiedian}
  6252. orderNo={this.state.orderNo}
  6253. totalCui={this.state.totalCui}
  6254. contactListNew={this.state.jiedianNew}
  6255. pictureUrl={this.state.contractPictureUrl}
  6256. />
  6257. </Spin>
  6258. </TabPane>
  6259. ) : (
  6260. ''
  6261. )}
  6262. </Tabs>
  6263. </div>
  6264. </Modal> : <div/>}
  6265. {this.state.visibleA ? <Modal
  6266. width="800px"
  6267. visible={this.state.visibleA}
  6268. onCancel={this.visitCancelA}
  6269. title="操作日志"
  6270. footer=""
  6271. className="admin-desc-content"
  6272. >
  6273. <div className="patent-table patent-table-center">
  6274. <Spin spinning={this.state.loading}>
  6275. <Table
  6276. columns={this.state.columnsA}
  6277. dataSource={this.state.dataSourceA}
  6278. pagination={false}
  6279. bordered
  6280. size="small"
  6281. />
  6282. </Spin>
  6283. </div>
  6284. </Modal> : null}
  6285. {this.state.timeVisible ? <Modal
  6286. title="工时记录"
  6287. visible={this.state.timeVisible}
  6288. onCancel={this.timeClose}
  6289. width={800}
  6290. footer={null}
  6291. >
  6292. <Spin spinning={this.state.loading}>
  6293. <Table
  6294. columns={this.state.columnsTime}
  6295. dataSource={this.state.dataSourceTime}
  6296. pagination={false}
  6297. scroll={{ x: 'max-content', y: 0 }}
  6298. bordered
  6299. size={'small'}
  6300. />
  6301. <p style={{ marginTop: 10, color: 'red' }}>
  6302. 累计工时(小时):{this.state.recordHour}
  6303. </p>
  6304. </Spin>
  6305. </Modal> :null}
  6306. {this.state.ThirdListVisible ? <NewSupplier
  6307. patentNameType={this.state.patentNameType}
  6308. ThirdId={this.state.ThirdId}
  6309. tid={this.state.tid}
  6310. patentType={this.state.patentType}
  6311. projectType={this.state.startType === 0 ? 0 : this.state.projectType}
  6312. realProjectType={this.state.projectType} //真实的项目类型
  6313. startType={this.state.startType} //项目类型 0外包 1供应商
  6314. thirdCompanyName={this.state.thirdCompanyName}
  6315. thirdUnitPrice={this.state.thirdUnitPrice}
  6316. thirdQuantity={this.state.thirdQuantity}
  6317. thirdRemarks={this.state.thirdRemarks}
  6318. spinning={this.state.loading}
  6319. visible={this.state.ThirdListVisible}
  6320. thirdMaterial={this.state.thirdMaterial}
  6321. thirdUrgent={this.state.thirdUrgent}
  6322. audit={this.state.audit}
  6323. assets={this.state.assets}
  6324. income={this.state.income}
  6325. onDetermine={this.handleCancelq}
  6326. onCancel={()=>{
  6327. this.thirdTable(this.state.tid);
  6328. this.setState({
  6329. ThirdListVisible: false,
  6330. ThirdId: '', //供应商id
  6331. thirdCompanyName: '', //第三方名称
  6332. thirdUnitPrice: '', //单价
  6333. thirdQuantity: '', //数量
  6334. currentTotalPrice: '', //总价
  6335. thirdMaterial: 0, //有无材料
  6336. thirdUrgent: 0, //加急情况
  6337. thirdRemarks: '',
  6338. audit: 1,
  6339. assets: '',
  6340. income: '',
  6341. })
  6342. }}
  6343. otherOperations={(data)=>{
  6344. this.setState({
  6345. thirdMaterial: data.thirdMaterial,
  6346. thirdUrgent: data.thirdUrgent,
  6347. customerArr: data.customerArr,
  6348. thirdCompanyName: data.thirdCompanyName
  6349. })
  6350. }}/> : <div/>}
  6351. {this.state.PayNodeVisible ? <OperationPayNode
  6352. tid={this.state.tid}
  6353. cSort={this.state.cSort}
  6354. visible={this.state.PayNodeVisible}
  6355. thirdId={this.state.ThirdId}
  6356. thirdInfoList={this.state.thirdInfoList}
  6357. supplierList={this.state.PayNodeCompany}
  6358. payNodeInfor={this.state.payNodeInfor}
  6359. thirdUnitPrice={this.state.thirdUnitPrice}
  6360. onCancel={async ()=>{
  6361. this.setState({
  6362. PayNodeVisible: false,
  6363. payNodeInfor: {},
  6364. ThirdId: '',
  6365. thirdUnitPrice: '',
  6366. })
  6367. if(this.state.paySubject.length === 0 ){
  6368. await this.xiangqing(this.state.tid);
  6369. // 获取Csort
  6370. await this.getCsortData(localStorage.getItem('cSort'))
  6371. await this.payNodeTable(this.state.tid);
  6372. }else{
  6373. await this.payNodeTable(this.state.tid)
  6374. }
  6375. }}
  6376. /> : <div/>}
  6377. {this.state.projectSituationVisible ?
  6378. <NowProjectStatus
  6379. tid={this.state.tid}
  6380. cSort={parseInt(this.state.cSort)}
  6381. projectTypeJSON={this.state.timeRecord ? JSON.parse(this.state.timeRecord) : {}}
  6382. projectType={this.state.projectType}
  6383. projectStatus={this.state.projectStatus}
  6384. visible={this.state.projectSituationVisible}
  6385. oldData={{
  6386. endDate:this.state.endDate, //完成时间
  6387. acceptDate:this.state.acceptDate,//受理时间
  6388. publicityDate:this.state.publicityDate,//公示时间
  6389. licenceDate:this.state.licenceDate,//发证时间
  6390. setUpAmount:this.state.setUpAmount,//立项金额
  6391. }}
  6392. onCancel={()=>{
  6393. this.setState({
  6394. projectSituationVisible: false
  6395. })
  6396. }}
  6397. onPreservation={(value)=>{
  6398. this.xiangqing(this.state.id)
  6399. this.setState({
  6400. projectSituationVisible: false
  6401. })
  6402. }}
  6403. /> : null
  6404. }
  6405. {this.state.addnextVisible && <ProjectDetailsReadOnly
  6406. infor={this.state.dataInfor}
  6407. visible={this.state.addnextVisible}
  6408. onCancel={this.nextCancel}
  6409. />}
  6410. </div>
  6411. )
  6412. },
  6413. })
  6414. export default Task