| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186 | 
							- <template>
 
-   <div class="app-container">
 
-     <el-tabs v-model="activeName" @tab-click="handleTabClick">
 
-       <el-tab-pane label="汇总统计" name="first">
 
-         <div class="search">
 
-           <el-date-picker v-model="tab.table.getdataListParm.parammaps.inputDatetime" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" />
 
-           <span style="margin-left: 10px;">统计类型:</span>
 
-           <el-radio v-model="tab.radio" label="1" @change="changeRadio">配方名称</el-radio>
 
-           <el-radio v-model="tab.radio" label="2" @change="changeRadio">栏舍名称</el-radio>
 
-           <el-radio v-model="tab.radio" label="3" @change="changeRadio">牲畜类别</el-radio>
 
-           <el-radio v-model="tab.radio" label="4" @change="changeRadio">车次</el-radio>
 
-           <el-input v-if="tab.isFormulaName" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 245px;" placeholder="配方名称" />
 
-           <el-input v-if="tab.isHouseName" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 245px;" placeholder="栏舍名称" />
 
-           <el-input v-if="tab.isLivestockType" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 245px;" placeholder="牲畜名称" />
 
-           <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.sort" class="filter-item" style="width: 150px;" placeholder="车次" />
 
-           <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.times" class="filter-item" style="width: 150px;" placeholder="班次" />
 
-           <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 150px;" placeholder="TMR名称" />
 
-           <el-button class="successBorder" @click="handleSearch">查询</el-button>
 
-           <el-button class="export" @click="handleDownload">导出</el-button>
 
-         </div>
 
-         <div class="table">
 
-           <h4>混料</h4>
 
-           <el-table
 
-             :key="tab.table.tableKey"
 
-             v-loading="tab.table.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="tab.table.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-           >
 
-             <el-table-column v-if="tab.isFormulaName" label="配方名称" min-width="110px" align="center" prop="配方名称" />
 
-             <el-table-column v-if="tab.isHouseName" label="栏舍名称" min-width="110px" align="center" prop="栏舍名称" />
 
-             <el-table-column v-if="tab.isLivestockType" label="牲畜类别" min-width="110px" align="center" prop="牲畜类别" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="车次" min-width="110px" align="center" prop="车次" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="班次" min-width="110px" align="center" prop="班次" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="TMR名称" min-width="110px" align="center" prop="TMR名称" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="驾驶员" min-width="110px" align="center" prop="驾驶员" />
 
-             <el-table-column label="理论重量" min-width="110px" align="center" prop="理论重量" />
 
-             <el-table-column label="实际重量" min-width="110px" align="center" prop="实际重量" />
 
-             <el-table-column label="计划混料操作数" min-width="110px" align="center" prop="计划混料操作数" />
 
-             <el-table-column label="已混料操作数" min-width="110px" align="center" prop="已混料操作数" />
 
-             <el-table-column label="混料操作率" min-width="110px" align="center" prop="混料操作率" />
 
-             <el-table-column label="混料误差值" min-width="110px" align="center" prop="混料误差值" />
 
-             <el-table-column label="混料准确率" min-width="110px" align="center" prop="混料准确率" />
 
-             <el-table-column label="混料自动跳转次数" min-width="110px" align="center" prop="混料自动跳转次数" />
 
-             <el-table-column label="混料手动跳转次数" min-width="110px" align="center" prop="混料手动跳转次数" />
 
-             <el-table-column label="取消次数" min-width="110px" align="center" prop="取消次数" />
 
-             <el-table-column label="方差" min-width="110px" align="center" prop="方差" />
 
-           </el-table>
 
-           <!-- <pagination v-show="tab.table.total>=0" :total="tab.table.total" :page.sync="tab.table.getdataListParm.offset" :limit.sync="tab.table.getdataListParm.pagecount" @pagination="getTabList" /> -->
 
-           <h4>撒料</h4>
 
-           <el-table
 
-             :key="tab.table2.tableKey"
 
-             v-loading="tab.table2.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="tab.table2.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-           >
 
-             <el-table-column v-if="tab.isFormulaName" label="配方名称" min-width="110px" align="center" prop="配方名称" />
 
-             <el-table-column v-if="tab.isHouseName" label="栏舍名称" min-width="110px" align="center" prop="栏舍名称" />
 
-             <el-table-column v-if="tab.isLivestockType" label="牲畜类别" min-width="110px" align="center" prop="牲畜类别" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="车次" min-width="110px" align="center" prop="车次" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="班次" min-width="110px" align="center" prop="班次" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="TMR名称" min-width="110px" align="center" prop="TMR" />
 
-             <el-table-column v-if="tab.isTrainNumber" label="驾驶员" min-width="110px" align="center" prop="驾驶员" />
 
-             <el-table-column label="理论重量" min-width="110px" align="center" prop="理论重量" />
 
-             <el-table-column label="实际重量" min-width="110px" align="center" prop="实际重量" />
 
-             <el-table-column label="计划撒料操作数" min-width="110px" align="center" prop="计划撒料操作数" />
 
-             <el-table-column label="已撒料操作数" min-width="110px" align="center" prop="已撒料操作数" />
 
-             <el-table-column label="撒料操作率" min-width="110px" align="center" prop="撒料操作率" />
 
-             <el-table-column label="撒料误差值" min-width="110px" align="center" prop="撒料误差值" />
 
-             <el-table-column label="撒料准确率" min-width="110px" align="center" prop="撒料准确率" />
 
-             <el-table-column label="撒料自动跳转次数" min-width="110px" align="center" prop="撒料自动跳转次数" />
 
-             <el-table-column label="撒料手动跳转次数" min-width="110px" align="center" prop="撒料手动跳转次数" />
 
-           </el-table>
 
-           <!-- <pagination v-show="tab.table2.total>=0" :total="tab.table2.total" :page.sync="tab.table2.getdataListParm.offset" :limit.sync="tab.table2.getdataListParm.pagecount" @pagination="getTabList2" /> -->
 
-         </div>
 
-         <div class="AnalysisChart">
 
-           <el-row :gutter="10">
 
-             <!-- 计划统计 -->
 
-             <el-col :span="12" style="position: relative;">
 
-               <h4 style="text-align:center;">计划统计</h4>
 
-               <div>
 
-                 <el-date-picker v-model="tab.chart2.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart2')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart2')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine2" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart2.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart2')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart2')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart2.table.tableKey"
 
-                   v-loading="tab.chart2.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart2.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划执行重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="配方理论重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划准确率" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划取消重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划准确率(去除取消重量)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划正确数" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划数" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划正确率" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-             <!-- 配方准确率 -->
 
-             <el-col :span="12" style="position: relative;">
 
-               <h4 style="text-align:center;">配方准确率</h4>
 
-               <div>
 
-                 <el-select v-model="tab.chart1.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
 
-                   <el-option v-for="item in tab.chart1.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
 
-                 </el-select>
 
-                 <el-date-picker v-model="tab.chart1.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange filter-item" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart1')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart1')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine1" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart1.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart1')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart1')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart1.table.tableKey"
 
-                   v-loading="tab.chart1.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart1.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="配方名称" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="实际重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="准确率" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-           </el-row>
 
-           <el-row :gutter="10">
 
-             <!-- 牛群准确率 -->
 
-             <el-col :span="12" style="position: relative;">
 
-               <h4 style="text-align:center;">牛群准确率</h4>
 
-               <div>
 
-                 <el-select v-model="tab.chart3.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
 
-                   <el-option v-for="item in tab.chart3.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
 
-                 </el-select>
 
-                 <el-date-picker v-model="tab.chart3.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange filter-item" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart3')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart3')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine3" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart3.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart3')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart3')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart3.table.tableKey"
 
-                   v-loading="tab.chart3.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart3.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="牲畜类别" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="实际重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="准确率" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-             <!-- 车辆准确率(重量) -->
 
-             <el-col :span="12" style="position: relative;">
 
-               <h4 style="text-align:center;">车辆准确率(重量)</h4>
 
-               <div>
 
-                 <el-select v-model="tab.chart4.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
 
-                   <el-option v-for="item in tab.chart4.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
 
-                 </el-select>
 
-                 <el-date-picker v-model="tab.chart4.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart4')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart4')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine4" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart4.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart4')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart4')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart4.table.tableKey"
 
