myTaskOutsource.jsx 201 KB

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