myTask.jsx 204 KB

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