-                   v-loading="tab.chart4.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart4.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="车次" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="计划重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="实际重量(kg)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="准确率" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-           </el-row>
 
-           <el-row :gutter="10">
 
-             <!-- 混料统计 -->
 
-             <el-col :span="12" style="position: relative;">
 
-               <h4 style="text-align:center;">混料统计</h4>
 
-               <div>
 
-                 <el-date-picker v-model="tab.chart5.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart5')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart5')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine5" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart5.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart5')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart5')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart5.table.tableKey"
 
-                   v-loading="tab.chart5.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart5.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="自动跳转次数" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="手动跳转次数" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="自动跳转理论重量" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="自动跳转实际重量" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="自动跳转准确率" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="手动跳转理论重量" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="手动跳转实际重量" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="手动跳转准确率" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-             <!-- 混料计划取消次数 -->
 
-             <el-col :span="12" style="position: relative;">
 
-               <h4 style="text-align:center;">混料计划取消次数</h4>
 
-               <div>
 
-                 <el-date-picker v-model="tab.chart6.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart6')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart6')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine6" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart6.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart6')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart6')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart6.table.tableKey"
 
-                   v-loading="tab.chart6.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart6.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="混料计划取消次数" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-           </el-row>
 
-           <el-row :gutter="10">
 
-             <!-- 栏舍撒料时间统计 -->
 
-             <el-col :span="24" style="position: relative;">
 
-               <h4 style="text-align:center;">栏舍撒料时间统计</h4>
 
-               <div>
 
-                 <el-select v-model="tab.chart7.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
 
-                   <el-option v-for="item in tab.chart7.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
 
-                 </el-select>
 
-                 <el-date-picker v-model="tab.chart7.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart7')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart7')">切换表格</el-button>
 
-               </div>
 
-               <div id="chartLine7" style="width:100%;height:400px;" />
 
-               <div v-if="tab.chart7.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart7')">导出</el-button>
 
-                 <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart7')">切换图表</el-button>
 
-                 <el-table
 
-                   :key="tab.chart7.table.tableKey"
 
-                   v-loading="tab.chart7.table.listLoading"
 
-                   element-loading-text="给我一点时间"
 
-                   :data="tab.chart7.table.list"
 
-                   border
 
-                   fit
 
-                   highlight-current-row
 
-                   style="width: 100%;"
 
-                   height="430"
 
-                   :row-style="rowStyle"
 
-                   :cell-style="cellStyle"
 
-                   class="elTable table-fixed"
 
-                 >
 
-                   <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="栏舍01(撒料时间)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="栏舍02(撒料时间)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="栏舍03(撒料时间)" min-width="110px" align="center" prop="barname" />
 
-                   <el-table-column label="栏舍04(撒料时间)" min-width="110px" align="center" prop="barname" />
 
-                 </el-table>
 
-               </div>
 
-             </el-col>
 
-           </el-row>
 
-         </div>
 
-       </el-tab-pane>
 
-       <el-tab-pane label="混料统计" name="second">
 
-         <div class="search">
 
-           <el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime" style="float: left;margin-right: 10px;margin-bottom:10px;width: 250px;" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-           <el-input v-model="tab2.table.getdataListParm.parammaps.tmrtname" style="float: left;margin-right: 10px;margin-bottom:10px;width: 130px;" placeholder="TMR名称" class="filter-item" clearable />
 
-           <el-input v-model="tab2.table.getdataListParm.parammaps.projname" style="float: left;margin-right: 10px;margin-bottom:10px;width: 130px;" placeholder="车次" class="filter-item" clearable />
 
-           <el-select v-model="tab2.table.getdataListParm.parammaps.times" style="float: left;margin-right: 10px;margin-bottom:10px;width: 150px;" filterable placeholder="班次" 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="float: left;margin-right: 10px;margin-bottom:10px;width: 130px;" placeholder="配方名称" class="filter-item" clearable />
 
-           <el-select v-model="tab2.table.getdataListParm.parammaps.projname" style="float: left;margin-right: 10px;margin-bottom:10px;" filterable placeholder="跳转方式" class="filter-item" clearable>
 
-             <el-option v-for="item in tab2.jumpModeList" :key="item.id" :label="item.name" :value="item.id" />
 
-           </el-select>
 
-           <el-button class="successBorder" style="float: left;margin-right: 10px;margin-bottom:10px;" @click="handleSearch2">查询</el-button>
 
-           <el-button class="successBorder" style="float: left;margin-right: 10px;margin-bottom:10px;" @click="handleRefresh2">重置</el-button>
 
-           <el-button class="export" style="float: right;margin-right: 10px;margin-bottom:10px;" @click="handleExport2">导出</el-button>
 
-         </div>
 
-         <div class="table">
 
-           <el-table
 
-             :key="tab2.table.tableKey"
 
-             v-loading="tab2.table.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="tab2.table.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-           >
 
-             <el-table-column label="日期" min-width="110px" align="center" prop="日期" />
 
-             <el-table-column label="TMR名称" min-width="110px" align="center" prop="TMR名称" />
 
-             <el-table-column label="车次" min-width="110px" align="center" prop="车次" />
 
-             <el-table-column label="班次" min-width="110px" align="center" prop="班次" />
 
-             <el-table-column label="配方名称" min-width="110px" align="center" prop="配方名称" />
 
-             <el-table-column label="饲料" min-width="110px" align="center" prop="饲料" />
 
-             <el-table-column label="理论重量" min-width="110px" align="center" prop="理论重量" />
 
-             <el-table-column label="实际重量" min-width="110px" align="center" prop="实际重量" />
 
-             <el-table-column label="误差值" min-width="110px" align="center" prop="误差值" />
 
-             <el-table-column label="计划时间" min-width="110px" align="center" prop="计划时间" />
 
-             <el-table-column label="开始时间" min-width="110px" align="center" prop="开始时间" />
 
-             <el-table-column label="结束时间" min-width="110px" align="center" prop="结束时间" />
 
-             <el-table-column label="跳转方式" min-width="110px" align="center" prop="跳转方式" />
 
-             <el-table-column label="开始重量" min-width="110px" align="center" prop="开始重量" />
 
-             <el-table-column label="结束重量" min-width="110px" align="center" prop="结束重量" />
 
-           </el-table>
 
-           <!-- <pagination v-show="tab2.table.total>=0" :total="tab2.table.total" :page.sync="tab2.table.getdataListParm.offset" :limit.sync="tab2.table.getdataListParm.pagecount" @pagination="getTab2List" /> -->
 
-         </div>
 
-       </el-tab-pane>
 
-       <el-tab-pane label="撒料统计" name="third">
 
-         <div class="search">
 
-           <el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime" style="float: left;margin-right: 10px;margin-bottom:10px;width: 250px;" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 
-           <el-input v-model="tab3.table.getdataListParm.parammaps.tmrtname" style="float: left;margin-right: 10px;margin-bottom:10px;width: 110px;" placeholder="TMR名称" class="filter-item" clearable />
 
-           <el-input v-model="tab3.table.getdataListParm.parammaps.projname" style="float: left;margin-right: 10px;margin-bottom:10px;width: 110px;" placeholder="车次" class="filter-item" clearable />
 
-           <el-select v-model="tab3.table.getdataListParm.parammaps.times" style="float: left;margin-right: 10px;margin-bottom:10px;width: 110px;" filterable placeholder="班次" 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="float: left;margin-right: 10px;margin-bottom:10px;width: 110px;" placeholder="配方名称" class="filter-item" clearable />
 
-           <el-input v-model="tab3.table.getdataListParm.parammaps.fname" style="float: left;margin-right: 10px;margin-bottom:10px;width: 110px;" placeholder="栏舍名称" class="filter-item" clearable />
 
-           <el-select v-model="tab3.table.getdataListParm.parammaps.buttontype" style="float: left;margin-right: 10px;margin-bottom:10px;" filterable placeholder="跳转方式" class="filter-item" clearable>
 
-             <el-option v-for="item in tab3.jumpModeList" :key="item.id" :label="item.name" :value="item.id" />
 
-           </el-select>
 
-           <el-button class="successBorder" style="float: left;margin-right: 10px;margin-bottom:10px;" @click="handleSearch3">查询</el-button>
 
-           <el-button class="successBorder" style="float: left;margin-right: 10px;margin-bottom:10px;" @click="handleRefresh3">重置</el-button>
 
