myTask.jsx 254 KB

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