myTaskOutsource.jsx 203 KB

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