myTask.jsx 178 KB

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