myTask.jsx 354 KB

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