myTask.jsx 235 KB

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