myTaskOutsource.jsx 204 KB

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