myTaskOutsource.jsx 209 KB

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