myTaskOutsource.jsx 204 KB

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