myTaskOutsource.jsx 205 KB

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