-           <el-button class="export" style="float: right;margin-right: 10px;margin-bottom:10px;" @click="handleExport3">导出</el-button>
 
-         </div>
 
-         <div class="table">
 
-           <el-table
 
-             :key="tab3.table.tableKey"
 
-             v-loading="tab3.table.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="tab3.table.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-           >
 
-             <el-table-column label="误差值" min-width="110px" align="center" prop="误差值" />
 
-             <el-table-column label="计划时间" min-width="110px" align="center" prop="计划时间" />
 
-             <el-table-column label="日期" min-width="110px" align="center" prop="日期" />
 
-             <el-table-column label="TMR名称" min-width="110px" align="center" prop="TMR名称" />
 
-             <el-table-column label="车次" min-width="110px" align="center" prop="车次" />
 
-             <el-table-column label="班次" min-width="110px" align="center" prop="班次" />
 
-             <el-table-column label="配方名称" min-width="110px" align="center" prop="配方名称" />
 
-             <el-table-column label="栏舍" min-width="110px" align="center" prop="栏舍" />
 
-             <el-table-column label="理论重量" min-width="110px" align="center" prop="理论重量" />
 
-             <el-table-column label="实际重量" min-width="110px" align="center" prop="实际重量" />
 
-             <el-table-column label="误差值" min-width="110px" align="center" prop="误差值" />
 
-             <el-table-column label="误差率" min-width="110px" align="center" prop="误差率" />
 
-             <el-table-column label="开始时间" min-width="110px" align="center" prop="开始时间" />
 
-             <el-table-column label="结束时间" min-width="110px" align="center" prop="结束时间" />
 
-             <el-table-column label="跳转方式" min-width="110px" align="center" prop="跳转方式" />
 
-             <el-table-column label="开始重量" min-width="110px" align="center" prop="开始重量" />
 
-             <el-table-column label="结束重量" min-width="110px" align="center" prop="结束重量" />
 
-           </el-table>
 
-           <!-- <pagination v-show="tab3.table.total>=0" :total="tab3.table.total" :page.sync="tab3.table.getdataListParm.offset" :limit.sync="tab3.table.getdataListParm.pagecount" @pagination="getTab3List" /> -->
 
-         </div>
 
-       </el-tab-pane>
 
-     </el-tabs>
 
-   </div>
 
- </template>
 
- <script>
 
- import echarts from 'echarts'
 
- require('echarts/theme/macarons')
 
- import { GetDataByName, GetReportform } from '@/api/common'
 
- import Cookies from 'js-cookie'
 
- import { parseTime } from '@/utils/index.js'
 
- import Pagination from '@/components/Pagination'
 
- import { json2excel } from '@/utils/index.js'
 
- export default {
 
-   name: 'ErrorAnalysis',
 
-   components: { Pagination },
 
-   data() {
 
-     return {
 
-       // 班次
 
-       maxTime: {
 
-         getMaxTimesParm: {
 
-           name: 'getSysoptEnable',
 
-           page: 1,
 
-           offset: 1,
 
-           pagecount: 1,
 
-           returntype: 'Map',
 
-           parammaps: {
 
-             pastureid: Cookies.get('pastureid'),
 
-             inforname: 'times'
 
-           }
 
-         }
 
-       },
 
-       activeName: 'first',
 
-       tab: {
 
-         radio: '1',
 
-         isFormulaName: true, // 配方名称
 
-         isHouseName: false, // 栏舍名称
 
-         isLivestockType: false, // 牲畜类别
 
-         isTrainNumber: false, // 车次
 
-         table: {
 
-           getdataListParm: {
 
-             name: 'getAccuracyHFT',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             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()],
 
-               // startTime: '2020-09-15',
 
-               // stopTime: '2020-09-16',
 
-               // inputDatetime: [new Date(), new Date()],
 
-               fname: '',
 
-               sort: '',
 
-               times: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           temp: {}
 
-         },
 
-         table2: {
 
-           getdataListParm: {
 
-             name: 'getAccuracySFT',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             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()],
 
-               // startTime: '2020-09-15',
 
-               // stopTime: '2020-09-16',
 
-               // inputDatetime: [new Date(), new Date()],
 
-               fname: '',
 
-               sort: '',
 
-               times: ''
 
-             }
 
-           },
 
-           tableKey: 2,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           temp: {}
 
-         },
 
-         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()]
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         },
 
-         chart2: {
 
-           chartLine: null,
 
-           chartLine_data: {},
 
-           getdataListParm: {
 
-             name: 'getBarmilkList',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             returntype: 'Map',
 
-             parammaps: {
 
-               pastureid: Cookies.get('pastureid'),
 
-               enable: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         },
 
-         chart3: {
 
-           chartLine: null,
 
-           chartLine_data: {},
 
-           getdataListParm: {
 
-             name: 'getBarmilkList',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             returntype: 'Map',
 
-             parammaps: {
 
-               pastureid: Cookies.get('pastureid'),
 
-               enable: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         },
 
-         chart4: {
 
-           chartLine: null,
 
-           chartLine_data: {},
 
-           getdataListParm: {
 
-             name: 'getBarmilkList',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             returntype: 'Map',
 
-             parammaps: {
 
-               pastureid: Cookies.get('pastureid'),
 
-               enable: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         },
 
-         chart5: {
 
-           chartLine: null,
 
-           chartLine_data: {},
 
-           getdataListParm: {
 
-             name: 'getBarmilkList',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             returntype: 'Map',
 
-             parammaps: {
 
-               pastureid: Cookies.get('pastureid'),
 
-               enable: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         },
 
-         chart6: {
 
-           chartLine: null,
 
-           chartLine_data: {},
 
-           getdataListParm: {
 
-             name: 'getBarmilkList',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             returntype: 'Map',
 
-             parammaps: {
 
-               pastureid: Cookies.get('pastureid'),
 
-               enable: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         },
 
-         chart7: {
 
-           chartLine: null,
 
-           chartLine_data: {},
 
-           getdataListParm: {
 
-             name: 'getBarmilkList',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             returntype: 'Map',
 
-             parammaps: {
 
-               pastureid: Cookies.get('pastureid'),
 
-               enable: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
 
-           isChart: true,
 
-           isTable: false,
 
-           table: {
 
-             getdataListParm: {
 
-               name: 'getBarmilkList',
 
-               page: 1,
 
-               offset: 1,
 
-               pagecount: 10,
 
-               returntype: 'Map',
 
-               parammaps: {
 
-                 pastureid: Cookies.get('pastureid'),
 
-                 enable: ''
 
-               }
 
-             },
 
-             tableKey: 1,
 
-             list: [],
 
-             total: 0,
 
-             listLoading: true
 
-           }
 
-         }
 
-       },
 
-       tab2: {
 
-         table: {
 
-           getdataListParm: {
 
-             name: 'getStatisticsHL',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             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()],
 
-               tmrtname: '',
 
-               projname: '',
 
-               times: '',
 
-               buttontype: '',
 
-               templetname: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [],
 
-           total: 0,
 
-           listLoading: true,
 
-           temp: {}
 
-         },
 
-         frequencyList: [],
 
-         jumpModeList: [{ id: '0', name: '手动跳转' }, { id: '1', name: '自动跳转' }]
 
-       },
 
-       tab3: {
 
-         table: {
 
-           getdataListParm: {
 
-             name: 'getStatisticsSL',
 
-             page: 1,
 
-             offset: 1,
 
-             pagecount: 10,
 
-             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()],
 
-               tmrtname: '',
 
-               projname: '',
 
-               times: '',
 
-               templetname: '',
 
-               fname: '',
 
-               buttontype: ''
 
-             }
 
-           },
 
-           tableKey: 1,
 
-           list: [
 
-             { 'id': 1, 'A1': '2020-09-16', 'A2': '4', 'A3': '1', 'A4': '第一班', 'A5': '新产牛', 'A6': '17号', 'A7': '3869.53', 'A8': '3843.00', 'A9': '0.4', 'A10': '0.27%', 'A11': ' 06:34:09', 'A12': ' 06:48:28', 'A13': '自动跳转', 'A14': '0', 'A15': '3830' },
 
-             { 'id': 2, 'A1': '2020-09-16', 'A2': '1', 'A3': '2', 'A4': '第二班', 'A5': '高产牛', 'A6': '5号南', 'A7': '3371.02', 'A8': '3359.00', 'A9': '10.02', 'A10': '0.57%', 'A11': ' 06:34:25', 'A12': ' 06:46:57', 'A13': '自动跳转', 'A14': '3', 'A15': '3356' },
 
-             { 'id': 3, 'A1': '2020-09-16', 'A2': '4', 'A3': '3', 'A4': '第三班', 'A5': '干奶牛', 'A6': '3南东', 'A7': '3869.53', 'A8': '3843.00', 'A9': '0.4', 'A10': '0.27%', 'A11': '06:37:00', 'A12': ' 06:42:28', 'A13': '自动跳转', 'A14': '5', 'A15': '3260' },
 
-             { 'id': 4, 'A1': '2020-09-16', 'A2': '3', 'A3': '4', 'A4': '第一班', 'A5': '小公牛', 'A6': '3南西', 'A7': '3869.53', 'A8': '3843.00', 'A9': '0.4', 'A10': '0.27%', 'A11': '06:40:00', 'A12': ' 06:59:22', 'A13': '自动跳转', 'A14': '5', 'A15': '3255' },
 
-             { 'id': 5, 'A1': '2020-09-17', 'A2': '1', 'A3': '5', 'A4': '第二班', 'A5': '小育成', 'A6': '1号南', 'A7': '3869.53', 'A8': '3843.00', 'A9': '0.4', 'A10': '0.27%', 'A11': '06:31:00', 'A12': ' 06:35:65', 'A13': '自动跳转', 'A14': '2', 'A15': '3108' },
 
-             { 'id': 6, 'A1': '2020-09-17', 'A2': '4', 'A3': '6', 'A4': '第三班', 'A5': '高产牛', 'A6': '3北西', 'A7': '3869.53', 'A8': '3843.00', 'A9': '0.4', 'A10': '0.27%', 'A11': '06:34:00', 'A12': ' 06:45:38', 'A13': '自动跳转', 'A14': '0', 'A16': '2988' },
 
-             { 'id': 7, 'A1': '2020-09-17', 'A2': '4', 'A3': '7', 'A4': '第一班', 'A5': '新产牛', 'A6': '2号北', 'A7': '3869.53', 'A8': '3843.00', 'A9': '0.4', 'A10': '0.27%', 'A11': '06:45:00', 'A12': ' 06:58:28', 'A13': '自动跳转', 'A14': '4', 'A15': '3005' }
 
-           ],
 
-           total: 0,
 
-           listLoading: true,
 
-           temp: {}
 
-         },
 
-         frequencyList: [],
 
-         jumpModeList: [{ id: '0', name: '手动跳转' }, { id: '1', name: '自动跳转' }]
 
-       },
 
-       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
 
-       cellStyle: { padding: 0 + 'px' }
 
-     }
 
-   },
 
-   created() {
 
-     this.getIsDisplay()
 
-     this.getTabList()
 
-     this.getTabList2()
 
-     this.getChart1()
 
-     // this.getChart2()
 
-     // this.getChart3()
 
-     // this.getChart4()
 
-     // this.getChart5()
 
-     // this.getChart6()
 
-     // this.getChart7()
 
-   },
 
-   mounted() {
 
-   },
 
-   methods: {
 
-     getIsDisplay() {
 
-       GetDataByName(this.maxTime.getMaxTimesParm).then(response => {
 
-         if (response.data.list[0].inforvalue == 1) {
 
-           this.tab2.frequencyList = [{ id: '1', name: '第一班' }]
 
-           this.tab3.frequencyList = [{ id: '1', name: '第一班' }]
 
-         } else if (response.data.list[0].inforvalue == 2) {
 
-           this.tab2.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }]
 
-           this.tab3.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }]
 
-         } else if (response.data.list[0].inforvalue == 3) {
 
-           this.tab2.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }]
 
-           this.tab3.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }]
 
-           this.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }]
 
-         } else if (response.data.list[0].inforvalue == 4) {
 
-           this.tab2.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }, { id: '4', name: '第四班' }]
 
