myTaskOutsource.jsx 205 KB

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