myTask.jsx 254 KB

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