myTaskOutsource.jsx 194 KB

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