myTask.jsx 200 KB

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