myTask.jsx 340 KB

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