myTaskOutsource.jsx 200 KB

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