123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487 |
- <template>
- <div class="app-container1">
- <el-tabs v-model="activeName" @tab-click="handleTabClick">
- <el-tab-pane :label="$t('errorAnalysis.sumName')" name="first">
- <div ref="scrollContainer" @scroll="handleScroll" :style="{ height: myHeight1+'px', overflowY: 'auto', overflowX: 'hidden' }">
- <div class="search">
- <el-date-picker v-model="tab.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" style="width: 250px;" :picker-options="pickerOptions" />
- <el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled" @click="handleBefore" />
- <el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled" @click="handleNext" />
- <span style="margin-left: 10px;">{{$t('errorAnalysis.typeName')}}</span>
- <el-select v-model="tab.radio" :placeholder="$t('errorAnalysis.typeName')" class="filter-item" style="width: 120px;" @change="changeRadio">
- <el-option v-for="item in statisticalTypeList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <el-checkbox v-model="tab.checked" style="margin-right: 10px;" @change="changeChecked"></el-checkbox>{{$t('errorAnalysis.tjBydate')}}</el-checkbox>
- <el-input v-if="tab.isDriver" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" :placeholder="$t('errorAnalysis.Driver')" />
- <el-input v-if="tab.isFormulaName" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" :placeholder="$t('errorAnalysis.feedName')" />
- <el-input v-if="tab.isHouseName" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" :placeholder="$t('errorAnalysis.isHouseName')" />
- <el-input v-if="tab.isLivestockType" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" :placeholder="$t('errorAnalysis.animelName')" />
- <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.projname" class="filter-item" style="width: 100px;" :placeholder="$t('errorAnalysis.projname')" />
- <el-input v-if="tab.isFeed" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" :placeholder="$t('errorAnalysis.isFeed')" />
- <el-select v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.times" filterable :placeholder="$t('errorAnalysis.isTrainNumber')" class="filter-item" style="width: 120px;" clearable>
- <el-option v-for="item in tab2.frequencyList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 100px;" :placeholder="$t('processAnalysis.tmrName')" />
- <el-select v-if="tab.isTMRName" v-model="tab.table.getdataListParm.parammaps.fname" :placeholder="$t('errorAnalysis.tmrName')" class="filter-item" style="width: 150px;">
- <el-option v-for="(item,index) in tab.TMRNameList" :key="index" :label="item.tmrloadname" :value="item.tmrloadname" />
- </el-select>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlwc1" :placeholder="$t('processAnalysis.hlwc')" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlwc2" :placeholder="$t('processAnalysis.hlwc')" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlzq1" :placeholder="$t('processAnalysis.hlzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlzq2" :placeholder="$t('processAnalysis.hlzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlzql1" :placeholder="$t('processAnalysis.hlzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlzql2" :placeholder="$t('processAnalysis.hlzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slwc1" :placeholder="$t('processAnalysis.slwc')" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slwc2" :placeholder="$t('processAnalysis.slwc')" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slzq1" :placeholder="$t('processAnalysis.slzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slzq2" :placeholder="$t('processAnalysis.slzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slzql1" :placeholder="$t('processAnalysis.slzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slzql2" :placeholder="$t('processAnalysis.slzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.templetname" class="filter-item" style="width: 140px;" :placeholder="$t('errorAnalysis.feedName')" />
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="0" v-model="tab.table.getdataListParm.parammaps.startdate" :placeholder="$t('errorAnalysis.hlStartTime')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="0" v-model="tab.table.getdataListParm.parammaps.enddate" :placeholder="$t('errorAnalysis.hlEndTime')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <el-checkbox v-model="tab.table.getdataListParm.parammaps.error" style="margin-right: 10px;" @change="changeccysChecked">{{$t('processAnalysis.oName')}}</el-checkbox>
- <el-button class="successBorder" @click="form_search">{{$t('common.query')}}</el-button>
- <el-button class="successBorder" @click="handleRefresh1">{{$t('common.reset')}}</el-button>
- <el-button class="export" icon="el-icon-upload2" @click="handleDownload">{{$t('dashboard.Export')}}</el-button>
- <svg-icon icon-class="Up" class="down" style="width: 40px;height: 40px;float: right;" @click="handleQuickJumpChart" />
- </div>
- <div id="table" class="table">
- <h4>{{$t('errorAnalysis.hl')}}</h4>
- <u-table
- ref="plTable1"
- :key="tab.table.tableKey"
- v-loading="tab.table.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="tab.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :max-height="myHeight2"
- empty-text="No Data"
- >
- <u-table-column v-if="tab.checked && !tab.isTrainNumber" :key="0" sortable :label="$t('errorAnalysis.date')" min-width="70px" align="center" prop="计划时间" />
- <u-table-column v-if="tab.isTrainNumber" :key="117" sortable :label="$t('errorAnalysis.date')" min-width="70px" align="center" prop="计划时间1" />
- <u-table-column v-if="tab.isTrainNumber" :key="113" sortable :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="templetname" />
- <u-table-column v-if="tab.isTrainNumber" :key="114" sortable :label="$t('errorAnalysis.drivername')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column v-if="tab.isTrainNumber" :key="115" sortable :label="$t('errorAnalysis.stratJl')" min-width="70px" align="center" prop="startTime" />
- <u-table-column v-if="tab.isTrainNumber" :key="116" sortable :label="$t('errorAnalysis.endJl')" min-width="70px" align="center" prop="endTime" />
- <u-table-column v-if="tab.isDriver" :key="1" sortable :label="$t('errorAnalysis.Driver')" min-width="70px" align="center" prop="驾驶员" />
- <u-table-column v-if="tab.isFormulaName" :key="2" sortable :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="配方名称" />
- <u-table-column v-if="tab.isHouseName" :key="3" sortable :label="$t('errorAnalysis.isHouseName')" min-width="70px" align="center" prop="栏舍名称" />
- <u-table-column v-if="tab.isLivestockType" :key="4" sortable :label="$t('errorAnalysis.sxlb')" min-width="70px" align="center" prop="牲畜类别" />
- <u-table-column v-if="tab.isTrainNumber" :key="5" sortable :label="$t('errorAnalysis.tmrnames')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column v-if="tab.isTrainNumber" :key="6" sortable :label="$t('errorAnalysis.projname')" min-width="70px" align="center" prop="车次" />
- <u-table-column v-if="tab.isTrainNumber" :key="7" sortable :label="$t('errorAnalysis.isTrainNumber')" min-width="70px" align="center" prop="班次" />
- <u-table-column v-if="tab.isTrainNumber" :key="8" sortable :label="$t('errorAnalysis.Driver')" min-width="70px" align="center" prop="驾驶员" />
- <u-table-column v-if="tab.isTMRName" :key="9" sortable :label="$t('errorAnalysis.tmrnames')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column v-if="tab.isTMRName" :key="10" sortable :label="$t('errorAnalysis.isTrainNumber')" min-width="70px" align="center" prop="班次" />
- <u-table-column v-if="tab.isTMRName" :key="11" sortable :label="$t('errorAnalysis.projname')" min-width="70px" align="center" prop="车次" />
- <u-table-column v-if="tab.isTMRName" :key="12" sortable :label="$t('errorAnalysis.Driver')" min-width="70px" align="center" prop="驾驶员" />
- <u-table-column v-if="tab.isFeed" :key="13" sortable :label="$t('errorAnalysis.isFeed')" min-width="70px" align="center" prop="fname" />
- <u-table-column :key="14" sortable :label="$t('errorAnalysis.llzl')" min-width="60px" align="center" prop="理论重量" />
- <u-table-column :key="15" sortable :label="$t('errorAnalysis.acWeight')" min-width="60px" align="center" prop="实际重量" />
- <u-table-column :key="16" sortable :label="$t('errorAnalysis.jshlczs')" min-width="60px" align="center" prop="计划混料操作数" />
- <u-table-column :key="17" sortable :label="$t('errorAnalysis.yhlczs')" min-width="50px" align="center" prop="已混料操作数" />
- <u-table-column :key="18" sortable :label="$t('errorAnalysis.hlczl')" min-width="60px" align="center" prop="混料操作率" />
- <u-table-column :key="19" sortable :label="$t('processAnalysis.hlwc')" min-width="60px" align="center" prop="混料误差值" />
- <u-table-column :key="20" sortable :label="$t('processAnalysis.hlzq')" min-width="60px" align="center" prop="混料准确率" />
- <u-table-column v-if="tab.isTrainNumber" :key="21" sortable :label="$t('errorAnalysis.hlsj')" min-width="70px" align="center" prop="混料时间" />
- <u-table-column v-if="tab.isTrainNumber" :key="22" sortable :label="$t('errorAnalysis.flstartTime')" min-width="70px" align="center" prop="startMaterialTime" />
- <u-table-column v-if="tab.isTrainNumber" :key="23" sortable :label="$t('errorAnalysis.waitTime')" min-width="70px" align="center" prop="等待时间" />
- <u-table-column :key="24" sortable :label="$t('errorAnalysis.hlzdtzcs')" min-width="65px" align="center" prop="混料自动跳转次数" />
- <u-table-column :key="25" sortable :label="$t('errorAnalysis.hlsdzdtzcs')" min-width="65px" align="center" prop="混料手动跳转次数" />
- <u-table-column :key="26" sortable :label="$t('errorAnalysis.qxcs')" min-width="70px" align="center" prop="取消次数" />
- <u-table-column :key="27" sortable :label="$t('errorAnalysis.hlzqs')" min-width="70px" align="center" prop="混料正确数" />
- <u-table-column :key="28" sortable :label="$t('processAnalysis.hlzql')" min-width="70px" align="center" prop="混料正确率" />
- <u-table-column :key="29" sortable :label="$t('errorAnalysis.qcqxzql')" min-width="60px" align="center" prop="去除取消正确率" />
- <u-table-column :key="30" sortable :label="$t('errorAnalysis.bzc')" min-width="60px" align="center" prop="方差" />
- <u-table-column :key="31" v-if="tab.isTrainNumber" sortable :label="$t('errorAnalysis.area')" min-width="60px" align="center" prop="barname" />
- <u-table-column v-if="activeName=='first' && tab.table.list !== null" :key="33" align="center" width="70" :label="$t('errorAnalysis.cz')" class-name="small-padding fixed-width" fixed="right">
- <template slot-scope="{row}">
- <el-button class="miniSuccess" icon="el-icon-search" @click="handleSee('1',row)" />
- </template>
- </u-table-column>
- <u-table-column v-else :key="33" align="center" width="70" :label="$t('errorAnalysis.cz')" class-name="small-padding fixed-width">
- <template slot-scope="{row}">
- <el-button class="miniSuccess" icon="el-icon-search" @click="handleSee('1',row)" />
- </template>
- </u-table-column>
- </u-table>
- <span v-if="tab.table.listLoading == false" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">{{$t('processAnalysis.total')}}{{ tab.table.total }}{{$t('processAnalysis.tiao')}}</span>
- <div v-if="tab.radio !== '6'">
- <h4>{{$t('errorAnalysis.sl')}}</h4>
- <u-table
- ref="plTable22"
- :key="tab.table2.tableKey"
- v-loading="tab.table2.listLoading"
- :data="tab.table2.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :max-height="myHeight2"
- empty-text="No Data"
- >
- <!-- <u-table-column >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- </u-table-column> -->
- <u-table-column v-if="tab.checked && !tab.isTrainNumber" :key="0" sortable :label="$t('errorAnalysis.date')" min-width="70px" align="center" prop="计划时间" />
- <u-table-column v-if="tab.isTrainNumber" :key="117" sortable :label="$t('errorAnalysis.date')" min-width="70px" align="center" prop="计划时间1" />
- <u-table-column v-if="tab.isTrainNumber" :key="113" sortable :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="templetname" />
- <u-table-column v-if="tab.isTrainNumber" :key="114" sortable :label="$t('errorAnalysis.drivername')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column v-if="tab.isTrainNumber" :key="115" sortable :label="$t('errorAnalysis.stratJl')" min-width="70px" align="center" prop="startTime" />
- <u-table-column v-if="tab.isTrainNumber" :key="116" sortable :label="$t('errorAnalysis.endJl')" min-width="70px" align="center" prop="endTime" />
- <u-table-column v-if="tab.isDriver" :key="1" sortable :label="$t('errorAnalysis.Driver')" min-width="70px" align="center" prop="驾驶员" />
- <u-table-column v-if="tab.isFormulaName" :key="2" sortable :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="配方名称" />
- <u-table-column v-if="tab.isHouseName" :key="3" sortable :label="$t('errorAnalysis.isHouseName')" min-width="70px" align="center" prop="栏舍名称" />
- <u-table-column v-if="tab.isLivestockType" :key="4" sortable :label="$t('errorAnalysis.sxlb')" min-width="70px" align="center" prop="牲畜类别" />
- <u-table-column v-if="tab.isTrainNumber" :key="5" sortable :label="$t('errorAnalysis.projname')" min-width="70px" align="center" prop="车次" />
- <u-table-column v-if="tab.isTrainNumber" :key="6" sortable :label="$t('errorAnalysis.isTrainNumber')" min-width="70px" align="center" prop="班次" />
- <u-table-column v-if="tab.isTrainNumber" :key="7" sortable :label="$t('errorAnalysis.tmrnames')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column v-if="tab.isTrainNumber" :key="8" sortable :label="$t('errorAnalysis.Driver')" min-width="70px" align="center" prop="驾驶员" />
- <u-table-column v-if="tab.isTMRName" :key="9" sortable :label="$t('errorAnalysis.tmrnames')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column v-if="tab.isTMRName" :key="10" sortable :label="$t('errorAnalysis.isTrainNumber')" min-width="70px" align="center" prop="班次" />
- <u-table-column v-if="tab.isTMRName" :key="11" sortable :label="$t('errorAnalysis.projname')" min-width="70px" align="center" prop="车次" />
- <u-table-column v-if="tab.isTMRName" :key="12" sortable :label="$t('errorAnalysis.Driver')" min-width="70px" align="center" prop="驾驶员" />
- <u-table-column v-if="tab.isFeed" :key="13" sortable :label="$t('errorAnalysis.isFeed')" min-width="70px" align="center" prop="饲料" />
- <u-table-column :key="14" sortable :label="$t('errorAnalysis.llzl')" min-width="60px" align="center" prop="理论重量" />
- <u-table-column :key="15" sortable :label="$t('errorAnalysis.acWeight')" min-width="60px" align="center" prop="实际重量" />
- <u-table-column :key="16" sortable :label="$t('errorAnalysis.sljhczs')" min-width="60px" align="center" prop="计划撒料操作数" />
- <u-table-column :key="17" sortable :label="$t('errorAnalysis.yclczs')" min-width="50px" align="center" prop="已撒料操作数" />
- <u-table-column :key="18" sortable :label="$t('errorAnalysis.slczl')" min-width="60px" align="center" prop="撒料操作率" />
- <u-table-column :key="19" sortable :label="$t('errorAnalysis.slwcz')" min-width="60px" align="center" prop="撒料误差值" />
- <u-table-column :key="20" sortable :label="$t('errorAnalysis.slzql')" min-width="60px" align="center" prop="撒料准确率" />
- <u-table-column v-if="tab.isTrainNumber" :key="21" sortable :label="$t('errorAnalysis.slsj')" min-width="70px" align="center" prop="撒料时间" />
- <u-table-column v-if="tab.isTrainNumber" :key="22" sortable :label="$t('errorAnalysis.flstartTime')" min-width="70px" align="center" prop="startMaterialTime" />
- <u-table-column v-if="tab.isTrainNumber" :key="23" sortable :label="$t('errorAnalysis.waitTime')" min-width="70px" align="center" prop="等待时间" />
- <u-table-column :key="24" sortable :label="$t('errorAnalysis.slzdtzcs')" width="65px" align="center" prop="撒料自动跳转次数" />
- <u-table-column :key="25" sortable :label="$t('errorAnalysis.slsdzdtzcs')" width="65px" align="center" prop="撒料手动跳转次数" />
- <u-table-column :key="26" sortable :label="$t('errorAnalysis.qxcs')" min-width="70px" align="center" prop="取消次数" />
- <u-table-column :key="27" sortable :label="$t('errorAnalysis.slzqs')" min-width="70px" align="center" prop="撒料正确数" />
- <u-table-column :key="28" sortable :label="$t('processAnalysis.slzql')" min-width="70px" align="center" prop="撒料正确率" />
- <u-table-column :key="29" sortable :label="$t('errorAnalysis.qcqxzql')" min-width="65px" align="center" prop="去除取消正确率" />
- <u-table-column :key="30" sortable :label="$t('errorAnalysis.bzc')" min-width="60px" align="center" prop="方差" />
- <u-table-column :key="31" v-if="tab.isTrainNumber" sortable :label="$t('errorAnalysis.area')" min-width="60px" align="center" prop="barname" />
- <u-table-column v-if="activeName=='first' && tab.table2.list !== null" :key="32" align="center" width="70" :label="$t('errorAnalysis.cz')" class-name="small-padding fixed-width" fixed="right">
- <template slot-scope="{row}">
- <el-button class="miniSuccess" icon="el-icon-search" @click="handleSee('2',row)" />
- </template>
- </u-table-column>
- <u-table-column v-else :key="30" align="center" width="70" :label="$t('errorAnalysis.cz')" class-name="small-padding fixed-width">
- <template slot-scope="{row}">
- <el-button class="miniSuccess" icon="el-icon-search" @click="handleSee('2',row)" />
- </template>
- </u-table-column>
- </u-table>
- <span v-if="tab.table2.listLoading == false" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">{{$t('processAnalysis.total')}}{{ tab.table2.total }}{{$t('processAnalysis.tiao')}}</span>
- </div>
- </div>
- <div id="AnalysisChart" class="AnalysisChart">
- <el-row :gutter="10">
- <el-col :span="24" style="margin-bottom: 10px;margin-top: 10px;">
- <span>{{$t('feedingEfficiency.tbcxsj')}}</span>
- <el-radio-group v-model="tab.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeAllSpecificDate">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chartDate" :clearable="false" class="inputDatetime filter-item" style="width:250px;" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.selectYear" class="filter-item" style="width:130px;margin-right:10px;" :placeholder="$t('errorAnalysis.qxznf')" @change="changeAllYear">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.selectWeek" class="filter-item" style="width:170px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chartMonth" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" style="width:250px;" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleAllDate">{{$t('errorAnalysis.confirm')}}</el-button>
- <svg-icon icon-class="Up" style="width: 40px;height: 40px;float: right;" @click="handleQuickJumpTop" />
- </el-col>
- </el-row>
- <el-row :gutter="10" class="dashboard-editor-container">
- <el-col :span="12">
- <div class="grid-content">
- <h4>{{$t('errorAnalysis.planName')}}</h4>
- <div v-if="tab.chart2.isChart" class="button">
- <div class="chartButton">
- <el-radio-group v-model="tab.chart2.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeChartSpecificDate('chart2')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart2.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart2.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart2.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart2.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart2')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart2.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart2.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart2.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart2.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" format="yyyy-MM" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart2')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart2')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart2')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart2.isChart" id="chartLine2" style="width:100%;height:385px;background: #fff;" />
- <div v-if="tab.chart2.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart2')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart2')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart2.table.tableKey"
- v-loading="tab.chart2.table.listLoading"
- :data="tab.chart2.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- empty-text="No Data"
- >
- <!-- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template> -->
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="85px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.jhzxzl')" sortable min-width="80px" align="center" prop="实际量" />
- <el-table-column :label="$t('errorAnalysis.pfllzl')" sortable min-width="80px" align="center" prop="理论量" />
- <el-table-column :label="$t('errorAnalysis.jhzql')" sortable min-width="85px" align="center" prop="field1" />
- <el-table-column :label="$t('errorAnalysis.jhqxzl')" sortable min-width="80px" align="center" prop="计划取消重量" />
- <el-table-column :label="$t('errorAnalysis.jhzqll')" sortable min-width="100px" align="center" prop="field3" />
- <el-table-column :label="$t('errorAnalysis.jhzql1')" sortable min-width="85px" align="center" prop="正确数" />
- <el-table-column :label="$t('errorAnalysis.jhs')" sortable min-width="60px" align="center" prop="计划数" />
- <el-table-column :label="$t('errorAnalysis.jhzql1')"sortable min-width="75px" align="center" prop="field2" />
- </el-table>
- </div>
- </div>
- </el-col>
- <el-col :span="12">
- <div class="grid-content">
- <h4>{{$t('errorAnalysis.feedName')}}</h4>
- <div v-if="tab.chart1.isChart" class="button">
- <div class="chartButton">
- <my-select ref="tenantselect" :model="tab.chart1.getdataListParm.parammaps.statisticsList" :option="tab.chart1.statisticsList" :value="'name'" :label="'name'" style="width: 150px;margin-right: 5px;float: left;" :placeholder="$t('errorAnalysis.xztjcs')" @searchSelect="changeStatisticChart1" />
- <el-radio-group v-model="tab.chart1.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeChartSpecificDate('chart1')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart1.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart1.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart1.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart1.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart1')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart1.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart1.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart1.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart1.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart1')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart1')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart1')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart1.isChart" id="chartLine1" style="width:100%;height:385px;" />
- <div v-if="tab.chart1.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart1')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart1')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart1.table.tableKey"
- v-loading="tab.chart1.table.listLoading"
- :data="tab.chart1.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="90px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.feedName')" sortable min-width="90px" align="center" prop="名称" />
- <el-table-column :label="$t('errorAnalysis.jhzl')" sortable min-width="100px" align="center" prop="理论量" />
- <el-table-column :label="$t('errorAnalysis.skzl')"sortable min-width="100px" align="center" prop="实际量" />
- <el-table-column :label="$t('errorAnalysis.zql')" sortable min-width="90px" align="center" prop="准确率" />
- </el-table>
- </div>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="10" class="dashboard-editor-container">
- <el-col :span="12">
- <div class="grid-content">
- <h4>{{$t('errorAnalysis.nqName')}}</h4>
- <div v-if="tab.chart3.isChart" class="button">
- <div class="chartButton">
- <my-select ref="tenantselect" :model="tab.chart3.getdataListParm.parammaps.statisticsList" :option="tab.chart3.statisticsList" :value="'name'" :label="'name'" style="width: 150px;margin-right: 5px;float: left;" :placeholder="$t('errorAnalysis.xztjcs')" @searchSelect="changeStatisticChart3" />
- <el-radio-group v-model="tab.chart3.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeChartSpecificDate('chart3')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart3.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart3.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart3.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart3.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart3')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart3.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart3.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart3.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart3.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart3')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart3')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart3')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart3.isChart" id="chartLine3" style="width:100%;height:385px;" />
- <div v-if="tab.chart3.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart3')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart3')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart3.table.tableKey"
- v-loading="tab.chart3.table.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="tab.chart3.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- empty-text="No Data"
- >
- <!-- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template> -->
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="90px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.sxlb')" sortable min-width="90px" align="center" prop="名称" />
- <el-table-column :label="$t('errorAnalysis.jhzl')" sortable min-width="100px" align="center" prop="理论量" />
- <el-table-column :label="$t('errorAnalysis.skzl')"sortable min-width="100px" align="center" prop="实际量" />
- <el-table-column :label="$t('errorAnalysis.zql')" sortable min-width="90px" align="center" prop="准确率" />
- </el-table>
- </div>
- </div>
- </el-col>
- <el-col :span="12">
- <div class="grid-content">
- <h4>{{$t('errorAnalysis.clzql')}}</h4>
- <div v-if="tab.chart4.isChart" class="button">
- <div class="chartButton">
- <my-select ref="tenantselect" :model="tab.chart4.getdataListParm.parammaps.statisticsList" :option="tab.chart4.statisticsList" :value="'name'" :label="'name'" style="width: 150px;margin-right: 5px;float: left;" :placeholder="$t('errorAnalysis.xztjcs')" @searchSelect="changeStatisticChart4" />
- <el-radio-group v-model="tab.chart4.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeChartSpecificDate('chart4')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart4.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart4.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart4.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart4.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart4')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart4.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart4.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart4.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart4.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart4')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart4')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart4')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart4.isChart" id="chartLine4" style="width:100%;height:385px;" />
- <div v-if="tab.chart4.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart4')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart4')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart4.table.tableKey"
- v-loading="tab.chart4.table.listLoading"
- :data="tab.chart4.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="90px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.projname')" sortable min-width="90px" align="center" prop="名称" />
- <el-table-column :label="$t('errorAnalysis.jhzl')" sortable min-width="100px" align="center" prop="理论量" />
- <el-table-column :label="$t('errorAnalysis.skzl')"sortable min-width="100px" align="center" prop="实际量" />
- <el-table-column :label="$t('errorAnalysis.zql')" sortable min-width="90px" align="center" prop="准确率" />
- </el-table>
- </div>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="10" class="dashboard-editor-container">
- <el-col :span="12">
- <div class="grid-content">
- <h4> {{$t('errorAnalysis.hltj')}} </h4>
- <div v-if="tab.chart5.isChart" class="button">
- <div class="chartButton">
- <el-radio-group v-model="tab.chart5.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeChartSpecificDate('chart5')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart5.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart5.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart5.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart5.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart5')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart5.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart5.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart5.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart5.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart5')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart5')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart5')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart5.isChart" id="chartLine5" class="button" style="width:100%;height:385px;" />
- <div v-if="tab.chart5.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart5')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart5')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart5.table.tableKey"
- v-loading="tab.chart5.table.listLoading"
- :data="tab.chart5.table.list"
- ref='myTable'
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="100px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.zdtzcs')" sortable min-width="130px" align="center" prop="field1" />
- <el-table-column :label="$t('errorAnalysis.sdtzcs')" sortable min-width="130px" align="center" prop="field2" />
- <el-table-column :label="$t('errorAnalysis.zdtzllzl')" sortable min-width="110px" align="center" prop="理论自动" />
- <el-table-column :label="$t('errorAnalysis.zdtzsjzl')" sortable min-width="110px" align="center" prop="实际自动" />
- <el-table-column :label="$t('errorAnalysis.zdtzzql')" sortable min-width="110px" align="center" prop="field3" />
- <el-table-column :label="$t('errorAnalysis.sdtzllzl')" sortable min-width="110px" align="center" prop="理论手动" />
- <el-table-column :label="$t('errorAnalysis.sdtzsjzl')" sortable min-width="110px" align="center" prop="实际手动" />
- <el-table-column :label="$t('errorAnalysis.sdtzzql')" sortable min-width="110px" align="center" prop="field4" />
- </el-table>
- </div>
- </div>
- </el-col>
- <el-col :span="12">
- <div class="grid-content">
- <h4>{{$t('errorAnalysis.hlqxcs')}}</h4>
- <div v-if="tab.chart6.isChart" class="button">
- <div class="chartButton">
- <el-radio-group v-model="tab.chart6.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;" @change="changeChartSpecificDate('chart6')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart6.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart6.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart6.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart6.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart6')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart6.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart6.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart6.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart6.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart6')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart6')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart6')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart6.isChart" id="chartLine6" style="width:100%;height:385px;" />
- <div v-if="tab.chart6.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart6')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart6')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart6.table.tableKey"
- v-loading="tab.chart6.table.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="tab.chart6.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="110px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.hlqxcs')" sortable min-width="110px" align="center" prop="field1" />
- </el-table>
- </div>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="10" class="dashboard-editor-container" style="margin-bottom: 30px;">
- <el-col :span="24">
- <div class="grid-content">
- <h4>{{$t('errorAnalysis.lsslsjtj')}}</h4>
- <div v-if="tab.chart7.isChart" class="button">
- <div class="chartButton">
- <!-- 君盛-->
- <!-- <el-select v-model="tab.chart7.getdataListParm.parammaps.statisticsList" multiple :placeholder="$t('common.please')" collapse-tags @change="changeStatisticChart7">
- <el-option v-for="item in tab.chart7.statisticsList" :key="item.name" :label="item.name" :value="item.name" />
- </el-select> -->
- <!-- 其他牧场 -->
- <my-select ref="tenantselect" :model="tab.chart7.getdataListParm.parammaps.statisticsList" :option="tab.chart7.statisticsList" :value="'name'" :label="'name'" style="width: 150px;margin-right: 5px;float: left;" :placeholder="$t('errorAnalysis.xztjcs')" @searchSelect="changeStatisticChart7" />
- <el-select v-model="tab.chart7.getdataListParm.parammaps.ftId" multiple collapse-tags :placeholder="$t('common.please')" @change="changeformula()">
- <el-option v-for="item in tab.chart7.formulaList" :key="item.id" :label="item.tname" :value="item.id" />
- </el-select>
- <el-radio-group v-model="tab.chart7.getdataListParm.parammaps.specificDate" class="specificDate" size="mini" style="display: inline-block;margin-left: 10px;" @change="changeChartSpecificDate('chart7')">
- <el-radio-button label="1" border>{{$t('errorAnalysis.day')}}</el-radio-button>
- <el-radio-button label="3" border>{{$t('errorAnalysis.month')}}</el-radio-button>
- </el-radio-group>
- <div v-show="tab.chart7.getdataListParm.parammaps.specificDate == '1'" class="day" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart7.getdataListParm.parammaps.inputDatetime" style="width:220px;" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptionsDate" />
- </div>
- <div v-show="tab.chart7.getdataListParm.parammaps.specificDate == '2'" class="week" style="display: inline-block; clear: both;margin-left:10px;">
- <el-select v-model="tab.chart7.getdataListParm.parammaps.selectYear" class="filter-item" style="width:80px;margin-right:10px;" :placeholder="$t('errorAnalysis.nf')" @change="changeChartYear('chart7')">
- <el-option v-for="item in tab.yearList" :key="item" :label="item" :value="item" />
- </el-select>
- <el-select v-model="tab.chart7.getdataListParm.parammaps.selectWeek" class="filter-item" style="width:160px;" multiple :multiple-limit="2" :placeholder="$t('errorAnalysis.qxzz')" >
- <el-option v-for="(item,index) in tab.chart7.getdataListParm.parammaps.weekList" :key="index" :label="item.name" :value="item.id" />
- </el-select>
- </div>
- <div v-show="tab.chart7.getdataListParm.parammaps.specificDate == '3'" class="month" style="display: inline-block;margin-left:10px;">
- <el-date-picker v-model="tab.chart7.getdataListParm.parammaps.chartMonth" style="width:220px;" :clearable="false" value-format="yyyy-MM-dd" type="monthrange" class="inputDatetime filter-item" :range-separator="$t('common.to')" :picker-options="pickerOptionsMonth" />
- </div>
- <el-button class="successBorder" style="margin-left:10px;" @click="handleChartDate('chart7')">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- <div>
- <div class="exportTable2" @click="handleExport('chart7')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable2" @click="handleTable('chart7')">{{$t('errorAnalysis.changeTable')}}</div>
- </div>
- </div>
- <div v-if="tab.chart7.isChart" id="chartLine7" style="width:100%;height:385px;" />
- <div v-if="tab.chart7.isTable" class="table">
- <div class="button">
- <div class="exportTable" @click="handleExport('chart7')">{{$t('dashboard.Export')}}</div>
- <div class="exportTable" @click="handleChart('chart7')">{{$t('dashboard.sTable')}}</div>
- </div>
- <el-table
- :key="tab.chart7.table.tableKey"
- v-loading="tab.chart7.table.listLoading"
- :data="tab.chart7.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="385"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('errorAnalysis.date')" sortable min-width="110px" align="center" prop="日期" />
- <el-table-column :label="$t('errorAnalysis.pen')" sortable min-width="110px" align="center" prop="fname" />
- <el-table-column :label="$t('errorAnalysis.slsj')" sortable min-width="110px" align="center" prop="撒料时间" />
- </el-table>
- </div>
- </div>
- </el-col>
- </el-row>
- </div>
- </div>
- </el-tab-pane>
- <el-tab-pane :label="$t('errorAnalysis.hltj')"name="second">
- <div class="search" ref="myHeightSecond">
- <el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" style="width: 250px;" :picker-options="pickerOptions3" />
- <!-- <el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime2" :clearable="false" style="width: 140px;margin-top: 5px;" type="date" :placeholder="$t('dailyExecutionPlan.xzrq')" > </el-date-picker> -->
- <el-button class="el-icon-arrow-left elIconArrowLeft" style="display:inline-block;margin-top: 5px;" :disabled="Beforedisabled2" @click="handleBefore2" />
- <el-button class="el-icon-arrow-right elIconArrowRight" style="display:inline-block;margin-top: 5px;" :disabled="Nextdisabled2" @click="handleNext2" />
- <el-select clearable filterable v-model="tab2.table.getdataListParm.parammaps.tmrtname" :placeholder="$t('errorAnalysis.tmrName')" class="filter-item" style="width: 120px;">
- <el-option v-for="(item,index) in tab2.TMRNameList" :key="index" :label="item.tmrloadname" :value="item.tmrloadname" />
- </el-select>
- <el-input v-model="tab2.table.getdataListParm.parammaps.projname" style="margin-top: 5px;width: 110px;" :placeholder="$t('errorAnalysis.projname')" class="filter-item" clearable />
- <el-select v-model="tab2.table.getdataListParm.parammaps.times" style="margin-top: 5px;width: 110px;" filterable :placeholder="$t('errorAnalysis.isTrainNumber')" class="filter-item" clearable>
- <el-option v-for="item in tab2.frequencyList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <el-input v-model="tab2.table.getdataListParm.parammaps.templetname" style="margin-top: 5px;width: 110px;" :placeholder="$t('errorAnalysis.feedName')" class="filter-item" clearable />
- <el-select v-model="tab2.table.getdataListParm.parammaps.buttontype" style="margin-top: 5px;width: 130px;" filterable :placeholder="$t('errorAnalysis.tzfs')" class="filter-item" clearable>
- <el-option v-for="item in tab2.jumpModeList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlwc1" :placeholder="$t('processAnalysis.hlwc')" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlwc2" :placeholder="$t('processAnalysis.hlwc')" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlzq1" :placeholder="$t('processAnalysis.hlzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlzq2" :placeholder="$t('processAnalysis.hlzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlzql1" :placeholder="$t('processAnalysis.hlzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlzql2" :placeholder="$t('processAnalysis.hlzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <el-select v-model="tab2.table.getdataListParm.parammaps.premix" filterable :placeholder="$t('errorAnalysis.sfyhjh')" class="filter-item" style="width: 120px;" clearable>
- <el-option v-for="item in tab2.premixList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <el-checkbox v-model="tab2.table.getdataListParm.parammaps.error" style="margin-right: 10px;">{{$t('processAnalysis.oName')}}</el-checkbox>
- <el-button class="successBorder" style="margin-top: 5px;" @click="form_search2">{{$t('common.query')}}</el-button>
- <el-button class="successBorder" style="margin-top: 5px;" @click="handleRefresh2">{{$t('common.reset')}}</el-button>
- <el-button style="float: right;margin-right: 10px;margin-bottom:10px;margin-top: 5px;" class="export" icon="el-icon-upload2" @click="handleExport2">{{$t('dashboard.Export')}}</el-button>
- </div>
- <div class="table">
- <u-table
- ref="plTable2"
- :key="tab2.table.tableKey"
- v-loading="tab2.table.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="tab2.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :height="myHeightSecond"
- empty-text="No Data"
- >
- <!-- <u-table-column >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- </u-table-column> -->
- <u-table-column :key="Math.random()" sortable :label="$t('errorAnalysis.date')" min-width="70px" align="center" prop="日期" />
- <u-table-column sortable :label="$t('errorAnalysis.tmrnames')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column sortable :label="$t('errorAnalysis.czNum')" min-width="70px" align="center" prop="sort" />
- <u-table-column sortable :label="$t('errorAnalysis.projname')" min-width="50px" align="center" prop="车次" />
- <u-table-column sortable :label="$t('errorAnalysis.isTrainNumber')" min-width="50px" align="center" prop="班次" />
- <u-table-column sortable :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="配方名称">
- <template slot-scope="{row}">
- <a @click="clickRecipeName2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.配方名称 }}</a>
- </template>
- </u-table-column>
- <u-table-column sortable :label="$t('errorAnalysis.Driver')" min-width="50px" align="center" prop="驾驶员" />
- <u-table-column sortable :label="$t('errorAnalysis.isFeed')" min-width="70px" align="center" prop="饲料">
- <template slot-scope="{row}">
- <a @click="clickFeed2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.饲料 }}</a>
- </template>
- </u-table-column>
- <u-table-column sortable :label="$t('errorAnalysis.llzl')" min-width="55px" align="center" prop="理论重量" />
- <u-table-column sortable :label="$t('errorAnalysis.acWeight')" min-width="55px" align="center" prop="实际重量" />
- <u-table-column sortable :label="$t('errorAnalysis.wcz')" min-width="45px" align="center" prop="误差值" />
- <u-table-column sortable :label="$t('errorAnalysis.zql')" min-width="45px" align="center" prop="准确率" />
- <u-table-column sortable :label="$t('errorAnalysis.planTime')" min-width="55px" align="center" prop="计划时间" />
- <u-table-column sortable :label="$t('errorAnalysis.startTime')" min-width="55px" align="center" prop="开始时间" />
- <u-table-column sortable :label="$t('errorAnalysis.endTime')" min-width="55px" align="center" prop="结束时间" />
- <u-table-column sortable :label="$t('errorAnalysis.jsTime')" min-width="55px" align="center" prop="搅拌时间" />
- <u-table-column sortable :label="$t('errorAnalysis.tzfs')" min-width="55px" align="center" prop="跳转方式" />
- <u-table-column sortable :label="$t('errorAnalysis.stWeight')" min-width="55px" align="center" prop="开始重量" />
- <u-table-column sortable :label="$t('errorAnalysis.edWeight')" min-width="55px" align="center" prop="结束重量" />
- <u-table-column sortable :label="$t('errorAnalysis.ccms')" min-width="55px" align="center" prop="remark" />
- <u-table-column sortable :label="$t('errorAnalysis.isOK')" min-width="70px" align="center" prop="standard" />
- <u-table-column sortable :label="$t('errorAnalysis.area')" min-width="70px" align="center" prop="barname" />
- </u-table>
- <span v-if="tab2.table.listLoading == false" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">{{$t('processAnalysis.total')}}{{ tab2.table.total }}{{$t('processAnalysis.tiao')}}</span>
- </div>
- </el-tab-pane>
- <el-tab-pane :label="$t('errorAnalysis.sltj')" name="third">
- <div class="search" ref="myHeightThird">
- <el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" style="width: 250px;" :picker-options="pickerOptions3" />
- <!-- <el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime2" :clearable="false" style="margin-top: 5px;width:140px;" type="date" :placeholder="$t('dailyExecutionPlan.xzrq')" > </el-date-picker> -->
- <el-button class="el-icon-arrow-left elIconArrowLeft" style="dispaly:inline-block;margin-top: 5px;" :disabled="Beforedisabled3" @click="handleBefore3" />
- <el-button class="el-icon-arrow-right elIconArrowRight" style="dispaly:inline-block;margin-top: 5px;" :disabled="Nextdisabled3" @click="handleNext3" />
- <el-select v-model="tab3.table.getdataListParm.parammaps.tmrtname" :placeholder="$t('errorAnalysis.tmrName')" class="filter-item" style="margin-top: 5px;width: 120px;" clearable filterable>
- <el-option v-for="(item,index) in tab3.TMRNameList" :key="index" :label="item.tmrloadname" :value="item.tmrloadname" />
- </el-select>
- <el-input v-model="tab3.table.getdataListParm.parammaps.projname" style="margin-top: 5px;width: 150px;" :placeholder="$t('errorAnalysis.projname')" class="filter-item" clearable />
- <el-select v-model="tab3.table.getdataListParm.parammaps.times" style="margin-top: 5px;width: 100px;" filterable :placeholder="$t('errorAnalysis.isTrainNumber')" class="filter-item" clearable>
- <el-option v-for="item in tab3.frequencyList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <el-input v-model="tab3.table.getdataListParm.parammaps.templetname" style="margin-top: 5px;width: 110px;" :placeholder="$t('errorAnalysis.feedName')" class="filter-item" clearable />
- <el-input v-model="tab3.table.getdataListParm.parammaps.fname" style="margin-top: 5px;width: 110px;" :placeholder="$t('errorAnalysis.isHouseName')" class="filter-item" clearable />
- <el-select v-model="tab3.table.getdataListParm.parammaps.buttontype" style="margin-top: 5px;width: 110px;" filterable :placeholder="$t('errorAnalysis.tzfs')"class="filter-item" clearable>
- <el-option v-for="item in tab3.jumpModeList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slwc1" :placeholder="$t('processAnalysis.slwc')" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slwc2" :placeholder="$t('processAnalysis.slwc')" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slzq1" :placeholder="$t('processAnalysis.slzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slzq2" :placeholder="$t('processAnalysis.slzq')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <div style="display: inline-block;" class="filter-item1">
- <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slzql1" :placeholder="$t('processAnalysis.slzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- <span>-</span>
- <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slzql2" :placeholder="$t('processAnalysis.slzql')" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
- </div>
- <el-checkbox v-model="tab3.table.getdataListParm.parammaps.error" style="margin-right: 10px;">{{$t('processAnalysis.oName')}}</el-checkbox>
- <el-button class="successBorder" style="margin-top: 5px;" @click="form_search3">{{$t('common.query')}}</el-button>
- <el-button class="successBorder" style="margin-top: 5px;" @click="handleRefresh3">{{$t('common.reset')}}</el-button>
- <el-button style="float: right;margin-right: 10px;margin-bottom:10px;margin-top: 5px;" class="export" icon="el-icon-upload2" @click="handleExport3">{{$t('dashboard.Export')}}</el-button>
- </div>
- <div class="table">
- <u-table
- ref="plTable3"
- :key="tab3.table.tableKey"
- v-loading="tab3.table.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="tab3.table.list"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :height="myHeightThird"
- empty-text="No Data"
- >
- <!-- <u-table-column >
- <template slot="empty">
- <span style="color: #969799;"></span>
- </template>
- </u-table-column> -->
- <u-table-column :key="Math.random()" sortable :label="$t('errorAnalysis.date')" min-width="70px" align="center" prop="日期" />
- <u-table-column sortable :label="$t('errorAnalysis.tmrnames')" min-width="70px" align="center" prop="TMR名称" />
- <u-table-column sortable :label="$t('errorAnalysis.czNum')" min-width="70px" align="center" prop="sort" />
- <u-table-column sortable :label="$t('errorAnalysis.projname')" min-width="45px" align="center" prop="车次" />
- <u-table-column sortable :label="$t('errorAnalysis.isTrainNumber')" min-width="45px" align="center" prop="班次" />
- <u-table-column sortable :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="配方名称">
- <template slot-scope="{row}">
- <a @click="clickRecipeName3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.配方名称 }}</a>
- </template>
- </u-table-column>
- <u-table-column sortable :label="$t('errorAnalysis.Driver')" min-width="50px" align="center" prop="驾驶员" />
- <u-table-column sortable :label="$t('errorAnalysis.pen')" min-width="70px" align="center" prop="栏舍">
- <template slot-scope="{row}">
- <a @click="clickFence3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.栏舍 }}</a>
- </template>
- </u-table-column>
- <u-table-column sortable :label="$t('errorAnalysis.llzl')" min-width="55px" align="center" prop="理论重量" />
- <u-table-column sortable :label="$t('errorAnalysis.acWeight')" min-width="55px" align="center" prop="实际重量" />
- <u-table-column sortable :label="$t('errorAnalysis.wcz')" min-width="45px" align="center" prop="误差值" />
- <u-table-column sortable :label="$t('errorAnalysis.zql')" min-width="45px" align="center" prop="准确率" />
- <u-table-column sortable :label="$t('errorAnalysis.startTime')" min-width="55px" align="center" prop="开始时间" />
- <u-table-column sortable :label="$t('errorAnalysis.endTime')" min-width="55px" align="center" prop="结束时间" />
- <u-table-column sortable :label="$t('errorAnalysis.tzfs')" min-width="55px" align="center" prop="跳转方式" />
- <u-table-column sortable :label="$t('errorAnalysis.stWeight')" min-width="55px" align="center" prop="开始重量" />
- <u-table-column sortable :label="$t('errorAnalysis.edWeight')" min-width="55px" align="center" prop="结束重量" />
- <u-table-column sortable :label="$t('errorAnalysis.isOK')" min-width="70px" align="center" prop="standard" />
- </u-table>
- <span v-if="tab3.table.listLoading == false" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">{{$t('processAnalysis.total')}}{{ tab3.table.total }}{{$t('processAnalysis.tiao')}}</span>
- </div>
- </el-tab-pane>
- </el-tabs>
- <!-- 导出 -->
- <el-dialog :title="textMap[exportList.dialogStatus]" :visible.sync="exportList.dialogFormVisible" :close-on-click-modal="false" width="30%">
- <div>
- <span>{{$t('feedingEfficiency.dcskff')}}</span>
- <el-date-picker v-model="exportList.inputDatetime" :clearable="false" style="width: 230px;" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" :picker-options="pickerOptions2" />
- </div>
- <div slot="footer" class="dialog-footer" style="margin-bottom: 10px;">
- <el-button class="cancelClose" @click="exportList.dialogFormVisible = false">{{$t('common.closed')}}</el-button>
- <el-button class="save" v-if="activeName=='second'" :disabled="isokDisable" @click="exportList2()">{{$t('errorAnalysis.confirm')}}</el-button>
- <el-button class="save" v-else-if="activeName=='third'" :disabled="isokDisable" @click="exportList3()">{{$t('errorAnalysis.confirm')}}</el-button>
- </div>
- </el-dialog>
- <!-- 查看 -->
- <See :show.sync="isShowDialog" :row-pid="rowPid" :start-time="startTime" :stop-time="stopTime" :optdevice="optdevice" :title-fname="titlefname" :method-name="methodName" :error="error" />
- <!-- 配方名称弹窗 -->
- <el-dialog :title="textMap[recipeNameTemp2.dialogStatus]" :visible.sync="recipeNameTemp2.dialogFormVisible" :close-on-click-modal="false" width="90%">
- <div class="recipeNameTemp2">
- <div class="search">
- <el-date-picker ref="inputDatetime" :clearable="false" v-model="recipeNameTemp2.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" />
- <el-button class="successBorder" @click="handleRecipeNameSearch2">{{$t('common.query')}}</el-button>
- </div>
- <div class="table">
- <el-table
- :key="recipeNameTemp2.tableKey"
- v-loading="recipeNameTemp2.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="recipeNameTemp2.list"
- border
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :max-height="450"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
- <el-table-column :label="$t('formulationEvaluation.xgsj')" width="130px" align="center" prop="createdate" />
- <el-table-column :label="$t('formulationEvaluation.xgyh')" width="130px" align="center" prop="empname" />
- <el-table-column :label="$t('errorAnalysis.feedName')" min-width="70px" align="center" prop="tname">
- <template slot-scope="{row}">
- <span v-if="row.tname !==undefined &&row.tname.indexOf('/') !== -1" style="color: red;">
- {{row.tname}}
- </span>
- <span v-else>{{row.tname}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.pfbm')" width="130px" align="center" prop="tcode" />
- <el-table-column :label="$t('formulationEvaluation.pfys')" min-width="70px" align="center">
- <template slot-scope="scope">
- <el-color-picker v-model="scope.row.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" :disabled="scope.row.NoEdit" />
- </template>
- </el-table-column>
- <el-table-column :label="$t('errorAnalysis.sxlb')" width="130px" align="center" prop="ccname">
- <template slot-scope="{row}">
- <span v-if="row.ccname !==undefined &&row.ccname.indexOf('/') !== -1" style="color: red;">
- {{row.ccname}}
- </span>
- <span v-else>{{row.ccname}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.pflx')" width="130px" align="center" prop="fttype">
- <template slot-scope="{row}">
- <span v-if="row.fttype !==undefined &&row.fttype.indexOf('/') !== -1" style="color: red;">
- {{row.fttype}}
- </span>
- <span v-else>{{row.fttype}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.ly')" width="130px" align="center" prop="source">
- <template slot-scope="{row}">
- <span v-if="row.source !==undefined &&row.source.indexOf('/') !== -1" style="color: red;">
- {{row.source}}
- </span>
- <span v-else>{{row.source}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.bbh')" width="130px" align="center" prop="version">
- <template slot-scope="{row}">
- <span v-if="row.version !== undefined && String(row.version).indexOf('/') !== -1" style="color: red;">
- {{row.version}}
- </span>
- <span v-else>{{row.version}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.remark')" width="130px" align="center" prop="remark">
- <template slot-scope="{row}">
- <span v-if="row.remark !==undefined &&row.remark.indexOf('/') !== -1" style="color: red;">
- {{row.remark}}
- </span>
- <span v-else>{{row.remark}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('message.msg332')" min-width="70px" align="center">
- <template slot-scope="{row}">
- <a @click="clickSeeFeed(row)" style="text-decoration: underline;color: #0000FF;">查看</a>
- </template>
- </el-table-column>
- </el-table>
- <pagination v-show="recipeNameTemp2.total>0" :total="recipeNameTemp2.total" :page.sync="recipeNameTemp2.getdataListParm.offset" :limit.sync="recipeNameTemp2.getdataListParm.pagecount" @pagination="getRecipeNameList2()" />
- </div>
- </div>
- <div slot="footer" class="dialog-footer" style="bottom: 10px;">
- <el-button class="cancelClose1" @click="recipeNameTemp2.dialogFormVisible = false; ">{{$t('common.closed')}}</el-button>
- </div>
- </el-dialog>
- <!-- 撒料统计-配方名称 -->
- <el-dialog :title="textMap[recipeNameTemp3.dialogStatus]" :visible.sync="recipeNameTemp3.dialogFormVisible" :close-on-click-modal="false" width="90%">
- <div class="recipeNameTemp3">
- <!-- <div class="search">
- <el-date-picker ref="inputDatetime" :clearable="false" v-model="recipeNameTemp3.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" />
- <el-button class="successBorder" @click="handleRecipeNameSearch3">{{$t('common.query')}}</el-button>
- </div> -->
- <div class="table">
- <el-table
- :key="recipeNameTemp3.tableKey"
- v-loading="recipeNameTemp3.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="recipeNameTemp3.list"
- border
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :max-height="450"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
- <el-table-column :label="$t('formulationEvaluation.slz')" width="130px" align="center" prop="feedgroup" />
- <el-table-column :label="$t('InventoryManagement.silc')" min-width="70px" align="center" prop="fname">
- <template slot-scope="{row}">
- <span v-if="row.fweightstatus == 1" style="color: red;"> {{row.fname}} </span>
- <span v-else>{{row.fname}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('message.msg64')" width="130px" align="center" prop="fweight">
- <template slot-scope="{row}">
- <span v-if="row.fweight !==undefined &&row.fweight.indexOf('/') !== -1" style="color: red;">
- {{row.fweight}}
- </span>
- <span v-else>{{row.fweight}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.jbys')" width="130px" align="center" prop="autosecond" />
- </el-table>
- <pagination v-show="recipeNameTemp3.total>0" :total="recipeNameTemp3.total" :page.sync="recipeNameTemp3.getdataListParm.offset" :limit.sync="recipeNameTemp3.getdataListParm.pagecount" @pagination="getRecipeNameList3()" />
- </div>
- </div>
- <div slot="footer" class="dialog-footer" style="bottom: 10px;">
- <el-button class="cancelClose1" @click="recipeNameTemp3.dialogFormVisible = false; ">{{$t('common.closed')}}</el-button>
- </div>
- </el-dialog>
- <!-- 饲料 -->
- <el-dialog :title="textMap[feedTemp.dialogStatus]" :visible.sync="feedTemp.dialogFormVisible" :close-on-click-modal="false" width="98%">
- <div class="feedTemp">
- <div class="search">
- <el-date-picker ref="inputDatetime" v-model="feedTemp.getdataListParm.parammaps.inputDatetime" :clearable="false" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" />
- <el-button class="successBorder" @click="handleFeedSearch">{{$t('common.query')}}</el-button>
- </div>
- <div class="table">
- <el-table
- :key="feedTemp.tableKey"
- v-loading="feedTemp.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="feedTemp.list"
- border
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px">
- <template slot-scope="scope">
- <span>{{ scope.$index + (feedTemp.pageNum-1) * feedTemp.pageSize + 1 }}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('formulationEvaluation.xgsj')" min-width="100px" align="center" prop="updateTime" />
- <el-table-column :label="$t('formulationEvaluation.xgyh')" width="130px" align="center" prop="empname" />
- <el-table-column :label="$t('errorAnalysis.slzls')" min-width="100px" align="center">
- <template slot-scope="{row}">
- <span v-if="row.weight !==undefined &&row.weight.indexOf('/') !== -1" style="color: red;">
- {{row.weight}}
- </span>
- <span v-else>{{row.weight}}</span>
- </template>
- </el-table-column>
- </el-table>
- <pagination v-show="feedTemp.total>0" :total="feedTemp.total" :page.sync="feedTemp.getdataListParm.offset" :limit.sync="feedTemp.getdataListParm.pagecount" @pagination="getFeedList()" />
- </div>
- </div>
- <div slot="footer" class="dialog-footer" style="bottom: 10px;">
- <el-button class="cancelClose1" @click="feedTemp.dialogFormVisible = false; ">{{$t('common.closed')}}</el-button>
- </div>
- </el-dialog>
- <!-- 栏舍 -->
- <el-dialog :title="textMap[fenceTemp.dialogStatus]" :visible.sync="fenceTemp.dialogFormVisible" :close-on-click-modal="false" width="90%">
- <div class="fenceTemp">
- <el-tabs v-model="fenceTemp.activeName" @tab-click="handleFenceTabClick">
- <el-tab-pane :label="$t('dhedFormula.bczl')" name="first">
- <div class="search">
- <el-date-picker ref="inputDatetime" v-model="fenceTemp.tab1.getdataListParm.parammaps.inputDatetime" :clearable="false" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" />
- <el-button class="successBorder" @click="handleFenceSearch">{{$t('common.query')}}</el-button>
- </div>
- <div class="table">
- <u-table
- :key="fenceTemp.tab1.tableKey"
- v-loading="fenceTemp.tab1.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="fenceTemp.tab1.list"
- border
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- :span-method="objectSpanMethod1"
- >
- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template>
- <u-table-column :label="$t('formulationEvaluation.xh')" width="50px" align="center" type="index" />
- <u-table-column :label="$t('formulationEvaluation.xgsj')" width="100px" align="center" prop="createdate" />
- <u-table-column :label="$t('formulationEvaluation.xgyh')" width="130px" align="center" prop="empname" />
- <u-table-column :label="$t('errorAnalysis.isTrainNumber')" min-width="100px" align="center" prop="times" />
- <u-table-column :label="$t('feedingEfficiency.sjnts')" min-width="100px" align="center" prop="ccount">
- <template slot-scope="{row}">
- <span v-if="row.ccountstatus == 1" style="color: red;">{{row.ccount}}</span>
- <span v-else >{{row.ccount}}</span>
- </template>
- </u-table-column>
- <u-table-column :label="$t('errorAnalysis.xs')" min-width="100px" align="center" prop="ratio">
- <template slot-scope="{row}">
- <span v-if="row.ratiostatus == 1" style="color: red;">{{row.ratio}}</span>
- <span v-else >{{row.ratio}}</span>
- </template>
- </u-table-column>
- <u-table-column :label="$t('dhedFormula.xsts')" min-width="100px" align="center" prop="ccountratio">
- <template slot-scope="{row}">
- <span v-if="row.ccountratiostatus == 1" style="color: red;">{{row.ccountratio}}</span>
- <span v-else >{{row.ccountratio}}</span>
- </template>
- </u-table-column>
- <u-table-column :label="$t('feedingEfficiency.pfmb')" min-width="70px" align="center" prop="ftname">
- <template slot-scope="{row}">
- <a v-if="row.ftnamestatus == 1" @click="clickRecipeTemplate3(row)" style="text-decoration: underline;color: red;">{{ row.ftname }}</a>
- <a v-else @click="clickRecipeTemplate3(row)" style="text-decoration: underline;">{{ row.ftname }}</a>
- </template>
- </u-table-column>
- <u-table-column :label="$t('errorAnalysis.bl')" min-width="100px" align="center">
- <template slot-scope="{row}">
- <span v-if="row.tratiostatus == 1" style="color: red;">{{row.tratio}}</span>
- <span v-else >{{row.tratio}}</span>
- </template>
- </u-table-column>
- <u-table-column :label="$t('formulationEvaluation.reset1')" min-width="100px" align="center" prop="weight">
- <template slot-scope="{row}">
- <span v-if="row.weightstatus == 1" style="color: red;">{{row.weight}}</span>
- <span v-else>{{row.weight}}</span>
- </template>
- </u-table-column>
- </u-table>
- </div>
- </el-tab-pane>
- <el-tab-pane :label="$t('errorAnalysis.cczl')" name="second">
- <div class="search">
- <el-date-picker ref="inputDatetime" :clearable="false" v-model="fenceTemp.tab2.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" />
- <el-button class="successBorder" @click="handleFenceSearch">{{$t('common.query')}}</el-button>
- </div>
- <div class="table">
- <u-table
- :key="fenceTemp.tab2.tableKey"
- v-loading="fenceTemp.tab2.listLoading"
- :element-loading-text="$t('common.tableMsg')"
- :data="fenceTemp.tab2.list"
- border
- highlight-current-row
- style="width: 100%;"
- :row-style="rowStyle"
- class="elTable table-fixed"
- :span-method="objectSpanMethod2"
- empty-text="No Data"
- >
- <u-table-column :label="$t('formulationEvaluation.xh')" width="50px" :key="Math.random()" align="center" type="index" />
- <u-table-column :label="$t('formulationEvaluation.xgsj')" width="100px" align="center" prop="createdate" />
- <u-table-column :label="$t('formulationEvaluation.xgyh')" width="130px" align="center" prop="empname" />
- <u-table-column :label="$t('errorAnalysis.isTrainNumber')" width="100px" align="center" prop="times" />
- <!-- <u-table-column v-for="(item, index) in fenceTemp.tab2.tableLabel" :key="index" align="center" :min-width="item.width" :prop="item.prop" :label="item.label"> -->
- <u-table-column v-for="(item, index) in fenceTemp.tab2.tableLabel" :key="index" align="center" :min-width="item.width" :prop="item.prop" :label="item.label">
- <template slot-scope="scope">
- <span v-if="scope.row[item.prop] !==undefined &&scope.row[item.prop].indexOf('/') !== -1" style="color: red;">
- {{scope.row[item.prop]}}
- </span>
- <span v-else>{{scope.row[item.prop]}}</span>
- </template>
- </u-table-column>
- </u-table>
- </div>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div slot="footer" class="dialog-footer" style="bottom: 10px;">
- <el-button class="cancelClose1" @click="fenceTemp.dialogFormVisible = false; ">{{$t('common.closed')}}</el-button>
- </div>
- </el-dialog>
- <!-- this.$t('errorAnalysis.pfmbxgjl') -->
- <el-dialog :title="textMap[modificationRecordTemp.dialogStatus]" :visible.sync="modificationRecordTemp.dialogFormVisible" :close-on-click-modal="false" width="90%">
- <div class="modificationRecord">
- <h3 style="flex: 1;">修改前</h3>
- <div class="top">
- <div class="left">
- <div><b>配方名称:</b>{{modificationRecordTemp.list1.tname}}</div>
- <div><b>配方编码:</b>{{modificationRecordTemp.list1.tcode}}</div>
- <div><b>配方颜色:</b><el-color-picker v-model="modificationRecordTemp.list1.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" disabled /></div>
- <div><b>牲畜类别:</b>{{modificationRecordTemp.list1.ccname}}</div>
- <div><b>配方类型:</b>{{modificationRecordTemp.list1.fttype}}</div>
- <div><b>{{$t('formulationEvaluation.ly')}}:</b>{{modificationRecordTemp.list1.source}}</div>
- <div><b>版本号:</b>{{modificationRecordTemp.list1.version}}</div>
- <div><b>备注:</b>{{modificationRecordTemp.list1.remark}}</div>
- </div>
- <div class="right">
- <el-table
- :key="modificationRecordTemp.tableKey1"
- v-loading="modificationRecordTemp.listLoading1"
- :element-loading-text="$t('common.tableMsg')"
- :data="modificationRecordTemp.list1.fit"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="280"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- show-summary
- :summary-method="getSummaries1"
- empty-text="No Data"
- >
- <el-table-column :label="$t('formulationEvaluation.slz')" min-width="90px" align="center" prop="feedgroup" />
- <el-table-column :label="$t('InventoryManagement.silc')" min-width="90px" align="center" prop="fname" />
- <el-table-column :label="$t('message.msg64')" min-width="100px" align="center" prop="fweight" />
- <el-table-column :label="$t('formulationEvaluation.jbys')" min-width="100px" align="center">
- <template slot-scope="{row}">
- <span>{{ row.autosecond }}</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <hr/>
- <h3 style="color: red;">修改后</h3>
- <div class="bottom">
- <div class="left">
- <div><b>配方名称:</b>{{modificationRecordTemp.list2.tname}}</div>
- <div><b>配方编码:</b>{{modificationRecordTemp.list2.tcode}}</div>
- <div><b>配方颜色:</b><el-color-picker v-model="modificationRecordTemp.list2.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" disabled /></div>
- <div><b>牲畜类别:</b>{{modificationRecordTemp.list2.ccname}}</div>
- <div><b>配方类型:</b>{{modificationRecordTemp.list2.fttype}}</div>
- <div><b>{{$t('formulationEvaluation.ly')}}:</b>{{modificationRecordTemp.list2.source}}</div>
- <div><b>版本号:</b>{{modificationRecordTemp.list2.version}}</div>
- <div><b>备注:</b>{{modificationRecordTemp.list2.remark}}</div>
- </div>
- <div class="right">
- <el-table
- :key="modificationRecordTemp.tableKey2"
- v-loading="modificationRecordTemp.listLoading2"
- :element-loading-text="$t('common.tableMsg')"
- :data="modificationRecordTemp.list2.fit"
- border
- fit
- highlight-current-row
- style="width: 100%;"
- height="280"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- show-summary
- empty-text="No Data"
- :summary-method="getSummaries2"
- >
- <!-- <template slot="empty">
- <span style="color: #969799;">No Data</span>
- </template> -->
- <el-table-column :label="$t('formulationEvaluation.slz')" min-width="90px" align="center" prop="feedgroup" />
- <el-table-column :label="$t('InventoryManagement.silc')" min-width="90px" align="center" prop="fname" />
- <el-table-column :label="$t('message.msg64')" min-width="100px" align="center" prop="fweight" />
- <el-table-column :label="$t('formulationEvaluation.jbys')" min-width="100px" align="center">
- <template slot-scope="{row}">
- <span>{{ row.autosecond }}</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <div slot="footer" class="dialog-footer" style="bottom: 10px;">
- <el-button class="cancelClose1" @click="modificationRecordTemp.dialogFormVisible = false; ">{{$t('common.closed')}}</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import echarts from 'echarts'
- import See from './see.vue'
- require('echarts/theme/macarons')
- import { GetDataByName, GetReportform, whichWeek, postJson } from '@/api/common'
- import Cookies from 'js-cookie'
- import {
- parseTime,
- json2excel,
- handleTableSpan,
- handleObjectSpanMethod
- } from '@/utils/index.js'
- import Pagination from '@/components/Pagination'
- import { MessageBox } from 'element-ui'
- import mySelect from '@/components/mySelect'
- export default {
- name: 'PastureErrorAnalysis',
- components: { Pagination, mySelect, See },
- data() {
- return {
- error: '',
- optdevice: '',
- stopTime: '',
- startTime: '',
- Eweight: '',
- predefineColors: [
- '#E57373',
- '#F06292',
- '#BA68C8',
- '#9575CD',
- '#7986CB',
- '#64B5F6',
- '#4FC3F7',
- '#4DD0E1',
- '#4DB6AC',
- '#81C784',
- '#AED581',
- '#DCE775',
- '#FFF176',
- '#FFD54F',
- '#FFB74D',
- '#FF8A65',
- '#A1887F',
- '#E0E0E0',
- '#90A4AE'
- ],
- pickerMinMonth: '',
- pickerOptionsMonth: {
- onPick: ({ maxDate, minDate }) => {
- this.pickerMinMonth = minDate.getTime()
- if (maxDate) {
- this.pickerMinMonth = ''
- }
- },
- // 限制不能选择今天之后的日期
- disabledDate: (time) => {
- if (this.pickerMinMonth !== '') {
- const one = 24 * 3600 * 1000 * 365 * 5
- const minTime = this.pickerMinMonth - 0
- let maxTime = this.pickerMinMonth + one
- if (maxTime > new Date()) {
- maxTime = new Date()
- }
- return time.getTime() < minTime || time.getTime() > maxTime
- }
- return time.getTime() >= Date.now()
- }
- },
- pickerMinDate: '',
- pickerOptionsDate: {
- showWeekNumber: false,
- onPick: ({ maxDate, minDate }) => {
- this.pickerMinDate = minDate.getTime()
- if (maxDate) {
- this.pickerMinDate = ''
- }
- },
- // 限制不能选择今天之后的日期
- disabledDate: (time) => {
- if (this.pickerMinDate !== '') {
- const one = 31 * 24 * 3600 * 1000
- const minTime = this.pickerMinDate - one
- let maxTime = this.pickerMinDate + one
- if (maxTime > new Date()) {
- maxTime = new Date()
- }
- return time.getTime() < minTime || time.getTime() > maxTime
- }
- return time.getTime() > Date.now()
- }
- },
- Beforedisabled: false,
- Nextdisabled: false,
- Beforedisabled2: false,
- Nextdisabled2: false,
- Beforedisabled3: false,
- Nextdisabled3: false,
- pickerOptions: {
- onPick: ({ maxDate, minDate }) => {
- this.pickerMinDate = minDate.getTime()
- if (maxDate) {
- this.pickerMinDate = ''
- }
- },
- // 限制不能选择今天之后的日期
- disabledDate: (time) => {
- if (this.pickerMinDate !== '') {
- const one = 31 * 24 * 3600 * 1000
- const minTime = this.pickerMinDate - one
- let maxTime = this.pickerMinDate + one
- if (maxTime > new Date()) {
- maxTime = new Date()
- }
- return time.getTime() < minTime || time.getTime() > maxTime
- }
- return time.getTime() > Date.now()
- }
- },
- pickerOptions2: {
- onPick: ({ maxDate, minDate }) => {
- this.pickerMinDate = minDate.getTime()
- if (maxDate) {
- this.pickerMinDate = ''
- }
- },
- // 限制不能选择今天之后的日期
- disabledDate: (time) => {
- if (this.pickerMinDate !== '') {
- const one = 100 * 24 * 3600 * 1000
- const minTime = this.pickerMinDate - one
- let maxTime = this.pickerMinDate + one
- if (maxTime > new Date()) {
- maxTime = new Date()
- }
- return time.getTime() < minTime || time.getTime() > maxTime
- }
- return time.getTime() > Date.now()
- }
- },
- pickerOptions3: {
- onPick: ({ maxDate, minDate }) => {
- this.pickerMinDate = minDate.getTime()
- if (maxDate) {
- this.pickerMinDate = ''
- }
- },
- // 限制不能选择今天之后的日期
- disabledDate: (time) => {
- if (this.pickerMinDate !== '') {
- const one = 365 * 24 * 3600 * 1000
- const minTime = this.pickerMinDate - one
- let maxTime = this.pickerMinDate + one
- if (maxTime > new Date()) {
- maxTime = new Date()
- }
- return time.getTime() < minTime || time.getTime() > maxTime
- }
- return time.getTime() > Date.now()
- }
- },
- // 班次
- maxTime: {
- getMaxTimesParm: {
- name: 'getSysoptEnable',
- page: 1,
- offset: 1,
- pagecount: 1,
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- inforname: 'times'
- }
- }
- },
- activeName: 'first',
- tab: {
- TMRNameList: [],
- radio: '7',
- isDriver: false,
- isFormulaName: false, // 配方名称
- isHouseName: true, // 栏舍名称
- isLivestockType: false, // 牲畜类别
- isTrainNumber: false, // 车次
- isTMRName: false, // TMR名称
- isFeed: false, //饲料
- checked: false, // 按日期统计
- chartDate: [],
- selectWeek: [],
- chartMonth: [],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- yearList: [],
- weekList: [],
- table: {
- getdataListParm: {
- name: 'getAccuracyHFT',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- inputDate: null,
- fname: '',
- sort: '',
- times: ''
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- temp: {}
- },
- table2: {
- getdataListParm: {
- name: 'getAccuracySFT',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- fname: '',
- sort: '',
- times: ''
- }
- },
- tableKey: 2,
- list: [],
- total: 0,
- listLoading: true,
- temp: {}
- },
- chartDate: [],
- // 配方准确率
- chart1: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllFT',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- statisticsList: [],
- chart1Data3: [],
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- },
- // 计划统计
- chart2: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllJH',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- },
- // 牛群准确率
- chart3: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllNQ',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- statisticsList: [],
- chart1Data3: [],
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- },
- // 车辆准确率(重量)
- chart4: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllCC',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- statisticsList: [],
- chart4Data3: [],
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- },
- // 混料统计
- chart5: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllHL',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- },
- // 混料计划取消次数
- chart6: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllQX',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- },
- // 栏舍撒料时间统计
- chart7: {
- chartLine: null,
- chartLine_data: {},
- getdataListParm: {
- name: 'getAccuracyAllLS',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- specificDate: '1',
- selectYear: parseTime(new Date(), '{y}'),
- selectWeek: '',
- chartMonth: '',
- yearList: [],
- weekList: [],
- status: 0
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- statisticsList: [],
- chart7Data3: [],
- formulaList: [],
- isChart: true,
- isTable: false,
- table: {
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: false
- }
- }
- },
- tab2: {
- TMRNameList: [],
- premixList: [
- { id: 0, name: this.$t('errorAnalysis.yh') },
- { id: 1, name: this.$t('errorAnalysis.fyh') }
- ],
- table: {
- getdataListParm: {
- name: 'getStatisticsHL',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- inputDatetime2: new Date(),
- tmrtname: '',
- projname: '',
- times: '',
- buttontype: '',
- templetname: '',
- isuse: '',
- premix: ''
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- temp: {}
- },
- frequencyList: [],
- jumpModeList: [
- { id: '0', name: this.$t('errorAnalysis.sdtz') },
- { id: '1', name: this.$t('errorAnalysis.zdtz') }
- ],
- isuseList: [
- { id: '0', name: this.$t('errorAnalysis.wwc') },
- { id: '2', name: this.$t('errorAnalysis.bfwc') },
- { id: '1', name: this.$t('errorAnalysis.qbwc') }
- ]
- },
- tab3: {
- TMRNameList: [],
- table: {
- getdataListParm: {
- name: 'getStatisticsSL',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
- inputDatetime: [new Date(), new Date()],
- inputDatetime2: new Date(),
- tmrtname: '',
- projname: '',
- times: '',
- templetname: '',
- fname: '',
- buttontype: '',
- isuse: ''
- }
- },
- tableKey: 1,
- list: [],
- total: 0,
- listLoading: true,
- temp: {}
- },
- frequencyList: [],
- jumpModeList: [
- { id: '0', name: this.$t('errorAnalysis.sdtz') },
- { id: '1', name: this.$t('errorAnalysis.zdtz') }
- ],
- isuseList: [
- { id: '0', name: this.$t('errorAnalysis.wwc') },
- { id: '2', name: this.$t('errorAnalysis.bfwc') },
- { id: '1', name: this.$t('errorAnalysis.qbwc') }
- ]
- },
- titlefname: '',
- methodName: '',
- rowPid: '',
- optdevice: '',
- startTime: '',
- stopTime: '',
- error: '',
- isShowDialog: false,
- statisticalTypeList: this.$t('errorAnalysis.statisticalTypeList'),
- rowStyle: { maxHeight: 30 + 'px', height: 30 + 'px' },
- cellStyle: { padding: 0 + 'px' },
- exportList: {
- dialogFormVisible: false,
- inputDatetime: [new Date(), new Date()]
- },
- textMap: {
- exportList: this.$t('errorAnalysis.export'),
- recipeNameTxt: this.$t('errorAnalysis.pfxgjl'),
- feedTxt: this.$t('errorAnalysis.isFeed'),
- fenceTxt: this.$t('errorAnalysis.pen'),
- modificationRecord: this.$t('errorAnalysis.pfmbxgjl')
- },
- isokDisable: false,
- // search
- myHeight1: document.documentElement.clientHeight - 85 - 80,
- myHeight2: document.documentElement.clientHeight - 85 - 150,
- myHeightSecond: '',
- myHeightThird: '',
- recipeNameTemp2: {
- dialogStatus: '',
- dialogFormVisible: false,
- getdataListParm: {
- name: 'getFitHistory1',
- name1: 'getFitHistory2',
- page: 1,
- offset: 1,
- pagecount: 10,
- returntype: 'Map',
- parammaps: { inputDatetime: [], pastureid: '', ftid: '' }
- },
- tableKey: 0,
- total: 0,
- listLoading: true,
- list: []
- },
- recipeNameTemp3: {
- dialogStatus: '',
- dialogFormVisible: false,
- getdataListParm: {
- name: 'getFitHistory1',
- name1: 'getFitHistory2',
- page: 1,
- offset: 1,
- pagecount: 10,
- returntype: 'Map',
- parammaps: { inputDatetime: [], pastureid: '', fitid: '' }
- },
- tableKey: 0,
- total: 0,
- listLoading: true,
- list: []
- },
- feedTemp: {
- dialogStatus: '',
- dialogFormVisible: false,
- getdataListParm: {
- name: 'getFitHistory1',
- name1: 'getFitHistory2',
- page: 1,
- offset: 1,
- pagecount: 10,
- returntype: 'Map',
- parammaps: { inputDatetime: [], pastureid: '', fitid: '' }
- },
- tableKey: 0,
- total: 0,
- listLoading: true,
- list: []
- },
- fenceTemp: {
- dialogStatus: '',
- dialogFormVisible: false,
- spanObj1: {},
- spanObj2: {},
- mergekeys1: ['createdate'],
- mergekeys2: ['createdate'],
- tab1: {
- getdataListParm: {
- name: 'getPlanModifyFPlist',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: { inputDatetime: [], pastureid: '', fitid: '' }
- },
- tableKey: 0,
- total: 0,
- listLoading: true,
- list: []
- },
- tab2: {
- getdataListParm: {
- name: 'getPlanModifyFPlist',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: { inputDatetime: [], pastureid: '', fitid: '' }
- },
- tableKey: 0,
- total: 0,
- listLoading: true,
- list: []
- },
- activeName: 'first'
- },
- modificationRecordTemp: {
- dialogStatus: '',
- dialogFormVisible: false,
- tableKey1: 0,
- total1: 0,
- listLoading1: false,
- list1: [],
- tableKey2: 0,
- total2: 0,
- listLoading2: false,
- list2: [],
- temp1: {},
- temp2: {},
- lastdate: '',
- currentdate: ''
- }
- }
- },
- created() {
- this.getTimeFn()
- this.getAllYear()
- this.getIsDisplay()
- this.getTabList()
- this.getTabList2()
- this.getformulaList()
- // 暂时注释
- // this.getChart1()
- // this.getChart2()
- // this.getChart3()
- // this.getChart4()
- // this.getChart5()
- // this.getChart6()
- },
- mounted() {},
- methods: {
- // tab.chart7.formulaList
- getformulaList() {
- let url = 'authdata/GetDataByName'
- let data = {
- name: 'getFeedTempletName',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: { pastureid: Cookies.get('pastureid') }
- }
- postJson(url, data).then((response) => {
- if (response.data.list !== null) {
- this.tab.chart7.formulaList = response.data.list
- } else {
- this.tab.chart7.formulaList = []
- }
- })
- },
- getAllYear() {
- var myDate = new Date()
- var thisYear = myDate.getFullYear() // 获取当年年份
- var Section = thisYear - 2001 // 声明一个变量 获得当前年份至想获取年份差 eg.2008
- this.tab.yearList = [] // 声明一个空数组 把遍历出的年份添加到数组里
- for (var i = 0; i <= Section; i++) {
- this.tab.yearList.push(thisYear--)
- }
- console.log(this.tab.yearList)
- },
- changeAllYear() {
- console.log('this.selectYear==>', this.tab.selectYear)
- this.tab.weekList = []
- this.tab.selectWeek = []
- var myWeekList = whichWeek(this.tab.selectYear)
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.weekList.push(obj)
- }
- }
- },
- changeAllSpecificDate() {
- var start = ''
- var end = ''
- if (this.tab.specificDate == '2') {
- this.tab.selectYear = parseTime(new Date(), '{y}')
- this.changeAllYear()
- } else if (this.tab.specificDate == '3') {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chartMonth = []
- this.tab.chartMonth.push(start, end)
- }
- },
- handleAllDate() {
- console.log('点击了确认时间')
- MessageBox.confirm(this.$t('errorAnalysis.msg1'), {
- confirmButtonText: this.$t('common.confirm'),
- cancelButtonText: this.$t('common.cancel'),
- type: 'warning'
- }).then(() => {
- var startDate = ''
- var endDate = ''
- var status = ''
- if (this.tab.specificDate == '1') {
- startDate = parseTime(this.tab.chartDate[0], '{y}-{m}-{d}')
- endDate = parseTime(this.tab.chartDate[1], '{y}-{m}-{d}')
- this.tab.chart1.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- this.tab.chart2.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- this.tab.chart3.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- this.tab.chart4.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- this.tab.chart5.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- this.tab.chart6.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- this.tab.chart7.getdataListParm.parammaps.inputDatetime = [
- startDate,
- endDate
- ]
- status = 0
- console.log('开始日时==>', startDate)
- console.log('结束日时==>', endDate)
- } else if (this.tab.specificDate == '2') {
- if (this.tab.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.selectWeek !== null) {
- if (this.tab.selectWeek.length !== 2) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.selectYear +
- '-' +
- whichWeek(this.tab.selectYear)[this.tab.selectWeek[0]].month +
- '-' +
- whichWeek(this.tab.selectYear)[this.tab.selectWeek[0]].date
- endDate =
- this.tab.selectYear +
- '-' +
- whichWeek(this.tab.selectYear)[this.tab.selectWeek[1]].last.month +
- '-' +
- whichWeek(this.tab.selectYear)[this.tab.selectWeek[1]].last.date
- status = 1
- this.tab.chart1.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart1.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart1.getdataListParm.parammaps.weekList = this.tab.weekList
- this.tab.chart2.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart2.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart2.getdataListParm.parammaps.weekList = this.tab.weekList
- this.tab.chart3.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart3.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart3.getdataListParm.parammaps.weekList = this.tab.weekList
- this.tab.chart4.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart4.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart4.getdataListParm.parammaps.weekList = this.tab.weekList
- this.tab.chart5.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart5.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart5.getdataListParm.parammaps.weekList = this.tab.weekList
- this.tab.chart6.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart6.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart6.getdataListParm.parammaps.weekList = this.tab.weekList
- this.tab.chart7.getdataListParm.parammaps.selectYear =
- this.tab.selectYear
- this.tab.chart7.getdataListParm.parammaps.selectWeek =
- this.tab.selectWeek
- this.tab.chart7.getdataListParm.parammaps.weekList = this.tab.weekList
- console.log('开始周时间==>', startDate)
- console.log('结束周时间==>', endDate)
- } else if (this.tab.specificDate == '3') {
- if (this.tab.chartMonth !== null) {
- if (this.tab.chartMonth.length > 0) {
- startDate = this.tab.chartMonth[0]
- var dataArr = this.tab.chartMonth[1].substring(0, 7).split('-')
- let temp = new Date(dataArr[0], dataArr[1], 0)
- let mm = temp.getDate() //这里mm就是天数啦
- endDate = this.tab.chartMonth[1].substring(0, 8) + mm
- status = 2
- this.tab.chart1.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- this.tab.chart2.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- this.tab.chart3.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- this.tab.chart4.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- this.tab.chart5.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- this.tab.chart6.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- this.tab.chart7.getdataListParm.parammaps.chartMonth = [
- startDate,
- endDate
- ]
- console.log('开始月时间==>', startDate)
- console.log('结束月时间==>', endDate)
- } else {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg4'),
- duration: 2000
- })
- }
- }
- }
- this.tab.chart1.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.tab.chart1.getdataListParm.parammaps.startTime = startDate
- this.tab.chart1.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart1.getdataListParm.parammaps.status = status
- this.tab.chart2.getdataListParm.parammaps.startTime = startDate
- this.tab.chart2.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart2.getdataListParm.parammaps.status = status
- this.tab.chart2.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.tab.chart3.getdataListParm.parammaps.startTime = startDate
- this.tab.chart3.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart3.getdataListParm.parammaps.status = status
- this.tab.chart3.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.tab.chart4.getdataListParm.parammaps.startTime = startDate
- this.tab.chart4.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart4.getdataListParm.parammaps.status = status
- this.tab.chart4.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.tab.chart5.getdataListParm.parammaps.startTime = startDate
- this.tab.chart5.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart5.getdataListParm.parammaps.status = status
- this.tab.chart5.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.tab.chart6.getdataListParm.parammaps.startTime = startDate
- this.tab.chart6.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart6.getdataListParm.parammaps.status = status
- this.tab.chart6.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.tab.chart7.getdataListParm.parammaps.startTime = startDate
- this.tab.chart7.getdataListParm.parammaps.stopTime = endDate
- this.tab.chart7.getdataListParm.parammaps.status = status
- this.tab.chart7.getdataListParm.parammaps.specificDate =
- this.tab.specificDate
- this.getChart1()
- this.getChart2()
- this.getChart3()
- this.getChart4()
- this.getChart5()
- this.getChart6()
- this.getChart7()
- })
- },
- changeChartSpecificDate(item) {
- var start = ''
- var end = ''
- if (item == 'chart1') {
- if (this.tab.chart1.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart1.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart1.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart1.getdataListParm.parammaps.weekList = []
- this.tab.chart1.getdataListParm.parammaps.chartMonth = []
- this.tab.chart1.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- } else if (item == 'chart2') {
- if (this.tab.chart2.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart2.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart2.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart2.getdataListParm.parammaps.weekList = []
- this.tab.chart2.getdataListParm.parammaps.chartMonth = []
- this.tab.chart2.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- } else if (item == 'chart3') {
- if (this.tab.chart3.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart3.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart3.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart3.getdataListParm.parammaps.weekList = []
- this.tab.chart3.getdataListParm.parammaps.chartMonth = []
- this.tab.chart3.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- } else if (item == 'chart4') {
- if (this.tab.chart4.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart4.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart4.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart4.getdataListParm.parammaps.weekList = []
- this.tab.chart4.getdataListParm.parammaps.chartMonth = []
- this.tab.chart4.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- } else if (item == 'chart5') {
- if (this.tab.chart5.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart5.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart5.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart5.getdataListParm.parammaps.weekList = []
- this.tab.chart5.getdataListParm.parammaps.chartMonth = []
- this.tab.chart5.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- } else if (item == 'chart6') {
- if (this.tab.chart6.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart6.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart6.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart6.getdataListParm.parammaps.weekList = []
- this.tab.chart6.getdataListParm.parammaps.chartMonth = []
- this.tab.chart6.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- } else if (item == 'chart7') {
- if (this.tab.chart7.getdataListParm.parammaps.specificDate == '2') {
- this.tab.chart7.getdataListParm.parammaps.selectYear = parseTime(
- new Date(),
- '{y}'
- )
- this.changeChartYear(item)
- } else if (
- this.tab.chart7.getdataListParm.parammaps.specificDate == '3'
- ) {
- start =
- parseTime(
- new Date().setTime(
- new Date().getTime() - 3600 * 1000 * 24 * 31 * 12
- ),
- '{y}-{m}'
- ) + '-01'
- end = parseTime(new Date(), '{y}-{m}-{d}')
- this.tab.chart7.getdataListParm.parammaps.weekList = []
- this.tab.chart7.getdataListParm.parammaps.chartMonth = []
- this.tab.chart7.getdataListParm.parammaps.chartMonth.push(start, end)
- }
- }
- },
- changeChartYear(item) {
- var myWeekList = ''
- if (item == 'chart1') {
- this.tab.chart1.getdataListParm.parammaps.weekList = []
- this.tab.chart1.getdataListParm.parammaps.selectWeek = []
- myWeekList = whichWeek(
- this.tab.chart1.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart1.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- } else if (item == 'chart2') {
- this.tab.chart2.getdataListParm.parammaps.selectWeek = []
- this.tab.chart2.getdataListParm.parammaps.weekList = []
- myWeekList = whichWeek(
- this.tab.chart2.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart2.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- } else if (item == 'chart3') {
- this.tab.chart3.getdataListParm.parammaps.selectWeek = []
- this.tab.chart3.getdataListParm.parammaps.weekList = []
- myWeekList = whichWeek(
- this.tab.chart3.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart3.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- } else if (item == 'chart4') {
- this.tab.chart4.getdataListParm.parammaps.selectWeek = []
- this.tab.chart4.getdataListParm.parammaps.weekList = []
- myWeekList = whichWeek(
- this.tab.chart4.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart4.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- } else if (item == 'chart5') {
- this.tab.chart5.getdataListParm.parammaps.selectWeek = []
- this.tab.chart5.getdataListParm.parammaps.weekList = []
- myWeekList = whichWeek(
- this.tab.chart5.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart5.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- } else if (item == 'chart6') {
- this.tab.chart6.getdataListParm.parammaps.selectWeek = []
- this.tab.chart6.getdataListParm.parammaps.weekList = []
- myWeekList = whichWeek(
- this.tab.chart6.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart6.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- } else if (item == 'chart7') {
- this.tab.chart7.getdataListParm.parammaps.selectWeek = []
- this.tab.chart7.getdataListParm.parammaps.weekList = []
- myWeekList = whichWeek(
- this.tab.chart7.getdataListParm.parammaps.selectYear
- )
- console.log(myWeekList)
- if (myWeekList !== null) {
- for (let i = 0; i <= myWeekList.length; i++) {
- var obj = {}
- var a = i + 1
- obj.name =
- '第' +
- a +
- '周(' +
- myWeekList[i].month +
- '.' +
- myWeekList[i].date +
- '~' +
- myWeekList[i].last.month +
- '.' +
- myWeekList[i].last.date +
- ')'
- obj.id = i
- this.tab.chart7.getdataListParm.parammaps.weekList.push(obj)
- }
- }
- }
- },
- handleChartDate(item) {
- console.log(item)
- var startDate = ''
- var endDate = ''
- if (item == 'chart1') {
- if (this.tab.chart1.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- console.log('配方准确率开始日期==>', startDate)
- console.log('配方准确率结束日期==>', endDate)
- this.tab.chart1.getdataListParm.parammaps.status = 0
- } else if (
- this.tab.chart1.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart1.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart1.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart1.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart1.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart1.getdataListParm.parammaps.selectYear)[
- this.tab.chart1.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart1.getdataListParm.parammaps.selectYear)[
- this.tab.chart1.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart1.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart1.getdataListParm.parammaps.selectYear)[
- this.tab.chart1.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart1.getdataListParm.parammaps.selectYear)[
- this.tab.chart1.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- console.log('配方准确率开始周日期==>', startDate)
- console.log('配方准确率结束周日期==>', endDate)
- this.tab.chart1.getdataListParm.parammaps.status = 1
- } else if (
- this.tab.chart1.getdataListParm.parammaps.specificDate == '3'
- ) {
- startDate = this.tab.chart1.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart1.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- console.log('配方准确率开始月日期==>', startDate)
- console.log('配方准确率结束月日期==>', endDate)
- this.tab.chart1.getdataListParm.parammaps.status = 2
- }
- this.tab.chart1.getdataListParm.parammaps.startTime = startDate
- this.tab.chart1.getdataListParm.parammaps.stopTime = endDate
- this.getChart1()
- } else if (item == 'chart2') {
- if (this.tab.chart2.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.chart2.getdataListParm.parammaps.status = 0
- console.log('计划统计开始日期==>', startDate)
- console.log('计划统计结束日期==>', endDate)
- } else if (
- this.tab.chart2.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart2.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart2.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart2.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart2.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart2.getdataListParm.parammaps.selectYear)[
- this.tab.chart2.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart2.getdataListParm.parammaps.selectYear)[
- this.tab.chart2.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart2.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart2.getdataListParm.parammaps.selectYear)[
- this.tab.chart2.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart2.getdataListParm.parammaps.selectYear)[
- this.tab.chart2.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- this.tab.chart2.getdataListParm.parammaps.status = 1
- console.log('计划统计开始周日期==>', startDate)
- console.log('计划统计结束周日期==>', endDate)
- } else if (
- this.tab.chart2.getdataListParm.parammaps.specificDate == '3'
- ) {
- console.log(
- '计划统计开始月日期==>',
- this.tab.chart2.getdataListParm.parammaps.chartMonth
- )
- startDate = this.tab.chart2.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart2.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- this.tab.chart2.getdataListParm.parammaps.status = 2
- console.log('计划统计开始月日期==>', startDate)
- console.log('计划统计结束月日期==>', endDate)
- }
- this.tab.chart2.getdataListParm.parammaps.startTime = startDate
- this.tab.chart2.getdataListParm.parammaps.stopTime = endDate
- this.getChart2()
- } else if (item == 'chart3') {
- if (this.tab.chart3.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.chart3.getdataListParm.parammaps.status = 0
- console.log('牛群准确率开始日期==>', startDate)
- console.log('牛群准确率结束日期==>', endDate)
- } else if (
- this.tab.chart3.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart3.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart3.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart3.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart3.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart3.getdataListParm.parammaps.selectYear)[
- this.tab.chart3.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart3.getdataListParm.parammaps.selectYear)[
- this.tab.chart3.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart3.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart3.getdataListParm.parammaps.selectYear)[
- this.tab.chart3.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart3.getdataListParm.parammaps.selectYear)[
- this.tab.chart3.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- this.tab.chart3.getdataListParm.parammaps.status = 1
- console.log('牛群准确率开始周日期==>', startDate)
- console.log('牛群准确率结束周日期==>', endDate)
- } else if (
- this.tab.chart3.getdataListParm.parammaps.specificDate == '3'
- ) {
- startDate = this.tab.chart3.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart3.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- this.tab.chart3.getdataListParm.parammaps.status = 2
- console.log('牛群准确率开始月日期==>', startDate)
- console.log('牛群准确率结束月日期==>', endDate)
- }
- this.tab.chart3.getdataListParm.parammaps.startTime = startDate
- this.tab.chart3.getdataListParm.parammaps.stopTime = endDate
- this.getChart3()
- } else if (item == 'chart4') {
- if (this.tab.chart4.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.chart4.getdataListParm.parammaps.status = 0
- console.log('车辆准确率(重量)开始日期==>', startDate)
- console.log('车辆准确率(重量)结束日期==>', endDate)
- } else if (
- this.tab.chart4.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart4.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart4.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart4.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart4.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart4.getdataListParm.parammaps.selectYear)[
- this.tab.chart4.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart4.getdataListParm.parammaps.selectYear)[
- this.tab.chart4.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart4.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart4.getdataListParm.parammaps.selectYear)[
- this.tab.chart4.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart4.getdataListParm.parammaps.selectYear)[
- this.tab.chart4.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- this.tab.chart4.getdataListParm.parammaps.status = 1
- console.log('车辆准确率(重量)开始周日期==>', startDate)
- console.log('车辆准确率(重量)结束周日期==>', endDate)
- } else if (
- this.tab.chart4.getdataListParm.parammaps.specificDate == '3'
- ) {
- startDate = this.tab.chart4.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart4.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- this.tab.chart4.getdataListParm.parammaps.status = 2
- console.log('车辆准确率(重量)开始月日期==>', startDate)
- console.log('车辆准确率(重量)结束月日期==>', endDate)
- }
- this.tab.chart4.getdataListParm.parammaps.startTime = startDate
- this.tab.chart4.getdataListParm.parammaps.stopTime = endDate
- this.getChart4()
- } else if (item == 'chart5') {
- if (this.tab.chart5.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.chart5.getdataListParm.parammaps.status = 0
- console.log('混料统计开始日期==>', startDate)
- console.log('混料统计结束日期==>', endDate)
- } else if (
- this.tab.chart5.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart5.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart5.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart5.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart5.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart5.getdataListParm.parammaps.selectYear)[
- this.tab.chart5.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart5.getdataListParm.parammaps.selectYear)[
- this.tab.chart5.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart5.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart5.getdataListParm.parammaps.selectYear)[
- this.tab.chart5.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart5.getdataListParm.parammaps.selectYear)[
- this.tab.chart5.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- this.tab.chart5.getdataListParm.parammaps.status = 1
- console.log('混料统计开始周日期==>', startDate)
- console.log('混料统计结束周日期==>', endDate)
- } else if (
- this.tab.chart5.getdataListParm.parammaps.specificDate == '3'
- ) {
- startDate = this.tab.chart5.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart5.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- this.tab.chart5.getdataListParm.parammaps.status = 2
- console.log('混料统计开始月日期==>', startDate)
- console.log('混料统计结束月日期==>', endDate)
- }
- this.tab.chart5.getdataListParm.parammaps.startTime = startDate
- this.tab.chart5.getdataListParm.parammaps.stopTime = endDate
- this.getChart5()
- } else if (item == 'chart6') {
- if (this.tab.chart6.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.chart6.getdataListParm.parammaps.status = 0
- console.log('混料计划取消次数开始日期==>', startDate)
- console.log('混料计划取消次数结束日期==>', endDate)
- } else if (
- this.tab.chart6.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart6.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart6.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart6.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart6.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart6.getdataListParm.parammaps.selectYear)[
- this.tab.chart6.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart6.getdataListParm.parammaps.selectYear)[
- this.tab.chart6.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart6.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart6.getdataListParm.parammaps.selectYear)[
- this.tab.chart6.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart6.getdataListParm.parammaps.selectYear)[
- this.tab.chart6.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- this.tab.chart6.getdataListParm.parammaps.status = 1
- console.log('混料计划取消次数开始周日期==>', startDate)
- console.log('混料计划取消次数结束周日期==>', endDate)
- } else if (
- this.tab.chart6.getdataListParm.parammaps.specificDate == '3'
- ) {
- startDate = this.tab.chart6.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart6.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- this.tab.chart6.getdataListParm.parammaps.status = 2
- console.log('混料计划取消次数开始月日期==>', startDate)
- console.log('混料计划取消次数结束月日期==>', endDate)
- }
- this.tab.chart6.getdataListParm.parammaps.startTime = startDate
- this.tab.chart6.getdataListParm.parammaps.stopTime = endDate
- this.getChart6()
- } else if (item == 'chart7') {
- if (this.tab.chart7.getdataListParm.parammaps.specificDate == '1') {
- startDate = parseTime(
- this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- endDate = parseTime(
- this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.chart7.getdataListParm.parammaps.status = 0
- console.log('栏舍撒料时间统计开始日期==>', startDate)
- console.log('栏舍撒料时间统计结束日期==>', endDate)
- } else if (
- this.tab.chart7.getdataListParm.parammaps.specificDate == '2'
- ) {
- if (this.tab.chart7.getdataListParm.parammaps.selectYear == '') {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg2'),
- duration: 2000
- })
- return
- }
- if (this.tab.chart7.getdataListParm.parammaps.selectWeek !== null) {
- if (
- this.tab.chart7.getdataListParm.parammaps.selectWeek.length !== 2
- ) {
- this.$message({
- type: 'error',
- message: this.$t('errorAnalysis.msg3'),
- duration: 2000
- })
- return
- }
- }
- startDate =
- this.tab.chart7.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart7.getdataListParm.parammaps.selectYear)[
- this.tab.chart7.getdataListParm.parammaps.selectWeek[0]
- ].month +
- '-' +
- whichWeek(this.tab.chart7.getdataListParm.parammaps.selectYear)[
- this.tab.chart7.getdataListParm.parammaps.selectWeek[0]
- ].date
- endDate =
- this.tab.chart7.getdataListParm.parammaps.selectYear +
- '-' +
- whichWeek(this.tab.chart7.getdataListParm.parammaps.selectYear)[
- this.tab.chart7.getdataListParm.parammaps.selectWeek[1]
- ].last.month +
- '-' +
- whichWeek(this.tab.chart7.getdataListParm.parammaps.selectYear)[
- this.tab.chart7.getdataListParm.parammaps.selectWeek[1]
- ].last.date
- this.tab.chart7.getdataListParm.parammaps.status = 1
- console.log('栏舍撒料时间统计开始周日期==>', startDate)
- console.log('栏舍撒料时间统计结束周日期==>', endDate)
- } else if (
- this.tab.chart7.getdataListParm.parammaps.specificDate == '3'
- ) {
- startDate = this.tab.chart7.getdataListParm.parammaps.chartMonth[0]
- endDate =
- this.tab.chart7.getdataListParm.parammaps.chartMonth[1].substring(
- 0,
- 8
- ) + '31'
- this.tab.chart7.getdataListParm.parammaps.status = 2
- console.log('栏舍撒料时间统计开始月日期==>', startDate)
- console.log('栏舍撒料时间统计结束月日期==>', endDate)
- }
- this.tab.chart7.getdataListParm.parammaps.startTime = startDate
- this.tab.chart7.getdataListParm.parammaps.stopTime = endDate
- this.getChart7()
- }
- },
- getTimeFn() {
- const that = this
- const start = new Date()
- const end = new Date()
- const start2 = new Date()
- const end2 = new Date()
- start2.setTime(start2.getTime() - 3600 * 1000 * 24 * 1)
- end2.setTime(end2.getTime() - 3600 * 1000 * 24 * 1)
- // that.tab.table.getdataListParm.parammaps.inputDatetime[0] = parseTime(start2, '{y}-{m}-{d}')
- // that.tab.table.getdataListParm.parammaps.inputDatetime[1] = parseTime(end2, '{y}-{m}-{d}')
- that.tab.table.getdataListParm.parammaps.startTime = parseTime(
- start2,
- '{y}-{m}-{d}'
- )
- that.tab.table.getdataListParm.parammaps.stopTime = parseTime(
- end2,
- '{y}-{m}-{d}'
- )
- that.tab.table.getdataListParm.parammaps.inputDatetime = [start2, end2]
- that.tab.table2.getdataListParm.parammaps.startTime = parseTime(
- start2,
- '{y}-{m}-{d}'
- )
- that.tab.table2.getdataListParm.parammaps.stopTime = parseTime(
- end2,
- '{y}-{m}-{d}'
- )
- that.tab2.table.getdataListParm.parammaps.inputDatetime = [start2, end2]
- // that.tab2.table.getdataListParm.parammaps.inputDatetime[0] = parseTime(start2, '{y}-{m}-{d}')
- // that.tab2.table.getdataListParm.parammaps.inputDatetime[1] = parseTime(end2, '{y}-{m}-{d}')
- that.tab2.table.getdataListParm.parammaps.startTime = parseTime(
- start2,
- '{y}-{m}-{d}'
- )
- that.tab2.table.getdataListParm.parammaps.stopTime = parseTime(
- end2,
- '{y}-{m}-{d}'
- )
- that.tab3.table.getdataListParm.parammaps.inputDatetime = [start2, end2]
- // that.tab3.table.getdataListParm.parammaps.inputDatetime[0] = parseTime(start2, '{y}-{m}-{d}')
- // that.tab3.table.getdataListParm.parammaps.inputDatetime[1] = parseTime(end2, '{y}-{m}-{d}')
- that.tab3.table.getdataListParm.parammaps.startTime = parseTime(
- start2,
- '{y}-{m}-{d}'
- )
- that.tab3.table.getdataListParm.parammaps.stopTime = parseTime(
- end2,
- '{y}-{m}-{d}'
- )
- // start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 10)
- end.setTime(end.getTime() - 3600 * 1000 * 24 * 1)
- that.tab.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
- that.tab.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
- that.tab.chart1.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart1.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart1.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart1.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart2.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart2.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart2.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart2.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart3.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart3.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart3.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart3.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart4.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart4.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart4.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart4.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart5.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart5.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart5.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart5.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart6.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart6.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart6.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart6.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart7.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart7.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- that.tab.chart7.getdataListParm.parammaps.startTime = parseTime(
- start,
- '{y}-{m}-{d}'
- )
- that.tab.chart7.getdataListParm.parammaps.stopTime = parseTime(
- end,
- '{y}-{m}-{d}'
- )
- },
- getIsDisplay() {
- GetDataByName(this.maxTime.getMaxTimesParm).then((response) => {
- if (response.data.list[0].inforvalue == 1) {
- this.tab2.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') }
- ]
- this.tab3.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') }
- ]
- } else if (response.data.list[0].inforvalue == 2) {
- this.tab2.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') }
- ]
- this.tab3.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') }
- ]
- } else if (response.data.list[0].inforvalue == 3) {
- this.tab2.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') }
- ]
- this.tab3.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') }
- ]
- this.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') }
- ]
- } else if (response.data.list[0].inforvalue == 4) {
- this.tab2.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') },
- { id: '4', name: this.$t('errorAnalysis.four') }
- ]
- this.tab3.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') },
- { id: '4', name: this.$t('errorAnalysis.four') }
- ]
- } else if (response.data.list[0].inforvalue == 5) {
- this.tab2.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') },
- { id: '4', name: this.$t('errorAnalysis.four') },
- { id: '5', name: this.$t('errorAnalysis.five') }
- ]
- this.tab3.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') },
- { id: '4', name: this.$t('errorAnalysis.four') },
- { id: '5', name: this.$t('errorAnalysis.five') }
- ]
- } else if (response.data.list[0].inforvalue == 6) {
- this.tab2.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') },
- { id: '4', name: this.$t('errorAnalysis.four') },
- { id: '5', name: this.$t('errorAnalysis.five') },
- { id: '6', name: this.$t('errorAnalysis.six') }
- ]
- this.tab3.frequencyList = [
- { id: '1', name: this.$t('errorAnalysis.one') },
- { id: '2', name: this.$t('errorAnalysis.two') },
- { id: '3', name: this.$t('errorAnalysis.three') },
- { id: '4', name: this.$t('errorAnalysis.four') },
- { id: '5', name: this.$t('errorAnalysis.five') },
- { id: '6', name: this.$t('errorAnalysis.six') }
- ]
- }
- })
- },
- // 导出
- handleDownload() {
- // const exportTitle2 = [];
- // const exportTitle3 = [];
- // for (let j = 0; j < this.tab.table.tableConfig[i].children.length; j++) {
- // exportTitle2.push(this.tab.table.tableConfig[i].children[j].label)
- // for(let a = 0;a<this.tab.table.tableConfig[i].children[j].children.length;a++){
- // exportTitle3.push(this.tab.table.tableConfig[i].children[j].children[a].label)
- // }
- // }
- console.log(this.tab.table.tableConfig, 'this.tab.table.list121212')
- // const columns = this.tab.table.parammaps;
- // const labels = this.getColumnLabels(columns);
- // console.log(labels); // 输出 ["日期", "姓名", "地址"]
- if (this.tab.table.list == null) {
- this.tab.table.list = []
- }
- if (this.tab.table2.list == null) {
- this.tab.table2.list = []
- }
- if (this.tab.checked == true) {
- if (this.tab.radio == '0') {
- var excelDatas0 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas0,
- this.$t('errorAnalysis.hztjjsy'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '1') {
- var excelDatas = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '配方名称',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '配方名称',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas,
- this.$t('errorAnalysis.hztjpfmc'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '2') {
- var excelDatas2 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.isHouseName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '栏舍名称',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.isHouseName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- this.$t('errorAnalysis.isHouseName'),
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas2,
- this.$t('errorAnalysis.hztjlsmz'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '3') {
- var excelDatas3 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.sxlb'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '牲畜类别',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.sxlb'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '牲畜类别',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas3,
- this.$t('errorAnalysis.hztjxslb'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '4') {
- var excelDatas4 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.drivername'),
- this.$t('errorAnalysis.stratJl'),
- this.$t('errorAnalysis.endJl'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlsj'),
- this.$t('errorAnalysis.flstartTime'),
- this.$t('errorAnalysis.waitTime'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc'),
- this.$t('errorAnalysis.area')
- ],
- filterVal: [
- '计划时间1',
- 'templetname',
- 'TMR名称',
- 'startTime',
- 'endTime',
- 'TMR名称',
- '车次',
- '班次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料时间',
- 'startMaterialTime',
- '等待时间',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差',
- 'barname'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.drivername'),
- this.$t('errorAnalysis.stratJl'),
- this.$t('errorAnalysis.endJl'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slsj'),
- this.$t('errorAnalysis.flstartTime'),
- this.$t('errorAnalysis.waitTime'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc'),
- this.$t('errorAnalysis.area')
- ],
- filterVal: [
- '计划时间1',
- 'templetname',
- 'TMR名称',
- 'startTime',
- 'endTime',
- 'TMR名称',
- '车次',
- '班次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料时间',
- 'startMaterialTime',
- '等待时间',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差',
- 'barname'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(excelDatas4, this.$t('errorAnalysis.hztjcc'), true, 'xlsx')
- } else if (this.tab.radio == '5') {
- var excelDatas4 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- 'TMR名称',
- '班次',
- '车次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- 'TMR名称',
- '班次',
- '车次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas4,
- this.$t('errorAnalysis.hztjtmr'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '6') {
- var excelDatas5 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.isFeed'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- 'fname',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- }
- ]
- json2excel(excelDatas5, this.$t('errorAnalysis.hztjsl'), true, 'xlsx')
- } else if (this.tab.radio == '7') {
- var excelDatas7 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '计划时间',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas7,
- this.$t('errorAnalysis.hztjwfl'),
- true,
- 'xlsx'
- )
- }
- } else {
- if (this.tab.radio == '0') {
- var excelDatas0 = [
- {
- tHeader: [
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas0,
- this.$t('errorAnalysis.sumName'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '1') {
- var excelDatas = [
- {
- tHeader: [
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '配方名称',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '配方名称',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas,
- this.$t('errorAnalysis.hztjpfmc'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '2') {
- var excelDatas2 = [
- {
- tHeader: [
- this.$t('errorAnalysis.isHouseName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '栏舍名称',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.isHouseName'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- this.$t('errorAnalysis.isHouseName'),
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas2,
- this.$t('errorAnalysis.hztjlsmz'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '3') {
- var excelDatas3 = [
- {
- tHeader: [
- this.$t('errorAnalysis.sxlb'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '牲畜类别',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.sxlb'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '牲畜类别',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas3,
- this.$t('errorAnalysis.hztjxslb'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '4') {
- var excelDatas4 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.drivername'),
- this.$t('errorAnalysis.stratJl'),
- this.$t('errorAnalysis.endJl'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlsj'),
- this.$t('errorAnalysis.flstartTime'),
- this.$t('errorAnalysis.waitTime'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc'),
- this.$t('errorAnalysis.area')
- ],
- filterVal: [
- '计划时间1',
- 'templetname',
- 'TMR名称',
- 'startTime',
- 'endTime',
- 'TMR名称',
- '车次',
- '班次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料时间',
- 'startMaterialTime',
- '等待时间',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差',
- 'barname'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.drivername'),
- this.$t('errorAnalysis.stratJl'),
- this.$t('errorAnalysis.endJl'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slsj'),
- this.$t('errorAnalysis.flstartTime'),
- this.$t('errorAnalysis.waitTime'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc'),
- this.$t('errorAnalysis.area')
- ],
- filterVal: [
- '计划时间1',
- 'templetname',
- 'TMR名称',
- 'startTime',
- 'endTime',
- 'TMR名称',
- '车次',
- '班次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料时间',
- 'startMaterialTime',
- '等待时间',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差',
- 'barname'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(excelDatas4, this.$t('errorAnalysis.hztjcc'), true, 'xlsx')
- } else if (this.tab.radio == '5') {
- var excelDatas5 = [
- {
- tHeader: [
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- 'TMR名称',
- '班次',
- '车次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- 'TMR名称',
- '班次',
- '车次',
- '驾驶员',
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas5,
- this.$t('errorAnalysis.hztjtmr'),
- true,
- 'xlsx'
- )
- } else if (this.tab.radio == '6') {
- var excelDatas6 = [
- {
- tHeader: [
- this.$t('errorAnalysis.isFeed'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- 'fname',
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- }
- ]
- json2excel(excelDatas6, this.$t('errorAnalysis.hztjsl'), true, 'xlsx')
- } else if (this.tab.radio == '7') {
- var excelDatas7 = [
- {
- tHeader: [
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.jshlczs'),
- this.$t('errorAnalysis.yhlczs'),
- this.$t('errorAnalysis.hlczl'),
- this.$t('errorAnalysis.hlwczs'),
- this.$t('errorAnalysis.hlzqls'),
- this.$t('errorAnalysis.hlzdtzcs'),
- this.$t('errorAnalysis.hlsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.hlzqs'),
- this.$t('errorAnalysis.hlzql'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '理论重量',
- '实际重量',
- '计划混料操作数',
- '已混料操作数',
- '混料操作率',
- '混料误差值',
- '混料准确率',
- '混料自动跳转次数',
- '混料手动跳转次数',
- '取消次数',
- '混料正确数',
- '混料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table.list,
- sheetName: '混料'
- },
- {
- tHeader: [
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.sljhczs'),
- this.$t('errorAnalysis.yclczs'),
- this.$t('errorAnalysis.slczl'),
- this.$t('errorAnalysis.slwcz'),
- this.$t('errorAnalysis.slzql'),
- this.$t('errorAnalysis.slzdtzcs'),
- this.$t('errorAnalysis.slsdzdtzcs'),
- this.$t('errorAnalysis.qxcs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.slzqs'),
- this.$t('errorAnalysis.qcqxzql'),
- this.$t('errorAnalysis.bzc')
- ],
- filterVal: [
- '理论重量',
- '实际重量',
- '计划撒料操作数',
- '已撒料操作数',
- '撒料操作率',
- '撒料误差值',
- '撒料准确率',
- '撒料自动跳转次数',
- '撒料手动跳转次数',
- '取消次数',
- '撒料正确数',
- '撒料正确率',
- '去除取消正确率',
- '方差'
- ],
- tableDatas: this.tab.table2.list,
- sheetName: '撒料'
- }
- ]
- json2excel(
- excelDatas7,
- this.$t('errorAnalysis.hztjwfl'),
- true,
- 'xlsx'
- )
- }
- }
- },
- // 切换Tab
- handleTabClick() {
- if (this.activeName == 'first') {
- const start = new Date()
- const end = new Date()
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 1)
- end.setTime(end.getTime() - 3600 * 1000 * 24 * 1)
- this.tab.table.getdataListParm.parammaps.inputDatetime = [start, end]
- this.tab.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.table2.getdataListParm.parammaps.startTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab.table2.getdataListParm.parammaps.stopTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.tab.table.getdataListParm.parammaps.fname = ''
- this.tab.table.getdataListParm.parammaps.sort = ''
- this.tab.table.getdataListParm.parammaps.times = ''
- this.tab.table2.getdataListParm.parammaps.fname = ''
- this.tab.table2.getdataListParm.parammaps.sort = ''
- this.tab.table2.getdataListParm.parammaps.times = ''
- this.getTabList()
- this.getTabList2()
- this.getChart1()
- this.getChart2()
- this.getChart3()
- this.getChart4()
- this.getChart5()
- this.getChart6()
- // this.$nextTick(() => {
- // this.$refs.plTable3.doLayout()
- // this.$refs.plTable3.doLayout()
- // })
- } else if (this.activeName == 'second') {
- this.$nextTick(() => {
- this.myHeightSecond =
- document.documentElement.clientHeight -
- 40 -
- this.$refs.myHeightSecond.offsetHeight -
- 150
- const start2 = new Date()
- start2.setTime(start2.getTime() - 3600 * 1000 * 24 * 1)
- this.tab2.table.getdataListParm.parammaps.inputDatetime2 = start2
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab2.table.getdataListParm.parammaps.inputDatetime2,
- '{y}-{m}-{d}'
- )
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab2.table.getdataListParm.parammaps.inputDatetime2,
- '{y}-{m}-{d}'
- )
- this.tab2.table.getdataListParm.parammaps.tmrtname = ''
- this.tab2.table.getdataListParm.parammaps.projname = ''
- this.tab2.table.getdataListParm.parammaps.times = ''
- this.tab2.table.getdataListParm.parammaps.buttontype = ''
- this.tab2.table.getdataListParm.parammaps.templetname = ''
- this.getTab2List()
- this.getTMRNameList2()
- // this.$nextTick(() => {
- // this.$refs.plTable3.doLayout()
- // })
- })
- } else if (this.activeName == 'third') {
- this.$nextTick(() => {
- console.log(this.$refs.myHeightThird.offsetHeight, 'myHeightThird')
- this.myHeightThird =
- document.documentElement.clientHeight -
- 40 -
- this.$refs.myHeightThird.offsetHeight -
- 150
- const start3 = new Date()
- start3.setTime(start3.getTime() - 3600 * 1000 * 24 * 1)
- this.tab3.table.getdataListParm.parammaps.inputDatetime2 = start3
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab3.table.getdataListParm.parammaps.inputDatetime2,
- '{y}-{m}-{d}'
- )
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab3.table.getdataListParm.parammaps.inputDatetime2,
- '{y}-{m}-{d}'
- )
- this.tab3.table.getdataListParm.parammaps.tmrtname = ''
- this.tab3.table.getdataListParm.parammaps.projname = ''
- this.tab3.table.getdataListParm.parammaps.times = ''
- this.tab3.table.getdataListParm.parammaps.templetname = ''
- this.tab3.table.getdataListParm.parammaps.buttontype = ''
- this.getTab3List()
- this.getTMRNameList3()
- // this.$nextTick(() => {
- // this.$refs.plTable3.doLayout()
- // })
- })
- }
- this.$forceUpdate()
- },
- // 切换统计类型
- changeRadio() {
- this.tab.table.getdataListParm.parammaps.sort = ''
- this.tab.table.getdataListParm.parammaps.times = ''
- this.tab.table.getdataListParm.parammaps.fname = ''
- this.tab.table2.getdataListParm.parammaps.sort = ''
- this.tab.table2.getdataListParm.parammaps.times = ''
- this.tab.table2.getdataListParm.parammaps.fname = ''
- if (this.tab.radio == '0') {
- console.log('驾驶员')
- this.tab.isDriver = true
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '1') {
- console.log('配方名称')
- this.tab.isDriver = false
- this.tab.isFormulaName = true
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '2') {
- console.log('栏舍名称')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = true
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '3') {
- console.log(' 牲畜类别')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = true
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '4') {
- console.log('车次')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = true
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '5') {
- console.log('TMR名称')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = true
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- this.getTMRNameList()
- } else if (this.tab.radio == '6') {
- console.log('饲料')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = true
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- } else if (this.tab.radio == '7') {
- console.log('无分类')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- }
- },
- // 按日期统计
- changeChecked() {
- console.log(this.tab.checked)
- this.form_search()
- },
- // 汇总统计/混料
- getTabList() {
- this.tab.table.listLoading = true
- this.tab.table.getdataListParm.parammaps.status = this.tab.radio
- this.tab.table.getdataListParm.parammaps.genre = 0
- if (
- this.tab.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- this.tab.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- } else {
- this.tab.table.getdataListParm.parammaps.inputDatetime = ''
- this.tab.table.getdataListParm.parammaps.startTime = ''
- this.tab.table.getdataListParm.parammaps.stopTime = ''
- }
- let url = 'authdata/summary'
- let data = {}
- if (this.tab.checked == false) {
- this.tab.table.getdataListParm.parammaps.isdate = 0
- } else {
- this.tab.table.getdataListParm.parammaps.isdate = 1
- }
- data.parammaps = this.tab.table.getdataListParm.parammaps
- postJson(url, data).then((response) => {
- if (response.data !== null && response.data.list !== null) {
- console.log('汇总统计/混料table数据', response.data.list)
- this.$refs.plTable1.reloadData(response.data.list)
- this.tab.table.list = response.data.list
- this.tab.table.total = response.data.total
- } else {
- this.$refs.plTable2.reloadData([])
- this.tab.table.list = []
- this.tab.table.total = 0
- }
- setTimeout(() => {
- this.tab.table.listLoading = false
- }, 100)
- })
- },
- // 汇总统计/撒料
- getTabList2() {
- this.tab.table2.listLoading = true
- this.tab.table2.getdataListParm.parammaps.status = this.tab.radio
- this.tab.table2.getdataListParm.parammaps.genre = 1
- this.tab.table2.getdataListParm.parammaps.startTime =
- this.tab.table.getdataListParm.parammaps.startTime
- this.tab.table2.getdataListParm.parammaps.stopTime =
- this.tab.table.getdataListParm.parammaps.stopTime
- this.tab.table2.getdataListParm.parammaps.hlwc1 =
- this.tab.table.getdataListParm.parammaps.hlwc1
- this.tab.table2.getdataListParm.parammaps.hlwc2 =
- this.tab.table.getdataListParm.parammaps.hlwc2
- this.tab.table2.getdataListParm.parammaps.hlzq1 =
- this.tab.table.getdataListParm.parammaps.hlzq1
- this.tab.table2.getdataListParm.parammaps.hlzq2 =
- this.tab.table.getdataListParm.parammaps.hlzq2
- this.tab.table2.getdataListParm.parammaps.hlzql1 =
- this.tab.table.getdataListParm.parammaps.hlzql1
- this.tab.table2.getdataListParm.parammaps.hlzql2 =
- this.tab.table.getdataListParm.parammaps.hlzql2
- this.tab.table2.getdataListParm.parammaps.slwc1 =
- this.tab.table.getdataListParm.parammaps.slwc1
- this.tab.table2.getdataListParm.parammaps.slwc2 =
- this.tab.table.getdataListParm.parammaps.slwc2
- this.tab.table2.getdataListParm.parammaps.slzq1 =
- this.tab.table.getdataListParm.parammaps.slzq1
- this.tab.table2.getdataListParm.parammaps.slzq2 =
- this.tab.table.getdataListParm.parammaps.slzq2
- this.tab.table2.getdataListParm.parammaps.slzql1 =
- this.tab.table.getdataListParm.parammaps.slzql1
- this.tab.table2.getdataListParm.parammaps.slzql2 =
- this.tab.table.getdataListParm.parammaps.slzql2
- this.tab.table2.getdataListParm.parammaps.templetname =
- this.tab.table.getdataListParm.parammaps.templetname
- this.tab.table2.getdataListParm.parammaps.startdate =
- this.tab.table.getdataListParm.parammaps.startdate
- this.tab.table2.getdataListParm.parammaps.enddate =
- this.tab.table.getdataListParm.parammaps.enddate
- this.tab.table2.getdataListParm.parammaps.error =
- this.tab.table.getdataListParm.parammaps.error
- let url = 'authdata/summary'
- let data = {}
- if (this.tab.checked == false) {
- this.tab.table2.getdataListParm.parammaps.isdate = 0
- } else {
- this.tab.table2.getdataListParm.parammaps.isdate = 1
- }
- data.parammaps = this.tab.table2.getdataListParm.parammaps
- postJson(url, data).then((response) => {
- if (response.data !== null && response.data.list !== null) {
- console.log('汇总统计/撒料table数据', response.data.list)
- this.$refs.plTable22.reloadData(response.data.list)
- this.tab.table2.list = response.data.list
- this.tab.table2.total = response.data.total
- } else {
- this.$refs.plTable22.reloadData([])
- this.tab.table2.list = []
- this.tab.table2.total = 0
- }
- setTimeout(() => {
- this.tab.table2.listLoading = false
- }, 100)
- })
- },
- // 查询
- form_search() {
- if (this.tab.radio == '0') {
- console.log('驾驶员/查询111')
- this.tab.isDriver = true
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '1') {
- console.log('配方名称/查询111')
- this.tab.isDriver = false
- this.tab.isFormulaName = true
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '2') {
- console.log('栏舍名称/查询')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = true
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '3') {
- console.log(' 牲畜类别/查询')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = true
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '4') {
- console.log('车次/查询')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = true
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- } else if (this.tab.radio == '5') {
- console.log('TMR名称/查询')
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = true
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- this.getTMRNameList()
- } else if (this.tab.radio == '6') {
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = true
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- } else if (this.tab.radio == '7') {
- this.tab.isDriver = false
- this.tab.isFormulaName = false
- this.tab.isHouseName = false
- this.tab.isLivestockType = false
- this.tab.isTrainNumber = false
- this.tab.isTMRName = false
- this.tab.isFeed = false
- this.tab.table.getdataListParm.offset = 1
- this.getTabList()
- this.tab.table2.getdataListParm.offset = 1
- this.getTabList2()
- }
- this.tab.table2.getdataListParm.parammaps.fname =
- this.tab.table.getdataListParm.parammaps.fname
- },
- handleRefresh1() {
- this.tab.table.getdataListParm.parammaps.fname = ''
- this.tab.table.getdataListParm.parammaps.projname = ''
- this.tab.table.getdataListParm.parammaps.times = ''
- this.tab.table.getdataListParm.parammaps.hlwc1 = undefined
- this.tab.table.getdataListParm.parammaps.hlwc2 = undefined
- this.tab.table.getdataListParm.parammaps.hlzq1 = undefined
- this.tab.table.getdataListParm.parammaps.hlzq2 = undefined
- this.tab.table.getdataListParm.parammaps.hlzql1 = undefined
- this.tab.table.getdataListParm.parammaps.hlzql2 = undefined
- this.tab.table.getdataListParm.parammaps.slwc1 = undefined
- this.tab.table.getdataListParm.parammaps.slwc2 = undefined
- this.tab.table.getdataListParm.parammaps.slzq1 = undefined
- this.tab.table.getdataListParm.parammaps.slzq2 = undefined
- this.tab.table.getdataListParm.parammaps.slzql1 = undefined
- this.tab.table.getdataListParm.parammaps.slzql2 = undefined
- this.tab.table.getdataListParm.parammaps.templetname = ''
- this.tab.table.getdataListParm.parammaps.startdate = undefined
- this.tab.table.getdataListParm.parammaps.enddate = undefined
- this.tab.table.getdataListParm.parammaps.error = false
- this.form_search()
- },
- handleBefore() {
- this.$forceUpdate()
- if (
- this.tab.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- var start = new Date(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate() -
- 1
- )
- )
- var stop = new Date(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate() -
- 1
- )
- )
- if (stop > Date.now() - 8.64e7) {
- this.Nextdisabled = true
- this.Beforedisabled = false
- } else {
- this.Nextdisabled = false
- this.Beforedisabled = false
- }
- this.tab.table.getdataListParm.parammaps.inputDatetime = []
- this.tab.table.getdataListParm.parammaps.inputDatetime.length = 0
- this.tab.table.getdataListParm.parammaps.inputDatetime.push(start, stop)
- this.$forceUpdate()
- }
- this.tab.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.getTabList()
- this.tab.table2.getdataListParm.parammaps.startTime =
- this.tab.table.getdataListParm.parammaps.startTime
- this.tab.table2.getdataListParm.parammaps.stopTime =
- this.tab.table.getdataListParm.parammaps.stopTime
- this.getTabList2()
- this.getTMRNameList()
- },
- handleNext() {
- this.$forceUpdate()
- if (
- this.tab.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- var start2 = new Date(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate() +
- 1
- )
- )
- var stop2 = new Date(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate() +
- 1
- )
- )
- if (stop2 > Date.now() - 8.64e7) {
- this.Nextdisabled = true
- this.Beforedisabled = false
- } else {
- this.Nextdisabled = false
- this.Beforedisabled = false
- }
- this.tab.table.getdataListParm.parammaps.inputDatetime = []
- this.tab.table.getdataListParm.parammaps.inputDatetime.length = 0
- this.tab.table.getdataListParm.parammaps.inputDatetime.push(
- start2,
- stop2
- )
- this.$forceUpdate()
- }
- this.tab.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.getTabList()
- this.tab.table2.getdataListParm.parammaps.startTime =
- this.tab.table.getdataListParm.parammaps.startTime
- this.tab.table2.getdataListParm.parammaps.stopTime =
- this.tab.table.getdataListParm.parammaps.stopTime
- this.getTabList2()
- this.getTMRNameList()
- },
- handleBefore2() {
- this.$forceUpdate()
- if (
- this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab2.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- var start3 = new Date(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate() -
- 1
- )
- )
- var stop3 = new Date(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate() -
- 1
- )
- )
- if (stop3 > Date.now() - 8.64e7) {
- this.Nextdisabled = true
- this.Beforedisabled = false
- } else {
- this.Nextdisabled = false
- this.Beforedisabled = false
- }
- this.tab2.table.getdataListParm.parammaps.inputDatetime = []
- this.tab2.table.getdataListParm.parammaps.inputDatetime.length = 0
- this.tab2.table.getdataListParm.parammaps.inputDatetime.push(
- start3,
- stop3
- )
- this.$forceUpdate()
- }
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(
- start3,
- '{y}-{m}-{d}'
- )
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(
- stop3,
- '{y}-{m}-{d}'
- )
- this.getTab2List()
- this.getTMRNameList2()
- },
- handleNext2() {
- if (
- this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab2.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- var start4 = new Date(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate() +
- 1
- )
- )
- var stop4 = new Date(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate() +
- 1
- )
- )
- if (stop4 > Date.now() - 8.64e7) {
- this.Nextdisabled = true
- this.Beforedisabled = false
- } else {
- this.Nextdisabled = false
- this.Beforedisabled = false
- }
- this.tab2.table.getdataListParm.parammaps.inputDatetime = []
- this.tab2.table.getdataListParm.parammaps.inputDatetime.length = 0
- this.tab2.table.getdataListParm.parammaps.inputDatetime.push(
- start4,
- stop4
- )
- this.$forceUpdate()
- }
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(
- start4,
- '{y}-{m}-{d}'
- )
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(
- start4,
- '{y}-{m}-{d}'
- )
- this.getTab2List()
- this.getTMRNameList2()
- },
- handleBefore3() {
- this.$forceUpdate()
- if (
- this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab3.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- var start5 = new Date(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate() -
- 1
- )
- )
- var stop5 = new Date(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate() -
- 1
- )
- )
- if (stop5 > Date.now() - 8.64e7) {
- this.Nextdisabled = true
- this.Beforedisabled = false
- } else {
- this.Nextdisabled = false
- this.Beforedisabled = false
- }
- this.tab3.table.getdataListParm.parammaps.inputDatetime = []
- this.tab3.table.getdataListParm.parammaps.inputDatetime.length = 0
- this.tab3.table.getdataListParm.parammaps.inputDatetime.push(
- start5,
- stop5
- )
- this.$forceUpdate()
- }
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(
- start5,
- '{y}-{m}-{d}'
- )
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(
- stop5,
- '{y}-{m}-{d}'
- )
- this.getTab3List()
- this.getTMRNameList3()
- },
- handleNext3() {
- if (
- this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab3.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- var start6 = new Date(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate() +
- 1
- )
- )
- var stop6 = new Date(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate() +
- 1
- )
- )
- if (stop6 > Date.now() - 8.64e7) {
- this.Nextdisabled = true
- this.Beforedisabled = false
- } else {
- this.Nextdisabled = false
- this.Beforedisabled = false
- }
- this.tab3.table.getdataListParm.parammaps.inputDatetime = []
- this.tab3.table.getdataListParm.parammaps.inputDatetime.length = 0
- this.tab3.table.getdataListParm.parammaps.inputDatetime.push(
- start6,
- stop6
- )
- this.$forceUpdate()
- }
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(
- start6,
- '{y}-{m}-{d}'
- )
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(
- stop6,
- '{y}-{m}-{d}'
- )
- this.getTab3List()
- this.getTMRNameList3()
- },
- // 快速跳转到图表
- handleQuickJumpChart() {
- var myHeight = document.getElementById('table').offsetHeight + 120
- window.scrollTo(myHeight, myHeight)
- },
- // 快速回到顶部
- handleQuickJumpTop() {
- window.scrollTo(0, 0)
- },
- // 配方准确率
- changeStatisticChart1(arr) {
- var arr1 = []
- if (arr !== null) {
- for (let i = 0; i < arr.length; i++) {
- if (arr[i] !== 'all') {
- arr1.push(arr[i])
- }
- }
- }
- this.tab.chart1.getdataListParm.parammaps.statisticsList = arr1
- var arrData3 = []
- if (this.tab.chart1.getdataListParm.parammaps.statisticsList !== null) {
- for (
- let i = 0;
- i < this.tab.chart1.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart1.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart1.getdataListParm.parammaps.statisticsList[i]
- ).id
- if (this.tab.chart1.chart1Data3 !== null) {
- for (let j = 0; j < this.tab.chart1.chart1Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart1.chart1Data3[j])
- }
- }
- }
- }
- }
- this.tab.chart1.chartLine_data.data3 = arrData3
- this.tab.chart1.chartLine_data.data1 =
- this.tab.chart1.getdataListParm.parammaps.statisticsList
- this.roadChartLine1(this.tab.chart1.chartLine_data)
- },
- // 配方准确率
- getChart1() {
- this.tab.chart1.listLoading = true
- const url = 'authdata/chart/accuracyAllFT'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart2.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart2.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart2.getdataListParm.parammaps.status
- } else {
- data.parammaps.pastureid =
- this.tab.chart2.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart2.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart2.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart2.getdataListParm.parammaps.status
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- for (let i = 0; i < response.data.data.length; i++) {
- if (
- response.data.data[i].准确率 !== '' &&
- response.data.data[i].准确率 !== undefined
- ) {
- response.data.data[i].准确率 =
- parseFloat(response.data.data[i].准确率) + '%'
- }
- if (
- response.data.data[i].理论量 !== '' &&
- response.data.data[i].理论量 !== undefined
- ) {
- response.data.data[i].理论量 = parseFloat(
- response.data.data[i].理论量
- )
- }
- if (
- response.data.data[i].实际量 !== '' &&
- response.data.data[i].实际量 !== undefined
- ) {
- response.data.data[i].实际量 = parseFloat(
- response.data.data[i].实际量
- )
- }
- }
- }
- this.tab.chart1.table.list = response.data.data
- this.tab.chart1.chartLine_data = response.data.list
- this.tab.chart1.statisticsList = []
- this.tab.chart1.getdataListParm.parammaps.statisticsList = []
- if (response.data.list.data1 !== null) {
- for (let i = 0; i < response.data.list.data1.length; i++) {
- this.tab.chart1.getdataListParm.parammaps.statisticsList.push(
- response.data.list.data1[i]
- )
- var obj = {}
- obj.id = i
- obj.name = response.data.list.data1[i]
- this.tab.chart1.statisticsList.push(obj)
- }
- }
- console.log(this.tab.chart1.statisticsList, '配方准确率下拉内容')
- this.tab.chart1.chart1Data3 = response.data.list.data3
- this.tab.chart1.total = response.data.total
- console.log('配方准确率表数据', this.tab.chart1.table.list)
- console.log('配方准确率图数据', this.tab.chart1.chartLine_data)
- var arrData3 = []
- if (
- this.tab.chart1.getdataListParm.parammaps.statisticsList !== null
- ) {
- for (
- let i = 0;
- i <
- this.tab.chart1.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart1.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart1.getdataListParm.parammaps.statisticsList[i]
- ).id
- if (this.tab.chart1.chart1Data3 !== null) {
- for (let j = 0; j < this.tab.chart1.chart1Data3.length; j++) {
- if (j == myId) {
- this.tab.chart1.chart1Data3[j].checkedState = true
- arrData3.push(this.tab.chart1.chart1Data3[j])
- }
- }
- }
- }
- }
- this.tab.chart1.chartLine_data.data3 = arrData3
- this.tab.chart1.chartLine_data.data1 =
- this.tab.chart1.getdataListParm.parammaps.statisticsList
- this.roadChartLine1(this.tab.chart1.chartLine_data)
- } else {
- this.tab.chart1.list = []
- }
- setTimeout(() => {
- this.tab.chart1.listLoading = false
- }, 100)
- })
- },
- roadChartLine1(chartLine_data) {
- if (this.tab.chart1.chartLine != null) {
- this.tab.chart1.chartLine.dispose()
- }
- this.tab.chart1.chartLine = echarts.init(
- document.getElementById('chartLine1'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- title: {
- text: ''
- },
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: chartLine_data.data1,
- right: 10,
- show: true,
- type: 'scroll'
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- toolbox: {
- show: true,
- right: '2%',
- feature: {}
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: chartLine_data.data2,
- name: this.$t('errorAnalysis.date')
- },
- yAxis: {
- min: 0, //取0为最小刻度
- max: 100, //取100为最大刻度
- min: 'min', //取最小值为最小刻度
- max: 'max', //取最大值为最大刻度
- min: function (value) {
- //取最小值向下取整为最小刻度
- return Math.floor(value.min)
- },
- max: function (value) {
- //取最大值向上取整为最大刻度
- return Math.ceil(value.max)
- },
- type: 'value',
- name: this.$t('errorAnalysis.bfb'),
- axisLabel: { formatter: '{value} %' }
- },
- series: (function () {
- var serie = []
- if (chartLine_data.data3 !== null) {
- for (var i = 0; i < chartLine_data.data3.length; i++) {
- var item = {
- name: chartLine_data.data1[i],
- type: 'line',
- data: chartLine_data.data3[i].data
- }
- serie.push(item)
- }
- }
- return serie
- })()
- }
- this.tab.chart1.chartLine.setOption(option)
- window.onresize = () => {
- this.tab.chart1.chartLine.resize()
- }
- },
- // 计划统计
- getChart2() {
- this.tab.chart2.listLoading = true
- const url = 'authdata/chart/accuracyAllJH'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart2.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart2.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart2.getdataListParm.parammaps.status
- } else {
- data.parammaps.pastureid =
- this.tab.chart2.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart2.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart2.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart2.getdataListParm.parammaps.status
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- if (
- response.data.data[i].实际量 !== '' &&
- response.data.data[i].实际量 !== undefined
- ) {
- response.data.data[i].实际量 = parseFloat(
- response.data.data[i].实际量
- )
- }
- if (
- response.data.data[i].理论量 !== '' &&
- response.data.data[i].理论量 !== undefined
- ) {
- response.data.data[i].理论量 = parseFloat(
- response.data.data[i].理论量
- )
- }
- if (
- response.data.data[i].field1 !== '' &&
- response.data.data[i].field1 !== undefined
- ) {
- response.data.data[i].field1 = parseFloat(
- response.data.data[i].field1
- )
- }
- if (
- response.data.data[i].计划取消重量 !== '' &&
- response.data.data[i].计划取消重量 !== undefined
- ) {
- response.data.data[i].计划取消重量 = parseFloat(
- response.data.data[i].计划取消重量
- )
- }
- if (
- response.data.data[i].field3 !== '' &&
- response.data.data[i].field3 !== undefined
- ) {
- response.data.data[i].field3 = parseFloat(
- response.data.data[i].field3
- )
- }
- if (
- response.data.data[i].正确数 !== '' &&
- response.data.data[i].正确数 !== undefined
- ) {
- response.data.data[i].正确数 = parseFloat(
- response.data.data[i].正确数
- )
- }
- if (
- response.data.data[i].计划数 !== '' &&
- response.data.data[i].计划数 !== undefined
- ) {
- response.data.data[i].计划数 = parseFloat(
- response.data.data[i].计划数
- )
- }
- if (
- response.data.data[i].field2 !== '' &&
- response.data.data[i].field2 !== undefined
- ) {
- response.data.data[i].field2 = parseFloat(
- response.data.data[i].field2
- )
- }
- }
- this.tab.chart2.table.list = response.data.data
- this.tab.chart2.chartLine_data = response.data.list
- this.tab.chart2.total = response.data.total
- console.log('计划统计图数据', this.tab.chart2.chartLine_data)
- console.log('计划统计表数据', this.tab.chart2.table.list)
- this.roadChartLine2(this.tab.chart2.chartLine_data)
- } else {
- this.tab.chart2.list = []
- }
- setTimeout(() => {
- this.tab.chart2.listLoading = false
- }, 100)
- })
- },
- roadChartLine2(chartLine_data) {
- if (this.tab.chart2.chartLine != null) {
- this.tab.chart2.chartLine.dispose()
- }
- this.tab.chart2.chartLine = echarts.init(
- document.getElementById('chartLine2'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- title: {
- text: ''
- },
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: [
- this.$t('errorAnalysis.jhzql'),
- this.$t('errorAnalysis.jhzql1'),
- this.$t('errorAnalysis.jhzqll')
- ],
- right: 10
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- toolbox: {
- show: true,
- right: '2%',
- feature: {}
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: chartLine_data.data1,
- name: this.$t('errorAnalysis.date')
- },
- yAxis: {
- min: 0, //取0为最小刻度
- max: 100, //取100为最大刻度
- min: 'min', //取最小值为最小刻度
- max: 'max', //取最大值为最大刻度
- min: function (value) {
- //取最小值向下取整为最小刻度
- return Math.floor(value.min)
- },
- max: function (value) {
- //取最大值向上取整为最大刻度
- return Math.ceil(value.max)
- },
- type: 'value',
- name: this.$t('errorAnalysis.bfb'),
- axisLabel: { formatter: '{value} %' }
- },
- series: [
- {
- name: this.$t('errorAnalysis.jhzql'),
- type: 'line',
- data: chartLine_data.data2
- },
- {
- name: this.$t('errorAnalysis.jhzql1'),
- type: 'line',
- data: chartLine_data.data3
- },
- {
- name: this.$t('errorAnalysis.jhzqll'),
- type: 'line',
- data: chartLine_data.data4
- }
- ]
- }
- this.tab.chart2.chartLine.setOption(option)
- window.onresize = () => {
- this.tab.chart2.chartLine.resize()
- }
- },
- // 牛群准确率
- changeStatisticChart3(arr) {
- var arr1 = []
- for (let i = 0; i < arr.length; i++) {
- if (arr[i] !== 'all') {
- arr1.push(arr[i])
- }
- }
- this.tab.chart3.getdataListParm.parammaps.statisticsList = arr1
- var arrData3 = []
- for (
- let i = 0;
- i < this.tab.chart3.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart3.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart3.getdataListParm.parammaps.statisticsList[i]
- ).id
- for (let j = 0; j < this.tab.chart3.chart3Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart3.chart3Data3[j])
- }
- }
- }
- this.tab.chart3.chartLine_data.data3 = arrData3
- this.tab.chart3.chartLine_data.data1 =
- this.tab.chart3.getdataListParm.parammaps.statisticsList
- this.roadChartLine3(this.tab.chart3.chartLine_data)
- },
- // 牛群准确率
- getChart3() {
- this.tab.chart3.listLoading = true
- const url = 'authdata/chart/accuracyAllNQ'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart3.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart3.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart3.getdataListParm.parammaps.status
- } else {
- data.parammaps.pastureid =
- this.tab.chart3.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart3.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart3.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart3.getdataListParm.parammaps.status
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- if (
- response.data.data[i].理论量 !== '' &&
- response.data.data[i].理论量 !== undefined
- ) {
- response.data.data[i].理论量 = parseFloat(
- response.data.data[i].理论量
- )
- }
- if (
- response.data.data[i].实际量 !== '' &&
- response.data.data[i].实际量 !== undefined
- ) {
- response.data.data[i].实际量 = parseFloat(
- response.data.data[i].实际量
- )
- }
- if (
- response.data.data[i].准确率 !== '' &&
- response.data.data[i].准确率 !== undefined
- ) {
- response.data.data[i].准确率 =
- parseFloat(response.data.data[i].准确率) + '%'
- }
- }
- this.tab.chart3.table.list = response.data.data
- this.tab.chart3.chartLine_data = response.data.list
- this.tab.chart3.total = response.data.total
- this.tab.chart3.statisticsList = []
- this.tab.chart3.getdataListParm.parammaps.statisticsList = []
- for (let i = 0; i < response.data.list.data1.length; i++) {
- // if (i < 10) {
- this.tab.chart3.getdataListParm.parammaps.statisticsList.push(
- response.data.list.data1[i]
- )
- // }
- var obj = {}
- obj.id = i
- obj.name = response.data.list.data1[i]
- this.tab.chart3.statisticsList.push(obj)
- }
- this.tab.chart3.chart3Data3 = response.data.list.data3
- this.tab.chart3.total = response.data.total
- console.log('牛群准确率图数据', this.tab.chart3.chartLine_data)
- console.log('牛群准确率表数据', this.tab.chart3.table.list)
- var arrData3 = []
- for (
- let i = 0;
- i < this.tab.chart3.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart3.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart3.getdataListParm.parammaps.statisticsList[i]
- ).id
- for (let j = 0; j < this.tab.chart3.chart3Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart3.chart3Data3[j])
- }
- }
- }
- this.tab.chart3.chartLine_data.data3 = arrData3
- this.tab.chart3.chartLine_data.data1 =
- this.tab.chart3.getdataListParm.parammaps.statisticsList
- this.roadChartLine3(this.tab.chart3.chartLine_data)
- } else {
- this.tab.chart3.list = []
- }
- setTimeout(() => {
- this.tab.chart3.listLoading = false
- }, 100)
- })
- },
- roadChartLine3(chartLine_data) {
- if (this.tab.chart3.chartLine != null) {
- this.tab.chart3.chartLine.dispose()
- }
- this.tab.chart3.chartLine = echarts.init(
- document.getElementById('chartLine3'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- title: {
- text: ''
- },
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: chartLine_data.data1,
- right: 10,
- show: true,
- type: 'scroll'
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- toolbox: {
- show: true,
- right: '2%',
- feature: {}
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: chartLine_data.data2,
- name: this.$t('errorAnalysis.date')
- },
- yAxis: {
- min: 0, //取0为最小刻度
- max: 100, //取100为最大刻度
- min: 'min', //取最小值为最小刻度
- max: 'max', //取最大值为最大刻度
- min: function (value) {
- //取最小值向下取整为最小刻度
- return Math.floor(value.min)
- },
- max: function (value) {
- //取最大值向上取整为最大刻度
- return Math.ceil(value.max)
- },
- type: 'value',
- name: this.$t('errorAnalysis.bfb'),
- axisLabel: { formatter: '{value} %' }
- },
- series: (function () {
- var serie = []
- for (var i = 0; i < chartLine_data.data3.length; i++) {
- var item = {
- name: chartLine_data.data1[i],
- type: 'line',
- data: chartLine_data.data3[i].data
- }
- serie.push(item)
- }
- return serie
- })()
- }
- this.tab.chart3.chartLine.setOption(option)
- window.onresize = () => {
- this.tab.chart3.chartLine.resize()
- }
- },
- // 车辆准确率(重量)
- changeStatisticChart4(arr) {
- var arr1 = []
- for (let i = 0; i < arr.length; i++) {
- if (arr[i] !== 'all') {
- arr1.push(arr[i])
- }
- }
- this.tab.chart4.getdataListParm.parammaps.statisticsList = arr1
- var arrData3 = []
- for (
- let i = 0;
- i < this.tab.chart4.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart4.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart4.getdataListParm.parammaps.statisticsList[i]
- ).id
- for (let j = 0; j < this.tab.chart4.chart4Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart4.chart4Data3[j])
- }
- }
- }
- this.tab.chart4.chartLine_data.data3 = arrData3
- this.tab.chart4.chartLine_data.data1 =
- this.tab.chart4.getdataListParm.parammaps.statisticsList
- this.roadChartLine4(this.tab.chart4.chartLine_data)
- },
- // 车辆准确率
- getChart4() {
- this.tab.chart4.listLoading = true
- const url = 'authdata/chart/accuracyAllCC'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart4.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart4.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart4.getdataListParm.parammaps.status
- } else {
- data.parammaps.pastureid =
- this.tab.chart4.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart4.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart4.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart4.getdataListParm.parammaps.status
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- if (
- response.data.data[i].理论量 !== '' &&
- response.data.data[i].理论量 !== undefined
- ) {
- response.data.data[i].理论量 = parseFloat(
- response.data.data[i].理论量
- )
- }
- if (
- response.data.data[i].实际量 !== '' &&
- response.data.data[i].实际量 !== undefined
- ) {
- response.data.data[i].实际量 = parseFloat(
- response.data.data[i].实际量
- )
- }
- if (
- response.data.data[i].准确率 !== '' &&
- response.data.data[i].准确率 !== undefined
- ) {
- response.data.data[i].准确率 =
- parseFloat(response.data.data[i].准确率) + '%'
- }
- }
- this.tab.chart4.table.list = response.data.data
- this.tab.chart4.chartLine_data = response.data.list
- this.tab.chart4.total = response.data.total
- this.tab.chart4.statisticsList = []
- this.tab.chart4.getdataListParm.parammaps.statisticsList = []
- for (let i = 0; i < response.data.list.data1.length; i++) {
- // if (i < 10) {
- this.tab.chart4.getdataListParm.parammaps.statisticsList.push(
- response.data.list.data1[i]
- )
- // }
- var obj = {}
- obj.id = i
- obj.name = response.data.list.data1[i]
- this.tab.chart4.statisticsList.push(obj)
- }
- this.tab.chart4.chart4Data3 = response.data.list.data3
- this.tab.chart4.total = response.data.total
- console.log('车辆准确率(重量)图', this.tab.chart4.chartLine_data)
- console.log('车辆准确率(重量)表', this.tab.chart4.table.list)
- var arrData3 = []
- for (
- let i = 0;
- i < this.tab.chart4.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart4.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart4.getdataListParm.parammaps.statisticsList[i]
- ).id
- for (let j = 0; j < this.tab.chart4.chart4Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart4.chart4Data3[j])
- }
- }
- }
- this.tab.chart4.chartLine_data.data3 = arrData3
- this.tab.chart4.chartLine_data.data1 =
- this.tab.chart4.getdataListParm.parammaps.statisticsList
- this.roadChartLine4(this.tab.chart4.chartLine_data)
- } else {
- this.tab.chart4.list = []
- }
- setTimeout(() => {
- this.tab.chart4.listLoading = false
- }, 100)
- })
- },
- roadChartLine4(chartLine_data) {
- if (this.tab.chart4.chartLine != null) {
- this.tab.chart4.chartLine.dispose()
- }
- this.tab.chart4.chartLine = echarts.init(
- document.getElementById('chartLine4'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- title: {
- text: ''
- },
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: chartLine_data.data1,
- right: 10,
- show: true,
- type: 'scroll'
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- toolbox: {
- show: true,
- right: '2%',
- feature: {}
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: chartLine_data.data2,
- name: this.$t('errorAnalysis.date')
- },
- yAxis: {
- min: 0, //取0为最小刻度
- max: 100, //取100为最大刻度
- min: 'min', //取最小值为最小刻度
- max: 'max', //取最大值为最大刻度
- min: function (value) {
- //取最小值向下取整为最小刻度
- return Math.floor(value.min)
- },
- max: function (value) {
- //取最大值向上取整为最大刻度
- return Math.ceil(value.max)
- },
- type: 'value',
- name: this.$t('errorAnalysis.bfb'),
- axisLabel: { formatter: '{value} %' }
- },
- series: (function () {
- var serie = []
- for (var i = 0; i < chartLine_data.data3.length; i++) {
- var item = {
- name: chartLine_data.data1[i],
- type: 'line',
- data: chartLine_data.data3[i].data
- }
- serie.push(item)
- }
- return serie
- })()
- }
- this.tab.chart4.chartLine.setOption(option)
- window.onresize = () => {
- this.tab.chart4.chartLine.resize()
- }
- },
- // 混料统计
- getChart5() {
- this.tab.chart5.listLoading = true
- const url = 'authdata/chart/accuracyAllHL'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart5.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart5.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart5.getdataListParm.parammaps.status
- } else {
- data.parammaps.pastureid =
- this.tab.chart5.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart5.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart5.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart5.getdataListParm.parammaps.status
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- if (
- response.data.data[i].field1 !== '' &&
- response.data.data[i].field1 !== undefined
- ) {
- response.data.data[i].field1 = parseFloat(
- response.data.data[i].field1
- )
- }
- if (
- response.data.data[i].field2 !== '' &&
- response.data.data[i].field2 !== undefined
- ) {
- response.data.data[i].field2 = parseFloat(
- response.data.data[i].field2
- )
- }
- if (
- response.data.data[i].理论自动 !== '' &&
- response.data.data[i].理论自动 !== undefined
- ) {
- response.data.data[i].理论自动 = parseFloat(
- response.data.data[i].理论自动
- )
- }
- if (
- response.data.data[i].实际自动 !== '' &&
- response.data.data[i].实际自动 !== undefined
- ) {
- response.data.data[i].实际自动 = parseFloat(
- response.data.data[i].实际自动
- )
- }
- if (
- response.data.data[i].field3 !== '' &&
- response.data.data[i].field3 !== undefined
- ) {
- response.data.data[i].field3 = parseFloat(
- response.data.data[i].field3
- )
- }
- if (
- response.data.data[i].理论手动 !== '' &&
- response.data.data[i].理论手动 !== undefined
- ) {
- response.data.data[i].理论手动 = parseFloat(
- response.data.data[i].理论手动
- )
- }
- if (
- response.data.data[i].实际手动 !== '' &&
- response.data.data[i].实际手动 !== undefined
- ) {
- response.data.data[i].实际手动 = parseFloat(
- response.data.data[i].实际手动
- )
- }
- if (
- response.data.data[i].field4 !== '' &&
- response.data.data[i].field4 !== undefined
- ) {
- response.data.data[i].field4 = parseFloat(
- response.data.data[i].field4
- )
- }
- }
- this.tab.chart5.table.list = response.data.data
- this.tab.chart5.chartLine_data = response.data.list
- this.tab.chart5.total = response.data.total
- console.log('混料统计图', this.tab.chart5.chartLine_data)
- console.log('混料统计表', this.tab.chart5.table.list)
- this.roadChartLine5(this.tab.chart5.chartLine_data)
- } else {
- this.tab.chart5.list = []
- }
- setTimeout(() => {
- this.tab.chart5.listLoading = false
- }, 100)
- })
- },
- roadChartLine5(chartLine_data) {
- if (this.tab.chart5.chartLine != null) {
- this.tab.chart5.chartLine.dispose()
- }
- this.tab.chart5.chartLine = echarts.init(
- document.getElementById('chartLine5'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- toolbox: {
- feature: {}
- },
- legend: {
- data: [
- this.$t('errorAnalysis.zdtzcs'),
- this.$t('errorAnalysis.sdtzcs'),
- this.$t('errorAnalysis.zdtzzql'),
- this.$t('errorAnalysis.sdtzzql')
- ]
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: chartLine_data.data1,
- axisPointer: {
- type: 'shadow'
- }
- }
- ],
- yAxis: [
- {
- splitLine: { show: false },
- type: 'value',
- name: this.$t('errorAnalysis.tzcs'),
- axisLabel: {
- formatter: '{value}'
- }
- },
- {
- splitLine: { show: false },
- type: 'value',
- name: this.$t('errorAnalysis.hlzqls'),
- min: 0,
- max: 100,
- interval: 10,
- axisLabel: {
- formatter: '{value} %'
- }
- }
- ],
- series: [
- {
- name: this.$t('errorAnalysis.zdtzcs'),
- type: 'bar',
- data: chartLine_data.data2
- },
- {
- name: this.$t('errorAnalysis.sdtzcs'),
- type: 'bar',
- data: chartLine_data.data3
- },
- {
- name: this.$t('errorAnalysis.zdtzzql'),
- type: 'line',
- yAxisIndex: 1,
- data: chartLine_data.data4
- },
- {
- name: this.$t('errorAnalysis.sdtzzql'),
- type: 'line',
- yAxisIndex: 1,
- data: chartLine_data.data5
- }
- ]
- }
- this.tab.chart5.chartLine.setOption(option)
- window.onresize = () => {
- this.tab.chart5.chartLine.resize()
- }
- },
- // 混料计划取消次数
- getChart6() {
- this.tab.chart6.listLoading = true
- const url = 'authdata/chart/accuracyAllQX'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart6.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart6.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart6.getdataListParm.parammaps.status
- } else {
- data.parammaps.pastureid =
- this.tab.chart6.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart6.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart6.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart6.getdataListParm.parammaps.status
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- if (
- response.data.data[i].field1 !== '' &&
- response.data.data[i].field1 !== undefined
- ) {
- response.data.data[i].field1 = parseFloat(
- response.data.data[i].field1
- )
- }
- }
- this.tab.chart6.table.list = response.data.data
- this.tab.chart6.chartLine_data = response.data.list
- this.tab.chart6.total = response.data.total
- console.log('混料计划取消次数图', this.tab.chart6.chartLine_data)
- console.log('混料计划取消次数表', this.tab.chart6.table.list)
- this.roadChartLine6(this.tab.chart6.chartLine_data)
- } else {
- this.tab.chart6.list = []
- }
- setTimeout(() => {
- this.tab.chart6.listLoading = false
- }, 100)
- })
- },
- roadChartLine6(chartLine_data) {
- if (this.tab.chart6.chartLine != null) {
- this.tab.chart6.chartLine.dispose()
- }
- this.tab.chart6.chartLine = echarts.init(
- document.getElementById('chartLine6'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- color: ['#3398DB'],
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- legend: {
- data: [this.$t('errorAnalysis.qxcs')],
- right: 10,
- show: true,
- type: 'scroll'
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- xAxis: [
- {
- name: this.$t('errorAnalysis.date'),
- type: 'category',
- data: chartLine_data.data1,
- axisTick: {
- alignWithLabel: true
- }
- }
- ],
- yAxis: [
- {
- name: this.$t('errorAnalysis.not'),
- interval: 1, // 会出现负数刻度
- min: 0,
- type: 'value'
- }
- ],
- series: [
- {
- name: this.$t('errorAnalysis.qxcs'),
- type: 'bar',
- barWidth: '60%',
- data: chartLine_data.data2
- }
- ]
- }
- this.tab.chart6.chartLine.setOption(option)
- window.onresize = () => {
- this.tab.chart6.chartLine.resize()
- }
- },
- changeformula() {
- this.getChart7()
- },
- // 栏舍撒料时间统计
- changeStatisticChart7(arr) {
- console.log(arr, 'arr')
- var arr1 = []
- for (let i = 0; i < arr.length; i++) {
- if (arr[i] !== 'all') {
- arr1.push(arr[i])
- }
- }
- this.tab.chart7.getdataListParm.parammaps.statisticsList = arr1
- var arrData3 = []
- for (
- let i = 0;
- i < this.tab.chart7.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart7.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart7.getdataListParm.parammaps.statisticsList[i]
- ).id
- for (let j = 0; j < this.tab.chart7.chart7Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart7.chart7Data3[j])
- }
- }
- }
- this.tab.chart7.chartLine_data.data3 = arrData3
- this.tab.chart7.chartLine_data.data1 =
- this.tab.chart7.getdataListParm.parammaps.statisticsList
- // console.log(this.tab.chart7.getdataListParm.parammaps.statisticsList,'我要看到v-model')
- // console.log(JSON.parse(this.tab.chart7.statisticsList),'我要看的下拉数据')
- // console.log(JSON.stringify(this.tab.chart7.statisticsList),'我要看的下拉数据')
- this.roadChartLine7(this.tab.chart7.chartLine_data)
- },
- handleScroll() {
- // 获取滚动容器的DOM元素
- const scrollContainer = this.$refs.scrollContainer
- // 计算滚动条距离底部的距离
- const distanceToBottom =
- scrollContainer.scrollHeight -
- (scrollContainer.scrollTop + scrollContainer.clientHeight)
- // 如果滚动条已经滚到最下方
- if (distanceToBottom === 0) {
- console.log('滚动条已经滚到最下方')
- this.getChart7()
- // 在这里可以执行相应的操作
- }
- },
- getChart7() {
- this.tab.chart7.listLoading = true
- const url = 'authdata/chart/accuracyAllLS'
- const data = {}
- data.parammaps = {}
- if (this.tab.chart7.getdataListParm.parammaps.specificDate == '1') {
- data.parammaps.pastureid =
- this.tab.chart7.getdataListParm.parammaps.pastureid
- data.parammaps.startTime = parseTime(
- this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.status = this.tab.chart7.getdataListParm.parammaps.status
- data.parammaps.ftId =
- this.tab.chart7.getdataListParm.parammaps.ftId.join(',')
- } else {
- data.parammaps.pastureid =
- this.tab.chart7.getdataListParm.parammaps.pastureid
- data.parammaps.startTime =
- this.tab.chart7.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.chart7.getdataListParm.parammaps.stopTime
- data.parammaps.status = this.tab.chart7.getdataListParm.parammaps.status
- data.parammaps.ftId =
- this.tab.chart7.getdataListParm.parammaps.ftId.join(',')
- }
- postJson(url, data).then((response) => {
- if (
- response.data !== null &&
- response.data.list !== null &&
- response.data.data !== null
- ) {
- for (let i = 0; i < response.data.data.length; i++) {
- // 撒料时间
- var b = []
- for (let j = 0; j <= response.data.data[i].准确率.length; j++) {
- // console.log(response.data.data[i].准确率)
- if (response.data.data[i].准确率.charAt(j) == '.') {
- b[j] = response.data.data[i].准确率.replace('.', ':')
- }
- }
- response.data.data[i].准确率 = b[b.length - 1]
- response.data.data[i].撒料时间 = response.data.data[i].准确率
- }
- this.tab.chart7.table.list = response.data.data
- this.tab.chart7.chartLine_data = response.data.list
- this.tab.chart7.statisticsList = []
- this.tab.chart7.getdataListParm.parammaps.statisticsList = []
- for (let i = 0; i < response.data.list.data1.length; i++) {
- // 君盛
- // if (i < 10) {
- // this.tab.chart7.getdataListParm.parammaps.statisticsList.push(response.data.list.data1[i])
- // }
- // 其他牧场
- this.tab.chart7.getdataListParm.parammaps.statisticsList.push(
- response.data.list.data1[i]
- )
- var obj = {}
- obj.id = i
- obj.name = response.data.list.data1[i]
- this.tab.chart7.statisticsList.push(obj)
- }
- console.log('------->', this.tab.chart7)
- this.tab.chart7.chart7Data3 = response.data.list.data3
- this.tab.chart7.total = response.data.total
- console.log('栏舍撒料时间统计图', this.tab.chart7.chartLine_data)
- console.log('栏舍撒料时间统计表', this.tab.chart7.table.list)
- var arrData3 = []
- for (
- let i = 0;
- i < this.tab.chart7.getdataListParm.parammaps.statisticsList.length;
- i++
- ) {
- const myId = this.tab.chart7.statisticsList.find(
- (obj) =>
- obj.name ==
- this.tab.chart7.getdataListParm.parammaps.statisticsList[i]
- ).id
- for (let j = 0; j < this.tab.chart7.chart7Data3.length; j++) {
- if (j == myId) {
- arrData3.push(this.tab.chart7.chart7Data3[j])
- }
- }
- }
- this.tab.chart7.chartLine_data.data3 = arrData3
- this.tab.chart7.chartLine_data.data1 =
- this.tab.chart7.getdataListParm.parammaps.statisticsList
- // console.log(this.tab.chart7.getdataListParm.parammaps.statisticsList,'我要看到v-model')
- // console.log(JSON.stringify(this.tab.chart7.statisticsList),'我要看的下拉数据')
- this.roadChartLine7(this.tab.chart7.chartLine_data)
- } else {
- this.tab.chart7.list = []
- }
- setTimeout(() => {
- this.tab.chart7.listLoading = false
- }, 100)
- })
- },
- roadChartLine7(chartLine_data) {
- console.log(chartLine_data, 'chartLine_data777')
- if (this.tab.chart7.chartLine != null) {
- this.tab.chart7.chartLine.dispose()
- }
- this.tab.chart7.chartLine = echarts.init(
- document.getElementById('chartLine7'),
- null,
- { renderer: 'svg' }
- )
- var option = {
- useWorker: true,
- title: {
- text: ''
- },
- tooltip: {
- trigger: 'axis',
- formatter: function (params) {
- // console.log(params)
- var tip = params[0].name
- if (params !== null && params !== '') {
- for (let i = 0; i < params.length; i++) {
- var b = []
- // var str = params[i].value
- for (let j = 0; j <= params[i].value.length; j++) {
- if (params[i].value !== '') {
- if (params[i].value.charAt(j) == '.') {
- b[j] = params[i].value.replace('.', ':')
- }
- } else {
- b[j] = ''
- }
- }
- tip += '<br>' + params[i].seriesName + ': ' + b[b.length - 1]
- }
- }
- return tip
- }
- },
- legend: {
- data: chartLine_data.data1,
- top: 10,
- right: 10,
- show: true,
- type: 'scroll'
- },
- grid: {
- top: '20%',
- left: '5%',
- right: '8%',
- containLabel: true
- },
- toolbox: {
- show: true,
- right: '2%',
- feature: {}
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: chartLine_data.data2,
- name: this.$t('errorAnalysis.date')
- },
- yAxis: [
- {
- type: '',
- name: this.$t('errorAnalysis.time'),
- mix: 0,
- max: 24,
- interval: 2,
- axisLabel: {
- formatter: function (value) {
- var texts = []
- if (value < 10) {
- texts.push('0' + value + ':00')
- } else {
- texts.push(value + ':00')
- }
- return texts
- }
- }
- }
- ],
- series: (function () {
- var serie = []
- for (var i = 0; i < chartLine_data.data3.length; i++) {
- var item = {
- name: chartLine_data.data1[i],
- type: 'line',
- data: chartLine_data.data3[i].data
- }
- serie.push(item)
- }
- return serie
- })()
- }
- this.tab.chart7.chartLine.setOption(option)
- if (this.tab.chart7.chartLine != null) {
- window.onresize = () => {
- this.tab.chart7.chartLine.resize()
- }
- }
- },
- // 导出
- handleExport(item) {
- if (item == 'chart1') {
- console.log('配方准确率导出')
- var excelDatasTabChart1 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.jhzl'),
- this.$t('errorAnalysis.skzl'),
- this.$t('errorAnalysis.zql')
- ],
- filterVal: ['日期', '名称', '理论量', '实际量', '准确率'],
- tableDatas: this.tab.chart1.table.list,
- sheetName: this.$t('errorAnalysis.feedName')
- }
- ]
- json2excel(
- excelDatasTabChart1,
- this.$t('errorAnalysis.feedName'),
- true,
- 'xlsx'
- )
- } else if (item == 'chart2') {
- console.log('计划统计导出')
- var excelDatasTabChart2 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.jhzxzl'),
- this.$t('errorAnalysis.pfllzl'),
- this.$t('errorAnalysis.jhzql'),
- this.$t('errorAnalysis.jhqxzl'),
- this.$t('errorAnalysis.jhzqll'),
- this.$t('errorAnalysis.jhzql1'),
- this.$t('errorAnalysis.jhs'),
- this.$t('errorAnalysis.jhzql1')
- ],
- filterVal: [
- '日期',
- '实际量',
- '理论量',
- 'field1',
- '计划取消重量',
- 'field3',
- '正确数',
- '计划数',
- 'field2'
- ],
- tableDatas: this.tab.chart2.table.list,
- sheetName: '计划统计'
- }
- ]
- json2excel(
- excelDatasTabChart2,
- this.$t('errorAnalysis.planName'),
- true,
- 'xlsx'
- )
- } else if (item == 'chart3') {
- console.log('牛群准确率导出')
- var excelDatasTabChart3 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.sxlb'),
- this.$t('errorAnalysis.jhzl'),
- this.$t('errorAnalysis.skzl'),
- this.$t('errorAnalysis.zql')
- ],
- filterVal: ['日期', '名称', '理论量', '实际量', '准确率'],
- tableDatas: this.tab.chart3.table.list,
- sheetName: '牛群准确率'
- }
- ]
- json2excel(
- excelDatasTabChart3,
- this.$t('errorAnalysis.nqName'),
- true,
- 'xlsx'
- )
- } else if (item == 'chart4') {
- console.log('车辆准确率(重量)导出')
- var excelDatasTabChart4 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.jhzl'),
- this.$t('errorAnalysis.skzl'),
- this.$t('errorAnalysis.zql')
- ],
- filterVal: ['日期', '名称', '理论量', '实际量', '准确率'],
- tableDatas: this.tab.chart4.table.list,
- sheetName: '车辆准确率(重量)'
- }
- ]
- json2excel(
- excelDatasTabChart4,
- this.$t('errorAnalysis.clzql'),
- true,
- 'xlsx'
- )
- } else if (item == 'chart5') {
- console.log('混料统计导出')
- const table = this.$refs.myTable
- const columns = table.columns
- const labels = columns.map((column) => column.label)
- console.log('labels', labels)
- var excelDatasTabChart5 = [
- {
- tHeader: labels,
- filterVal: [
- '日期',
- 'field1',
- 'field2',
- '理论自动',
- '实际自动',
- 'field3',
- '理论手动',
- '实际手动',
- 'field4'
- ],
- tableDatas: this.tab.chart5.table.list,
- sheetName: '混料统计'
- }
- ]
- json2excel(
- excelDatasTabChart5,
- this.$t('errorAnalysis.hltj'),
- true,
- 'xlsx'
- )
- } else if (item == 'chart6') {
- console.log('混料计划取消次数导出')
- var excelDatasTabChart6 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.hlqxcs')
- ],
- filterVal: ['日期', 'field1'],
- tableDatas: this.tab.chart6.table.list,
- sheetName: '混料计划取消次数'
- }
- ]
- json2excel(
- excelDatasTabChart6,
- this.$t('errorAnalysis.hlqxcs'),
- true,
- 'xlsx'
- )
- } else if (item == 'chart7') {
- console.log('栏舍撒料时间统计导出')
- var excelDatasTabChart7 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.pen'),
- this.$t('errorAnalysis.slsj')
- ],
- filterVal: ['日期', 'fname', '准确率'],
- tableDatas: this.tab.chart7.table.list,
- sheetName: '栏舍撒料时间统计'
- }
- ]
- json2excel(
- excelDatasTabChart7,
- this.$t('errorAnalysis.lsslsjtj'),
- true,
- 'xlsx'
- )
- }
- },
- // 切换表格
- handleTable(item) {
- // 显示切换表格
- if (item == 'chart1') {
- console.log('配方准确率表格')
- this.tab.chart1.isTable = true
- this.tab.chart1.isChart = false
- } else if (item == 'chart2') {
- console.log('计划统计表格')
- this.tab.chart2.isTable = true
- this.tab.chart2.isChart = false
- } else if (item == 'chart3') {
- console.log('牛群准确率表格')
- this.tab.chart3.isTable = true
- this.tab.chart3.isChart = false
- } else if (item == 'chart4') {
- console.log('车辆准确率(重量)表格')
- this.tab.chart4.isTable = true
- this.tab.chart4.isChart = false
- } else if (item == 'chart5') {
- console.log('混料统计表格')
- this.tab.chart5.isTable = true
- this.tab.chart5.isChart = false
- } else if (item == 'chart6') {
- console.log('混料计划取消次数表格')
- this.tab.chart6.isTable = true
- this.tab.chart6.isChart = false
- } else if (item == 'chart7') {
- console.log('栏舍撒料时间统计表格')
- this.tab.chart7.isTable = true
- this.tab.chart7.isChart = false
- }
- },
- // 切换图表
- handleChart(item) {
- // 显示切换图表
- if (item == 'chart1') {
- console.log('配方准确率图表')
- this.tab.chart1.isTable = false
- this.tab.chart1.isChart = true
- this.getChart1()
- } else if (item == 'chart2') {
- console.log('计划统计图表')
- this.tab.chart2.isTable = false
- this.tab.chart2.isChart = true
- this.getChart2()
- } else if (item == 'chart3') {
- console.log('牛群准确率图表')
- this.tab.chart3.isTable = false
- this.tab.chart3.isChart = true
- this.getChart3()
- } else if (item == 'chart4') {
- console.log('车辆准确率(重量)图表')
- this.tab.chart4.isTable = false
- this.tab.chart4.isChart = true
- this.getChart4()
- } else if (item == 'chart5') {
- console.log('混料统计图表')
- this.tab.chart5.isTable = false
- this.tab.chart5.isChart = true
- this.getChart5()
- } else if (item == 'chart6') {
- console.log('混料计划取消次数图表')
- this.tab.chart6.isTable = false
- this.tab.chart6.isChart = true
- this.getChart6()
- } else if (item == 'chart7') {
- console.log('栏舍撒料时间统计图表')
- this.tab.chart7.isTable = false
- this.tab.chart7.isChart = true
- this.getChart7()
- }
- },
- // 混料统计
- getTab2List() {
- this.tab2.table.listLoading = true
- GetDataByName(this.tab2.table.getdataListParm).then((response) => {
- if (response.data.list !== null) {
- console.log('混料统计table数据', response.data.list)
- // this.tab2.table.list = response.data.list
- this.$refs.plTable2.reloadData(response.data.list)
- this.tab2.table.total = response.data.total
- } else {
- this.$refs.plTable2.reloadData([])
- this.tab2.table.total = 0
- // this.tab2.table.list = []
- }
- setTimeout(() => {
- this.tab2.table.listLoading = false
- }, 100)
- })
- },
- form_search2() {
- this.tab2.table.getdataListParm.name = 'getStatisticsHL'
- if (
- this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab2.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- console.log(this.tab2.table.getdataListParm.parammaps.inputDatetime)
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab2.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- } else {
- this.tab2.table.getdataListParm.parammaps.inputDatetime = ''
- this.tab2.table.getdataListParm.parammaps.startTime = ''
- this.tab2.table.getdataListParm.parammaps.stopTime = ''
- }
- // this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
- // this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
- this.tab2.table.getdataListParm.offset = 1
- this.getTab2List()
- this.getTMRNameList2()
- },
- handleRefresh2() {
- this.tab2.table.getdataListParm.parammaps.tmrtname = ''
- this.tab2.table.getdataListParm.parammaps.projname = ''
- this.tab2.table.getdataListParm.parammaps.times = ''
- this.tab2.table.getdataListParm.parammaps.templetname = ''
- this.tab2.table.getdataListParm.parammaps.buttontype = ''
- this.tab2.table.getdataListParm.parammaps.hlwc1 = undefined
- this.tab2.table.getdataListParm.parammaps.hlwc2 = undefined
- this.tab2.table.getdataListParm.parammaps.hlzq1 = undefined
- this.tab2.table.getdataListParm.parammaps.hlzq2 = undefined
- this.tab2.table.getdataListParm.parammaps.hlzql1 = undefined
- this.tab2.table.getdataListParm.parammaps.hlzql2 = undefined
- this.tab2.table.getdataListParm.parammaps.error = false
- this.getTab2List()
- },
- handleExport2() {
- console.log('导出')
- this.exportList.dialogFormVisible = true
- this.exportList.dialogStatus = 'exportList'
- // var excelDatasTab2 = [
- // {
- // tHeader: ['日期', 'TMR名称', '车次', '班次', '配方名称', '饲料', '理论重量', '实际重量', '误差值', '准确率', '计划时间', '开始时间', '结束时间', ' 跳转方式', '开始重量', '结束重量', '搅拌时间'],
- // filterVal: ['日期', 'TMR名称', '车次', '班次', '配方名称', '饲料', '理论重量', '实际重量', '误差值', '准确率', '计划时间', '开始时间', '结束时间', '跳转方式', '开始重量', '结束重量', '搅拌时间'],
- // tableDatas: this.tab2.table.list,
- // sheetName: '混料统计'
- // }
- // ]
- // json2excel(excelDatasTab2, '混料统计', true, 'xlsx')
- },
- exportList2() {
- this.isokDisable = true
- var url = 'authdata/GetDataByName'
- var data = {
- name: 'getStatisticsHL',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: '',
- stopTime: '',
- templetname: '',
- isuse: ''
- }
- }
- data.parammaps.startTime = parseTime(
- this.exportList.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.exportList.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.tmrtname =
- this.tab2.table.getdataListParm.parammaps.tmrtname
- data.parammaps.projname =
- this.tab2.table.getdataListParm.parammaps.projname
- data.parammaps.times = this.tab2.table.getdataListParm.parammaps.times
- data.parammaps.buttontype =
- this.tab2.table.getdataListParm.parammaps.buttontype
- data.parammaps.templetname =
- this.tab2.table.getdataListParm.parammaps.templetname
- data.parammaps.isuse = this.tab2.table.getdataListParm.parammaps.isuse
- postJson(url, data).then((response) => {
- var exportList = []
- if (response.data.list !== null) {
- console.log('混料统计table数据', response.data.list)
- exportList = response.data.list
- } else {
- exportList = []
- }
- var excelDatasTab2 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.czNum'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.isFeed'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.wcz'),
- this.$t('errorAnalysis.zql'),
- this.$t('errorAnalysis.planTime'),
- this.$t('errorAnalysis.startTime'),
- this.$t('errorAnalysis.endTime'),
- this.$t('errorAnalysis.tzfs'),
- this.$t('errorAnalysis.stWeight'),
- this.$t('errorAnalysis.edWeight'),
- this.$t('errorAnalysis.jsTime'),
- this.$t('errorAnalysis.isOK'),
- this.$t('errorAnalysis.area')
- ],
- filterVal: [
- '日期',
- 'TMR名称',
- 'sort',
- '车次',
- '班次',
- '配方名称',
- '驾驶员',
- '饲料',
- '理论重量',
- '实际重量',
- '误差值',
- '准确率',
- '计划时间',
- '开始时间',
- '结束时间',
- '跳转方式',
- '开始重量',
- '结束重量',
- '搅拌时间',
- 'standard',
- 'barname'
- ],
- tableDatas: exportList,
- sheetName: '混料统计'
- }
- ]
- json2excel(excelDatasTab2, this.$t('errorAnalysis.hltj'), true, 'xlsx')
- this.isokDisable = false
- this.exportList.dialogFormVisible = false
- })
- },
- // 撒料统计
- getTab3List() {
- this.tab3.table.listLoading = true
- GetDataByName(this.tab3.table.getdataListParm).then((response) => {
- console.log('撒料统计table数据', response.data.list)
- if (response.data.list !== null) {
- // this.tab3.table.list = response.data.list
- this.$refs.plTable3.reloadData(response.data.list)
- this.tab3.table.total = response.data.total
- } else {
- // this.tab3.table.list = []
- this.$refs.plTable3.reloadData([])
- this.tab3.table.total = 0
- }
- setTimeout(() => {
- this.tab3.table.listLoading = false
- }, 100)
- })
- },
- form_search3() {
- this.tab3.table.getdataListParm.name = 'getStatisticsSL'
- if (
- this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' &&
- this.tab3.table.getdataListParm.parammaps.inputDatetime !== null
- ) {
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(
- this.tab3.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- } else {
- this.tab3.table.getdataListParm.parammaps.inputDatetime = ''
- this.tab3.table.getdataListParm.parammaps.startTime = ''
- this.tab3.table.getdataListParm.parammaps.stopTime = ''
- }
- // this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
- // this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
- this.tab3.table.getdataListParm.offset = 1
- this.getTab3List()
- this.getTMRNameList3()
- },
- handleRefresh3() {
- this.tab3.table.getdataListParm.parammaps.tmrtname = ''
- this.tab3.table.getdataListParm.parammaps.projname = ''
- this.tab3.table.getdataListParm.parammaps.times = ''
- this.tab3.table.getdataListParm.parammaps.templetname = ''
- this.tab3.table.getdataListParm.parammaps.buttontype = ''
- this.tab3.table.getdataListParm.parammaps.fname = ''
- this.tab3.table.getdataListParm.parammaps.slwc1 = undefined
- this.tab3.table.getdataListParm.parammaps.slwc2 = undefined
- this.tab3.table.getdataListParm.parammaps.slzq1 = undefined
- this.tab3.table.getdataListParm.parammaps.slzq2 = undefined
- this.tab3.table.getdataListParm.parammaps.slzql1 = undefined
- this.tab3.table.getdataListParm.parammaps.slzql2 = undefined
- this.tab3.table.getdataListParm.parammaps.error = false
- this.getTab3List()
- },
- handleExport3() {
- this.exportList.dialogFormVisible = true
- this.exportList.dialogStatus = 'exportList'
- // var excelDatasTab3 = [
- // {
- // tHeader: ['日期', 'TMR名称', '车次', '班次', '配方名称', '栏舍', '理论重量', '实际重量', '误差值', '准确率', '开始时间', '结束时间', '跳转方式', '开始重量', '结束重量', '搅拌时间'],
- // filterVal: ['日期', 'TMR名称', '车次', '班次', '配方名称', '栏舍', '理论重量', '实际重量', '误差值', '准确率', '开始时间', '结束时间', '跳转方式', '开始重量', '结束重量', '搅拌时间'],
- // tableDatas: this.tab3.table.list,
- // sheetName: '撒料统计'
- // }
- // ]
- // json2excel(excelDatasTab3, '撒料统计', true, 'xlsx')
- },
- exportList3() {
- this.isokDisable = true
- var url = 'authdata/GetDataByName'
- var data = {
- name: 'getStatisticsSL',
- page: 1,
- offset: 1,
- pagecount: '',
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- startTime: '',
- stopTime: '',
- templetname: '',
- isuse: ''
- }
- }
- data.parammaps.startTime = parseTime(
- this.exportList.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- data.parammaps.stopTime = parseTime(
- this.exportList.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- data.parammaps.tmrtname =
- this.tab3.table.getdataListParm.parammaps.tmrtname
- data.parammaps.projname =
- this.tab3.table.getdataListParm.parammaps.projname
- data.parammaps.times = this.tab3.table.getdataListParm.parammaps.times
- data.parammaps.buttontype =
- this.tab3.table.getdataListParm.parammaps.buttontype
- data.parammaps.templetname =
- this.tab3.table.getdataListParm.parammaps.templetname
- data.parammaps.isuse = this.tab3.table.getdataListParm.parammaps.isuse
- postJson(url, data).then((response) => {
- console.log('混料统计table数据', response.data.list)
- var exportList = []
- if (response.data.list !== null) {
- exportList = response.data.list
- } else {
- exportList = []
- }
- var excelDatasTab3 = [
- {
- tHeader: [
- this.$t('errorAnalysis.date'),
- this.$t('errorAnalysis.tmrnames'),
- this.$t('errorAnalysis.czNum'),
- this.$t('errorAnalysis.projname'),
- this.$t('errorAnalysis.isTrainNumber'),
- this.$t('errorAnalysis.feedName'),
- this.$t('errorAnalysis.Driver'),
- this.$t('errorAnalysis.pen'),
- this.$t('errorAnalysis.llzl'),
- this.$t('errorAnalysis.acWeight'),
- this.$t('errorAnalysis.wcz'),
- this.$t('errorAnalysis.zql'),
- this.$t('errorAnalysis.startTime'),
- this.$t('errorAnalysis.endTime'),
- this.$t('errorAnalysis.tzfs'),
- this.$t('errorAnalysis.stWeight'),
- this.$t('errorAnalysis.edWeight'),
- this.$t('errorAnalysis.jsTime'),
- this.$t('errorAnalysis.isOK')
- ],
- filterVal: [
- '日期',
- 'TMR名称',
- 'sort',
- '车次',
- '班次',
- '配方名称',
- '驾驶员',
- '栏舍',
- '理论重量',
- '实际重量',
- '误差值',
- '准确率',
- '开始时间',
- '结束时间',
- '跳转方式',
- this.$t('errorAnalysis.stWeight'),
- '结束重量',
- '搅拌时间',
- 'standard'
- ],
- tableDatas: exportList,
- sheetName: '撒料统计'
- }
- ]
- json2excel(excelDatasTab3, this.$t('errorAnalysis.sltj'), true, 'xlsx')
- this.isokDisable = false
- this.exportList.dialogFormVisible = false
- })
- },
- handleSee(item, row) {
- if (this.tab.table.getdataListParm.parammaps.error == true) {
- this.error = true
- } else {
- this.error = ''
- }
- if (item == 1) {
- // 混料
- if (this.tab.radio == 0) {
- this.methodName = 'getDownloadedplanByJsyHL'
- this.optdevice = row.驾驶员
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.驾驶员
- } else if (this.tab.radio == 1) {
- this.methodName = 'getDownloadedplanByTemHL'
- this.optdevice = row.配方名称
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.配方名称
- } else if (this.tab.radio == 2) {
- this.methodName = 'getDownloadedplanByBarHL'
- this.optdevice = row.栏舍名称
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.栏舍名称
- } else if (this.tab.radio == 3) {
- this.methodName = 'getDownloadedplanBySCHL'
- this.optdevice = row.牲畜类别
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.牲畜类别
- } else if (this.tab.radio == 4) {
- this.methodName = 'getDownloadedplanByTrainsHL'
- this.optdevice = row.车次
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.车次
- } else if (this.tab.radio == 5) {
- this.methodName = 'getDownloadedplanByTmrHL'
- this.optdevice = row.TMR名称
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.TMR名称
- } else if (this.tab.radio == 6) {
- this.methodName = 'getDownloadedplanByFeedHL'
- this.optdevice = row.fname
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.fname
- } else if (this.tab.radio == 7) {
- this.methodName = 'getDownloadedplanByWflHL'
- this.optdevice = row.fname
- this.titlefname = this.$t('errorAnalysis.zqxxq')
- }
- } else {
- // 撒料
- if (this.tab.radio == 0) {
- this.methodName = 'getDownloadedplanByJsySL'
- this.optdevice = row.驾驶员
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.驾驶员
- } else if (this.tab.radio == 1) {
- this.methodName = 'getDownloadedplanByTemSL'
- this.optdevice = row.配方名称
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.配方名称
- } else if (this.tab.radio == 2) {
- this.methodName = 'getDownloadedplanByBarSL'
- this.optdevice = row.栏舍名称
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.栏舍名称
- } else if (this.tab.radio == 3) {
- this.methodName = 'getDownloadedplanBySCSL'
- this.optdevice = row.牲畜类别
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.牲畜类别
- } else if (this.tab.radio == 4) {
- this.methodName = 'getDownloadedplanByTrainsSL'
- this.optdevice = row.车次
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.车次
- } else if (this.tab.radio == 5) {
- this.methodName = 'getDownloadedplanByTmrSL'
- this.optdevice = row.TMR名称
- this.titlefname = this.$t('errorAnalysis.zqxxq') + row.TMR名称
- } else if (this.tab.radio == 7) {
- this.methodName = 'getDownloadedplanByWflSL'
- this.optdevice = row.fname
- this.titlefname = this.$t('errorAnalysis.zqxxq')
- }
- }
- console.log(row, 'row')
- // this.rowPid = row.pid
- this.startTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[0],
- '{y}-{m}-{d}'
- )
- this.stopTime = parseTime(
- this.tab.table.getdataListParm.parammaps.inputDatetime[1],
- '{y}-{m}-{d}'
- )
- this.isShowDialog = true
- },
- getTMRNameList() {
- var data = {}
- data.name = 'getAccuracyMCTmrName'
- data.parammaps = {}
- data.parammaps.pastureid = Cookies.get('pastureid')
- data.parammaps.startTime =
- this.tab.table.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab.table.getdataListParm.parammaps.stopTime
- GetDataByName(data).then((response) => {
- if (response.data.list !== null) {
- this.tab.TMRNameList = response.data.list
- } else {
- this.tab.TMRNameList = []
- }
- })
- },
- getTMRNameList2() {
- var data = {}
- data.name = 'getAccuracyMCTmrName'
- data.parammaps = {}
- data.parammaps.pastureid = Cookies.get('pastureid')
- data.parammaps.startTime =
- this.tab2.table.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab2.table.getdataListParm.parammaps.stopTime
- GetDataByName(data).then((response) => {
- if (response.data !== null) {
- this.tab2.TMRNameList = response.data.list
- } else {
- this.tab2.TMRNameList = []
- }
- })
- },
- getTMRNameList3() {
- var data = {}
- data.name = 'getAccuracyMCTmrName'
- data.parammaps = {}
- data.parammaps.pastureid = Cookies.get('pastureid')
- data.parammaps.startTime =
- this.tab3.table.getdataListParm.parammaps.startTime
- data.parammaps.stopTime =
- this.tab3.table.getdataListParm.parammaps.stopTime
- GetDataByName(data).then((response) => {
- if (response.data.list !== null) {
- this.tab3.TMRNameList = response.data.list
- } else {
- this.tab3.TMRNameList = []
- }
- })
- },
- clickRecipeName2(row) {
- console.log('点击了混料统计-配方名称', row)
- this.recipeNameTemp2.temp = Object.assign({}, row)
- this.recipeNameTemp2.dialogFormVisible = true
- this.textMap.recipeNameTxt =
- this.$t('errorAnalysis.pfxgjl') + row.配方名称
- this.recipeNameTemp2.dialogStatus = 'recipeNameTxt'
- this.recipeNameTemp2.getdataListParm.parammaps.pastureid =
- Cookies.get('pastureid')
- this.recipeNameTemp2.getdataListParm.parammaps.ftid = row.ftid
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime = []
- const start = new Date()
- const end = new Date()
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime[0] =
- parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime[1] =
- parseTime(end.setTime(end.getTime()), '{y}-{m}-{d}')
- this.getRecipeNameList2()
- },
- getRecipeNameList2() {
- this.recipeNameTemp2.listLoading = true
- if (
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime == null
- ) {
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime = ''
- this.recipeNameTemp2.getdataListParm.parammaps.startdate = ''
- this.recipeNameTemp2.getdataListParm.parammaps.enddate = ''
- } else {
- this.recipeNameTemp2.getdataListParm.parammaps.startdate =
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime[0] +
- ' 00:00'
- this.recipeNameTemp2.getdataListParm.parammaps.enddate =
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime[1] +
- ' 23:59'
- }
- const url = 'authdata/feedtemplet/history'
- const data = {
- pastureid: this.recipeNameTemp2.getdataListParm.parammaps.pastureid,
- ftid: this.recipeNameTemp2.getdataListParm.parammaps.ftid,
- startdate: this.recipeNameTemp2.getdataListParm.parammaps.startdate,
- enddate: this.recipeNameTemp2.getdataListParm.parammaps.enddate
- }
- postJson(url, data).then((response) => {
- if (response.data !== null && response.data !== '') {
- this.recipeNameTemp2.list = response.data
- } else {
- this.recipeNameTemp2.list = []
- this.recipeNameTemp2.total = 0
- }
- console.log(response.data, 'response.data')
- setTimeout(() => {
- this.recipeNameTemp2.listLoading = false
- }, 100)
- })
- },
- handleRecipeNameSearch2() {
- this.getRecipeNameList2()
- },
- clickSeeFeed(row) {
- this.recipeNameTemp3.listLoading = false
- this.recipeNameTemp3.list = row.fit
- this.recipeNameTemp3.temp = Object.assign({}, row)
- this.recipeNameTemp3.dialogFormVisible = true
- this.textMap.recipeNameTxt = this.$t('errorAnalysis.pfxgjl')
- this.recipeNameTemp3.dialogStatus = 'recipeNameTxt'
- const start = new Date()
- const end = new Date()
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime = []
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime[0] =
- parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime[1] =
- parseTime(end.setTime(end.getTime()), '{y}-{m}-{d}')
- },
- clickFeed2(row) {
- console.log('点击了混料统计-饲料', row)
- this.feedTemp.temp = Object.assign({}, row)
- this.feedTemp.dialogFormVisible = true
- this.textMap.feedTxt = this.$t('errorAnalysis.pfxgjl') + row.饲料
- this.feedTemp.dialogStatus = 'feedTxt'
- this.feedTemp.getdataListParm.parammaps.pastureid = row.pastureid
- this.feedTemp.getdataListParm.parammaps.ftid = row.ftid
- this.feedTemp.getdataListParm.parammaps.name = row.饲料
- this.feedTemp.getdataListParm.parammaps.inputDatetime = []
- const start = new Date()
- const end = new Date()
- this.feedTemp.getdataListParm.parammaps.inputDatetime[0] = parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.feedTemp.getdataListParm.parammaps.inputDatetime[1] = parseTime(
- end.setTime(end.getTime()),
- '{y}-{m}-{d}'
- )
- this.getFeedList()
- },
- getFeedList() {
- this.feedTemp.listLoading = true
- if (this.feedTemp.getdataListParm.parammaps.inputDatetime == null) {
- this.feedTemp.getdataListParm.parammaps.inputDatetime = ''
- this.feedTemp.getdataListParm.parammaps.startTime = ''
- this.feedTemp.getdataListParm.parammaps.stopTime = ''
- } else {
- this.feedTemp.getdataListParm.parammaps.startTime =
- this.feedTemp.getdataListParm.parammaps.inputDatetime[0] + ' 00:00'
- this.feedTemp.getdataListParm.parammaps.stopTime =
- this.feedTemp.getdataListParm.parammaps.inputDatetime[1] + ' 23:59'
- }
- const url = 'authdata/GetDataByName'
- const data = {
- name: 'getFitistoryByName',
- page: this.feedTemp.getdataListParm.page,
- offset: this.feedTemp.getdataListParm.offset,
- pagecount: this.feedTemp.getdataListParm.pagecount,
- returntype: this.feedTemp.getdataListParm.returntype,
- parammaps: this.feedTemp.getdataListParm.parammaps
- }
- postJson(url, data).then((response) => {
- if (response.data.list !== null && response.data.list !== '') {
- for (let i = 0; i < response.data.list.length; i++) {
- if (response.data.list[i].arrList == null) {
- this.$set(response.data.list[i], 'arrList', [])
- }
- }
- this.feedTemp.list = response.data.list
- this.feedTemp.pageNum = response.data.pageNum
- this.feedTemp.pageSize = response.data.pageSize
- this.feedTemp.total = response.data.total
- } else {
- this.feedTemp.list = []
- this.feedTemp.total = 0
- }
- console.log(response.data, 'response.data')
- setTimeout(() => {
- this.feedTemp.listLoading = false
- }, 100)
- })
- },
- handleFeedSearch() {
- this.getFeedList()
- },
- clickRecipeName3(row) {
- console.log('点击了撒料统计-配方名称', row)
- this.recipeNameTemp2.temp = Object.assign({}, row)
- this.recipeNameTemp2.dialogFormVisible = true
- this.textMap.recipeNameTxt =
- this.$t('errorAnalysis.pfxgjl') + row.配方名称
- this.recipeNameTemp2.dialogStatus = 'recipeNameTxt'
- this.recipeNameTemp2.getdataListParm.parammaps.pastureid =
- Cookies.get('pastureid')
- this.recipeNameTemp2.getdataListParm.parammaps.ftid = row.ftid
- const start = new Date()
- const end = new Date()
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime = []
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime[0] =
- parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.recipeNameTemp2.getdataListParm.parammaps.inputDatetime[1] =
- parseTime(end.setTime(end.getTime()), '{y}-{m}-{d}')
- this.getRecipeNameList2()
- },
- getRecipeNameList3() {
- this.recipeNameTemp3.listLoading = true
- if (
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime == null
- ) {
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime = ''
- this.recipeNameTemp3.getdataListParm.parammaps.startTime = ''
- this.recipeNameTemp3.getdataListParm.parammaps.stopTime = ''
- } else {
- this.recipeNameTemp3.getdataListParm.parammaps.startTime =
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime[0] +
- ' 00:00'
- this.recipeNameTemp3.getdataListParm.parammaps.stopTime =
- this.recipeNameTemp3.getdataListParm.parammaps.inputDatetime[1] +
- ' 23:59'
- }
- const url = 'authdata/GetArrList'
- const data = {
- name: 'getFitHistory1',
- name1: 'getFitHistory2',
- page: this.recipeNameTemp3.getdataListParm.page,
- offset: this.recipeNameTemp3.getdataListParm.offset,
- pagecount: this.recipeNameTemp3.getdataListParm.pagecount,
- returntype: this.recipeNameTemp3.getdataListParm.returntype,
- parammaps: this.recipeNameTemp3.getdataListParm.parammaps
- }
- postJson(url, data).then((response) => {
- if (response.data.list !== null && response.data.list !== '') {
- for (let i = 0; i < response.data.list.length; i++) {
- if (response.data.list[i].arrList == null) {
- this.$set(response.data.list[i], 'arrList', [])
- }
- }
- this.recipeNameTemp3.list = response.data.list
- this.recipeNameTemp3.pageNum = response.data.pageNum
- this.recipeNameTemp3.pageSize = response.data.pageSize
- this.recipeNameTemp3.total = response.data.total
- } else {
- this.recipeNameTemp3.list = []
- this.recipeNameTemp3.total = 0
- }
- console.log(response.data, 'response.data')
- setTimeout(() => {
- this.recipeNameTemp3.listLoading = false
- }, 100)
- })
- },
- handleRecipeNameSearch3() {
- this.getRecipeNameList2()
- },
- clickFence3(row) {
- console.log('点击了撒料统计-栏舍', row)
- this.fenceTemp.temp = Object.assign({}, row)
- this.fenceTemp.dialogFormVisible = true
- this.textMap.fenceTxt = this.$t('errorAnalysis.pfxgjl') + row.栏舍
- this.fenceTemp.dialogStatus = 'fenceTxt'
- this.fenceTemp.activeName = 'first'
- this.fenceTemp.tab1.getdataListParm.parammaps.barname = row.栏舍
- this.fenceTemp.tab2.getdataListParm.parammaps.barname = row.栏舍
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime = []
- const start = new Date()
- const end = new Date()
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0] =
- parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1] =
- parseTime(end.setTime(end.getTime()), '{y}-{m}-{d}')
- this.getFenceList1()
- },
- getFenceList1() {
- this.fenceTemp.tab1.listLoading = true
- this.fenceTemp.tab1.getdataListParm.parammaps.fitid =
- this.fenceTemp.temp.id
- if (this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime == null) {
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime = ''
- this.fenceTemp.tab1.getdataListParm.parammaps.startDate = ''
- this.fenceTemp.tab1.getdataListParm.parammaps.endDate = ''
- } else {
- this.fenceTemp.tab1.getdataListParm.parammaps.startDate =
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0] +
- ' 00:00'
- this.fenceTemp.tab1.getdataListParm.parammaps.endDate =
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1] +
- ' 23:59'
- }
- const url = 'authdata/feedp/history'
- // const data = this.fenceTemp.tab1.getdataListParm
- const data = {
- barname: this.fenceTemp.tab1.getdataListParm.parammaps.barname,
- startDate: this.fenceTemp.tab1.getdataListParm.parammaps.startDate,
- endDate: this.fenceTemp.tab1.getdataListParm.parammaps.endDate
- }
- postJson(url, data).then((response) => {
- this.fenceTemp.tab1.listLoading = false
- if (response.data !== null && response.data !== '') {
- for (let i = 0; i < response.data.length; i++) {
- if (
- response.data[i].ptid == undefined ||
- response.data[i].ptname == ''
- ) {
- this.$set(response.data[i], 'ptid', '')
- this.$set(response.data[i], 'ptname', '')
- }
- }
- this.fenceTemp.tab1.list = response.data
- this.handleSpan1()
- } else {
- this.fenceTemp.tab1.list = []
- this.fenceTemp.tab1.total = 0
- }
- console.log(response.data, 'response.data')
- setTimeout(() => {
- this.fenceTemp.tab1.listLoading = false
- }, 100)
- })
- },
- getFenceList2() {
- this.fenceTemp.tab2.listLoading = true
- this.fenceTemp.tab2.getdataListParm.parammaps.fitid =
- this.fenceTemp.temp.id
- if (this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime == null) {
- this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime = ''
- this.fenceTemp.tab2.getdataListParm.parammaps.startDate = ''
- this.fenceTemp.tab2.getdataListParm.parammaps.endDate = ''
- } else {
- this.fenceTemp.tab2.getdataListParm.parammaps.startDate =
- this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[0] +
- ' 00:00'
- this.fenceTemp.tab2.getdataListParm.parammaps.endDate =
- this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[1] +
- ' 23:59'
- }
- const url = 'authdata/spillageall/history'
- const data = {
- barname: this.fenceTemp.tab2.getdataListParm.parammaps.barname,
- pastureid: Cookies.get('pastureid'),
- startDate: this.fenceTemp.tab2.getdataListParm.parammaps.startDate,
- endDate: this.fenceTemp.tab2.getdataListParm.parammaps.endDate
- }
- postJson(url, data).then((response) => {
- if (response.data.data !== null) {
- // 表数据
- this.fenceTemp.tab2.list = response.data.data
- this.fenceTemp.tab2.tableLabel = response.data.trains
- this.handleSpan2()
- } else {
- this.fenceTemp.tab2.list = []
- this.fenceTemp.tab2.total = 0
- }
- console.log(response.data, 'response.data')
- setTimeout(() => {
- this.fenceTemp.tab2.listLoading = false
- }, 100)
- })
- },
- handleFenceSearch() {
- if (this.fenceTemp.activeName == 'first') {
- this.getFenceList1()
- } else {
- this.getFenceList2()
- }
- },
- handleFenceTabClick(item) {
- const start = new Date()
- const end = new Date()
- if (item == 'first') {
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime = []
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0] =
- parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1] =
- parseTime(end.setTime(end.getTime()), '{y}-{m}-{d}')
- this.getFenceList1()
- } else {
- this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime = []
- this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[0] =
- parseTime(
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7),
- '{y}-{m}-{d}'
- )
- this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[1] =
- parseTime(end.setTime(end.getTime()), '{y}-{m}-{d}')
- this.getFenceList2()
- }
- },
- handleSpan1() {
- this.fenceTemp.mergekeys1.forEach((key) => {
- this.fenceTemp.spanObj1[key] = []
- let position = 0
- this.fenceTemp.tab1.list.forEach((item, index) => {
- if (index === 0) {
- this.fenceTemp.spanObj1[key].push(1)
- position = 0
- } else {
- if (
- this.fenceTemp.tab1.list[index][key] ===
- this.fenceTemp.tab1.list[index - 1][key]
- ) {
- this.fenceTemp.spanObj1[key][position] += 1
- this.fenceTemp.spanObj1[key].push(0)
- } else {
- this.fenceTemp.spanObj1[key].push(1)
- position = index
- }
- }
- })
- })
- },
- handleSpan2() {
- this.fenceTemp.mergekeys2.forEach((key) => {
- this.fenceTemp.spanObj2[key] = []
- let position = 0
- this.fenceTemp.tab2.list.forEach((item, index) => {
- if (index === 0) {
- this.fenceTemp.spanObj2[key].push(1)
- position = 0
- } else {
- if (
- this.fenceTemp.tab2.list[index][key] ===
- this.fenceTemp.tab2.list[index - 1][key]
- ) {
- this.fenceTemp.spanObj2[key][position] += 1
- this.fenceTemp.spanObj2[key].push(0)
- } else {
- this.fenceTemp.spanObj2[key].push(1)
- position = index
- }
- }
- })
- })
- },
- objectSpanMethod1({ row, column, rowIndex, columnIndex }) {
- if (
- this.fenceTemp.mergekeys1 !== null &&
- this.fenceTemp.mergekeys1 !== ''
- ) {
- for (let i = 0; i < this.fenceTemp.mergekeys1.length; i++) {
- if (column.property === this.fenceTemp.mergekeys1[i]) {
- const _row =
- this.fenceTemp.spanObj1[this.fenceTemp.mergekeys1[i]][rowIndex]
- const _col = _row > 0 ? 1 : 0
- return {
- rowspan: _row,
- colspan: _col
- }
- }
- }
- }
- },
- objectSpanMethod2({ row, column, rowIndex, columnIndex }) {
- if (
- this.fenceTemp.mergekeys2 !== null &&
- this.fenceTemp.mergekeys2 !== ''
- ) {
- for (let i = 0; i < this.fenceTemp.mergekeys2.length; i++) {
- if (column.property === this.fenceTemp.mergekeys2[i]) {
- const _row =
- this.fenceTemp.spanObj2[this.fenceTemp.mergekeys2[i]][rowIndex]
- const _col = _row > 0 ? 1 : 0
- return {
- rowspan: _row,
- colspan: _col
- }
- }
- }
- }
- },
- clickRecipeTemplate3(row) {
- this.modificationRecordTemp.temp1 = Object.assign({}, row)
- // setTimeout(()=>{
- // this.modificationRecordTemp.dialogFormVisible = true
- // },500)
- this.modificationRecordTemp.dialogStatus = 'modificationRecord'
- this.getFTHisdryweightList()
- this.getRecipeTemplateList1()
- },
- getRecipeTemplateList1() {
- this.modificationRecordTemp.listLoading1 = true
- let url = 'authdata/recipetemplate/history'
- let data = {
- ftid: this.modificationRecordTemp.temp1.ftid,
- pastureid: Cookies.get('pastureid'),
- createdate: this.modificationRecordTemp.temp1.createdate,
- lastftid: this.modificationRecordTemp.temp1.lastftid
- }
- postJson(url, data).then((response) => {
- if (response.data !== null) {
- this.modificationRecordTemp.list1 = response.data.current
- this.modificationRecordTemp.list2 = response.data.last
- } else {
- this.modificationRecordTemp.list1 = []
- }
- this.modificationRecordTemp.dialogFormVisible = true
- setTimeout(() => {
- this.modificationRecordTemp.listLoading1 = false
- }, 100)
- })
- },
- getFTHisdryweightList() {
- let url = 'authdata/GetDataByName'
- let data = {
- name: 'getFTHisdryweight',
- parammaps: {
- ftid: this.modificationRecordTemp.temp1.ftid,
- pastureid: Cookies.get('pastureid'),
- createdate: this.modificationRecordTemp.temp1.createdate
- }
- }
- postJson(url, data).then((response) => {
- console.log(response)
- if (response.data !== null) {
- this.modificationRecordTemp.lastdate = response.data.list.lastdate
- this.modificationRecordTemp.currentdate =
- response.data.list.currentdate
- } else {
- this.modificationRecordTemp.lastdate = ''
- this.modificationRecordTemp.currentdate = ''
- }
- })
- },
- changeccysChecked(item) {
- if (item == false) {
- this.tab.table.getdataListParm.parammaps.error = ''
- }
- this.getTabList()
- this.getTabList2()
- },
- getSummaries1(param) {
- const { columns, data } = param
- const sums = []
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = this.$t('common.sum')
- return
- }
- if (column.property !== undefined) {
- // 加了prop属性的el-table-column 才能找到column.property
- const values = data.map((item) => Number(item[column.property]))
- if (!values.every((value) => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr)
- if (!isNaN(value)) {
- return prev + curr // 多行相加
- } else {
- return prev
- }
- }, 0)
- if (this.modificationRecordTemp.lastdate == undefined) {
- this.modificationRecordTemp.lastdate = ''
- }
- sums[index] =
- sums[index].toFixed(4) +
- '(干物质量:' +
- this.modificationRecordTemp.lastdate +
- ')'
- } else {
- sums[index] = ''
- }
- }
- })
- // console.log(sums, 'sums[index]')
- return sums
- },
- getSummaries2(param) {
- const { columns, data } = param
- const sums = []
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = this.$t('common.sum')
- return
- }
- if (column.property !== undefined) {
- // 加了prop属性的el-table-column 才能找到column.property
- const values = data.map((item) => Number(item[column.property]))
- if (!values.every((value) => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr)
- if (!isNaN(value)) {
- return prev + curr // 多行相加
- } else {
- return prev
- }
- }, 0)
- if (this.modificationRecordTemp.currentdate == undefined) {
- this.modificationRecordTemp.currentdate = ''
- }
- sums[index] =
- sums[index].toFixed(4) +
- '(干物质量:' +
- this.modificationRecordTemp.currentdate +
- ')'
- } else {
- sums[index] = ''
- }
- }
- })
- // console.log(sums, 'sums[index]')
- return sums
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .search {
- .el-radio {
- margin-right: 10px;
- }
- }
- .filter-item1 {
- margin-top: 10px;
- span {
- margin-right: 5px;
- }
- }
- .button {
- height: 95px;
- .exportTable2 {
- float: right;
- margin-right: 5px;
- margin-top: 5px;
- width: auto;
- padding: 0 6px;
- }
- }
- .app-container1 {
- padding-left: 10px;
- background-color: #f4f4f4;
- }
- .dashboard-editor-container {
- background-color: #f4f4f4;
- .grid-content {
- background-color: #fff;
- padding: 0 10px;
- h4 {
- text-align: center;
- line-height: 50px;
- }
- }
- }
- .table {
- margin-bottom: 10px;
- }
- /deep/ .el-table th > .cell {
- padding-left: 0 !important;
- padding-right: 0 !important;
- }
- /deep/ .el-table td > .cell {
- padding-left: 0 !important;
- padding-right: 0 !important;
- }
- /deep/ .specificDate .el-radio {
- margin-right: 0px;
- }
- /deep/ .el-radio-button__inner {
- padding: 7px 7px;
- }
- /deep/ .el-range-editor.el-input__inner .el-input__icon {
- width: 0;
- }
- .modificationRecord .top {
- height: 300px;
- width: 100%;
- display: flex;
- flex-direction: row;
- .left {
- width: 200px;
- height: 100%;
- div {
- line-height: 35px;
- }
- }
- .right {
- height: 200px;
- flex: 1;
- }
- }
- .modificationRecord .bottom {
- height: 300px;
- width: 100%;
- display: flex;
- flex-direction: row;
- .left {
- width: 200px;
- height: 100%;
- div {
- line-height: 35px;
- }
- }
- .right {
- height: 200px;
- flex: 1;
- }
- }
- </style>
|