myTaskOutsource.jsx 205 KB

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