myTask.jsx 195 KB

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