myTask.jsx 195 KB

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