myTask.jsx 254 KB

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