myTaskOutsource.jsx 205 KB

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