myTask.jsx 201 KB

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