myTaskOutsource.jsx 204 KB

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