myTask.jsx 238 KB

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