myTaskOutsource.jsx 204 KB

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