myTaskOutsource.jsx 205 KB

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