myTask.jsx 180 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339
  1. import React from 'react'
  2. import $ from 'jquery'
  3. import moment from 'moment'
  4. import Picture from '@/manageCenter/publicComponent/picture'
  5. import '@/manageCenter/financialManage/distribute/public.less'
  6. import '@/manageCenter/financialManage/distribute/shouKuan.less'
  7. import OrderDetail from '../../order/orderNew/changeComponent/orderDetail'
  8. import ResolutionDetail from '@/resolutionDetail'
  9. import {
  10. Button,
  11. Form,
  12. Input,
  13. Select,
  14. Spin,
  15. Table,
  16. message,
  17. DatePicker,
  18. Modal,
  19. Radio,
  20. Cascader,
  21. Popconfirm,
  22. Switch,
  23. Tabs,
  24. Col,
  25. Icon,
  26. Upload,
  27. AutoComplete,
  28. Tag,
  29. } from 'antd'
  30. import Assign from '@/manageCenter/publicComponent/assign'
  31. import { areaSelect } from '@/NewDicProvinceList'
  32. import { ChooseList } from '../../order/orderNew/chooseList'
  33. import OrderRiZi from '@/orderRiZi.jsx'
  34. import './table.less'
  35. import {
  36. getMaterialStatus,
  37. getUrgentStatus,
  38. getProcessStatus,
  39. getApproval,
  40. getTaskStatus,
  41. getLiquidationStatus,
  42. getProjectStatus,
  43. splitUrl,
  44. getboutique,
  45. ShowModal,
  46. getRefundStatus,
  47. } from '@/tools'
  48. import { taskStatus, projectStatus, cuiJieDian } from '@/dataDic.js'
  49. import ShowModalDiv from '@/showModal.jsx'
  50. import CheckProject from '../../components/checkProject'
  51. 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. let customerId = 0;
  2257. let isHave =this.state.customerArr.some((value)=>{
  2258. if(value.companyName === this.state.thirdCompanyName){
  2259. customerId = value.id
  2260. return true;
  2261. }
  2262. });
  2263. if(!isHave){
  2264. message.warning('请输入正确的供应商名称')
  2265. return;
  2266. }
  2267. this.setState({
  2268. loading: true,
  2269. })
  2270. $.ajax({
  2271. url: globalConfig.context + api,
  2272. method: 'post',
  2273. dataType: 'json',
  2274. crossDomain: false,
  2275. data: {
  2276. id: this.state.ThirdId, //id
  2277. tid: this.state.tid, //订单编号
  2278. companyName: this.state.thirdCompanyName, //第三方名称
  2279. cid: customerId, //公司id
  2280. // unitPrice: this.state.thirdUnitPrice, //单价
  2281. quantity: this.state.thirdQuantity, //数量
  2282. totalAmount: this.state.currentTotalPrice, //总价
  2283. material: this.state.thirdMaterial, //材料
  2284. urgent: this.state.thirdUrgent, //加急
  2285. remarks: this.state.thirdRemarks, //备注
  2286. },
  2287. }).done(
  2288. function (data) {
  2289. this.setState({
  2290. loading: false,
  2291. })
  2292. if (!data.error.length) {
  2293. message.success('保存成功!')
  2294. this.setState({
  2295. ThirdId: '',
  2296. ThirdListVisible: false,
  2297. thirdCompanyName: '', //第三方名称
  2298. thirdUnitPrice: '', //单价
  2299. thirdQuantity: '', //数量
  2300. currentTotalPrice: '', //总价
  2301. thirdRemarks: '',
  2302. thirdUrgent: 0,
  2303. })
  2304. // this.visitCancel();
  2305. this.thirdTable(this.state.tid)
  2306. } else {
  2307. message.warning(data.error[0].message)
  2308. }
  2309. }.bind(this)
  2310. )
  2311. },
  2312. //保存付款节点
  2313. savePayNode() {
  2314. let api
  2315. if (this.state.ThirdId) {
  2316. //修改
  2317. api = '/api/admin/company/updatePaymentNode'
  2318. } else {
  2319. //新增
  2320. api = '/api/admin/company/addPaymentNode'
  2321. }
  2322. this.setState({
  2323. loading: true,
  2324. }),
  2325. $.ajax({
  2326. url: globalConfig.context + api,
  2327. method: 'post',
  2328. dataType: 'json',
  2329. crossDomain: false,
  2330. data: {
  2331. id: this.state.ThirdId, //id
  2332. tid: this.state.tid, //订单编号
  2333. companyName: this.state.thirdCompanyName, //第三方名称
  2334. unitPrice: this.state.thirdUnitPrice, //单价
  2335. quantity: this.state.payNodeQuantity, //数量
  2336. totalAmount: this.state.currentTotalPrice, //总价
  2337. partyAmount: this.state.partyAmount, //付款金额
  2338. partyTimes: this.state.partyTimes, //付款时间
  2339. dunType: this.state.dunType, //催款节点
  2340. projectType: this.state.cSort, //项目分类
  2341. },
  2342. }).done(
  2343. function (data) {
  2344. this.setState({
  2345. loading: false,
  2346. })
  2347. if (!data.error.length) {
  2348. message.success('保存成功!')
  2349. this.setState({
  2350. ThirdId: '',
  2351. PayNodeVisible: false,
  2352. thirdCompanyName: '', //第三方名称
  2353. paySubjectName: '', //付款科目名称
  2354. thirdUnitPrice: '', //单价
  2355. thirdQuantity: '', //数量
  2356. payNodeQuantity: 1, //付款节点数量
  2357. currentTotalPrice: '', //总价
  2358. partyAmount: '', //付款金额
  2359. partyTimes: '', //付款时间
  2360. dunType: '', //催款节点
  2361. projectType: '', //项目分类
  2362. })
  2363. // this.visitCancel();
  2364. this.payNodeTable(this.state.tid)
  2365. } else {
  2366. message.warning(data.error[0].message)
  2367. }
  2368. }.bind(this)
  2369. )
  2370. },
  2371. // 取消
  2372. handleCancelclose() {
  2373. this.setState({
  2374. PayNodeVisible: false,
  2375. ThirdListVisible: false,
  2376. thirdCompanyName: '', //第三方名称
  2377. paySubjectName: '', //付款科目名称
  2378. thirdUnitPrice: '', //单价
  2379. partyTimes: '',
  2380. thirdQuantity: 1, //数量
  2381. payNodeQuantity: 1,
  2382. currentTotalPrice: '', //总价
  2383. thirdRemarks: '',
  2384. ThirdId: '',
  2385. thirdUrgent: 0, //加急状态
  2386. })
  2387. },
  2388. // 删除供应商信息
  2389. confirmDeletNew(index) {
  2390. this.setState({
  2391. loading: true,
  2392. ThirdListVisible: false,
  2393. })
  2394. $.ajax({
  2395. url: globalConfig.context + '/api/admin/company/deleteCompany',
  2396. method: 'post',
  2397. data: {
  2398. id: index.id,
  2399. },
  2400. }).done(
  2401. function (data) {
  2402. this.setState({
  2403. loading: false,
  2404. })
  2405. if (!data.error.length) {
  2406. message.success('删除成功!')
  2407. this.thirdTable(this.state.tid)
  2408. } else {
  2409. message.warning(data.error[0].message)
  2410. }
  2411. }.bind(this)
  2412. )
  2413. },
  2414. // 删除付款节点
  2415. payNodeConfirmDeletNew(index) {
  2416. this.setState({
  2417. loading: true,
  2418. PayNodeVisible: false,
  2419. })
  2420. $.ajax({
  2421. url: globalConfig.context + '/api/admin/company/deletePaymentNode',
  2422. method: 'post',
  2423. data: {
  2424. id: index.id,
  2425. },
  2426. }).done(
  2427. function (data) {
  2428. this.setState({
  2429. loading: false,
  2430. })
  2431. if (!data.error.length) {
  2432. message.success('删除成功!')
  2433. this.payNodeTable(this.state.tid)
  2434. } else {
  2435. message.warning(data.error[0].message)
  2436. }
  2437. }.bind(this)
  2438. )
  2439. },
  2440. //点击供应商详情
  2441. tableRowClickOne(record) {
  2442. this.setState({
  2443. ThirdListVisible: true,
  2444. ThirdId: record.id, //供应商id
  2445. thirdCompanyName: record.companyName, //第三方名称
  2446. thirdUnitPrice: record.unitPrice, //单价
  2447. thirdQuantity: record.quantity, //数量
  2448. currentTotalPrice: record.totalAmount, //总价
  2449. thirdMaterial: record.material, //有无材料
  2450. thirdUrgent: record.urgent, //加急情况
  2451. thirdRemarks: record.remarks,
  2452. })
  2453. },
  2454. //点击付款节点详情
  2455. payNodeTableRowClickOne(record) {
  2456. this.setState({
  2457. PayNodeVisible: true,
  2458. ThirdId: record.id, //供应商id
  2459. thirdCompanyName: record.companyName, //第三方名称
  2460. thirdUnitPrice: record.unitPrice, //单价
  2461. thirdQuantity: record.quantity, //供应商数量
  2462. payNodeQuantity: record.quantity, //付款节点数量
  2463. currentTotalPrice: record.totalAmount, //总价
  2464. partyTimes: record.partyTimes,
  2465. paySubjectName: record.dunType,
  2466. })
  2467. },
  2468. render() {
  2469. const dataSources = this.state.customerArr || []
  2470. console.log(dataSources)
  2471. const options = dataSources.map((group) => (
  2472. <Select.Option key={group.id} value={group.companyName}>
  2473. {group.companyName}
  2474. </Select.Option>
  2475. ))
  2476. const formItemLayout = {
  2477. labelCol: { span: 8 },
  2478. wrapperCol: { span: 14 },
  2479. }
  2480. let departmentArr = this.state.departmentArr || []
  2481. return (
  2482. <div className="user-content">
  2483. {this.state.resVisible ? (
  2484. <ResolutionDetail
  2485. cancel={this.resCancel}
  2486. detail={this.state.resRecord}
  2487. visible={this.state.resVisible}
  2488. id={this.state.resRecord.orderNo}
  2489. />
  2490. ) : (
  2491. ''
  2492. )}
  2493. <ShowModalDiv ShowModal={this.state.showModal} />
  2494. <div className="content-title" style={{ marginBottom: 10 }}>
  2495. <span style={{ fontWeight: 900, fontSize: 16 }}>项目任务</span>
  2496. </div>
  2497. <Tabs defaultActiveKey="2" className="test" bordered>
  2498. <TabPane tab="更改表格显示数据" key="1">
  2499. <div style={{ marginLeft: 10 }}>
  2500. <ChooseList
  2501. columns={this.state.columns}
  2502. changeFn={this.changeList}
  2503. changeList={this.state.changeList}
  2504. top={55}
  2505. margin={11}
  2506. />
  2507. </div>
  2508. </TabPane>
  2509. <TabPane tab="搜索" key="2">
  2510. <div className="user-search" style={{ marginLeft: 10 }}>
  2511. <Input
  2512. placeholder="客户名称"
  2513. value={this.state.nameSearch}
  2514. onChange={(e) => {
  2515. this.setState({ nameSearch: e.target.value })
  2516. }}
  2517. />
  2518. <Input
  2519. placeholder="订单编号"
  2520. value={this.state.orderNoSearch}
  2521. onChange={(e) => {
  2522. this.setState({ orderNoSearch: e.target.value })
  2523. }}
  2524. />
  2525. <Input
  2526. placeholder="合同编号"
  2527. value={this.state.contractNoSearch}
  2528. onChange={(e) => {
  2529. this.setState({ contractNoSearch: e.target.value })
  2530. }}
  2531. />
  2532. <Input
  2533. placeholder="项目编号"
  2534. value={this.state.taskNoSearch}
  2535. onChange={(e) => {
  2536. this.setState({ taskNoSearch: e.target.value })
  2537. }}
  2538. />
  2539. <Select
  2540. placeholder="选择部门"
  2541. style={{ width: 150, marginRight: '10px' }}
  2542. value={this.state.departmenttSearch}
  2543. onChange={(e) => {
  2544. this.setState({ departmenttSearch: e })
  2545. }}
  2546. >
  2547. {departmentArr.map(function (item) {
  2548. return (
  2549. <Select.Option key={item.id}>{item.name}</Select.Option>
  2550. )
  2551. })}
  2552. </Select>
  2553. <Select
  2554. placeholder="项目状态"
  2555. style={{ width: 150, marginRight: '10px' }}
  2556. value={this.state.projectStatusSearch}
  2557. onChange={(e) => {
  2558. this.setState({ projectStatusSearch: e })
  2559. console.log(this.state.projectStatusSearch)
  2560. }}
  2561. >
  2562. {projectStatus.map(function (item) {
  2563. return (
  2564. <Select.Option key={item.value}>{item.key}</Select.Option>
  2565. )
  2566. })}
  2567. </Select>
  2568. <Select
  2569. placeholder="特批状态"
  2570. style={{ width: 150, marginRight: '10px' }}
  2571. value={this.state.approvalSearch}
  2572. onChange={(e) => {
  2573. this.setState({ approvalSearch: e })
  2574. console.log(this.state.approvalSearch)
  2575. }}
  2576. >
  2577. <Select.Option key={0}>非特批</Select.Option>
  2578. <Select.Option key={1}>特批</Select.Option>
  2579. </Select>
  2580. <Select
  2581. placeholder="外包状态"
  2582. style={{ width: 150, marginRight: '10px' }}
  2583. value={this.state.outsourceStatusSearch}
  2584. onChange={(e) => {
  2585. this.setState({ outsourceStatusSearch: e })
  2586. console.log(this.state.outsourceStatusSearch)
  2587. }}
  2588. >
  2589. <Select.Option key={0}>外包待审核</Select.Option>
  2590. {/* <Select.Option key={1}>外包审核通过</Select.Option> */}
  2591. <Select.Option key={2}>外包审核驳回</Select.Option>
  2592. <Select.Option key={999}>全部</Select.Option>
  2593. </Select>
  2594. <Button type="primary" onClick={this.search}>
  2595. 搜索
  2596. </Button>
  2597. <Button
  2598. onClick={(e) => {
  2599. this.reset(true)
  2600. }}
  2601. >
  2602. 重置
  2603. </Button>
  2604. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  2605. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2606. <span>订单时间 :</span>
  2607. <RangePicker
  2608. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2609. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2610. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2611. </div> */}
  2612. </div>
  2613. </TabPane>
  2614. <TabPane tab="导出Excel" key="3">
  2615. <Button
  2616. type="primary"
  2617. style={{ margin: '11px 0 10px 10px' }}
  2618. onClick={this.exportExec}
  2619. >
  2620. 导出Excel
  2621. </Button>
  2622. </TabPane>
  2623. {/* <TabPane tab="批量操作" key="6">
  2624. <Button
  2625. type="primary"
  2626. disabled={this.state.selectedRowKeys.length == 0}
  2627. style={{ margin: "0px 0px 10px 10px" }}
  2628. onClick={e => {
  2629. e.stopPropagation(),
  2630. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2631. }}
  2632. >
  2633. 转交
  2634. </Button>
  2635. </TabPane> */}
  2636. </Tabs>
  2637. {/* <div className="user-search">
  2638. <Input
  2639. placeholder="客户名称"
  2640. value={this.state.nameSearch}
  2641. onChange={e => {
  2642. this.setState({ nameSearch: e.target.value });
  2643. }}
  2644. />
  2645. <Input
  2646. placeholder="订单编号"
  2647. value={this.state.orderNoSearch}
  2648. onChange={e => {
  2649. this.setState({ orderNoSearch: e.target.value });
  2650. }}
  2651. />
  2652. <Input
  2653. placeholder="项目编号"
  2654. value={this.state.taskNoSearch}
  2655. onChange={e => {
  2656. this.setState({ taskNoSearch: e.target.value });
  2657. }}
  2658. />
  2659. <Select
  2660. placeholder="选择部门"
  2661. style={{ width: 150, marginRight: "10px" }}
  2662. value={this.state.departmenttSearch}
  2663. onChange={e => {
  2664. this.setState({ departmenttSearch: e });
  2665. }}
  2666. >
  2667. {departmentArr.map(function(item) {
  2668. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  2669. })}
  2670. </Select>
  2671. <Button type="primary" onClick={this.search}>
  2672. 搜索
  2673. </Button>
  2674. <Button onClick={this.reset}>重置</Button>
  2675. <Button
  2676. type="primary"
  2677. style={{ marginLeft: "10px" }}
  2678. onClick={this.exportExec}
  2679. >
  2680. 导出Excel
  2681. </Button>
  2682. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  2683. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2684. <span>订单时间 :</span>
  2685. <RangePicker
  2686. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2687. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2688. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2689. </div>
  2690. </div> */}
  2691. <div className="patent-table">
  2692. <Spin spinning={this.state.loading}>
  2693. <Table
  2694. columns={
  2695. this.state.changeList == undefined
  2696. ? this.state.columns
  2697. : this.state.changeList
  2698. }
  2699. dataSource={this.state.dataSource}
  2700. pagination={this.state.pagination}
  2701. scroll={{ x: 'max-content', y: 0 }}
  2702. onRowClick={this.tableRowClick.bind(this)}
  2703. bordered
  2704. size={'small'}
  2705. />
  2706. </Spin>
  2707. </div>
  2708. <Assign
  2709. title="项目"
  2710. selApi={'/api/admin/orderProject/projectDistribution'}
  2711. data={this.state.assignData}
  2712. showDesc={this.state.assignVisible}
  2713. closeDesc={this.closeAssign.bind(this)}
  2714. fenpaiData={8}
  2715. specially={0}
  2716. roleName={this.state.nub}
  2717. requestMethod={'post'}
  2718. flag={this.state.flag}
  2719. all={this.state}
  2720. />
  2721. <Modal
  2722. className="customeDetails"
  2723. footer=""
  2724. title=""
  2725. width="900px"
  2726. visible={this.state.visible}
  2727. onOk={this.visitOk}
  2728. onCancel={this.visitCancel}
  2729. >
  2730. <Tabs
  2731. activeKey={this.state.activeKey}
  2732. onChange={(e) => {
  2733. this.callback(e)
  2734. if (e == 2) {
  2735. this.waiDetail()
  2736. }
  2737. }}
  2738. >
  2739. <TabPane tab="项目概况" key="1">
  2740. <Form
  2741. layout="horizontal"
  2742. onSubmit={this.handleSubmit}
  2743. id="demand-form"
  2744. style={{ paddingBottom: '00px' }}
  2745. >
  2746. <Spin spinning={this.state.loading}>
  2747. <div className="clearfix">
  2748. <div className="clearfix">
  2749. <FormItem
  2750. className="half-item"
  2751. {...formItemLayout}
  2752. label="当前项目情况"
  2753. >
  2754. <Radio.Group
  2755. value={this.state.status}
  2756. onChange={(e) => {
  2757. this.setState({ status: e.target.value })
  2758. }}
  2759. >
  2760. <Radio value={0}>开启</Radio>
  2761. <Radio value={1}>暂停</Radio>
  2762. </Radio.Group>
  2763. <Button
  2764. type="primary"
  2765. size="small"
  2766. style={{ marginTop: '5px', position: 'absolute' }}
  2767. onClick={this.caozuorizhi}
  2768. >
  2769. 操作日志
  2770. </Button>
  2771. </FormItem>
  2772. <FormItem
  2773. className="half-item"
  2774. {...formItemLayout}
  2775. label="合同编号"
  2776. >
  2777. <span>{this.state.contractNo}</span>
  2778. </FormItem>
  2779. </div>
  2780. <div className="clearfix">
  2781. <FormItem
  2782. className="half-item"
  2783. {...formItemLayout}
  2784. label="项目状态"
  2785. >
  2786. <Select
  2787. placeholder="选择项目状态"
  2788. style={{ width: '200px' }}
  2789. value={this.state.projectStatus}
  2790. onChange={(e) => {
  2791. this.setState({ projectStatus: e })
  2792. }}
  2793. >
  2794. {projectStatus.map(function (item) {
  2795. return (
  2796. <Select.Option key={item.value}>
  2797. {item.key}
  2798. </Select.Option>
  2799. )
  2800. })}
  2801. </Select>
  2802. </FormItem>
  2803. <FormItem
  2804. className="half-item"
  2805. {...formItemLayout}
  2806. label="是否特批"
  2807. >
  2808. <span>{getApproval(this.state.approval)}</span>
  2809. </FormItem>
  2810. <FormItem
  2811. className="half-item"
  2812. {...formItemLayout}
  2813. label="结算状态"
  2814. >
  2815. <span>
  2816. {getLiquidationStatus(this.state.liquidationStatus)}
  2817. </span>
  2818. </FormItem>
  2819. <FormItem
  2820. className="half-item"
  2821. {...formItemLayout}
  2822. label="流程状态"
  2823. >
  2824. <span>
  2825. {getProcessStatus(this.state.processStatus)}
  2826. </span>
  2827. </FormItem>
  2828. <FormItem
  2829. className="half-item"
  2830. {...formItemLayout}
  2831. label="订单编号"
  2832. >
  2833. <span>{this.state.orderNo}</span>
  2834. </FormItem>
  2835. </div>
  2836. <div className="clearfix">
  2837. <FormItem
  2838. className="half-item"
  2839. {...formItemLayout}
  2840. label="满意度表格"
  2841. >
  2842. <Radio.Group
  2843. value={this.state.formRetrieve}
  2844. onChange={(e) => {
  2845. this.setState({ formRetrieve: e.target.value })
  2846. }}
  2847. >
  2848. <Radio value={0}>未收回</Radio>
  2849. <Radio value={1}>已收回</Radio>
  2850. <Radio value={2}>其他</Radio>
  2851. </Radio.Group>
  2852. </FormItem>
  2853. <FormItem
  2854. className="half-item"
  2855. {...formItemLayout}
  2856. label="退单"
  2857. >
  2858. <Radio.Group
  2859. value={this.state.taskRefund}
  2860. onChange={(e) => {
  2861. this.setState({ taskRefund: e.target.value })
  2862. }}
  2863. >
  2864. <Radio value={0}>已完成</Radio>
  2865. <Radio value={1}>未完成</Radio>
  2866. <Radio value={2}>其他</Radio>
  2867. </Radio.Group>
  2868. </FormItem>
  2869. </div>
  2870. <div className="clearfix">
  2871. {
  2872. <FormItem
  2873. className="half-item"
  2874. {...formItemLayout}
  2875. label="(满意度)备注"
  2876. >
  2877. <Input
  2878. type="textarea"
  2879. placeholder="请输入备注"
  2880. rows={2}
  2881. value={this.state.retrieveContent}
  2882. onChange={(e) => {
  2883. this.setState({
  2884. retrieveContent: e.target.value,
  2885. })
  2886. }}
  2887. />
  2888. </FormItem>
  2889. }
  2890. {
  2891. <FormItem
  2892. className="half-item"
  2893. {...formItemLayout}
  2894. label="(退单)备注"
  2895. >
  2896. <Input
  2897. type="textarea"
  2898. placeholder="请输入备注"
  2899. rows={2}
  2900. value={this.state.refundContent}
  2901. onChange={(e) => {
  2902. this.setState({ refundContent: e.target.value })
  2903. }}
  2904. />
  2905. </FormItem>
  2906. }
  2907. </div>
  2908. <div className="clearfix">
  2909. <h3 className="sub-title">订单负责人信息</h3>
  2910. <FormItem
  2911. className="half-item"
  2912. {...formItemLayout}
  2913. label="负责人"
  2914. >
  2915. <span>
  2916. {this.state.salesmanName +
  2917. '(' +
  2918. this.state.depName +
  2919. ')'}
  2920. </span>
  2921. </FormItem>
  2922. <FormItem
  2923. className="half-item"
  2924. {...formItemLayout}
  2925. label="负责人电话"
  2926. >
  2927. <span>{this.state.salesmanMobile}</span>
  2928. </FormItem>
  2929. <FormItem
  2930. className="half-item"
  2931. {...formItemLayout}
  2932. label="当前财务负责人"
  2933. >
  2934. <span>{this.state.nowFinance}</span>
  2935. </FormItem>
  2936. <FormItem
  2937. className="half-item"
  2938. {...formItemLayout}
  2939. label="当前财务负责人电话"
  2940. >
  2941. <span>{this.state.nowFinanceMobile}</span>
  2942. </FormItem>
  2943. <FormItem
  2944. className="half-item"
  2945. {...formItemLayout}
  2946. style={{ opacity: '.5' }}
  2947. label="原负责人"
  2948. >
  2949. <span>{this.state.oldSalesmanName}</span>
  2950. </FormItem>
  2951. <FormItem
  2952. className="half-item"
  2953. {...formItemLayout}
  2954. style={{ opacity: '.5' }}
  2955. label="原负责人电话"
  2956. >
  2957. <span>{this.state.oldSalesmanMobile}</span>
  2958. </FormItem>
  2959. <FormItem
  2960. className="half-item"
  2961. {...formItemLayout}
  2962. style={{ opacity: '.5' }}
  2963. label="实际财务操作人"
  2964. >
  2965. <span>{this.state.financeName}</span>
  2966. </FormItem>
  2967. <FormItem
  2968. className="half-item"
  2969. {...formItemLayout}
  2970. style={{ opacity: '.5' }}
  2971. label="实际财务操作人电话"
  2972. >
  2973. <span>{this.state.financeMobile}</span>
  2974. </FormItem>
  2975. <FormItem
  2976. className="half-item"
  2977. {...formItemLayout}
  2978. label="订单留言"
  2979. >
  2980. <span>{this.state.orderRemarks}</span>
  2981. </FormItem>
  2982. <FormItem
  2983. className="half-item"
  2984. {...formItemLayout}
  2985. label=""
  2986. >
  2987. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  2988. </FormItem>
  2989. <OrderRiZi
  2990. dataSourcerizhi={this.state.dataSourceY}
  2991. closeOrderLog={this.closeOrderLog}
  2992. visible={this.state.avisible}
  2993. loading={this.state.loading}
  2994. />
  2995. </div>
  2996. <div className="clearfix">
  2997. <h3 className="sub-title">外包信息</h3>
  2998. <FormItem
  2999. className="half-item"
  3000. {...formItemLayout}
  3001. label="外包公司"
  3002. >
  3003. <Input
  3004. value={this.state.outsourceName}
  3005. onChange={(e) => {
  3006. this.setState({
  3007. outsourceName: e.target.value,
  3008. })
  3009. }}
  3010. placeholder="请输入外包公司"
  3011. style={{ width: '200px' }}
  3012. />
  3013. </FormItem>
  3014. <FormItem
  3015. className="half-item"
  3016. {...formItemLayout}
  3017. label="外包成本(万元)"
  3018. >
  3019. <Input
  3020. value={this.state.outsourcePrice}
  3021. onChange={(e) => {
  3022. this.setState({
  3023. outsourcePrice: e.target.value,
  3024. })
  3025. }}
  3026. placeholder="请输入外包成本"
  3027. style={{ width: '200px' }}
  3028. />
  3029. </FormItem>
  3030. </div>
  3031. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3032. <div className="clearfix">
  3033. <h3 className="sub-title">联系信息</h3>
  3034. <FormItem
  3035. className="half-item"
  3036. {...formItemLayout}
  3037. label="客户名称"
  3038. >
  3039. <span>{this.state.userName}</span>
  3040. </FormItem>
  3041. <FormItem
  3042. className="half-item"
  3043. {...formItemLayout}
  3044. label="企业法人"
  3045. >
  3046. <Input
  3047. placeholder="请输入法人名称"
  3048. value={this.state.legalPerson}
  3049. style={{ width: '200px' }}
  3050. onChange={(e) => {
  3051. this.setState({ legalPerson: e.target.value })
  3052. }}
  3053. ref="commodityQuantity"
  3054. />
  3055. </FormItem>
  3056. <FormItem
  3057. className="half-item"
  3058. {...formItemLayout}
  3059. label="法人电话"
  3060. >
  3061. <Input
  3062. placeholder="请输入法人电话"
  3063. value={this.state.legalPersonTel}
  3064. style={{ width: '200px' }}
  3065. onChange={(e) => {
  3066. this.setState({ legalPersonTel: e.target.value })
  3067. }}
  3068. ref="commodityQuantity"
  3069. />
  3070. </FormItem>
  3071. <FormItem
  3072. className="half-item"
  3073. {...formItemLayout}
  3074. label="客户联系人"
  3075. >
  3076. <Input
  3077. placeholder="请输入联系人名称"
  3078. value={this.state.contacts}
  3079. style={{ width: '200px' }}
  3080. onChange={(e) => {
  3081. this.setState({ contacts: e.target.value })
  3082. }}
  3083. ref="commodityQuantity"
  3084. />
  3085. </FormItem>
  3086. <FormItem
  3087. className="half-item"
  3088. {...formItemLayout}
  3089. label="联系人电话"
  3090. >
  3091. <Input
  3092. placeholder="请输入联系人电话"
  3093. value={this.state.contactMobile}
  3094. style={{ width: '200px' }}
  3095. onChange={(e) => {
  3096. this.setState({ contactMobile: e.target.value })
  3097. }}
  3098. ref="commodityQuantity"
  3099. />
  3100. </FormItem>
  3101. <FormItem
  3102. className="half-item"
  3103. {...formItemLayout}
  3104. label="企业地址"
  3105. >
  3106. <Cascader
  3107. options={areaSelect()}
  3108. value={this.state.ProvinceCity}
  3109. placeholder="选择城市"
  3110. style={{ width: '200px' }}
  3111. onChange={(e) => {
  3112. this.setState({ ProvinceCity: e })
  3113. }}
  3114. />
  3115. </FormItem>
  3116. <FormItem
  3117. className="half-item"
  3118. {...formItemLayout}
  3119. label=""
  3120. ></FormItem>
  3121. <FormItem
  3122. className="half-item"
  3123. {...formItemLayout}
  3124. label=""
  3125. >
  3126. <Input
  3127. placeholder="请输入详细地址"
  3128. value={this.state.postalAddress}
  3129. style={{ width: '200px', marginLeft: '12em' }}
  3130. onChange={(e) => {
  3131. this.setState({ postalAddress: e.target.value })
  3132. }}
  3133. ref="commodityQuantity"
  3134. />
  3135. </FormItem>
  3136. </div>
  3137. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3138. <div className="clearfix">
  3139. <h3 className="sub-title">项目信息</h3>
  3140. <FormItem
  3141. className="half-item"
  3142. {...formItemLayout}
  3143. label="项目编号"
  3144. >
  3145. <span>
  3146. {this.state.splitStatus == 2
  3147. ? this.state.splitSuper + '-' + this.state.splitId
  3148. : this.state.id}
  3149. </span>
  3150. </FormItem>
  3151. <FormItem
  3152. className="half-item"
  3153. {...formItemLayout}
  3154. label="项目名称"
  3155. >
  3156. <span>{this.state.taskName}</span>
  3157. </FormItem>
  3158. <FormItem
  3159. className="half-item"
  3160. {...formItemLayout}
  3161. label="项目状态"
  3162. >
  3163. <Select
  3164. placeholder="选择项目状态"
  3165. style={{ width: '200px' }}
  3166. value={this.state.taskStatus}
  3167. onChange={(e) => {
  3168. this.setState({ taskStatus: e })
  3169. }}
  3170. >
  3171. {taskStatus.map(function (item) {
  3172. return (
  3173. <Select.Option key={item.value}>
  3174. {item.key}
  3175. </Select.Option>
  3176. )
  3177. })}
  3178. </Select>
  3179. </FormItem>
  3180. <FormItem
  3181. className="half-item"
  3182. {...formItemLayout}
  3183. label="项目类别"
  3184. >
  3185. <span>{this.state.cname}</span>
  3186. </FormItem>
  3187. <FormItem
  3188. className="half-item"
  3189. {...formItemLayout}
  3190. label="证书编号"
  3191. >
  3192. <Input
  3193. placeholder="请输入证书编号"
  3194. value={this.state.certificateNumber}
  3195. style={{ width: '200px' }}
  3196. onChange={(e) => {
  3197. this.setState({
  3198. certificateNumber: e.target.value,
  3199. })
  3200. }}
  3201. ref="commodityQuantity"
  3202. />
  3203. </FormItem>
  3204. </div>
  3205. <div className="clearfix">
  3206. <h3 className="sub-title">申报系统账户信息</h3>
  3207. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  3208. <FormItem
  3209. className="half-item"
  3210. {...formItemLayout}
  3211. label="用户名"
  3212. >
  3213. <Input
  3214. placeholder="请输入用户名"
  3215. value={this.state.declareUser}
  3216. style={{ width: '200px' }}
  3217. onChange={(e) => {
  3218. this.setState({ declareUser: e.target.value })
  3219. }}
  3220. />
  3221. </FormItem>
  3222. <FormItem
  3223. className="half-item"
  3224. {...formItemLayout}
  3225. label="密码"
  3226. >
  3227. <Input
  3228. placeholder="请输入密码"
  3229. value={this.state.declarePwd}
  3230. style={{ width: '200px' }}
  3231. onChange={(e) => {
  3232. this.setState({ declarePwd: e.target.value })
  3233. }}
  3234. />
  3235. </FormItem>
  3236. </div>
  3237. <div className="clearfix">
  3238. <h3 className="sub-title">项目申报进度</h3>
  3239. <FormItem
  3240. className="half-item"
  3241. {...formItemLayout}
  3242. label="申报批次"
  3243. >
  3244. <Select
  3245. style={{ width: 200 }}
  3246. placeholder="请选择批次"
  3247. value={
  3248. this.state.declarationBatch
  3249. ? this.state.declarationBatch
  3250. : undefined
  3251. }
  3252. onChange={(e) => {
  3253. this.setState({
  3254. declarationBatch: e,
  3255. })
  3256. }}
  3257. >
  3258. <Option value={1}>第一批</Option>
  3259. <Option value={2}>第二批</Option>
  3260. <Option value={3}>第三批</Option>
  3261. <Option value={4}>第四批</Option>
  3262. </Select>
  3263. </FormItem>
  3264. <FormItem
  3265. className="half-item"
  3266. {...formItemLayout}
  3267. label="启动时间"
  3268. >
  3269. <DatePicker
  3270. style={{
  3271. marginTop: '2px',
  3272. width: '200px',
  3273. height: '32px',
  3274. }}
  3275. showTime
  3276. format="YYYY-MM-DD"
  3277. onOk={() => {}}
  3278. value={
  3279. this.state.startDate
  3280. ? moment(this.state.startDate)
  3281. : null
  3282. }
  3283. onChange={(data, dataString) => {
  3284. this.setState({ startDate: dataString })
  3285. }}
  3286. />
  3287. </FormItem>
  3288. <FormItem
  3289. className="half-item"
  3290. {...formItemLayout}
  3291. label="完成时间"
  3292. >
  3293. <DatePicker
  3294. style={{
  3295. marginTop: '2px',
  3296. width: '200px',
  3297. height: '32px',
  3298. }}
  3299. showTime
  3300. format="YYYY-MM-DD"
  3301. onOk={() => {}}
  3302. value={
  3303. this.state.endDate
  3304. ? moment(this.state.endDate)
  3305. : null
  3306. }
  3307. onChange={(data, dataString) => {
  3308. this.setState({ endDate: dataString })
  3309. }}
  3310. />
  3311. </FormItem>
  3312. <FormItem
  3313. className="half-item"
  3314. {...formItemLayout}
  3315. label="受理时间"
  3316. >
  3317. <DatePicker
  3318. style={{
  3319. marginTop: '2px',
  3320. width: '200px',
  3321. height: '32px',
  3322. }}
  3323. showTime
  3324. format="YYYY-MM-DD"
  3325. onOk={() => {}}
  3326. value={
  3327. this.state.acceptDate
  3328. ? moment(this.state.acceptDate)
  3329. : null
  3330. }
  3331. onChange={(data, dataString) => {
  3332. this.setState({ acceptDate: dataString })
  3333. }}
  3334. />
  3335. </FormItem>
  3336. <FormItem
  3337. className="half-item"
  3338. {...formItemLayout}
  3339. label="评审时间"
  3340. >
  3341. <DatePicker
  3342. style={{
  3343. marginTop: '2px',
  3344. width: '200px',
  3345. height: '32px',
  3346. }}
  3347. showTime
  3348. format="YYYY-MM-DD"
  3349. onOk={() => {}}
  3350. value={
  3351. this.state.reviewDate
  3352. ? moment(this.state.reviewDate)
  3353. : null
  3354. }
  3355. onChange={(data, dataString) => {
  3356. this.setState({ reviewDate: dataString })
  3357. }}
  3358. />
  3359. </FormItem>
  3360. <FormItem
  3361. className="half-item"
  3362. {...formItemLayout}
  3363. label="公示时间"
  3364. >
  3365. <DatePicker
  3366. style={{
  3367. marginTop: '2px',
  3368. width: '200px',
  3369. height: '32px',
  3370. }}
  3371. showTime
  3372. format="YYYY-MM-DD"
  3373. onOk={() => {}}
  3374. value={
  3375. this.state.publicityDate
  3376. ? moment(this.state.publicityDate)
  3377. : null
  3378. }
  3379. onChange={(data, dataString) => {
  3380. this.setState({ publicityDate: dataString })
  3381. }}
  3382. />
  3383. </FormItem>
  3384. <FormItem
  3385. className="half-item"
  3386. {...formItemLayout}
  3387. label="发证时间"
  3388. >
  3389. <DatePicker
  3390. style={{
  3391. marginTop: '2px',
  3392. width: '200px',
  3393. height: '32px',
  3394. }}
  3395. showTime
  3396. format="YYYY-MM-DD"
  3397. onOk={() => {}}
  3398. value={
  3399. this.state.licenceDate
  3400. ? moment(this.state.licenceDate)
  3401. : null
  3402. }
  3403. onChange={(data, dataString) => {
  3404. this.setState({ licenceDate: dataString })
  3405. }}
  3406. />
  3407. </FormItem>
  3408. <FormItem
  3409. className="half-item"
  3410. {...formItemLayout}
  3411. label="立项金额(万元)"
  3412. >
  3413. <Input
  3414. placeholder="请输入立项金额"
  3415. value={this.state.setUpAmount}
  3416. style={{ width: '200px' }}
  3417. onChange={(e) => {
  3418. this.setState({ setUpAmount: e.target.value })
  3419. }}
  3420. ref="commodityQuantity"
  3421. />
  3422. </FormItem>
  3423. <FormItem
  3424. className="half-item"
  3425. {...formItemLayout}
  3426. label="是否到款"
  3427. >
  3428. <Radio.Group
  3429. value={this.state.arrivalMoney}
  3430. onChange={(e) => {
  3431. this.setState({ arrivalMoney: e.target.value })
  3432. }}
  3433. >
  3434. <Radio value={0}>未到企业</Radio>
  3435. <Radio value={1}>已到企业</Radio>
  3436. </Radio.Group>
  3437. </FormItem>
  3438. </div>
  3439. <div className="clearfix">
  3440. <FormItem
  3441. labelCol={{ span: 3 }}
  3442. wrapperCol={{ span: 16 }}
  3443. label="附件"
  3444. >
  3445. <Picture
  3446. fileList={(e) => {
  3447. this.setState({ attachmentUrl: e })
  3448. }}
  3449. pictureUrl={this.state.attachmentUrl}
  3450. visible={this.props.visible}
  3451. data={{
  3452. sign: 'order_task_file',
  3453. url: '/api/admin/orderProject/uploadOrderTaskFile',
  3454. number: 8,
  3455. }}
  3456. />
  3457. </FormItem>
  3458. </div>
  3459. <div className="clearfix">
  3460. <FormItem
  3461. labelCol={{ span: 3 }}
  3462. wrapperCol={{ span: 16 }}
  3463. label="备注"
  3464. >
  3465. <Input
  3466. type="textarea"
  3467. placeholder="请输入备注"
  3468. rows={4}
  3469. value={this.state.taskComment}
  3470. onChange={(e) => {
  3471. this.setState({ taskComment: e.target.value })
  3472. }}
  3473. />
  3474. </FormItem>
  3475. </div>
  3476. <div>
  3477. <h3 className="sub-title">项目业务</h3>
  3478. {this.state.processStatus == 0 ? (
  3479. <Button
  3480. type="primary"
  3481. onClick={this.addDetailed}
  3482. style={{
  3483. float: 'right',
  3484. marginRight: '50px',
  3485. marginBottom: '15px',
  3486. }}
  3487. >
  3488. 添加项目明细
  3489. </Button>
  3490. ) : (
  3491. ''
  3492. )}
  3493. </div>
  3494. <div className="patent-table">
  3495. <Spin spinning={this.state.loading}>
  3496. <Table
  3497. columns={this.state.columnsX}
  3498. dataSource={this.state.dataSourceX}
  3499. pagination={this.state.paginations}
  3500. onRowClick={this.tableRowClickX}
  3501. bordered
  3502. size="small"
  3503. />
  3504. </Spin>
  3505. </div>
  3506. <div className="clearfix">
  3507. <Button
  3508. className="cancel"
  3509. type="primary"
  3510. // onClick={this.tijiaoOk}
  3511. onClick={() => {
  3512. let num = this.state.projectStatus
  3513. if (
  3514. num != 0 &&
  3515. num != 10 &&
  3516. num != 11 &&
  3517. num != 12 &&
  3518. num != 2 &&
  3519. num != 5 &&
  3520. num != 6
  3521. ) {
  3522. this.showDeleteConfirm(num, this.tijiaoOk)
  3523. } else {
  3524. this.tijiaoOk()
  3525. }
  3526. }}
  3527. style={{ marginLeft: '200px', marginTop: '10px' }}
  3528. htmlType="submit"
  3529. >
  3530. 保存
  3531. </Button>
  3532. <Button
  3533. className="cancel"
  3534. type="ghost"
  3535. onClick={this.visitCancel}
  3536. style={{ marginLeft: '50px', marginTop: '10px' }}
  3537. >
  3538. 取消
  3539. </Button>
  3540. </div>
  3541. </div>
  3542. </Spin>
  3543. </Form>
  3544. </TabPane>
  3545. <TabPane tab="外包/供应商信息" key="2">
  3546. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  3547. <div style={{ marginTop: 10 }}>
  3548. <div className="clearfix">
  3549. <FormItem
  3550. className="half-item"
  3551. {...formItemLayout}
  3552. label={
  3553. <span>
  3554. <strong style={{ color: '#f00' }}>*</strong>
  3555. 类型:
  3556. </span>
  3557. }
  3558. >
  3559. <Radio.Group
  3560. value={this.state.startType}
  3561. onChange={(e) => {
  3562. this.setState({ startType: e.target.value })
  3563. }}
  3564. >
  3565. <Radio value={0}>外包(不走总部)</Radio>
  3566. <Radio value={1}>供应商信息</Radio>
  3567. </Radio.Group>
  3568. </FormItem>
  3569. </div>
  3570. {/* 专利类型 */}
  3571. <div
  3572. className="clearfix"
  3573. style={{
  3574. display: this.state.type == 1 ? 'block' : 'none',
  3575. }}
  3576. >
  3577. <FormItem
  3578. className="half-item"
  3579. {...formItemLayout}
  3580. label={
  3581. <span>
  3582. <strong style={{ color: '#f00' }}>*</strong>
  3583. 专利类型:
  3584. </span>
  3585. }
  3586. >
  3587. <Radio.Group
  3588. value={this.state.patentType}
  3589. onChange={(e) => {
  3590. this.setState({ patentType: e.target.value })
  3591. }}
  3592. >
  3593. <Radio value={0}>专利申请/变更/转让</Radio>
  3594. <Radio value={1}>专利买卖</Radio>
  3595. </Radio.Group>
  3596. </FormItem>
  3597. </div>
  3598. <div
  3599. className="clearfix"
  3600. style={{
  3601. display: this.state.type == 1 ? 'block' : 'none',
  3602. }}
  3603. >
  3604. <FormItem
  3605. className="half-item"
  3606. {...formItemLayout}
  3607. label={
  3608. <span>
  3609. <strong style={{ color: '#f00' }}>*</strong>
  3610. 专利名称:
  3611. </span>
  3612. }
  3613. >
  3614. <Radio.Group
  3615. value={this.state.patentNameType}
  3616. onChange={(e) => {
  3617. this.setState({ patentNameType: e.target.value })
  3618. }}
  3619. >
  3620. <Radio value={0}>实用新型专利</Radio>
  3621. <Radio value={1}>发明专利</Radio>
  3622. <Radio value={2}>外观专利</Radio>
  3623. <Radio value={3}>
  3624. 其他
  3625. <Input
  3626. value={this.state.patentName}
  3627. style={{ marginLeft: '15px' }}
  3628. onChange={(e) => {
  3629. this.setState({
  3630. patentName: e.target.value,
  3631. })
  3632. }}
  3633. placeholder="请填写专利名称"
  3634. />
  3635. </Radio>
  3636. </Radio.Group>
  3637. </FormItem>
  3638. </div>
  3639. {/* 第三方信息专利 */}
  3640. <div
  3641. style={{
  3642. // display: this.state.type == 1 ? "block" : "none",
  3643. display: this.state.type == 1 ? 'block' : 'block',
  3644. }}
  3645. >
  3646. <span
  3647. style={{
  3648. marginLeft: '50px',
  3649. fontSize: '18px',
  3650. }}
  3651. >
  3652. 第三方信息
  3653. </span>
  3654. <span
  3655. style={{
  3656. display: 'inline-block',
  3657. marginLeft: 10,
  3658. color: 'red',
  3659. }}
  3660. >
  3661. 金额总计(万元): {this.state.allTotalAmount}
  3662. </span>
  3663. <Button
  3664. type="primary"
  3665. onClick={(e) => {
  3666. this.addThirdList()
  3667. }}
  3668. style={{
  3669. float: 'right',
  3670. marginRight: '50px',
  3671. marginBottom: '15px',
  3672. }}
  3673. >
  3674. +新增供应商名称
  3675. </Button>
  3676. </div>
  3677. <div
  3678. className="clearfix"
  3679. style={{
  3680. // display: this.state.type == 1 ? "block" : "none",
  3681. display: this.state.type == 1 ? 'block' : 'block',
  3682. }}
  3683. >
  3684. <Spin spinning={this.state.loading}>
  3685. <Form layout="horizontal">
  3686. <Table
  3687. pagination={false}
  3688. columns={this.state.ContactsListsNew}
  3689. dataSource={this.state.thirdInfoList}
  3690. onRowClick={this.tableRowClickOne}
  3691. scroll={{ x: 'max-content', y: 0 }}
  3692. bordered
  3693. size="small"
  3694. />
  3695. <Col
  3696. span={24}
  3697. offset={9}
  3698. style={{ marginTop: '15px' }}
  3699. ></Col>
  3700. </Form>
  3701. </Spin>
  3702. </div>
  3703. <div
  3704. style={{
  3705. // display: this.state.type == 1 ? "block" : "none",
  3706. display: this.state.type == 1 ? 'block' : 'block',
  3707. }}
  3708. >
  3709. <span
  3710. style={{
  3711. marginLeft: '50px',
  3712. fontSize: '18px',
  3713. }}
  3714. >
  3715. 付款节点
  3716. </span>
  3717. <span
  3718. style={{
  3719. display: 'inline-block',
  3720. marginLeft: 10,
  3721. color: 'red',
  3722. }}
  3723. ></span>
  3724. <Button
  3725. type="primary"
  3726. onClick={(e) => {
  3727. this.addPayNode()
  3728. }}
  3729. style={{
  3730. float: 'right',
  3731. marginRight: '50px',
  3732. marginBottom: '15px',
  3733. }}
  3734. >
  3735. +新增付款节点
  3736. </Button>
  3737. </div>
  3738. <div
  3739. className="clearfix"
  3740. style={{
  3741. // display: this.state.type == 1 ? "block" : "none",
  3742. display: this.state.type == 1 ? 'block' : 'block',
  3743. }}
  3744. >
  3745. <Spin spinning={this.state.loading}>
  3746. <Form layout="horizontal">
  3747. <Table
  3748. pagination={false}
  3749. columns={this.state.PayNodeTableColunms}
  3750. dataSource={this.state.payNodeList}
  3751. onRowClick={this.payNodeTableRowClickOne}
  3752. scroll={{ x: 'max-content', y: 0 }}
  3753. bordered
  3754. size="small"
  3755. />
  3756. <Col
  3757. span={24}
  3758. offset={9}
  3759. style={{ marginTop: '15px' }}
  3760. ></Col>
  3761. </Form>
  3762. </Spin>
  3763. </div>
  3764. <div className="clearfix">
  3765. <FormItem
  3766. className="half-item"
  3767. {...formItemLayout}
  3768. label={
  3769. <span>
  3770. <strong style={{ color: '#f00' }}>*</strong>备注
  3771. </span>
  3772. }
  3773. >
  3774. <TextArea
  3775. rows={4}
  3776. value={this.state.outsourceRemarks}
  3777. onChange={(e) => {
  3778. this.setState({
  3779. outsourceRemarks: e.target.value,
  3780. })
  3781. }}
  3782. placeholder="请输入备注"
  3783. />
  3784. </FormItem>
  3785. </div>
  3786. {/*<div className="clearfix">
  3787. <FormItem className="half-item"
  3788. {...formItemLayout}
  3789. label="上传协议文件" style={{height:"auto"}}>
  3790. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3791. data={(e)=>{
  3792. return {
  3793. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3794. }
  3795. }}
  3796. fileList={this.state.fileUrl}
  3797. onChange={(e)=>{
  3798. this.setState({
  3799. attachmentUrl:e.fileList,
  3800. fileUrl:e.fileList
  3801. })
  3802. }}>
  3803. {fileUrl.length>1?null:<Button>
  3804. <Icon type="upload" /> 点击上传
  3805. </Button>}
  3806. </Upload>
  3807. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  3808. </FormItem>
  3809. </div>*/}
  3810. <p
  3811. className="tip"
  3812. style={{
  3813. paddingBottom: '12px',
  3814. width: '240px',
  3815. marginLeft: '145px',
  3816. color: 'red',
  3817. }}
  3818. >
  3819. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  3820. </p>
  3821. <div className="clearfix">
  3822. <FormItem
  3823. labelCol={{ span: 4 }}
  3824. wrapperCol={{ span: 18 }}
  3825. label={
  3826. <span>
  3827. <strong style={{ color: '#f00' }}>*</strong>
  3828. 合同/协议扫描件
  3829. </span>
  3830. }
  3831. >
  3832. <PicturesWall
  3833. fileList={this.getOrgCodeUrlWai}
  3834. pictureUrl={this.state.pictureUrl}
  3835. />
  3836. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  3837. </FormItem>
  3838. </div>
  3839. <div className="clearfix">
  3840. <div
  3841. style={{
  3842. display: 'inline-black',
  3843. textAlign: 'center',
  3844. }}
  3845. >
  3846. <Button
  3847. type="primary"
  3848. loading={this.state.loading}
  3849. onClick={this.sureOut}
  3850. >
  3851. 确认发起外包,不通过总部
  3852. </Button>
  3853. <p className="tip" style={{ color: 'red' }}>
  3854. 提示:高于总部价格,费用个人承担
  3855. </p>
  3856. </div>
  3857. </div>
  3858. </div>
  3859. ) : (
  3860. <div>
  3861. {
  3862. this.state.visible ?
  3863. <CheckProject
  3864. {...this.props}
  3865. tid={this.state.tid}
  3866. status={this.state.refundStatus}
  3867. isPreviewPay={true}
  3868. thirdInfoList={this.state.thirdInfoList}
  3869. dataSource={this.state.payNodeList}
  3870. outsourceRemarks={this.state.outsourceRemarks}
  3871. fileList={this.state.pictureUrl}
  3872. startType={this.state.startType}
  3873. projectStatus={this.state.projectStatus}
  3874. onRefresh={()=>{
  3875. this.waiDetail();
  3876. this.thirdTable(this.state.tid);
  3877. this.payNodeTable(this.state.tid)
  3878. this.loadData(this.state.page)
  3879. }}
  3880. /> : <div/>
  3881. }
  3882. </div>
  3883. )}
  3884. {this.state.refundStatus == 1 ||
  3885. this.state.refundStatus == 0 ||
  3886. this.state.refundStatus == 2 ? (
  3887. <div className="clearfix">
  3888. <hr className="division" />
  3889. <div
  3890. className="clearfix"
  3891. style={{
  3892. display: this.state.refundStatus == 0 ? 'none' : 'block',
  3893. }}
  3894. >
  3895. <FormItem
  3896. className="half-item"
  3897. {...formItemLayout}
  3898. label="审核意见"
  3899. >
  3900. <span>{this.state.remarks}</span>
  3901. </FormItem>
  3902. </div>
  3903. {parseInt(this.state.startType) !== 1 ?<div className="clearfix">
  3904. <FormItem
  3905. className="half-item"
  3906. {...formItemLayout}
  3907. label="审核结果"
  3908. >
  3909. <span>{getRefundStatus(this.state.refundStatus)}</span>
  3910. </FormItem>
  3911. </div> : <div/>}
  3912. <div
  3913. className="clearfix"
  3914. style={{
  3915. display: this.state.refundStatus == 0 ? 'none' : 'block',
  3916. }}
  3917. >
  3918. <FormItem
  3919. className="half-item"
  3920. {...formItemLayout}
  3921. label="审核时间"
  3922. >
  3923. <span>{this.state.auditTimes}</span>
  3924. </FormItem>
  3925. </div>
  3926. </div>
  3927. ) : (
  3928. ''
  3929. )}
  3930. </TabPane>
  3931. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  3932. <TabPane tab="订单详情" key="3">
  3933. <Spin spinning={this.state.loading}>
  3934. <OrderDetail
  3935. orderData={this.state.orderData}
  3936. getOrderLog={this.getOrderLog}
  3937. dataSourceX={this.state.dataSourceX}
  3938. contactList={this.state.jiedian}
  3939. orderNo={this.state.orderNo}
  3940. totalCui={this.state.totalCui}
  3941. contactListNew={this.state.jiedianNew}
  3942. pictureUrl={this.state.contractPictureUrl}
  3943. />
  3944. </Spin>
  3945. </TabPane>
  3946. ) : (
  3947. ''
  3948. )}
  3949. </Tabs>
  3950. </Modal>
  3951. <Modal
  3952. maskClosable={false}
  3953. visible={this.state.lookVisible}
  3954. onOk={this.noCancel}
  3955. onCancel={this.noCancel}
  3956. width="500px"
  3957. title={'添加工时'}
  3958. footer=""
  3959. className="admin-desc-content"
  3960. >
  3961. <Form layout="horizontal" id="demand-form">
  3962. <Spin spinning={this.state.loading}>
  3963. <div className="clearfix">
  3964. <FormItem {...formItemLayout} label="工作日期">
  3965. <DatePicker
  3966. style={{ marginTop: '2px', width: '200px', height: '32px' }}
  3967. showTime
  3968. format="YYYY-MM-DD"
  3969. onOk={() => {}}
  3970. value={
  3971. this.state.taskDate ? moment(this.state.taskDate) : null
  3972. }
  3973. onChange={(data, dataString) => {
  3974. this.setState({ taskDate: dataString })
  3975. }}
  3976. />
  3977. </FormItem>
  3978. </div>
  3979. <div className="clearfix">
  3980. <FormItem {...formItemLayout} label="工作时长">
  3981. <Input
  3982. placeholder="请输入工作时长"
  3983. value={this.state.hours}
  3984. style={{ width: '200px' }}
  3985. onChange={(e) => {
  3986. this.setState({ hours: e.target.value })
  3987. }}
  3988. ref="commodityQuantity"
  3989. />
  3990. </FormItem>
  3991. </div>
  3992. <div className="clearfix">
  3993. <FormItem {...formItemLayout} label="工作内容">
  3994. <Input
  3995. type="textarea"
  3996. placeholder="请输入备注"
  3997. rows={4}
  3998. value={this.state.remarks}
  3999. onChange={(e) => {
  4000. this.setState({ remarks: e.target.value })
  4001. }}
  4002. />
  4003. </FormItem>
  4004. </div>
  4005. <div className="clearfix">
  4006. <Button
  4007. className="cancel"
  4008. type="primary"
  4009. onClick={this.tianjiaOk}
  4010. style={{ marginLeft: '100px' }}
  4011. htmlType="submit"
  4012. >
  4013. 确定
  4014. </Button>
  4015. <Button
  4016. className="cancel"
  4017. type="ghost"
  4018. onClick={this.noCancel}
  4019. style={{ marginLeft: '50px' }}
  4020. >
  4021. 取消
  4022. </Button>
  4023. </div>
  4024. </Spin>
  4025. </Form>
  4026. </Modal>
  4027. <Modal
  4028. maskClosable={false}
  4029. visible={this.state.addnextVisible}
  4030. onOk={this.nextCancel}
  4031. onCancel={this.nextCancel}
  4032. width="800px"
  4033. title="项目详情"
  4034. footer=""
  4035. className="admin-desc-content"
  4036. >
  4037. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  4038. <Spin spinning={this.state.loading}>
  4039. <div className="clearfix">
  4040. <FormItem
  4041. className="half-item"
  4042. {...formItemLayout}
  4043. label="项目名称"
  4044. >
  4045. <span>{this.state.commodityName}</span>
  4046. </FormItem>
  4047. <FormItem
  4048. className="half-item"
  4049. {...formItemLayout}
  4050. label="项目数量"
  4051. >
  4052. <span>{this.state.commodityQuantity}</span>
  4053. </FormItem>
  4054. <FormItem
  4055. className="half-item"
  4056. {...formItemLayout}
  4057. label="官费"
  4058. style={{ display: this.state.displayFees }}
  4059. >
  4060. <span>
  4061. {this.state.officialCost == 0 ? '无官费' : '有官费'}
  4062. </span>
  4063. </FormItem>
  4064. <FormItem
  4065. className="half-item"
  4066. {...formItemLayout}
  4067. label="费减"
  4068. style={{ display: this.state.displayFees }}
  4069. >
  4070. <span>
  4071. {this.state.costReduction == 0 ? '无费减' : '有费减'}
  4072. </span>
  4073. </FormItem>
  4074. <FormItem
  4075. className="half-item"
  4076. {...formItemLayout}
  4077. label="金额(万元)"
  4078. >
  4079. <span>{this.state.commodityPrice ? '***' : 0}</span>
  4080. </FormItem>
  4081. <FormItem
  4082. className="half-item"
  4083. {...formItemLayout}
  4084. label="主要项目"
  4085. >
  4086. <span>{getboutique(this.state.main)}</span>
  4087. </FormItem>
  4088. <div className="clearfix">
  4089. <FormItem
  4090. labelCol={{ span: 3 }}
  4091. wrapperCol={{ span: 18 }}
  4092. label="服务说明"
  4093. >
  4094. <span>{this.state.taskComment}</span>
  4095. </FormItem>
  4096. </div>
  4097. </div>
  4098. </Spin>
  4099. </Form>
  4100. </Modal>
  4101. <Modal
  4102. maskClosable={false}
  4103. visible={this.state.speVisible}
  4104. onOk={this.visitOk}
  4105. onCancel={this.visitCancel}
  4106. width="900px"
  4107. title=""
  4108. footer=""
  4109. className="admin-desc-content"
  4110. >
  4111. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
  4112. <TabPane tab="项目概况" key="1">
  4113. <div className="clearfix">
  4114. <FormItem
  4115. className="half-item"
  4116. {...formItemLayout}
  4117. label="当前项目情况"
  4118. >
  4119. <Radio.Group
  4120. value={this.state.status}
  4121. onChange={(e) => {
  4122. this.setState({ status: e.target.value })
  4123. }}
  4124. >
  4125. <Radio value={0}>开启</Radio>
  4126. <Radio value={1}>暂停</Radio>
  4127. </Radio.Group>
  4128. <Button
  4129. type="primary"
  4130. size="small"
  4131. style={{ marginTop: '5px', position: 'absolute' }}
  4132. onClick={this.caozuorizhi}
  4133. >
  4134. 操作日志
  4135. </Button>
  4136. </FormItem>
  4137. <FormItem
  4138. className="half-item"
  4139. {...formItemLayout}
  4140. label="合同编号"
  4141. >
  4142. <span>{this.state.contractNo}</span>
  4143. </FormItem>
  4144. </div>
  4145. <div className="clearfix">
  4146. <FormItem
  4147. className="half-item"
  4148. {...formItemLayout}
  4149. label="项目状态"
  4150. >
  4151. <Select
  4152. placeholder="选择项目状态"
  4153. style={{ width: '200px' }}
  4154. value={this.state.projectStatus}
  4155. onChange={(e) => {
  4156. this.setState({ projectStatus: e })
  4157. }}
  4158. >
  4159. {projectStatus.map(function (item) {
  4160. return (
  4161. <Select.Option key={item.value}>
  4162. {item.key}
  4163. </Select.Option>
  4164. )
  4165. })}
  4166. </Select>
  4167. </FormItem>
  4168. <FormItem
  4169. className="half-item"
  4170. {...formItemLayout}
  4171. label="是否特批"
  4172. >
  4173. <span>{getApproval(this.state.approval)}</span>
  4174. </FormItem>
  4175. <FormItem
  4176. className="half-item"
  4177. {...formItemLayout}
  4178. label="结算状态"
  4179. >
  4180. <span>
  4181. {getLiquidationStatus(this.state.liquidationStatus)}
  4182. </span>
  4183. </FormItem>
  4184. <FormItem
  4185. className="half-item"
  4186. {...formItemLayout}
  4187. label="流程状态"
  4188. >
  4189. <span>{getProcessStatus(this.state.processStatus)}</span>
  4190. </FormItem>
  4191. <FormItem
  4192. className="half-item"
  4193. {...formItemLayout}
  4194. label="订单编号"
  4195. >
  4196. <span>{this.state.orderNo}</span>
  4197. </FormItem>
  4198. </div>
  4199. <div className="clearfix">
  4200. <FormItem
  4201. className="half-item"
  4202. {...formItemLayout}
  4203. label="满意度表格"
  4204. >
  4205. <Radio.Group
  4206. value={this.state.formRetrieve}
  4207. onChange={(e) => {
  4208. this.setState({ formRetrieve: e.target.value })
  4209. }}
  4210. >
  4211. <Radio value={0}>未收回</Radio>
  4212. <Radio value={1}>已收回</Radio>
  4213. <Radio value={2}>其他</Radio>
  4214. </Radio.Group>
  4215. </FormItem>
  4216. <FormItem
  4217. className="half-item"
  4218. {...formItemLayout}
  4219. label="退单"
  4220. >
  4221. <Radio.Group
  4222. value={this.state.taskRefund}
  4223. onChange={(e) => {
  4224. this.setState({ taskRefund: e.target.value })
  4225. }}
  4226. >
  4227. <Radio value={0}>已完成</Radio>
  4228. <Radio value={1}>未完成</Radio>
  4229. <Radio value={2}>其他</Radio>
  4230. </Radio.Group>
  4231. </FormItem>
  4232. </div>
  4233. <div className="clearfix">
  4234. {
  4235. <FormItem
  4236. className="half-item"
  4237. {...formItemLayout}
  4238. label="(满意度)备注"
  4239. >
  4240. <Input
  4241. type="textarea"
  4242. placeholder="请输入备注"
  4243. rows={2}
  4244. value={this.state.retrieveContent}
  4245. onChange={(e) => {
  4246. this.setState({ retrieveContent: e.target.value })
  4247. }}
  4248. />
  4249. </FormItem>
  4250. }
  4251. {
  4252. <FormItem
  4253. className="half-item"
  4254. {...formItemLayout}
  4255. label="(退单)备注"
  4256. >
  4257. <Input
  4258. type="textarea"
  4259. placeholder="请输入备注"
  4260. rows={2}
  4261. value={this.state.refundContent}
  4262. onChange={(e) => {
  4263. this.setState({ refundContent: e.target.value })
  4264. }}
  4265. />
  4266. </FormItem>
  4267. }
  4268. </div>
  4269. <div className="clearfix">
  4270. <h3 className="sub-title">订单负责人信息</h3>
  4271. <FormItem
  4272. className="half-item"
  4273. {...formItemLayout}
  4274. label="负责人"
  4275. >
  4276. <span>
  4277. {this.state.salesmanName + '(' + this.state.depName + ')'}
  4278. </span>
  4279. </FormItem>
  4280. <FormItem
  4281. className="half-item"
  4282. {...formItemLayout}
  4283. label="负责人电话"
  4284. >
  4285. <span>{this.state.salesmanMobile}</span>
  4286. </FormItem>
  4287. <FormItem
  4288. className="half-item"
  4289. {...formItemLayout}
  4290. label="当前财务负责人"
  4291. >
  4292. <span>{this.state.nowFinance}</span>
  4293. </FormItem>
  4294. <FormItem
  4295. className="half-item"
  4296. {...formItemLayout}
  4297. label="当前财务负责人电话"
  4298. >
  4299. <span>{this.state.nowFinanceMobile}</span>
  4300. </FormItem>
  4301. <FormItem
  4302. className="half-item"
  4303. {...formItemLayout}
  4304. style={{ opacity: '.5' }}
  4305. label="原负责人"
  4306. >
  4307. <span>{this.state.oldSalesmanName}</span>
  4308. </FormItem>
  4309. <FormItem
  4310. className="half-item"
  4311. {...formItemLayout}
  4312. style={{ opacity: '.5' }}
  4313. label="原负责人电话"
  4314. >
  4315. <span>{this.state.oldSalesmanMobile}</span>
  4316. </FormItem>
  4317. <FormItem
  4318. className="half-item"
  4319. {...formItemLayout}
  4320. style={{ opacity: '.5' }}
  4321. label="实际财务操作人"
  4322. >
  4323. <span>{this.state.financeName}</span>
  4324. </FormItem>
  4325. <FormItem
  4326. className="half-item"
  4327. {...formItemLayout}
  4328. style={{ opacity: '.5' }}
  4329. label="实际财务操作人电话"
  4330. >
  4331. <span>{this.state.financeMobile}</span>
  4332. </FormItem>
  4333. <FormItem
  4334. className="half-item"
  4335. {...formItemLayout}
  4336. label="订单留言"
  4337. >
  4338. <span>{this.state.orderRemarks}</span>
  4339. </FormItem>
  4340. <FormItem className="half-item" {...formItemLayout} label="">
  4341. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  4342. </FormItem>
  4343. <OrderRiZi
  4344. dataSourcerizhi={this.state.dataSourceY}
  4345. closeOrderLog={this.closeOrderLog}
  4346. visible={this.state.avisible}
  4347. loading={this.state.loading}
  4348. />
  4349. </div>
  4350. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  4351. <div className="clearfix">
  4352. <h3 className="sub-title">联系信息</h3>
  4353. <FormItem
  4354. className="half-item"
  4355. {...formItemLayout}
  4356. label="客户名称"
  4357. >
  4358. <span>{this.state.userName}</span>
  4359. </FormItem>
  4360. <FormItem
  4361. className="half-item"
  4362. {...formItemLayout}
  4363. label="企业法人"
  4364. >
  4365. <Input
  4366. placeholder="请输入法人名称"
  4367. value={this.state.legalPerson}
  4368. style={{ width: '200px' }}
  4369. onChange={(e) => {
  4370. this.setState({ legalPerson: e.target.value })
  4371. }}
  4372. ref="commodityQuantity"
  4373. />
  4374. </FormItem>
  4375. <FormItem
  4376. className="half-item"
  4377. {...formItemLayout}
  4378. label="法人电话"
  4379. >
  4380. <Input
  4381. placeholder="请输入法人电话"
  4382. value={this.state.legalPersonTel}
  4383. style={{ width: '200px' }}
  4384. onChange={(e) => {
  4385. this.setState({ legalPersonTel: e.target.value })
  4386. }}
  4387. ref="commodityQuantity"
  4388. />
  4389. </FormItem>
  4390. <FormItem
  4391. className="half-item"
  4392. {...formItemLayout}
  4393. label="客户联系人"
  4394. >
  4395. <Input
  4396. placeholder="请输入联系人名称"
  4397. value={this.state.contacts}
  4398. style={{ width: '200px' }}
  4399. onChange={(e) => {
  4400. this.setState({ contacts: e.target.value })
  4401. }}
  4402. ref="commodityQuantity"
  4403. />
  4404. </FormItem>
  4405. <FormItem
  4406. className="half-item"
  4407. {...formItemLayout}
  4408. label="联系人电话"
  4409. >
  4410. <Input
  4411. placeholder="请输入联系人电话"
  4412. value={this.state.contactMobile}
  4413. style={{ width: '200px' }}
  4414. onChange={(e) => {
  4415. this.setState({ contactMobile: e.target.value })
  4416. }}
  4417. ref="commodityQuantity"
  4418. />
  4419. </FormItem>
  4420. <FormItem
  4421. className="half-item"
  4422. {...formItemLayout}
  4423. label="企业地址"
  4424. >
  4425. <Cascader
  4426. options={areaSelect()}
  4427. value={this.state.ProvinceCity}
  4428. placeholder="选择城市"
  4429. style={{ width: '200px' }}
  4430. onChange={(e) => {
  4431. this.setState({ ProvinceCity: e })
  4432. }}
  4433. />
  4434. </FormItem>
  4435. <FormItem
  4436. className="half-item"
  4437. {...formItemLayout}
  4438. label=""
  4439. ></FormItem>
  4440. <FormItem className="half-item" {...formItemLayout} label="">
  4441. <Input
  4442. placeholder="请输入详细地址"
  4443. value={this.state.postalAddress}
  4444. style={{ width: '200px', marginLeft: '12em' }}
  4445. onChange={(e) => {
  4446. this.setState({ postalAddress: e.target.value })
  4447. }}
  4448. ref="commodityQuantity"
  4449. />
  4450. </FormItem>
  4451. </div>
  4452. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  4453. <div className="clearfix">
  4454. <h3 className="sub-title">项目信息</h3>
  4455. <FormItem
  4456. className="half-item"
  4457. {...formItemLayout}
  4458. label="项目编号"
  4459. >
  4460. <span>
  4461. {this.state.splitStatus == 2
  4462. ? this.state.splitSuper + '-' + this.state.splitId
  4463. : this.state.id}
  4464. </span>
  4465. </FormItem>
  4466. <FormItem
  4467. className="half-item"
  4468. {...formItemLayout}
  4469. label="项目名称"
  4470. >
  4471. <span>{this.state.taskName}</span>
  4472. </FormItem>
  4473. <FormItem
  4474. className="half-item"
  4475. {...formItemLayout}
  4476. label="项目状态"
  4477. >
  4478. <Select
  4479. placeholder="选择项目状态"
  4480. style={{ width: '200px' }}
  4481. value={this.state.taskStatus}
  4482. onChange={(e) => {
  4483. this.setState({ taskStatus: e })
  4484. }}
  4485. >
  4486. {taskStatus.map(function (item) {
  4487. return (
  4488. <Select.Option key={item.value}>
  4489. {item.key}
  4490. </Select.Option>
  4491. )
  4492. })}
  4493. </Select>
  4494. </FormItem>
  4495. <FormItem
  4496. className="half-item"
  4497. {...formItemLayout}
  4498. label="项目类别"
  4499. >
  4500. <span>{this.state.cname}</span>
  4501. </FormItem>
  4502. <FormItem
  4503. className="half-item"
  4504. {...formItemLayout}
  4505. label="证书编号"
  4506. >
  4507. <Input
  4508. placeholder="请输入证书编号"
  4509. value={this.state.certificateNumber}
  4510. style={{ width: '200px' }}
  4511. onChange={(e) => {
  4512. this.setState({ certificateNumber: e.target.value })
  4513. }}
  4514. ref="commodityQuantity"
  4515. />
  4516. </FormItem>
  4517. </div>
  4518. <div className="clearfix" style={{ marginTop: '10px' }}>
  4519. <FormItem
  4520. labelCol={{ span: 3 }}
  4521. wrapperCol={{ span: 14 }}
  4522. label="附件"
  4523. >
  4524. <Picture
  4525. fileList={(e) => {
  4526. this.setState({ attachmentUrl: e })
  4527. }}
  4528. pictureUrl={this.state.attachmentUrl}
  4529. visible={this.props.visible}
  4530. data={{
  4531. sign: 'order_task_file',
  4532. url: '/api/admin/orderProject/uploadOrderTaskFile',
  4533. number: 8,
  4534. }}
  4535. />
  4536. </FormItem>
  4537. </div>
  4538. <div className="clearfix">
  4539. <FormItem
  4540. labelCol={{ span: 3 }}
  4541. wrapperCol={{ span: 16 }}
  4542. label="备注"
  4543. >
  4544. <Input
  4545. type="textarea"
  4546. placeholder="请输入备注"
  4547. rows={4}
  4548. value={this.state.taskComment}
  4549. onChange={(e) => {
  4550. this.setState({ taskComment: e.target.value })
  4551. }}
  4552. />
  4553. </FormItem>
  4554. </div>
  4555. <div className="clearfix">
  4556. <h3 className="sub-title">项目申报进度</h3>
  4557. <FormItem
  4558. className="half-item"
  4559. {...formItemLayout}
  4560. label="申报批次"
  4561. >
  4562. <Select
  4563. value={
  4564. this.state.declarationBatch
  4565. ? this.state.declarationBatch
  4566. : undefined
  4567. }
  4568. placeholder="请选择批次"
  4569. style={{ width: 200 }}
  4570. onChange={(e) => {
  4571. this.setState({
  4572. declarationBatch: e,
  4573. })
  4574. }}
  4575. >
  4576. <Option value={1}>第一批</Option>
  4577. <Option value={2}>第二批</Option>
  4578. <Option value={3}>第三批</Option>
  4579. <Option value={4}>第四批</Option>
  4580. </Select>
  4581. </FormItem>
  4582. <FormItem
  4583. className="half-item"
  4584. {...formItemLayout}
  4585. label="软著派单数量"
  4586. >
  4587. <span>{this.state.commodityQuantity}</span>
  4588. <Button
  4589. type="primary"
  4590. size="small"
  4591. style={{ marginLeft: '45px' }}
  4592. onClick={this.addcontact}
  4593. >
  4594. +增加下证信息
  4595. </Button>
  4596. </FormItem>
  4597. <div className="patent-table">
  4598. <Spin spinning={this.state.loading}>
  4599. <Table
  4600. columns={this.state.ContactsLists}
  4601. dataSource={this.state.contactList}
  4602. pagination={false}
  4603. bordered
  4604. size="small"
  4605. />
  4606. </Spin>
  4607. </div>
  4608. </div>
  4609. <div className="clearfix">
  4610. <h3 className="sub-title">项目业务</h3>
  4611. <div className="patent-table">
  4612. <Spin spinning={this.state.loading}>
  4613. <Table
  4614. columns={this.state.columnsX}
  4615. dataSource={this.state.dataSourceX}
  4616. pagination={this.state.paginations}
  4617. onRowClick={this.tableRowClickX}
  4618. bordered
  4619. size="small"
  4620. />
  4621. </Spin>
  4622. </div>
  4623. </div>
  4624. <div className="clearfix">
  4625. <Button
  4626. className="cancel"
  4627. type="primary"
  4628. onClick={this.tijiaoOk}
  4629. style={{ marginLeft: '200px', marginTop: '10px' }}
  4630. htmlType="submit"
  4631. >
  4632. 保存
  4633. </Button>
  4634. <Button
  4635. className="cancel"
  4636. type="ghost"
  4637. onClick={this.visitCancel}
  4638. style={{ marginLeft: '50px', marginTop: '10px' }}
  4639. >
  4640. 取消
  4641. </Button>
  4642. </div>
  4643. </TabPane>
  4644. <TabPane tab="外包(不走本部)" key="2">
  4645. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  4646. <div style={{ marginTop: 10 }}>
  4647. <div className="clearfix">
  4648. <FormItem
  4649. className="half-item"
  4650. {...formItemLayout}
  4651. label={
  4652. <span>
  4653. <strong style={{ color: '#f00' }}>*</strong>
  4654. 外包公司
  4655. </span>
  4656. }
  4657. >
  4658. <Input
  4659. value={this.state.companyName}
  4660. onChange={(e) => {
  4661. this.setState({
  4662. companyName: e.target.value,
  4663. })
  4664. }}
  4665. placeholder="请填写外包公司名称"
  4666. />
  4667. </FormItem>
  4668. <span className="tip" style={{ color: 'red' }}>
  4669. 如多个公司,请用间隔
  4670. </span>
  4671. </div>
  4672. <div className="clearfix">
  4673. <FormItem
  4674. className="half-item"
  4675. {...formItemLayout}
  4676. label={
  4677. <span>
  4678. <strong style={{ color: '#f00' }}>*</strong>
  4679. 单价(万元)
  4680. </span>
  4681. }
  4682. >
  4683. <Input
  4684. value={this.state.unitPrice}
  4685. onChange={(e) => {
  4686. this.setState({
  4687. unitPrice: e.target.value,
  4688. })
  4689. }}
  4690. placeholder="请填写本次外包公司的价格"
  4691. />
  4692. </FormItem>
  4693. </div>
  4694. <div className="clearfix">
  4695. <FormItem
  4696. className="half-item"
  4697. {...formItemLayout}
  4698. label={
  4699. <span>
  4700. <strong style={{ color: '#f00' }}>*</strong>
  4701. 数量(个)
  4702. </span>
  4703. }
  4704. >
  4705. <Input
  4706. value={this.state.unitNumber}
  4707. onChange={(e) => {
  4708. this.setState({
  4709. unitNumber: e.target.value,
  4710. })
  4711. }}
  4712. placeholder="请填写本次外包公司的价格"
  4713. />
  4714. </FormItem>
  4715. </div>
  4716. <div className="clearfix">
  4717. <FormItem
  4718. className="half-item"
  4719. {...formItemLayout}
  4720. label={
  4721. <span>
  4722. <strong style={{ color: '#f00' }}>*</strong>
  4723. 总金额(万元)
  4724. </span>
  4725. }
  4726. >
  4727. <Input
  4728. value={this.state.amount}
  4729. onChange={(e) => {
  4730. this.setState({
  4731. amount: e.target.value,
  4732. })
  4733. }}
  4734. placeholder="请填写本次外包公司的价格"
  4735. />
  4736. </FormItem>
  4737. </div>
  4738. <div className="clearfix">
  4739. <FormItem
  4740. className="half-item"
  4741. {...formItemLayout}
  4742. label={
  4743. <span>
  4744. <strong style={{ color: '#f00' }}>*</strong>备注
  4745. </span>
  4746. }
  4747. >
  4748. <TextArea
  4749. rows={4}
  4750. value={this.state.outsourceRemarks}
  4751. onChange={(e) => {
  4752. this.setState({
  4753. outsourceRemarks: e.target.value,
  4754. })
  4755. }}
  4756. placeholder="请输入备注"
  4757. />
  4758. </FormItem>
  4759. </div>
  4760. <p
  4761. className="tip"
  4762. style={{
  4763. paddingBottom: '12px',
  4764. width: '240px',
  4765. marginLeft: '145px',
  4766. color: 'red',
  4767. }}
  4768. >
  4769. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  4770. </p>
  4771. <div className="clearfix">
  4772. <FormItem
  4773. labelCol={{ span: 4 }}
  4774. wrapperCol={{ span: 18 }}
  4775. label={
  4776. <span>
  4777. <strong style={{ color: '#f00' }}>*</strong>
  4778. 合同/协议扫描件
  4779. </span>
  4780. }
  4781. >
  4782. <PicturesWall
  4783. fileList={this.getOrgCodeUrlWai}
  4784. pictureUrl={this.state.pictureUrl}
  4785. />
  4786. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  4787. </FormItem>
  4788. </div>
  4789. <div className="clearfix">
  4790. <div
  4791. style={{
  4792. display: 'inline-black',
  4793. textAlign: 'center',
  4794. }}
  4795. >
  4796. <Button
  4797. type="primary"
  4798. loading={this.state.loading}
  4799. onClick={this.sureOut}
  4800. >
  4801. 确认发起外包,不通过总部
  4802. </Button>
  4803. <p className="tip" style={{ color: 'red' }}>
  4804. 提示:高于总部价格,费用个人承担
  4805. </p>
  4806. </div>
  4807. </div>
  4808. </div>
  4809. ) : (
  4810. <div>
  4811. <div className="clearfix">
  4812. <FormItem
  4813. className="half-item"
  4814. {...formItemLayout}
  4815. label="外包公司"
  4816. >
  4817. <span>{this.state.companyName}</span>
  4818. </FormItem>
  4819. </div>
  4820. <div className="clearfix">
  4821. <FormItem
  4822. className="half-item"
  4823. {...formItemLayout}
  4824. label="单价(万元)"
  4825. >
  4826. <span>{this.state.unitPrice}</span>
  4827. </FormItem>
  4828. </div>
  4829. <div className="clearfix">
  4830. <FormItem
  4831. className="half-item"
  4832. {...formItemLayout}
  4833. label="数量(个)"
  4834. >
  4835. <span>{this.state.unitNumber}</span>
  4836. </FormItem>
  4837. </div>
  4838. <div className="clearfix">
  4839. <FormItem
  4840. className="half-item"
  4841. {...formItemLayout}
  4842. label="总金额(万元)"
  4843. >
  4844. <span>{this.state.amount}</span>
  4845. </FormItem>
  4846. </div>
  4847. <div className="clearfix">
  4848. <FormItem
  4849. className="half-item"
  4850. {...formItemLayout}
  4851. label="备注"
  4852. >
  4853. <span>{this.state.outsourceRemarks}</span>
  4854. </FormItem>
  4855. </div>
  4856. <div className="clearfix">
  4857. <FormItem
  4858. labelCol={{ span: 4 }}
  4859. wrapperCol={{ span: 18 }}
  4860. label="合同/协议扫描件"
  4861. >
  4862. <Upload
  4863. className="demandDetailShow-upload"
  4864. listType="picture-card"
  4865. fileList={this.state.pictureUrl}
  4866. onPreview={(file) => {
  4867. this.setState({
  4868. previewImage: file.url || file.thumbUrl,
  4869. previewVisible: true,
  4870. })
  4871. }}
  4872. ></Upload>
  4873. <Modal
  4874. maskClosable={false}
  4875. footer={null}
  4876. visible={this.state.previewVisible}
  4877. onCancel={() => {
  4878. this.setState({ previewVisible: false })
  4879. }}
  4880. >
  4881. <img
  4882. alt=""
  4883. style={{ width: '100%' }}
  4884. src={this.state.previewImage || ''}
  4885. />
  4886. </Modal>
  4887. </FormItem>
  4888. </div>
  4889. </div>
  4890. )}
  4891. {this.state.refundStatus == 1 ||
  4892. this.state.refundStatus == 0 ||
  4893. this.state.refundStatus == 2 ? (
  4894. <div className="clearfix">
  4895. <hr className="division" />
  4896. <div
  4897. className="clearfix"
  4898. style={{
  4899. display: this.state.refundStatus == 0 ? 'none' : 'block',
  4900. }}
  4901. >
  4902. <FormItem
  4903. className="half-item"
  4904. {...formItemLayout}
  4905. label="审核意见"
  4906. >
  4907. <span>{this.state.remarks}</span>
  4908. </FormItem>
  4909. </div>
  4910. <div className="clearfix">
  4911. <FormItem
  4912. className="half-item"
  4913. {...formItemLayout}
  4914. label="审核结果"
  4915. >
  4916. <span>{getRefundStatus(this.state.refundStatus)}</span>
  4917. </FormItem>
  4918. </div>
  4919. <div
  4920. className="clearfix"
  4921. style={{
  4922. display: this.state.refundStatus == 0 ? 'none' : 'block',
  4923. }}
  4924. >
  4925. <FormItem
  4926. className="half-item"
  4927. {...formItemLayout}
  4928. label="审核时间"
  4929. >
  4930. <span>{this.state.auditTimes}</span>
  4931. </FormItem>
  4932. </div>
  4933. </div>
  4934. ) : (
  4935. ''
  4936. )}
  4937. </TabPane>
  4938. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4939. <TabPane tab="订单详情" key="3">
  4940. <Spin spinning={this.state.loading}>
  4941. <OrderDetail
  4942. orderData={this.state.orderData}
  4943. getOrderLog={this.getOrderLog}
  4944. dataSourceX={this.state.dataSourceX}
  4945. contactList={this.state.jiedian}
  4946. orderNo={this.state.orderNo}
  4947. totalCui={this.state.totalCui}
  4948. contactListNew={this.state.jiedianNew}
  4949. pictureUrl={this.state.contractPictureUrl}
  4950. />
  4951. </Spin>
  4952. </TabPane>
  4953. ) : (
  4954. ''
  4955. )}
  4956. </Tabs>
  4957. </Modal>
  4958. <Modal
  4959. width="800px"
  4960. visible={this.state.visibleA}
  4961. onCancel={this.visitCancelA}
  4962. title="操作日志"
  4963. footer=""
  4964. className="admin-desc-content"
  4965. >
  4966. <div className="patent-table patent-table-center">
  4967. <Spin spinning={this.state.loading}>
  4968. <Table
  4969. columns={this.state.columnsA}
  4970. dataSource={this.state.dataSourceA}
  4971. pagination={false}
  4972. bordered
  4973. size="small"
  4974. />
  4975. </Spin>
  4976. </div>
  4977. </Modal>
  4978. <Modal
  4979. title="工时记录"
  4980. visible={this.state.timeVisible}
  4981. onCancel={this.timeClose}
  4982. width={800}
  4983. footer={null}
  4984. >
  4985. <Spin spinning={this.state.loading}>
  4986. <Table
  4987. columns={this.state.columnsTime}
  4988. dataSource={this.state.dataSourceTime}
  4989. pagination={false}
  4990. scroll={{ x: 'max-content', y: 0 }}
  4991. bordered
  4992. size={'small'}
  4993. />
  4994. <p style={{ marginTop: 10, color: 'red' }}>
  4995. 累计工时(小时):{this.state.recordHour}
  4996. </p>
  4997. </Spin>
  4998. </Modal>
  4999. <Modal
  5000. visible={this.state.ThirdListVisible}
  5001. onCancel={this.handleCancelclose}
  5002. width={800}
  5003. title="新增供应商"
  5004. footer=""
  5005. // width={1300}
  5006. className="admin-desc-content"
  5007. >
  5008. <Form
  5009. layout="horizontal"
  5010. // onSubmit={this.handleSubmit1}
  5011. // id="demand-form"
  5012. style={{ paddingBottom: '40px' }}
  5013. >
  5014. <Spin spinning={this.state.loading}>
  5015. <div className="clearfix">
  5016. <div className="clearfix">
  5017. <FormItem {...formItemLayout} label="供应商名称">
  5018. <AutoComplete
  5019. className="certain-category-search"
  5020. dropdownClassName="certain-category-search-dropdown"
  5021. dropdownMatchSelectWidth={false}
  5022. dropdownStyle={{ width: 220 }}
  5023. style={{ width: '220px' }}
  5024. dataSource={options}
  5025. placeholder="请输入供应商名称"
  5026. value={this.state.thirdCompanyName}
  5027. onChange={this.httpChange}
  5028. filterOption={true}
  5029. onBlur={this.blurChange}
  5030. onSelect={this.selectAuto}
  5031. required="required"
  5032. />
  5033. <span className="mandatory">*</span>
  5034. </FormItem>
  5035. </div>
  5036. {/*<div className="clearfix">*/}
  5037. {/* <FormItem {...formItemLayout} label="单价(万元)">*/}
  5038. {/* <Input*/}
  5039. {/* value={this.state.thirdUnitPrice}*/}
  5040. {/* placeholder="请输入金额(必填项)"*/}
  5041. {/* required="required"*/}
  5042. {/* onBlur={this.calculatedAmount}*/}
  5043. {/* onChange={(e) => {*/}
  5044. {/* this.setState({*/}
  5045. {/* thirdUnitPrice: e.target.value,*/}
  5046. {/* })*/}
  5047. {/* }}*/}
  5048. {/* style={{ width: '220px' }}*/}
  5049. {/* />*/}
  5050. {/* <span className="mandatory">*</span>*/}
  5051. {/* </FormItem>*/}
  5052. {/*</div>*/}
  5053. <div className="clearfix">
  5054. <FormItem {...formItemLayout} label="数量">
  5055. <Input
  5056. value={this.state.thirdQuantity}
  5057. placeholder="请输入数量(必填项)"
  5058. required="required"
  5059. onBlur={this.calculatedAmount}
  5060. onChange={(e) => {
  5061. this.setState({
  5062. thirdQuantity: e.target.value,
  5063. })
  5064. console.log('thirdQuantity', this.state.thirdQuantity)
  5065. }}
  5066. style={{ width: '220px' }}
  5067. />
  5068. <span className="mandatory">*</span>
  5069. </FormItem>
  5070. </div>
  5071. {/*<div className="clearfix">*/}
  5072. {/* <FormItem {...formItemLayout} label="总价(万元)">*/}
  5073. {/* <span>{this.state.currentTotalPrice}</span>*/}
  5074. {/* </FormItem>*/}
  5075. {/*</div>*/}
  5076. <div className="clearfix">
  5077. <FormItem {...formItemLayout} label="材料">
  5078. <Select
  5079. value={getMaterialStatus(this.state.thirdMaterial)}
  5080. onChange={(val) => {
  5081. this.setState({
  5082. thirdMaterial: val,
  5083. })
  5084. }}
  5085. style={{ width: '220px' }}
  5086. defaultValue="0"
  5087. >
  5088. <Option value="1">有材料</Option>
  5089. <Option value="0">无材料</Option>
  5090. </Select>
  5091. <span className="mandatory">*</span>
  5092. </FormItem>
  5093. </div>
  5094. <div className="clearfix">
  5095. <FormItem {...formItemLayout} label="加急">
  5096. <Select
  5097. value={getUrgentStatus(this.state.thirdUrgent)}
  5098. onChange={(val) => {
  5099. this.setState({
  5100. thirdUrgent: val,
  5101. })
  5102. }}
  5103. style={{ width: '220px' }}
  5104. defaultValue="0"
  5105. >
  5106. <Option value="0">无加急</Option>
  5107. <Option value="1">加急3天</Option>
  5108. <Option value="2">加急4天</Option>
  5109. <Option value="3">加急5-10天</Option>
  5110. <Option value="4">加急11-15天</Option>
  5111. <Option value="5">加急16-20天</Option>
  5112. <Option value="6">加急21-25天</Option>
  5113. <Option value="7">加急26-30天</Option>
  5114. </Select>
  5115. <span className="mandatory">*</span>
  5116. </FormItem>
  5117. </div>
  5118. <div className="clearfix">
  5119. <FormItem
  5120. style={{ height: 'auto' }}
  5121. labelCol={{ span: 4 }}
  5122. wrapperCol={{ span: 18 }}
  5123. label="备注"
  5124. >
  5125. <TextArea
  5126. rows={4}
  5127. placeholder="请输入备注"
  5128. ref="signTotalAmount"
  5129. style={{ width: '95%' }}
  5130. value={this.state.thirdRemarks}
  5131. onChange={(e) => {
  5132. this.setState({
  5133. thirdRemarks: e.target.value,
  5134. })
  5135. }}
  5136. />
  5137. </FormItem>
  5138. </div>
  5139. <div className="clearfix">
  5140. <div className="addSave" style={{ marginTop: '15px' }}>
  5141. <Button
  5142. className="cancel"
  5143. type="primary"
  5144. onClick={this.handleCancelq}
  5145. style={{ marginLeft: '300px' }}
  5146. htmlType="submit"
  5147. >
  5148. 保存
  5149. </Button>
  5150. <Button
  5151. className="cancel"
  5152. type="ghost"
  5153. onClick={this.handleCancelclose}
  5154. style={{ marginLeft: '50px' }}
  5155. >
  5156. 取消
  5157. </Button>
  5158. </div>
  5159. </div>
  5160. </div>
  5161. </Spin>
  5162. </Form>
  5163. </Modal>
  5164. <Modal
  5165. visible={this.state.PayNodeVisible}
  5166. onCancel={this.handleCancelclose}
  5167. width={800}
  5168. title="新增付款节点"
  5169. footer=""
  5170. // width={1300}
  5171. className="admin-desc-content"
  5172. >
  5173. <Form
  5174. layout="horizontal"
  5175. // onSubmit={this.handleSubmit1}
  5176. // id="demand-form"
  5177. style={{ paddingBottom: '40px' }}
  5178. >
  5179. <Spin spinning={this.state.loading}>
  5180. <div className="clearfix">
  5181. <div className="clearfix">
  5182. <FormItem {...formItemLayout} label="供应商名称">
  5183. <Select
  5184. value={this.state.thirdCompanyName}
  5185. onChange={(val) => {
  5186. this.setState(
  5187. {
  5188. thirdCompanyName: val,
  5189. },
  5190. () => this.payNodeCalculatedAmount()
  5191. ) //更新完state调用
  5192. }}
  5193. defaultValue="请选择供应商"
  5194. style={{ width: 220 }}
  5195. >
  5196. {this.state.PayNodeCompany.map((item, index) => (
  5197. <Select.Option value={item} key={index}>
  5198. {item}
  5199. </Select.Option>
  5200. ))}
  5201. </Select>
  5202. <span className="mandatory">*</span>
  5203. </FormItem>
  5204. </div>
  5205. <div className="clearfix">
  5206. <FormItem {...formItemLayout} label="付款科目">
  5207. <Select
  5208. value={this.state.paySubjectName}
  5209. onChange={(val) => {
  5210. this.setState({
  5211. paySubjectName: val,
  5212. dunType: val,
  5213. })
  5214. }}
  5215. defaultValue="请选择付款科目"
  5216. style={{ width: 220 }}
  5217. >
  5218. {this.state.paySubject.map((item, index) => (
  5219. <Select.Option value={item.value} key={index}>
  5220. {item.key}
  5221. </Select.Option>
  5222. ))}
  5223. <Select.Option key={0} value={0}>
  5224. 自定义
  5225. </Select.Option>
  5226. </Select>
  5227. <span className="mandatory">*</span>
  5228. </FormItem>
  5229. </div>
  5230. <div className="clearfix">
  5231. {parseInt(this.state.paySubjectName) === 0 ? <FormItem {...formItemLayout} label="付款时间">
  5232. <DatePicker
  5233. value={
  5234. this.state.partyTimes
  5235. ? moment(this.state.partyTimes)
  5236. : null
  5237. }
  5238. onChange={(data, dataString) => {
  5239. this.setState({ partyTimes: dataString })
  5240. }}
  5241. style={{ width: '220px' }}
  5242. />
  5243. <span className="mandatory">*</span>
  5244. </FormItem> : <div/>}
  5245. </div>
  5246. <div className="clearfix">
  5247. <FormItem {...formItemLayout} label="数量">
  5248. <Input
  5249. value={this.state.payNodeQuantity}
  5250. placeholder="请输入数量(必填项)"
  5251. required="required"
  5252. onChange={(e) => {
  5253. this.setState(
  5254. {
  5255. payNodeQuantity: e.target.value,
  5256. },
  5257. () => this.payNodeCalculatedAmount()
  5258. ) //更新完state调用
  5259. console.log(
  5260. 'payNodeQuantity',
  5261. this.state.payNodeQuantity
  5262. )
  5263. }}
  5264. style={{ width: '220px' }}
  5265. />
  5266. <span className="mandatory">*</span>
  5267. </FormItem>
  5268. </div>
  5269. <div className="clearfix">
  5270. <FormItem {...formItemLayout} label="总价(万元)">
  5271. {/* <span>{this.state.currentTotalPrice}</span> */}
  5272. <Input
  5273. value={this.state.currentTotalPrice}
  5274. placeholder=""
  5275. required="required"
  5276. // onBlur={this.payNodeCalculatedAmount}
  5277. onChange={(e) =>
  5278. this.setState({
  5279. toltalAmount: e.target.value,
  5280. })
  5281. }
  5282. style={{ width: '220px' }}
  5283. />
  5284. <span className="mandatory">*</span>
  5285. </FormItem>
  5286. </div>
  5287. <div className="clearfix">
  5288. <div className="addSave" style={{ marginTop: '15px' }}>
  5289. <Button
  5290. className="cancel"
  5291. type="primary"
  5292. onClick={this.savePayNode}
  5293. style={{ marginLeft: '300px' }}
  5294. htmlType="submit"
  5295. >
  5296. 保存
  5297. </Button>
  5298. <Button
  5299. className="cancel"
  5300. type="ghost"
  5301. onClick={this.handleCancelclose}
  5302. style={{ marginLeft: '50px' }}
  5303. >
  5304. 取消
  5305. </Button>
  5306. </div>
  5307. </div>
  5308. </div>
  5309. </Spin>
  5310. </Form>
  5311. </Modal>
  5312. </div>
  5313. )
  5314. },
  5315. })
  5316. export default Task