myTaskOutsource.jsx 204 KB

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