myTaskOutsource.jsx 203 KB

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