myTask.jsx 242 KB

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