-           this.tab3.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }, { id: '4', name: '第四班' }]
 
-         }
 
-       })
 
-     },
 
-     handleDownload() {
 
-       if (this.tab.radio == '1') {
 
-         var excelDatas = [
 
-           {
 
-             tHeader: ['配方名称', '理论重量', '实际重量', '计划混料操作数', '已混料操作数', '混料操作率', '混料误差值', '混料误差率', '混料自动跳转次数', '混料手动跳转次数', '去除取消重量', '方差'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12'],
 
-             tableDatas: this.tab.table.list,
 
-             sheetName: '混料'
 
-           },
 
-           {
 
-             tHeader: ['配方名称', '理论重量', '实际重量', '计划撒料操作数', '已撒料操作数', '撒料操作率', '撒料误差值', '撒料误差率', '撒料自动跳转次数', '撒料手动跳转次数'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10'],
 
-             tableDatas: this.tab.table2.list,
 
-             sheetName: '撒料'
 
-           }
 
-         ]
 
-         json2excel(excelDatas, '汇总统计-配方名称', true, 'xlsx')
 
-       } else if (this.tab.radio == '2') {
 
-         var excelDatas2 = [
 
-           {
 
-             tHeader: ['栏舍名称', '理论重量', '实际重量', '计划混料操作数', '已混料操作数', '混料操作率', '混料误差值', '混料误差率', '混料自动跳转次数', '混料手动跳转次数', '去除取消重量', '方差'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12'],
 
-             tableDatas: this.tab.table.list,
 
-             sheetName: '混料'
 
-           },
 
-           {
 
-             tHeader: ['栏舍名称', '理论重量', '实际重量', '计划撒料操作数', '已撒料操作数', '撒料操作率', '撒料误差值', '撒料误差率', '撒料自动跳转次数', '撒料手动跳转次数'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10'],
 
-             tableDatas: this.tab.table2.list,
 
-             sheetName: '撒料'
 
-           }
 
-         ]
 
-         json2excel(excelDatas2, '汇总统计-栏舍名称', true, 'xlsx')
 
-       } else if (this.tab.radio == '3') {
 
-         var excelDatas3 = [
 
-           {
 
-             tHeader: ['牲畜类别', '理论重量', '实际重量', '计划混料操作数', '已混料操作数', '混料操作率', '混料误差值', '混料误差率', '混料自动跳转次数', '混料手动跳转次数', '去除取消重量', '方差'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12'],
 
-             tableDatas: this.tab.table.list,
 
-             sheetName: '混料'
 
-           },
 
-           {
 
-             tHeader: ['牲畜类别', '理论重量', '实际重量', '计划撒料操作数', '已撒料操作数', '撒料操作率', '撒料误差值', '撒料误差率', '撒料自动跳转次数', '撒料手动跳转次数'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10'],
 
-             tableDatas: this.tab.table2.list,
 
-             sheetName: '撒料'
 
-           }
 
-         ]
 
-         json2excel(excelDatas3, '汇总统计-牲畜类别', true, 'xlsx')
 
-       } else if (this.tab.radio == '4') {
 
-         var excelDatas4 = [
 
-           {
 
-             tHeader: ['车次', '班次', 'TMR名称', '驾驶员', '理论重量', '实际重量', '计划混料操作数', '已混料操作数', '混料操作率', '混料误差值', '混料误差率', '混料自动跳转次数', '混料手动跳转次数', '去除取消重量', '方差'],
 
-             filterVal: ['A1', 'A13', 'A14', 'A15', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12'],
 
-             tableDatas: this.tab.table.list,
 
-             sheetName: '混料'
 
-           },
 
-           {
 
-             tHeader: ['车次', '理论重量', '实际重量', '计划撒料操作数', '已撒料操作数', '撒料操作率', '撒料误差值', '撒料误差率', '撒料自动跳转次数', '撒料手动跳转次数'],
 
-             filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10'],
 
-             tableDatas: this.tab.table2.list,
 
-             sheetName: '撒料'
 
-           }
 
-         ]
 
-         json2excel(excelDatas4, '汇总统计-车次', true, 'xlsx')
 
-       }
 
-     },
 
-     handleTabClick() {
 
-       this.tab.table.getdataListParm.parammaps.inputDatetime = [new Date(), new Date()]
 
-       this.tab.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
 
-       this.tab.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{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.inputDatetime = [new Date(), new Date()]
 
-       this.tab.table2.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
 
-       this.tab.table2.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{y}-{m}-{d}'),
 
-       this.tab.table2.getdataListParm.parammaps.fname = ''
 
-       this.tab.table2.getdataListParm.parammaps.sort = ''
 
-       this.tab.table2.getdataListParm.parammaps.times = ''
 
-       this.tab2.table.getdataListParm.parammaps.inputDatetime = [new Date(), new Date()]
 
-       this.tab2.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
 
-       this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{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.tab3.table.getdataListParm.parammaps.inputDatetime = [new Date(), new Date()]
 
-       this.tab3.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
 
-       this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{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 = ''
 
-       if (this.activeName == 'first') {
 
-         this.getTabList()
 
-         this.getTabList2()
 
-         this.getChart1()
 
-         this.getChart2()
 
-         this.getChart3()
 
-         this.getChart4()
 
-         this.getChart5()
 
-         this.getChart6()
 
-         this.getChart7()
 
-       } else if (this.activeName == 'second') {
 
-         this.getTab2List()
 
-       } else if (this.activeName == 'third') {
 
-         this.getTab3List()
 
-       }
 
-     },
 
-     changeRadio() {
 
-       console.log(this.tab.radio)
 
-       this.tab.table.getdataListParm.parammaps.sort = ''
 
-       this.tab.table.getdataListParm.parammaps.times = ''
 
-       this.tab.table.getdataListParm.parammaps.fname = ''
 
-       if (this.tab.radio == '1') {
 
-         console.log('配方名称')
 
-         this.tab.isFormulaName = true
 
-         this.tab.isHouseName = false
 
-         this.tab.isLivestockType = false
 
-         this.tab.isTrainNumber = false
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHFT'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySFT'
 
-         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.tab.chart1.getdataListParm.name = 'getAccuracyAllFT'
 
-         this.tab.chart1.getdataListParm.parammaps.startTime = this.tab.table.getdataListParm.parammaps.startTime
 
-         this.tab.chart1.getdataListParm.parammaps.stopTime = this.tab.table.getdataListParm.parammaps.stopTime
 
-         this.tab.chart1.getdataListParm.offset = 1
 
-         this.getChart1()
 
-       } else if (this.tab.radio == '2') {
 
-         console.log('栏舍名称')
 
-         this.tab.isFormulaName = false
 
-         this.tab.isHouseName = true
 
-         this.tab.isLivestockType = false
 
-         this.tab.isTrainNumber = false
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHNS'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySNS'
 
-         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()
 
-       } else if (this.tab.radio == '3') {
 
-         console.log(' 牲畜类别')
 
-         this.tab.isFormulaName = false
 
-         this.tab.isHouseName = false
 
-         this.tab.isLivestockType = true
 
-         this.tab.isTrainNumber = false
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHSC'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySSC'
 
-         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.offset = 1
 
-         this.getTabList2()
 
-       } else if (this.tab.radio == '4') {
 
-         console.log('车次')
 
-         this.tab.isFormulaName = false
 
-         this.tab.isHouseName = false
 
-         this.tab.isLivestockType = false
 
-         this.tab.isTrainNumber = true
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHCC'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySCC'
 
-         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.offset = 1
 
-         this.getTabList2()
 
-       }
 
-     },
 
-     // 汇总统计/混料
 
-     getTabList() {
 
-       this.tab.table.listLoading = true
 
-       GetDataByName(this.tab.table.getdataListParm).then(response => {
 
-         console.log('汇总统计/混料table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.table.list = response.data.list
 
-           // this.tab.table.total = response.data.total
 
-         } else {
 
-           this.tab.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.table.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     // 汇总统计/撒料
 
-     getTabList2() {
 
-       this.tab.table2.listLoading = true
 
-       GetDataByName(this.tab.table2.getdataListParm).then(response => {
 
-         console.log('汇总统计/撒料table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.table2.list = response.data.list
 
-           // this.tab.table2.total = response.data.total
 
-         } else {
 
-           this.tab.table2.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.table2.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     // 查询
 
-     handleSearch() {
 
-       if (this.tab.radio == '1') {
 
-         console.log('配方名称/查询')
 
-         this.tab.isFormulaName = true
 
-         this.tab.isHouseName = false
 
-         this.tab.isLivestockType = false
 
-         this.tab.isTrainNumber = false
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHFT'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySFT'
 
-         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.offset = 1
 
-         this.getTabList2()
 
-         this.tab.chart1.getdataListParm.name = 'getAccuracyAllFT'
 
-         this.tab.chart1.getdataListParm.parammaps.startTime = this.tab.table.getdataListParm.parammaps.startTime
 
-         this.tab.chart1.getdataListParm.parammaps.stopTime = this.tab.table.getdataListParm.parammaps.stopTime
 
-         this.tab.chart1.getdataListParm.offset = 1
 
-         this.getChart1()
 
-       } else if (this.tab.radio == '2') {
 
-         console.log('栏舍名称/查询')
 
-         this.tab.isFormulaName = false
 
-         this.tab.isHouseName = true
 
-         this.tab.isLivestockType = false
 
-         this.tab.isTrainNumber = false
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHNS'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySNS'
 
-         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.offset = 1
 
-         this.getTabList2()
 
-       } else if (this.tab.radio == '3') {
 
-         console.log(' 牲畜类别/查询')
 
-         this.tab.isFormulaName = false
 
-         this.tab.isHouseName = false
 
-         this.tab.isLivestockType = true
 
-         this.tab.isTrainNumber = false
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHSC'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySSC'
 
-         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.offset = 1
 
-         this.getTabList2()
 
-       } else if (this.tab.radio == '4') {
 
-         console.log('车次/查询')
 
-         this.tab.isFormulaName = false
 
-         this.tab.isHouseName = false
 
-         this.tab.isLivestockType = false
 
-         this.tab.isTrainNumber = true
 
-         this.tab.table.getdataListParm.name = 'getAccuracyHCC'
 
-         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 = ''
 
-         }
 
-         this.tab.table.getdataListParm.offset = 1
 
-         this.getTabList()
 
-         this.tab.table2.getdataListParm.name = 'getAccuracySCC'
 
-         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.offset = 1
 
-         this.getTabList2()
 
-       }
 
-     },
 
-     // 配方准确率
 
-     getChart1() {
 
-       this.tab.chart1.listLoading = true
 
-       GetReportform(this.tab.chart1.getdataListParm).then(response => {
 
-         console.log('配方准确率图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           // this.tab.chart1.chartLine_data = {
 
-           //   data1: ['新产牛', '高产牛', '干奶牛', '低产牛', '小公牛', '小育成', '青年牛'],
 
-           //   data2: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-           //   data3: [
 
-           //     { 'data': [92, 96.5, 98, 96, 94.3, 90.25, 90, 98.1, 95.27, 91.25, 91.5, 94, 93, 95, 95] },
 
-           //     { 'data': [93, 94.2, 97, 88.69, 94.9, 91.5, 90.9, 96.7, 95, 92, 91, 94.5, 95.3, 94, 95.6] },
 
-           //     { 'data': [92.88, 93.5, 95, 96, 93, 90, 92.5, 98, 97.5, 94, 90.7, 94.3, 96, 93.8, 97] },
 
-           //     { 'data': [92.5, 96, 98.5, 96, 94.3, 91.25, 93.6, 98, 96.88, 91.25, 91.8, 94.7, 88.5, 89, 91.8] },
 
-           //     { 'data': [93.3, 94.9, 97.4, 92, 94.9, 95.5, 91.9, 94.7, 95.8, 92, 91, 92.5, 95.3, 94.22, 90.6] },
 
-           //     { 'data': [94, 95.8, 98, 98.2, 93.5, 90, 90, 95.1, 92.7, 91.11, 91.5, 94, 93.95, 96, 95.8] },
 
-           //     { 'data': [96, 96, 97, 90, 95.2, 95, 90.9, 96, 95.6, 92, 91.5, 94, 97, 94.5, 97.6] }
 
-           //   ]
 
-           // }
 
-           // var tem = {}
 
-           // var ft = {}
 
-           // response.data.list.forEach(element => {
 
-           //   tem[element['配方名称']] = element['配方名称']
 
-           //   ft[element['日期']] = element['日期']
 
-           // })
 
-           // var arr = Object.keys(tem)
 
-           // var data = []
 
-           // var t = {}
 
-           // t['data'] = []
 
-           // var b = ''
 
-           // for (var i = 0; i < response.data.list.length; i++) {
 
-           //   if (i == 0) {
 
-           //     b = response.data.list[i]['配方名称']
 
-           //   }
 
-           //   // if ((i % (response.data.list.length / arr.length) == 0 && i != 0) || i == response.data.list.length - 1) {
 
-           //   //   data.push(t)
 
-           //   //   t['data'] = []
 
-           //   // }
 
-           //   console.log('======================bbbbbbbbb', b, response.data.list[i]['配方名称'])
 
-           //   if (response.data.list[i]['配方名称'] != b) {
 
-           //     t['data'].push(response.data.list[i]['准确率'])
 
-           //     data.push(arr1)
 
-           //     t['data'] = []
 
-           //     b = response.data.list[i]['配方名称']
 
-           //   }
 
-           //   t['data'].push(response.data.list[i]['准确率'])
 
-           //   console.log('======================wwwwww', t['data'])
 
-           // }
 
-           // var datalist = []
 
-           // datalist['data1'] = Object.keys(tem)
 
-           // datalist['data2'] = Object.keys(ft)
 
-           // datalist['data3'] = data
 
-           // console.log('======================ttttttttttttttttt', datalist)
 
-           // this.tab.chart1.total = response.data.total
 
-           // this.tab.chart1.chartLine_data = datalist
 
-           this.tab.chart1.chartLine_data = response.data.list
 
-           this.roadChartLine1(this.tab.chart1.chartLine_data)
 
-         } else {
 
-           this.tab.chart1.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart1.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart1Table() {
 
-       this.tab.chart1.table.listLoading = true
 
-       GetDataByName(this.tab.chart1.table.getdataListParm).then(response => {
 
-         console.log('配方准确率table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart1.table.list = response.data.list
 
-           this.tab.chart1.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart1.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart1.table.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'))
 
-       var option = {
 
-         title: {
 
-           text: ''
 
-         },
 
-         tooltip: {
 
-           trigger: 'axis'
 
-         },
 
-         legend: {
 
-           data: chartLine_data.data1,
 
-           top: 10,
 
-           right: 10
 
-         },
 
-         grid: {
 
-           left: '3%',
 
-           right: '8%',
 
-           bottom: '3%',
 
-           containLabel: true
 
-         },
 
-         toolbox: {
 
-           show: true,
 
-           right: '2%',
 
-           feature: {}
 
-         },
 
-         xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '日期' },
 
-         yAxis: {
 
-           type: 'value', name: '百分比'
 
-         },
 
-         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.chart1.chartLine.setOption(option)
 
-       window.onresize = function() {
 
-         this.tab.chart1.chartLine.resize()
 
-       }
 
-     },
 
-     // 计划统计
 
-     getChart2() {
 
-       this.tab.chart2.listLoading = true
 
-       GetDataByName(this.tab.chart2.getdataListParm).then(response => {
 
-         console.log('计划统计图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart2.chartLine_data = {
 
-             data1: ['计划准确率', '计划正确率', '计划准确率(去除取消重量)'],
 
-             data2: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-             data3: [
 
-               { data: [95.6, 94.1, 89.8, 95.5, 93.6, 95.7, 90.2, 94.53, 96.88, 91, 89.5, 87, 93.2, 95, 97.23] },
 
-               { data: [97, 96, 88, 91, 93, 97.7, 90, 92, 91, 91, 95, 94.5, 91.6, 92, 92] },
 
-               { data: [91.2, 95, 89, 97, 95.9, 92.7, 89, 96, 98, 91, 85, 82, 95, 96, 90, 94] }
 
-             ]
 
-           }
 
-           this.tab.chart2.total = response.data.total
 
-           this.roadChartLine2(this.tab.chart2.chartLine_data)
 
-         } else {
 
-           this.tab.chart2.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart2.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart2Table() {
 
-       this.tab.chart2.table.listLoading = true
 
-       GetDataByName(this.tab.chart2.table.getdataListParm).then(response => {
 
-         console.log('计划统计table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart2.table.list = response.data.list
 
-           this.tab.chart2.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart2.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart2.table.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'))
 
-       var option = {
 
-         title: {
 
-           text: ''
 
-         },
 
-         tooltip: {
 
-           trigger: 'axis'
 
-         },
 
-         legend: {
 
-           data: chartLine_data.data1,
 
-           top: 10,
 
-           right: 10
 
-         },
 
-         grid: {
 
-           left: '3%',
 
-           right: '8%',
 
-           bottom: '3%',
 
-           containLabel: true
 
-         },
 
-         toolbox: {
 
-           show: true,
 
-           right: '2%',
 
-           feature: {}
 
-         },
 
-         xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '日期' },
 
-         yAxis: {
 
-           type: 'value', name: '百分比'
 
-         },
 
-         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.chart2.chartLine.setOption(option)
 
-       window.onresize = function() {
 
-         this.tab.chart2.chartLine.resize()
 
-       }
 
-     },
 
-     // 牛群准确率
 
-     getChart3() {
 
-       this.tab.chart3.listLoading = true
 
-       GetDataByName(this.tab.chart3.getdataListParm).then(response => {
 
-         console.log('牛群准确率图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart3.chartLine_data = {
 
-             data1: ['新产牛', '高产牛', '干奶牛', '低产牛', '小公牛', '小育成', '青年牛'],
 
-             data2: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-             data3: [
 
-               { data: [96, 91.5, 97, 90, 95.2, 95, 90.9, 96, 95.6, 92, 91.5, 94, 97, 94.5, 97.6] },
 
-               { data: [89, 91.5, 92, 94, 91, 95, 95, 91, 97, 89, 92.5, 97, 95, 91, 92] },
 
-               { data: [95, 99, 91, 91.7, 96, 90, 91, 98, 91, 94, 90.7, 96, 96, 91, 97] },
 
-               { data: [91, 92, 95, 94, 92, 97, 93.6, 98, 96.95, 91.25, 98, 94.7, 85, 97, 91.8] },
 
-               { data: [96.5, 97, 94, 96, 91, 97, 91.9, 94.7, 88, 92, 91, 94, 95.3, 94.22, 90.6] },
 
-               { data: [97, 91, 98, 95, 97.5, 95, 96, 92.6, 92.7, 96, 91.5, 94, 93.95, 96, 95.8] },
 
-               { data: [86, 92, 88, 87, 91, 91, 96, 93, 91.6, 96, 97.5, 91, 98, 99, 91.6] }
 
-             ]
 
-           }
 
-           this.tab.chart3.total = response.data.total
 
-           this.roadChartLine3(this.tab.chart3.chartLine_data)
 
-         } else {
 
-           this.tab.chart3.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart3.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart3Table() {
 
-       this.tab.chart3.table.listLoading = true
 
-       GetDataByName(this.tab.chart3.table.getdataListParm).then(response => {
 
-         console.log('牛群准确率table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart3.table.list = response.data.list
 
-           this.tab.chart3.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart3.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart3.table.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'))
 
-       var option = {
 
-         title: {
 
-           text: ''
 
-         },
 
-         tooltip: {
 
-           trigger: 'axis'
 
-         },
 
-         legend: {
 
-           data: chartLine_data.data1,
 
-           top: 10,
 
-           right: 10
 
-         },
 
-         grid: {
 
-           left: '3%',
 
-           right: '8%',
 
-           bottom: '3%',
 
-           containLabel: true
 
-         },
 
-         toolbox: {
 
-           show: true,
 
-           right: '2%',
 
-           feature: {}
 
-         },
 
-         xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '日期' },
 
-         yAxis: {
 
-           type: 'value', name: '百分比'
 
-         },
 
-         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 = function() {
 
-         this.tab.chart3.chartLine.resize()
 
-       }
 
-     },
 
-     // 车辆准确率(重量)
 
-     getChart4() {
 
-       this.tab.chart4.listLoading = true
 
-       GetDataByName(this.tab.chart4.getdataListParm).then(response => {
 
-         console.log('车辆准确率(重量)图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart4.chartLine_data = {
 
-             data1: ['1', '2', '3', '4'],
 
-             data2: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-             data3: [
 
-               { data: [92.88, 93.5, 95, 96, 93, 90, 92.5, 98, 97.5, 94, 90.7, 94.3, 96, 93.8, 97] },
 
-               { data: [97, 96, 88, 91, 93, 97.7, 90, 92, 91, 91, 95, 94.5, 91.6, 92, 92] },
 
-               { data: [91.2, 95, 89, 97, 95.9, 92.7, 89, 96, 98, 91, 85, 82, 95, 96, 90, 94] },
 
-               { data: [86, 92, 88, 87, 91, 91, 96, 93, 91.6, 96, 97.5, 91, 98, 99, 91.6] }
 
-             ]
 
-           }
 
-           this.tab.chart4.total = response.data.total
 
-           this.roadChartLine4(this.tab.chart4.chartLine_data)
 
-         } else {
 
-           this.tab.chart4.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart4.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart4Table() {
 
-       this.tab.chart4.table.listLoading = true
 
-       GetDataByName(this.tab.chart4.table.getdataListParm).then(response => {
 
-         console.log('车辆准确率(重量)table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart4.table.list = response.data.list
 
-           this.tab.chart4.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart4.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart4.table.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'))
 
-       var option = {
 
-         title: {
 
-           text: ''
 
-         },
 
-         tooltip: {
 
-           trigger: 'axis'
 
-         },
 
-         legend: {
 
-           data: chartLine_data.data1,
 
-           top: 10,
 
-           right: 10
 
-         },
 
-         grid: {
 
-           left: '3%',
 
-           right: '8%',
 
-           bottom: '3%',
 
-           containLabel: true
 
-         },
 
-         toolbox: {
 
-           show: true,
 
-           right: '2%',
 
-           feature: {}
 
-         },
 
-         xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '日期' },
 
-         yAxis: {
 
-           type: 'value', name: '百分比'
 
-         },
 
-         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 = function() {
 
-         this.tab.chart4.chartLine.resize()
 
-       }
 
-     },
 
-     // 混料统计
 
-     getChart5() {
 
-       this.tab.chart5.listLoading = true
 
-       GetDataByName(this.tab.chart5.getdataListParm).then(response => {
 
-         console.log('混料统计图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart5.chartLine_data = {
 
-             data1: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-             data2: [9, 6, 5, 9, 9, 5, 3, 7, 7, 9, 5, 7, 9, 7, 5],
 
-             data3: [0, 1, 1, 1, 0, 0, 0, 2, 2, 1, 12, 1, 2, 0],
 
-             data4: [92.88, 93.5, 95, 96, 93, 90, 92.5, 98, 97.5, 94, 90.7, 94.3, 96, 93.8, 97],
 
-             data5: [97, 96, 88, 91, 93, 97.7, 90, 92, 91, 91, 95, 94.5, 91.6, 92, 92]
 
-           }
 
-           this.tab.chart5.total = response.data.total
 
-           this.roadChartLine5(this.tab.chart5.chartLine_data)
 
-         } else {
 
-           this.tab.chart5.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart5.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart5Table() {
 
-       this.tab.chart5.table.listLoading = true
 
-       GetDataByName(this.tab.chart5.table.getdataListParm).then(response => {
 
-         console.log('混料统计table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart5.table.list = response.data.list
 
-           this.tab.chart5.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart5.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart5.table.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'))
 
-       var option = {
 
-         tooltip: {
 
-           trigger: 'axis',
 
-           axisPointer: {
 
-             type: 'cross',
 
-             crossStyle: {
 
-               color: '#999'
 
-             }
 
-           }
 
-         },
 
-         toolbox: {
 
-           feature: {}
 
-         },
 
-         legend: {
 
-           data: ['自动跳转次数', '手动跳转次数', '自动跳转准确率', '手动跳转准确率']
 
-         },
 
-         xAxis: [
 
-           {
 
-             type: 'category',
 
-             data: chartLine_data.data1,
 
-             axisPointer: {
 
-               type: 'shadow'
 
-             }
 
-           }
 
-         ],
 
-         yAxis: [
 
-           {
 
-             type: 'value',
 
-             name: '跳转次数',
 
-             axisLabel: {
 
-               formatter: '{value}'
 
-             }
 
-           },
 
-           {
 
-             type: 'value',
 
-             name: '混料准确率',
 
-             min: 0,
 
-             max: 100,
 
-             interval: 10,
 
-             axisLabel: {
 
-               formatter: '{value} %'
 
-             }
 
-           }
 
-         ],
 
-         series: [
 
-           {
 
-             name: '自动跳转次数',
 
-             type: 'bar',
 
-             data: chartLine_data.data2
 
-           },
 
-           {
 
-             name: '手动跳转次数',
 
-             type: 'bar',
 
-             data: chartLine_data.data3
 
-           },
 
-           {
 
-             name: '自动跳转准确率',
 
-             type: 'line',
 
-             yAxisIndex: 1,
 
-             data: chartLine_data.data4
 
-           },
 
-           {
 
-             name: '手动跳转准确率',
 
-             type: 'line',
 
-             yAxisIndex: 1,
 
-             data: chartLine_data.data5
 
-           }
 
-         ]
 
-       }
 
-       this.tab.chart5.chartLine.setOption(option)
 
-       window.onresize = function() {
 
-         this.tab.chart5.chartLine.resize()
 
-       }
 
-     },
 
-     // 混料计划取消次数
 
-     getChart6() {
 
-       this.tab.chart6.listLoading = true
 
-       GetDataByName(this.tab.chart6.getdataListParm).then(response => {
 
-         console.log('混料计划取消次数图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart6.chartLine_data = {
 
-             data1: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-             data2: [1, 2, 1, 1, 1, 0, 0, 0, 1, 0, 1, 2, 1, 0, 1]
 
-           }
 
-           this.tab.chart6.total = response.data.total
 
-           this.roadChartLine6(this.tab.chart6.chartLine_data)
 
-         } else {
 
-           this.tab.chart6.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart6.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart6Table() {
 
-       this.tab.chart6.table.listLoading = true
 
-       GetDataByName(this.tab.chart6.table.getdataListParm).then(response => {
 
-         console.log('车辆准确率(重量)table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart6.table.list = response.data.list
 
-           this.tab.chart6.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart6.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart6.table.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'))
 
-       var option = {
 
-         color: ['#3398DB'],
 
-         tooltip: {
 
-           trigger: 'axis',
 
-           axisPointer: { // 坐标轴指示器,坐标轴触发有效
 
-             type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
 
-           }
 
-         },
 
-         grid: {
 
-           left: '8%',
 
-           right: '8%',
 
-           bottom: '3%',
 
-           containLabel: true
 
-         },
 
-         // visualMap: {
 
-         //   bottom: 10
 
-         // },
 
-         legend: {
 
-           data: ['取消次数']
 
-         },
 
-         xAxis: [
 
-           {
 
-             name: '日期',
 
-             type: 'category',
 
-             data: chartLine_data.data1,
 
-             axisTick: {
 
-               alignWithLabel: true
 
-             }
 
-           }
 
-         ],
 
-         yAxis: [
 
-           {
 
-             name: '次数',
 
-             type: 'value'
 
-           }
 
-         ],
 
-         series: [
 
-           {
 
-             name: '取消次数',
 
-             type: 'bar',
 
-             barWidth: '60%',
 
-             data: chartLine_data.data2
 
-           }
 
-         ]
 
-       }
 
-       this.tab.chart6.chartLine.setOption(option)
 
-       window.onresize = function() {
 
-         this.tab.chart6.chartLine.resize()
 
-       }
 
-     },
 
-     // 栏舍撒料时间统计
 
-     getChart7() {
 
-       this.tab.chart7.listLoading = true
 
-       GetDataByName(this.tab.chart7.getdataListParm).then(response => {
 
-         console.log('栏舍撒料时间统计图表数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart7.chartLine_data = {
 
-             data1: ['17号', '5号南', '3南东', '3南西', '1号南'],
 
-             data2: ['09/16', '09/17', '09/18', '09/19', '09/20', '09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
 
-             data3: [
 
-               { data: [6.58, 6.55, 7.00, 6.43, 6.55, 7.02, 7.15, 7.00, 6.55, 6.59, 7.10, 6.50, 6.58, 7.10, 7.22] },
 
-               { data: [7.04, 7.10, 7.03, 6.47, 7.01, 7.10, 7.22, 7.04, 7.01, 7.07, 7.17, 6.59, 7.05, 7.16, 7.31] },
 
-               { data: [7.10, 7.15, 7.08, 6.53, 7.12, 7.16, 7.30, 7.11, 7.6, 7.15, 7.25, 7.12, 7.09, 7.25, 7.40] },
 
-               { data: [7.15, 7.17, 7.12, 6.59, 7.20, 7.22, 7.34, 7.17, 7.13, 7.25, 7.33, 7.15, 7.18, 7.31, 7.45] }
 
-             ]
 
-           }
 
-           this.tab.chart7.total = response.data.total
 
-           this.roadChartLine7(this.tab.chart7.chartLine_data)
 
-         } else {
 
-           this.tab.chart7.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart7.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     getChart7Table() {
 
-       this.tab.chart7.table.listLoading = true
 
-       GetDataByName(this.tab.chart7.table.getdataListParm).then(response => {
 
-         console.log('栏舍撒料时间统计table/导出数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.tab.chart7.table.list = response.data.list
 
-           this.tab.chart7.table.total = response.data.total
 
-         } else {
 
-           this.tab.chart7.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab.chart7.table.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     roadChartLine7(chartLine_data) {
 
-       if (this.tab.chart7.chartLine != null) {
 
-         this.tab.chart7.chartLine.dispose()
 
-       }
 
-       this.tab.chart7.chartLine = echarts.init(document.getElementById('chartLine7'))
 
-       var option = {
 
-         title: {
 
-           text: ''
 
-         },
 
-         tooltip: {
 
-           trigger: 'axis'
 
-         },
 
-         legend: {
 
-           data: chartLine_data.data1,
 
-           top: 10,
 
-           right: 10
 
-         },
 
-         grid: {
 
-           left: '3%',
 
-           right: '5%',
 
-           bottom: '3%',
 
-           containLabel: true
 
-         },
 
-         toolbox: {
 
-           show: true,
 
-           right: '2%',
 
-           feature: {}
 
-         },
 
-         xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '日期' },
 
-         yAxis: [{
 
-           type: '',
 
-           name: '时间',
 
-           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)
 
-       window.onresize = function() {
 
-         this.tab.chart7.chartLine.resize()
 
-       }
 
-     },
 
-     // 导出
 
-     handleExport(item) {
 
-       if (item == 'chart1') {
 
-         console.log('配方准确率导出')
 
-         this.getChart1Table()
 
-       } else if (item == 'chart2') {
 
-         console.log('计划统计导出')
 
-         this.getChart2Table()
 
-       } else if (item == 'chart3') {
 
-         console.log('牛群准确率导出')
 
-         this.getChart3Table()
 
-       } else if (item == 'chart4') {
 
-         console.log('车辆准确率(重量)导出')
 
-         this.getChart4Table()
 
-       } else if (item == 'chart5') {
 
-         console.log('混料统计导出')
 
-         this.getChart5Table()
 
-       } else if (item == 'chart6') {
 
-         console.log('混料计划取消次数导出')
 
-         this.getChart6Table()
 
-       } else if (item == 'chart7') {
 
-         console.log('栏舍撒料时间统计导出')
 
-         this.getChart7Table()
 
-       }
 
-     },
 
-     // 切换表格
 
-     handleTable(item) {
 
-       // 显示切换表格
 
-       if (item == 'chart1') {
 
-         console.log('配方准确率表格')
 
-         this.tab.chart1.isTable = true
 
-         this.tab.chart1.isChart = false
 
-         this.getChart1Table()
 
-       } else if (item == 'chart2') {
 
-         console.log('计划统计表格')
 
-         this.tab.chart2.isTable = true
 
-         this.tab.chart2.isChart = false
 
-         this.getChart2Table()
 
-       } else if (item == 'chart3') {
 
-         console.log('牛群准确率表格')
 
-         this.tab.chart3.isTable = true
 
-         this.tab.chart3.isChart = false
 
-         this.getChart3Table()
 
-       } else if (item == 'chart4') {
 
-         console.log('车辆准确率(重量)表格')
 
-         this.tab.chart4.isTable = true
 
-         this.tab.chart4.isChart = false
 
-         this.getChart4Table()
 
-       } else if (item == 'chart5') {
 
-         console.log('混料统计表格')
 
-         this.tab.chart5.isTable = true
 
-         this.tab.chart5.isChart = false
 
-         this.getChart5Table()
 
-       } else if (item == 'chart6') {
 
-         console.log('混料计划取消次数表格')
 
-         this.tab.chart6.isTable = true
 
-         this.tab.chart6.isChart = false
 
-         this.getChart6Table()
 
-       } else if (item == 'chart7') {
 
-         console.log('栏舍撒料时间统计表格')
 
-         this.tab.chart7.isTable = true
 
-         this.tab.chart7.isChart = false
 
-         this.getChart7Table()
 
-       }
 
-     },
 
-     // 切换图表
 
-     handleChart(item) {
 
-       // 显示切换图表
 
-       if (item == 'chart1') {
 
-         console.log('配方准确率图表')
 
-         this.tab.chart1.isTable = false
 
-         this.tab.chart1.isChart = true
 
-       } else if (item == 'chart2') {
 
-         console.log('计划统计图表')
 
-         this.tab.chart2.isTable = false
 
-         this.tab.chart2.isChart = true
 
-       } else if (item == 'chart3') {
 
-         console.log('牛群准确率图表')
 
-         this.tab.chart3.isTable = false
 
-         this.tab.chart3.isChart = true
 
-       } else if (item == 'chart4') {
 
-         console.log('车辆准确率(重量)图表')
 
-         this.tab.chart4.isTable = false
 
-         this.tab.chart4.isChart = true
 
-       } else if (item == 'chart5') {
 
-         console.log('混料统计图表')
 
-         this.tab.chart5.isTable = false
 
-         this.tab.chart5.isChart = true
 
-       } else if (item == 'chart6') {
 
-         console.log('混料计划取消次数图表')
 
-         this.tab.chart6.isTable = false
 
-         this.tab.chart6.isChart = true
 
-       } else if (item == 'chart7') {
 
-         console.log('栏舍撒料时间统计图表')
 
-         this.tab.chart7.isTable = false
 
-         this.tab.chart7.isChart = true
 
-       }
 
-     },
 
-     // 混料统计
 
-     getTab2List() {
 
-       this.tab2.table.listLoading = true
 
-       GetDataByName(this.tab2.table.getdataListParm).then(response => {
 
-         console.log('混料统计table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           // this.tab2.table.list = response.data.list
 
-           // this.tab2.table.total = response.data.total
 
-         } else {
 
-           this.tab2.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab2.table.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     handleSearch2() {
 
-       this.getTab2List()
 
-     },
 
-     handleRefresh2() {
 
-       this.getTab2List()
 
-     },
 
-     handleExport2() {
 
-       var excelDatasTab2 = [
 
-         {
 
-           tHeader: ['日期', 'TMR名称', '车次', '班次', '配方名称', '饲料', '理论重量', '实际重量', '误差值', '误差率', '计划时间', '开始时间', '结束时间', ' 跳转方式', ' 开始重量', ' 结束重量'],
 
-           filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15', 'A16'],
 
-           tableDatas: this.tab2.table.list,
 
-           sheetName: '混料统计'
 
-         }
 
-       ]
 
-       json2excel(excelDatasTab2, '混料统计', true, 'xlsx')
 
-     },
 
-     // 撒料统计
 
-     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.tab3.table.total = response.data.total
 
-         } else {
 
-           this.tab3.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.tab3.table.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     handleSearch3() {
 
-       this.getTab3List()
 
-     },
 
-     handleRefresh3() {
 
-       this.getTab3List()
 
-     },
 
-     handleExport3() {
 
-       var excelDatasTab3 = [
 
-         {
 
-           tHeader: ['日期', 'TMR名称', '车次', '班次', '配方名称', '栏舍', '理论重量', '实际重量', '误差值', '误差率', '开始时间', '结束时间', ' 跳转方式', ' 开始重量', ' 结束重量'],
 
-           filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15'],
 
-           tableDatas: this.tab3.table.list,
 
-           sheetName: '撒料统计'
 
-         }
 
-       ]
 
-       json2excel(excelDatasTab3, '撒料统计', true, 'xlsx')
 
-     }
 
-   }
 
- }
 
- </script>
 
- <style lang="scss" scoped>
 
-   .search{margin-bottom:10px;}
 
- </style>
 
 
  |