myTask.jsx 347 KB

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