myTaskOutsource.jsx 203 KB

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