myTaskOutsource.jsx 205 KB

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