myTask.jsx 178 KB

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