myTask.jsx 258 KB

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