cdf70db4a34125a0c3378dbf8e60f845135bfb72.svn-base 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756
  1. <template>
  2. <div class="app-container">
  3. <el-tabs v-model="activeName" @tab-click="handleTabClick">
  4. <el-tab-pane label="效率统计" name="first">
  5. <div class="search">
  6. <el-date-picker v-model="tab.table.getdataListParm.parammaps.mydate" type="date" placeholder="选择日期" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
  7. <span style="margin-left: 10px;">统计类型:</span>
  8. <el-radio v-model="tab.radio" label="1" @change="changeRadio">配方</el-radio>
  9. <el-radio v-model="tab.radio" label="2" @change="changeRadio">栏舍</el-radio>
  10. <el-radio v-model="tab.radio" label="3" @change="changeRadio">牲畜类别</el-radio>
  11. <el-input v-if="tab.isFormulaName" v-model="tab.table.getdataListParm.parammaps.source" class="filter-item" style="width: 245px;" placeholder="配方模板" />
  12. <el-input v-if="tab.isHouseName" v-model="tab.table.getdataListParm.parammaps.source" class="filter-item" style="width: 150px;" placeholder="栏舍" />
  13. <el-input v-if="tab.isHouseName" v-model="tab.table.getdataListParm.parammaps.source" class="filter-item" style="width: 150px;" placeholder="配方模板" />
  14. <el-input v-if="tab.isLivestockType" v-model="tab.table.getdataListParm.parammaps.source" class="filter-item" style="width: 150px;" placeholder="牲畜类别" />
  15. <el-button class="successBorder" @click="handleSearch">查询</el-button>
  16. <el-button class="export" @click="handleDownload">导出</el-button>
  17. </div>
  18. <div class="table">
  19. <el-table
  20. :key="tab.table.tableKey"
  21. v-loading="tab.table.listLoading"
  22. element-loading-text="给我一点时间"
  23. :data="tab.table.list"
  24. border
  25. fit
  26. highlight-current-row
  27. style="width: 100%;"
  28. :row-style="rowStyle"
  29. :cell-style="cellStyle"
  30. class="elTable table-fixed"
  31. >
  32. <el-table-column v-if="tab.isFormulaName" label="配方模板" min-width="110px" align="center" prop="A1" />
  33. <el-table-column v-if="tab.isHouseName" label="栏舍" min-width="110px" align="center" prop="A1" />
  34. <el-table-column v-if="tab.isHouseName" label="配方模板" min-width="110px" align="center" prop="A20" />
  35. <el-table-column v-if="tab.isLivestockType" label="牲畜类别" min-width="110px" align="center" prop="A1" />
  36. <el-table-column label="实际牛头数" min-width="110px" align="center" prop="A2" />
  37. <el-table-column label="应混料量(kg)" min-width="110px" align="center" prop="A3" />
  38. <el-table-column label="实际混料量(kg)" min-width="110px" align="center" prop="A4" />
  39. <el-table-column label="撒料量(kg)" min-width="110px" align="center" prop="A5" />
  40. <el-table-column label="混料时间(min)" min-width="110px" align="center" prop="A6" />
  41. <el-table-column label="搅拌时间(min)" min-width="110px" align="center" prop="A7" />
  42. <el-table-column label="转投剩料量(kg)" min-width="110px" align="center" prop="A8" />
  43. <el-table-column label="今日剩料量(kg)" min-width="110px" align="center" prop="A9" />
  44. <el-table-column label="剩料率(%)" min-width="110px" align="center" prop="A10" />
  45. <el-table-column label="TMR干物质(%)" min-width="110px" align="center" prop="A11" />
  46. <el-table-column label="配方干物质采食量(kg/头)" min-width="110px" align="center" prop="A12" />
  47. <el-table-column label="实际干物质采食量(kg/头)" min-width="110px" align="center" prop="A13" />
  48. <el-table-column label="采食率(%)" min-width="110px" align="center" prop="A14" />
  49. <el-table-column label="配方成本(元/头)" min-width="110px" align="center" prop="A15" />
  50. <el-table-column label="实际成本(元/头)" min-width="110px" align="center" prop="A16" />
  51. <el-table-column label="产奶量(kg/头)" min-width="110px" align="center" prop="A17" />
  52. <el-table-column label="饲料转化率" min-width="110px" align="center" prop="A18" />
  53. <el-table-column label="公斤奶饲料成本" min-width="110px" align="center" prop="A19" />
  54. </el-table>
  55. <!-- <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" /> -->
  56. </div>
  57. <div class="AnalysisChart">
  58. <el-row :gutter="10">
  59. <!-- 泌乳牛采食量 -->
  60. <el-col :span="12" style="position: relative;">
  61. <h4 style="text-align:center;">泌乳牛采食量</h4>
  62. <div>
  63. <el-date-picker v-model="tab.chart1.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
  64. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart1')">导出</el-button>
  65. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart1')">切换表格</el-button>
  66. </div>
  67. <div id="chartLine1" style="width:100%;height:430px;" />
  68. <div v-if="tab.chart1.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
  69. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart1')">导出</el-button>
  70. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart1')">切换图表</el-button>
  71. <el-table
  72. :key="tab.chart1.table.tableKey"
  73. v-loading="tab.chart1.table.listLoading"
  74. element-loading-text="给我一点时间"
  75. :data="tab.chart1.table.list"
  76. border
  77. fit
  78. highlight-current-row
  79. style="width: 100%;"
  80. height="430"
  81. :row-style="rowStyle"
  82. :cell-style="cellStyle"
  83. class="elTable table-fixed"
  84. >
  85. <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
  86. <el-table-column label="泌乳牛采食量(kg)" min-width="110px" align="center" prop="barname" />
  87. <el-table-column label="泌乳牛产奶量(kg)" min-width="110px" align="center" prop="barname" />
  88. </el-table>
  89. </div>
  90. </el-col>
  91. <!-- 牛栏剩料率 -->
  92. <el-col :span="12" style="position: relative;">
  93. <h4 style="text-align:center;">牛栏剩料率</h4>
  94. <div>
  95. <el-select v-model="tab.chart2.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
  96. <el-option v-for="item in tab.chart2.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
  97. </el-select>
  98. <el-date-picker v-model="tab.chart2.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
  99. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart2')">导出</el-button>
  100. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart2')">切换表格</el-button>
  101. </div>
  102. <div id="chartLine2" style="width:100%;height:400px;" />
  103. <div v-if="tab.chart2.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
  104. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart2')">导出</el-button>
  105. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart2')">切换图表</el-button>
  106. <el-table
  107. :key="tab.chart2.table.tableKey"
  108. v-loading="tab.chart2.table.listLoading"
  109. element-loading-text="给我一点时间"
  110. :data="tab.chart2.table.list"
  111. border
  112. fit
  113. highlight-current-row
  114. style="width: 100%;"
  115. height="430"
  116. :row-style="rowStyle"
  117. :cell-style="cellStyle"
  118. class="elTable table-fixed"
  119. >
  120. <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
  121. <el-table-column label="栏舍名称" min-width="110px" align="center" prop="barname" />
  122. <el-table-column label="剩料量" min-width="110px" align="center" prop="barname" />
  123. <el-table-column label="撒料量" min-width="110px" align="center" prop="barname" />
  124. <el-table-column label="剩料率" min-width="110px" align="center" prop="barname" />
  125. </el-table>
  126. </div>
  127. </el-col>
  128. </el-row>
  129. <el-row :gutter="10">
  130. <!-- 搅拌时间统计 -->
  131. <el-col :span="12" style="position: relative;">
  132. <h4 style="text-align:center;">搅拌时间统计</h4>
  133. <div>
  134. <el-date-picker v-model="tab.chart3.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
  135. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart3')">导出</el-button>
  136. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart3')">切换表格</el-button>
  137. </div>
  138. <div id="chartLine3" style="width:100%;height:400px;" />
  139. <div v-if="tab.chart3.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
  140. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart3')">导出</el-button>
  141. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart3')">切换图表</el-button>
  142. <el-table
  143. :key="tab.chart3.table.tableKey"
  144. v-loading="tab.chart3.table.listLoading"
  145. element-loading-text="给我一点时间"
  146. :data="tab.chart3.table.list"
  147. border
  148. fit
  149. highlight-current-row
  150. style="width: 100%;"
  151. height="430"
  152. :row-style="rowStyle"
  153. :cell-style="cellStyle"
  154. class="elTable table-fixed"
  155. >
  156. <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
  157. <el-table-column label="平均搅拌时间(分钟)" min-width="110px" align="center" prop="barname" />
  158. <el-table-column label="混料+搅拌时间(分钟)" min-width="110px" align="center" prop="barname" />
  159. </el-table>
  160. </div>
  161. </el-col>
  162. <!-- 转化率 -->
  163. <el-col :span="12" style="position: relative;">
  164. <h4 style="text-align:center;">转化率</h4>
  165. <div>
  166. <el-select v-model="tab.chart4.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
  167. <el-option v-for="item in tab.chart4.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
  168. </el-select>
  169. <el-date-picker v-model="tab.chart4.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
  170. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart4')">导出</el-button>
  171. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart4')">切换表格</el-button>
  172. </div>
  173. <div id="chartLine4" style="width:100%;height:400px;" />
  174. <div v-if="tab.chart4.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
  175. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart4')">导出</el-button>
  176. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart4')">切换图表</el-button>
  177. <el-table
  178. :key="tab.chart4.table.tableKey"
  179. v-loading="tab.chart4.table.listLoading"
  180. element-loading-text="给我一点时间"
  181. :data="tab.chart4.table.list"
  182. border
  183. fit
  184. highlight-current-row
  185. style="width: 100%;"
  186. height="430"
  187. :row-style="rowStyle"
  188. :cell-style="cellStyle"
  189. class="elTable table-fixed"
  190. >
  191. <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
  192. <el-table-column label="配方名称" min-width="110px" align="center" prop="barname" />
  193. <el-table-column label="饲料转化率" min-width="110px" align="center" prop="barname" />
  194. </el-table>
  195. </div>
  196. </el-col>
  197. </el-row>
  198. <el-row :gutter="10">
  199. <!-- 成本分析 -->
  200. <el-col :span="24" style="position: relative;">
  201. <h4 style="text-align:center;">成本分析</h4>
  202. <div>
  203. <el-select v-model="tab.chart5.getdataListParm.parammaps.enable" style="width: 150px;margin-right: 5px;" multiple collapse-tags placeholder="请选择统计参数">
  204. <el-option v-for="item in tab.chart5.statisticsList" :key="item.id" :label="item.name" :value="item.id" />
  205. </el-select>
  206. <el-date-picker v-model="tab.chart5.getdataListParm.parammaps.inputDatetime" style="width: 250px;" class="inputDatetime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
  207. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart5')">导出</el-button>
  208. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleTable('chart5')">切换表格</el-button>
  209. </div>
  210. <div id="chartLine5" style="width:100%;height:400px;" />
  211. <div v-if="tab.chart5.isTable" class="table" style="width: 100%;position: absolute;top:19px;right: 0;">
  212. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleExport('chart5')">导出</el-button>
  213. <el-button type="text" style="float: right;margin-right: 5px;" @click="handleChart('chart5')">切换图表</el-button>
  214. <el-table
  215. :key="tab.chart5.table.tableKey"
  216. v-loading="tab.chart5.table.listLoading"
  217. element-loading-text="给我一点时间"
  218. :data="tab.chart5.table.list"
  219. border
  220. fit
  221. highlight-current-row
  222. style="width: 100%;"
  223. height="430"
  224. :row-style="rowStyle"
  225. :cell-style="cellStyle"
  226. class="elTable table-fixed"
  227. >
  228. <el-table-column label="日期" min-width="110px" align="center" prop="barname" />
  229. <el-table-column label="牲畜类别" min-width="110px" align="center" prop="barname" />
  230. <el-table-column label="公斤奶饲料成本(元)" min-width="110px" align="center" prop="barname" />
  231. </el-table>
  232. </div>
  233. </el-col>
  234. </el-row>
  235. </div>
  236. </el-tab-pane>
  237. <el-tab-pane label="牛群评估" name="second">
  238. <div class="search">
  239. <el-date-picker v-model="tab2.table.getdataListParm.parammaps.mydate" type="date" placeholder="选择日期" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
  240. </div>
  241. <div class="table">
  242. <el-row :gutter="10">
  243. <!-- 宾州筛分析 -->
  244. <el-col :span="12">
  245. <h4 style="text-align:center;">宾州筛分析</h4>
  246. <el-table
  247. :key="tab2.table.tableKey"
  248. v-loading="tab2.table.listLoading"
  249. element-loading-text="给我一点时间"
  250. :data="tab2.table.list"
  251. border
  252. fit
  253. highlight-current-row
  254. style="width: 100%;"
  255. :row-style="rowStyle"
  256. :cell-style="cellStyle"
  257. class="elTable table-fixed"
  258. >
  259. <el-table-column label="宾州筛" min-width="130px" align="center">
  260. <template slot-scope="scope">
  261. <span>{{ scope.row.A1 }}</span>
  262. </template>
  263. </el-table-column>
  264. <el-table-column label="第一层重量" min-width="130px" align="center">
  265. <template slot-scope="scope">
  266. <span>{{ scope.row.A2 }}</span>
  267. </template>
  268. </el-table-column>
  269. <el-table-column label="第一层百分比" min-width="110px" align="center">
  270. <template slot-scope="scope">
  271. <span>{{ scope.row.A3 }}</span>
  272. </template>
  273. </el-table-column>
  274. <el-table-column label="第二层重量" min-width="110px" align="center">
  275. <template slot-scope="scope">
  276. <span>{{ scope.row.A4 }}</span>
  277. </template>
  278. </el-table-column>
  279. <el-table-column label="第二层百分比" min-width="110px" align="center">
  280. <template slot-scope="scope">
  281. <span>{{ scope.row.A5 }}</span>
  282. </template>
  283. </el-table-column>
  284. <el-table-column label="第三层重量" min-width="110px" align="center">
  285. <template slot-scope="scope">
  286. <span>{{ scope.row.A6 }}</span>
  287. </template>
  288. </el-table-column>
  289. <el-table-column label="第三层百分比" min-width="110px" align="center">
  290. <template slot-scope="scope">
  291. <span>{{ scope.row.A7 }}</span>
  292. </template>
  293. </el-table-column>
  294. <el-table-column label="第四层重量" min-width="110px" align="center">
  295. <template slot-scope="scope">
  296. <span>{{ scope.row.A8 }}</span>
  297. </template>
  298. </el-table-column>
  299. <el-table-column label="第四层百分比" min-width="110px" align="center">
  300. <template slot-scope="scope">
  301. <span>{{ scope.row.A9 }}</span>
  302. </template>
  303. </el-table-column>
  304. <el-table-column label="参考标准" min-width="110px" align="center">
  305. <template slot-scope="scope">
  306. <span>{{ scope.row.A10 }}</span>
  307. </template>
  308. </el-table-column>
  309. </el-table>
  310. </el-col>
  311. <!-- 粪便筛分析 -->
  312. <el-col :span="12">
  313. <h4 style="text-align:center;">粪便筛分析</h4>
  314. <el-table
  315. :key="tab2.table2.tableKey"
  316. v-loading="tab2.table2.listLoading"
  317. element-loading-text="给我一点时间"
  318. :data="tab2.table2.list"
  319. border
  320. fit
  321. highlight-current-row
  322. style="width: 100%;"
  323. :row-style="rowStyle"
  324. :cell-style="cellStyle"
  325. class="elTable table-fixed"
  326. >
  327. <el-table-column label="粪便筛" min-width="130px" align="center">
  328. <template slot-scope="scope">
  329. <span>{{ scope.row.A1 }}</span>
  330. </template>
  331. </el-table-column>
  332. <el-table-column label="第一层重量" min-width="130px" align="center">
  333. <template slot-scope="scope">
  334. <span>{{ scope.row.A2 }}</span>
  335. </template>
  336. </el-table-column>
  337. <el-table-column label="第一层百分比" min-width="110px" align="center">
  338. <template slot-scope="scope">
  339. <span>{{ scope.row.A3 }}</span>
  340. </template>
  341. </el-table-column>
  342. <el-table-column label="第二层重量" min-width="110px" align="center">
  343. <template slot-scope="scope">
  344. <span>{{ scope.row.A4 }}</span>
  345. </template>
  346. </el-table-column>
  347. <el-table-column label="第二层百分比" min-width="110px" align="center">
  348. <template slot-scope="scope">
  349. <span>{{ scope.row.A5 }}</span>
  350. </template>
  351. </el-table-column>
  352. <el-table-column label="第三层重量" min-width="110px" align="center">
  353. <template slot-scope="scope">
  354. <span>{{ scope.row.A6 }}</span>
  355. </template>
  356. </el-table-column>
  357. <el-table-column label="第三层百分比" min-width="110px" align="center">
  358. <template slot-scope="scope">
  359. <span>{{ scope.row.A7 }}</span>
  360. </template>
  361. </el-table-column>
  362. <el-table-column label="参考标准" min-width="110px" align="center">
  363. <template slot-scope="scope">
  364. <span>{{ scope.row.A8 }}</span>
  365. </template>
  366. </el-table-column>
  367. </el-table>
  368. </el-col>
  369. </el-row>
  370. <el-row :gutter="10">
  371. <!-- BCS评分 -->
  372. <el-col :span="12">
  373. <h4 style="text-align:center;">BCS评分</h4>
  374. <el-table
  375. :key="tab2.table3.tableKey"
  376. v-loading="tab2.table3.listLoading"
  377. element-loading-text="给我一点时间"
  378. :data="tab2.table3.list"
  379. border
  380. fit
  381. highlight-current-row
  382. style="width: 100%;"
  383. :row-style="rowStyle"
  384. :cell-style="cellStyle"
  385. class="elTable table-fixed"
  386. >
  387. <el-table-column label="栏舍" min-width="130px" align="center">
  388. <template slot-scope="scope">
  389. <span>{{ scope.row.A1 }}</span>
  390. </template>
  391. </el-table-column>
  392. <el-table-column label="抽查样本数" min-width="130px" align="center">
  393. <template slot-scope="scope">
  394. <span>{{ scope.row.A2 }}</span>
  395. </template>
  396. </el-table-column>
  397. <el-table-column label="单产" min-width="110px" align="center">
  398. <template slot-scope="scope">
  399. <span>{{ scope.row.A3 }}</span>
  400. </template>
  401. </el-table-column>
  402. <el-table-column label="干物质采食量" min-width="110px" align="center">
  403. <template slot-scope="scope">
  404. <span>{{ scope.row.A4 }}</span>
  405. </template>
  406. </el-table-column>
  407. <el-table-column label="泌乳天数" min-width="110px" align="center">
  408. <template slot-scope="scope">
  409. <span>{{ scope.row.A5 }}</span>
  410. </template>
  411. </el-table-column>
  412. <el-table-column label="标准分数" min-width="110px" align="center">
  413. <template slot-scope="scope">
  414. <span>{{ scope.row.A6 }}</span>
  415. </template>
  416. </el-table-column>
  417. <el-table-column label="2.75-分(数量、百分比)" min-width="110px" align="center">
  418. <template slot-scope="scope">
  419. <span>{{ scope.row.A7 }}</span>
  420. </template>
  421. </el-table-column>
  422. <el-table-column label="2.75分(数量、百分比" min-width="110px" align="center">
  423. <template slot-scope="scope">
  424. <span>{{ scope.row.A8 }}</span>
  425. </template>
  426. </el-table-column>
  427. <el-table-column label="3分(数量、百分比)" min-width="110px" align="center">
  428. <template slot-scope="scope">
  429. <span>{{ scope.row.A9 }}</span>
  430. </template>
  431. </el-table-column>
  432. <el-table-column label="3.25分(数量、百分比)" min-width="110px" align="center">
  433. <template slot-scope="scope">
  434. <span>{{ scope.row.A10 }}</span>
  435. </template>
  436. </el-table-column>
  437. <el-table-column label="3.5分(数量、百分比)" min-width="110px" align="center">
  438. <template slot-scope="scope">
  439. <span>{{ scope.row.A11 }}</span>
  440. </template>
  441. </el-table-column>
  442. <el-table-column label="3.75分(数量、百分比)" min-width="110px" align="center">
  443. <template slot-scope="scope">
  444. <span>{{ scope.row.A12 }}</span>
  445. </template>
  446. </el-table-column>
  447. <el-table-column label="4+分(数量、百分比)" min-width="110px" align="center">
  448. <template slot-scope="scope">
  449. <span>{{ scope.row.A13 }}</span>
  450. </template>
  451. </el-table-column>
  452. </el-table>
  453. </el-col>
  454. <!-- 粪便评分 -->
  455. <el-col :span="12">
  456. <h4 style="text-align:center;">粪便评分</h4>
  457. <el-table
  458. :key="tab2.table4.tableKey"
  459. v-loading="tab2.table4.listLoading"
  460. element-loading-text="给我一点时间"
  461. :data="tab2.table4.list"
  462. border
  463. fit
  464. highlight-current-row
  465. style="width: 100%;"
  466. :row-style="rowStyle"
  467. :cell-style="cellStyle"
  468. class="elTable table-fixed"
  469. >
  470. <el-table-column label="栏舍" min-width="130px" align="center">
  471. <template slot-scope="scope">
  472. <span>{{ scope.row.A1 }}</span>
  473. </template>
  474. </el-table-column>
  475. <el-table-column label="抽查样本数" min-width="130px" align="center">
  476. <template slot-scope="scope">
  477. <span>{{ scope.row.A2 }}</span>
  478. </template>
  479. </el-table-column>
  480. <el-table-column label="单产" min-width="110px" align="center">
  481. <template slot-scope="scope">
  482. <span>{{ scope.row.A3 }}</span>
  483. </template>
  484. </el-table-column>
  485. <el-table-column label="干物质采食量" min-width="110px" align="center">
  486. <template slot-scope="scope">
  487. <span>{{ scope.row.A4 }}</span>
  488. </template>
  489. </el-table-column>
  490. <el-table-column label="泌乳天数" min-width="110px" align="center">
  491. <template slot-scope="scope">
  492. <span>{{ scope.row.A5 }}</span>
  493. </template>
  494. </el-table-column>
  495. <el-table-column label="标准分数" min-width="110px" align="center">
  496. <template slot-scope="scope">
  497. <span>{{ scope.row.A6 }}</span>
  498. </template>
  499. </el-table-column>
  500. <el-table-column label="1分(数量、百分比)" min-width="110px" align="center">
  501. <template slot-scope="scope">
  502. <span>{{ scope.row.A7 }}</span>
  503. </template>
  504. </el-table-column>
  505. <el-table-column label="2分(数量、百分比)" min-width="110px" align="center">
  506. <template slot-scope="scope">
  507. <span>{{ scope.row.A8 }}</span>
  508. </template>
  509. </el-table-column>
  510. <el-table-column label="3分(数量、百分比)" min-width="110px" align="center">
  511. <template slot-scope="scope">
  512. <span>{{ scope.row.A9 }}</span>
  513. </template>
  514. </el-table-column>
  515. <el-table-column label="4分(数量、百分比)" min-width="110px" align="center">
  516. <template slot-scope="scope">
  517. <span>{{ scope.row.A10 }}</span>
  518. </template>
  519. </el-table-column>
  520. <el-table-column label="5分(数量、百分比)" min-width="110px" align="center">
  521. <template slot-scope="scope">
  522. <span>{{ scope.row.A11 }}</span>
  523. </template>
  524. </el-table-column>
  525. </el-table>
  526. </el-col>
  527. </el-row>
  528. </div>
  529. </el-tab-pane>
  530. </el-tabs>
  531. </div>
  532. </template>
  533. <script>
  534. import echarts from 'echarts'
  535. require('echarts/theme/macarons')
  536. import { GetDataByName } from '@/api/common'
  537. import Cookies from 'js-cookie'
  538. import { parseTime } from '@/utils/index.js'
  539. import Pagination from '@/components/Pagination'
  540. import { json2excel } from '@/utils/index.js'
  541. export default {
  542. name: 'ErrorAnalysis',
  543. components: { Pagination },
  544. data() {
  545. return {
  546. activeName: 'first',
  547. tab: {
  548. radio: '1',
  549. isFormulaName: true, // 配方名称
  550. isHouseName: false, // 栏舍名称
  551. isLivestockType: false, // 牲畜类别
  552. table: {
  553. getdataListParm: {
  554. name: 'getBarmilkList',
  555. page: 1,
  556. offset: 1,
  557. pagecount: 10,
  558. returntype: 'Map',
  559. parammaps: {
  560. pastureid: Cookies.get('pastureid'),
  561. startTime: '',
  562. stopTime: '',
  563. inputDatetime: ''
  564. }
  565. },
  566. tableKey: 1,
  567. list: [
  568. { 'id': 1, 'A1': '干奶牛', 'A2': '107', 'A3': '3210', 'A4': '3200', 'A5': '3200', 'A6': '1.5', 'A7': '3.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.45', 'A12': '13.50', 'A13': '13.46', 'A14': '99.70', 'A15': '30.9', 'A16': '30.8', 'A17': '', 'A18': '', 'A19': '' },
  569. { 'id': 2, 'A1': '临产牛', 'A2': '93', 'A3': '3003', 'A4': '3008', 'A5': '3008', 'A6': '2.6', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '14.85', 'A13': '14.88 ', 'A14': '100.20', 'A15': '41.01', 'A16': '41.08', 'A17': '', 'A18': '', 'A19': '' },
  570. { 'id': 3, 'A1': '新产牛', 'A2': '16', 'A3': '372', 'A4': '362', 'A5': '33620', 'A6': '1.25', 'A7': '3.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '11.16', 'A13': '10.86', 'A14': '97.31', 'A15': '31.85', 'A16': '31.0', 'A17': '15', 'A18': '65%', 'A19': '1.55' },
  571. { 'id': 4, 'A1': '新产牛', 'A2': '119', 'A3': '3840', 'A4': '3864', 'A5': '3864', 'A6': '2.12', 'A7': '3.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '15.49', 'A13': '10.21', 'A14': '100.65', 'A15': '44.21', 'A16': '44.48', 'A17': '20', 'A18': '72%', 'A19': '1.6' },
  572. { 'id': 5, 'A1': '青年牛', 'A2': '103', 'A3': '2280', 'A4': '2287', 'A5': '2287', 'A6': '3', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.18', 'A13': '9.67', 'A14': '100.29', 'A15': '19.26', 'A16': '19.32', 'A17': '', 'A18': '', 'A19': '' },
  573. { 'id': 6, 'A1': '高产牛', 'A2': '96', 'A3': '4409', 'A4': '1976', 'A5': '1976', 'A6': '1', 'A7': '2.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.47', 'A12': '21.59', 'A13': '9.41', 'A14': '44.79', 'A15': '57.41', 'A16': '25.73', 'A17': '27', 'A18': '85%', 'A19': '1.2' },
  574. { 'id': 7, 'A1': '小育成', 'A2': '155', 'A3': '3308', 'A4': '3316', 'A5': '3316', 'A6': '1.63', 'A7': '2.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.44', 'A12': '9.39', 'A13': '9.98', 'A14': '100.21', 'A15': '22.2', 'A16': '22.25', 'A17': '', 'A18': '', 'A19': '' },
  575. { 'id': 8, 'A1': '大公牛', 'A2': '113', 'A3': '2684', 'A4': '2684', 'A5': '2684', 'A6': '2.2', 'A7': '3.5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.42', 'A12': '9.98', 'A13': '9.98', 'A14': '100.00', 'A15': '15.2', 'A16': '15.2', 'A17': '', 'A18': '', 'A19': '' },
  576. { 'id': 9, 'A1': '青年牛', 'A2': '154', 'A3': '3342', 'A4': '3326', 'A5': '3326', 'A6': '2.5', 'A7': '4.23', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '9.98', 'A13': '13.46', 'A14': '99.50', 'A15': '18.88', 'A16': '18.79', 'A17': '', 'A18': '', 'A19': '' },
  577. { 'id': 10, 'A1': '青年牛', 'A2': '150', 'A3': '3418', 'A4': '3417', 'A5': '3417', 'A6': '3.1', 'A7': '5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.48', 'A13': '13.46', 'A14': '100.00', 'A15': '19.82', 'A16': '19.82', 'A17': '', 'A18': '', 'A19': '' }
  578. ],
  579. total: 0,
  580. listLoading: true,
  581. temp: {}
  582. },
  583. table2: {
  584. getdataListParm: {
  585. name: 'getBarmilkList',
  586. page: 1,
  587. offset: 1,
  588. pagecount: 10,
  589. returntype: 'Map',
  590. parammaps: {
  591. pastureid: Cookies.get('pastureid'),
  592. startTime: '',
  593. stopTime: '',
  594. inputDatetime: ''
  595. }
  596. },
  597. tableKey: 2,
  598. list: [],
  599. total: 0,
  600. listLoading: true,
  601. temp: {}
  602. },
  603. chart1: {
  604. chartLine: null,
  605. chartLine_data: {},
  606. getdataListParm: {
  607. name: 'getBarmilkList',
  608. page: 1,
  609. offset: 1,
  610. pagecount: 10,
  611. returntype: 'Map',
  612. parammaps: {
  613. pastureid: Cookies.get('pastureid'),
  614. enable: ''
  615. }
  616. },
  617. tableKey: 1,
  618. list: [],
  619. total: 0,
  620. listLoading: true,
  621. statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
  622. isChart: true,
  623. isTable: false,
  624. table: {
  625. getdataListParm: {
  626. name: 'getBarmilkList',
  627. page: 1,
  628. offset: 1,
  629. pagecount: 10,
  630. returntype: 'Map',
  631. parammaps: {
  632. pastureid: Cookies.get('pastureid'),
  633. enable: ''
  634. }
  635. },
  636. tableKey: 1,
  637. list: [],
  638. total: 0,
  639. listLoading: true
  640. }
  641. },
  642. chart2: {
  643. chartLine: null,
  644. chartLine_data: {},
  645. getdataListParm: {
  646. name: 'getBarmilkList',
  647. page: 1,
  648. offset: 1,
  649. pagecount: 10,
  650. returntype: 'Map',
  651. parammaps: {
  652. pastureid: Cookies.get('pastureid'),
  653. enable: ''
  654. }
  655. },
  656. tableKey: 1,
  657. list: [],
  658. total: 0,
  659. listLoading: true,
  660. statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
  661. isChart: true,
  662. isTable: false,
  663. table: {
  664. getdataListParm: {
  665. name: 'getBarmilkList',
  666. page: 1,
  667. offset: 1,
  668. pagecount: 10,
  669. returntype: 'Map',
  670. parammaps: {
  671. pastureid: Cookies.get('pastureid'),
  672. enable: ''
  673. }
  674. },
  675. tableKey: 1,
  676. list: [],
  677. total: 0,
  678. listLoading: true
  679. }
  680. },
  681. chart3: {
  682. chartLine: null,
  683. chartLine_data: {},
  684. getdataListParm: {
  685. name: 'getBarmilkList',
  686. page: 1,
  687. offset: 1,
  688. pagecount: 10,
  689. returntype: 'Map',
  690. parammaps: {
  691. pastureid: Cookies.get('pastureid'),
  692. enable: ''
  693. }
  694. },
  695. tableKey: 1,
  696. list: [],
  697. total: 0,
  698. listLoading: true,
  699. isChart: true,
  700. isTable: false,
  701. table: {
  702. getdataListParm: {
  703. name: 'getBarmilkList',
  704. page: 1,
  705. offset: 1,
  706. pagecount: 10,
  707. returntype: 'Map',
  708. parammaps: {
  709. pastureid: Cookies.get('pastureid'),
  710. enable: ''
  711. }
  712. },
  713. tableKey: 1,
  714. list: [],
  715. total: 0,
  716. listLoading: true
  717. }
  718. },
  719. chart4: {
  720. chartLine: null,
  721. chartLine_data: {},
  722. getdataListParm: {
  723. name: 'getBarmilkList',
  724. page: 1,
  725. offset: 1,
  726. pagecount: 10,
  727. returntype: 'Map',
  728. parammaps: {
  729. pastureid: Cookies.get('pastureid'),
  730. enable: ''
  731. }
  732. },
  733. tableKey: 1,
  734. list: [],
  735. total: 0,
  736. listLoading: true,
  737. statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
  738. isChart: true,
  739. isTable: false,
  740. table: {
  741. getdataListParm: {
  742. name: 'getBarmilkList',
  743. page: 1,
  744. offset: 1,
  745. pagecount: 10,
  746. returntype: 'Map',
  747. parammaps: {
  748. pastureid: Cookies.get('pastureid'),
  749. enable: ''
  750. }
  751. },
  752. tableKey: 1,
  753. list: [],
  754. total: 0,
  755. listLoading: true
  756. }
  757. },
  758. chart5: {
  759. chartLine: null,
  760. chartLine_data: {},
  761. getdataListParm: {
  762. name: 'getBarmilkList',
  763. page: 1,
  764. offset: 1,
  765. pagecount: 10,
  766. returntype: 'Map',
  767. parammaps: {
  768. pastureid: Cookies.get('pastureid'),
  769. enable: ''
  770. }
  771. },
  772. tableKey: 1,
  773. list: [],
  774. total: 0,
  775. listLoading: true,
  776. statisticsList: [{ id: '0', name: '配方01' }, { id: '1', name: '配方02' }, { id: '2', name: '配方03' }],
  777. isChart: true,
  778. isTable: false,
  779. table: {
  780. getdataListParm: {
  781. name: 'getBarmilkList',
  782. page: 1,
  783. offset: 1,
  784. pagecount: 10,
  785. returntype: 'Map',
  786. parammaps: {
  787. pastureid: Cookies.get('pastureid'),
  788. enable: ''
  789. }
  790. },
  791. tableKey: 1,
  792. list: [],
  793. total: 0,
  794. listLoading: true
  795. }
  796. }
  797. },
  798. tab2: {
  799. table: {
  800. getdataListParm: {
  801. name: 'getBarmilkList',
  802. page: 1,
  803. offset: 1,
  804. pagecount: 10,
  805. returntype: 'Map',
  806. parammaps: {
  807. pastureid: Cookies.get('pastureid'),
  808. startTime: '',
  809. stopTime: '',
  810. inputDatetime: ''
  811. }
  812. },
  813. tableKey: 1,
  814. list: [
  815. { 'id': 1, 'A1': '平均值', 'A2': '76.9', 'A3': '15.7%', 'A4': '159.5', 'A5': '32.7%', 'A6': '251.7', 'A7': '51.6%', 'A8': '', 'A9': '', 'A10': '' },
  816. { 'id': 2, 'A1': '变异系数', 'A2': '5.69', 'A3': '5.69', 'A4': '5.46', 'A5': '5.46', 'A6': '4.91', 'A7': '4.91', 'A8': '', 'A9': '', 'A10': '' },
  817. { 'id': 3, 'A1': '17号/新产牛', 'A2': '29', 'A3': '10.51%', 'A4': '91', 'A5': '32.97%', 'A6': '156', 'A7': '56.52%', 'A8': '', 'A9': '', 'A10': '10-15|30-50|40-60' },
  818. { 'id': 4, 'A1': '2号南/高产1', 'A2': '75.62', 'A3': '16.04%', 'A4': '162.33', 'A5': '34.42%', 'A6': '233.60', 'A7': '49.54%', 'A8': '', 'A9': '', 'A10': '10-15|30-50|40-60' },
  819. { 'id': 5, 'A1': '4号北/高产2', 'A2': '81.34', 'A3': '16.17%', 'A4': '158.46', 'A5': '31.51%', 'A6': '263.10', 'A7': '52.32%', 'A8': '', 'A9': '', 'A10': '10-15|30-50|40-60' },
  820. { 'id': 6, 'A1': '4号南/高产3', 'A2': '72.67', 'A3': '15.21%', 'A4': '154.34', 'A5': '32.31%', 'A6': '250.67', 'A7': '52.48%', 'A8': '', 'A9': '', 'A10': '10-15|30-50|40-60' }
  821. ],
  822. total: 0,
  823. listLoading: true,
  824. temp: {}
  825. },
  826. table2: {
  827. getdataListParm: {
  828. name: 'getBarmilkList',
  829. page: 1,
  830. offset: 1,
  831. pagecount: 10,
  832. returntype: 'Map',
  833. parammaps: {
  834. pastureid: Cookies.get('pastureid'),
  835. startTime: '',
  836. stopTime: '',
  837. inputDatetime: ''
  838. }
  839. },
  840. tableKey: 1,
  841. list: [
  842. { 'id': 1, 'A1': '平均值', 'A2': '74.2', 'A3': '16.7%', 'A4': '150', 'A5': '35.7%', 'A6': '225.7', 'A7': '41.6%', 'A8': '' },
  843. { 'id': 2, 'A1': '变异系数', 'A2': '6.5', 'A3': '6.5', 'A4': '5.96', 'A5': '5.96', 'A6': '4.21', 'A7': '4.21', 'A8': '' },
  844. { 'id': 3, 'A1': '17号/新产牛', 'A2': '29', 'A3': '10.51%', 'A4': '91', 'A5': '32.97%', 'A6': '156', 'A7': '56.52%', 'A8': '0-10|10-20|50-100' },
  845. { 'id': 4, 'A1': '2号南/高产1', 'A2': '44', 'A3': '12.32%', 'A4': '70', 'A5': '19.61%', 'A6': '32', 'A7': '8.49%', 'A8': '0-10|10-20|50-100' },
  846. { 'id': 5, 'A1': '4号北/高产2', 'A2': '31', 'A3': '8.22%', 'A4': '243', 'A5': '68.07%', 'A6': '314', 'A7': '83.29%', 'A8': '0-10|10-20|50-100' },
  847. { 'id': 6, 'A1': '4号南/高产3', 'A2': '35', 'A3': '9.51%', 'A4': '150', 'A5': '60.31%', 'A6': '215', 'A7': '72.48%', 'A8': '0-10|10-20|50-100' }
  848. ],
  849. total: 0,
  850. listLoading: true,
  851. temp: {}
  852. },
  853. table3: {
  854. getdataListParm: {
  855. name: 'getBarmilkList',
  856. page: 1,
  857. offset: 1,
  858. pagecount: 10,
  859. returntype: 'Map',
  860. parammaps: {
  861. pastureid: Cookies.get('pastureid'),
  862. startTime: '',
  863. stopTime: '',
  864. inputDatetime: ''
  865. }
  866. },
  867. tableKey: 1,
  868. list: [
  869. { 'id': 1, 'A1': '3号/新产1', 'A2': '110', 'A3': '20', 'A4': '18.14', 'A5': '47', 'A6': '3', 'A7': '7(7.69%)', 'A8': '16(17.58%)', 'A9': '34(37.36%)', 'A10': '18(19.78%)', 'A11': '9(9.12%)', 'A12': '7(7.69%)', 'A13': '1(1.56%)' },
  870. { 'id': 2, 'A1': '3号北/低产牛', 'A2': '89', 'A3': '18', 'A4': '23.69', 'A5': '100', 'A6': '3', 'A7': '5(5.21%)', 'A8': '12(12.50%)', 'A9': '36(37.50%)', 'A10': '18(18.75%)', 'A11': '11(11.46%)', 'A12': '9(9.38%)', 'A13': '5(5.21%)' },
  871. { 'id': 3, 'A1': '17号/新产牛', 'A2': '91', 'A3': '16', 'A4': '23.79', 'A5': '96', 'A6': '3.5', 'A7': '2(1.83%)', 'A8': '10(9.17%)', 'A9': '32(29.36%)', 'A10': '31(28.44%)', 'A11': '15(13.76%)', 'A12': '12(11.01%)', 'A13': '7(6.42%)' },
  872. { 'id': 4, 'A1': '2号南/高产1', 'A2': '100', 'A3': '19', 'A4': '21.68', 'A5': '76', 'A6': '3.25', 'A7': '1(1.22%)', 'A8': '3(3.37%)', 'A9': '9(10.11%)', 'A10': '18(20.22%)', 'A11': '24(26.97%)', 'A12': '26(29.21%)', 'A13': '9(10.11%)' },
  873. { 'id': 5, 'A1': '4号北/高产2', 'A2': '120', 'A3': '21', 'A4': '23.05', 'A5': '85', 'A6': '3', 'A7': '5(5.81%)', 'A8': '9(10.47%)', 'A9': '37(43.02)', 'A10': '17(19.77%)', 'A11': '12(13.95%)', 'A12': '5(5.81%)', 'A13': '1(1.16%)' },
  874. { 'id': 6, 'A1': '4号南/高产3', 'A2': '102', 'A3': '22', 'A4': '24.09', 'A5': '96', 'A6': '3', 'A7': '5(5.05%)', 'A8': '20(20.20%)', 'A9': '40(40.40%)', 'A10': '20(20.20%)', 'A11': '8(8.08%)', 'A12': '6(6.06%)', 'A13': '1(1.56%)' }
  875. ],
  876. total: 0,
  877. listLoading: true,
  878. temp: {}
  879. },
  880. table4: {
  881. getdataListParm: {
  882. name: 'getBarmilkList',
  883. page: 1,
  884. offset: 1,
  885. pagecount: 10,
  886. returntype: 'Map',
  887. parammaps: {
  888. pastureid: Cookies.get('pastureid'),
  889. startTime: '',
  890. stopTime: '',
  891. inputDatetime: ''
  892. }
  893. },
  894. tableKey: 1,
  895. list: [
  896. { 'id': 1, 'A1': '3号/新产1', 'A2': '82', 'A3': '20', 'A4': '18.14', 'A5': '47', 'A6': '3', 'A7': '2(2.44%)', 'A8': '26(31,71%)', 'A9': '54(65.85%)', 'A10': '0(0%)', 'A11': '0(0%)' },
  897. { 'id': 2, 'A1': '3号北/低产牛', 'A2': '55', 'A3': '18', 'A4': '23.69', 'A5': '100', 'A6': '3', 'A7': '0(0%)', 'A8': '11(20%)', 'A9': '42(76.36%)', 'A10': '2(3.64%)', 'A11': '0(0%)' },
  898. { 'id': 3, 'A1': '17号/新产牛', 'A2': '44', 'A3': '16', 'A4': '23.79', 'A5': '96', 'A6': '3', 'A7': '0(0%)', 'A8': '6(13.64%)', 'A9': '35(79.55%)', 'A10': '3(6.82%)', 'A11': '0(0%)' },
  899. { 'id': 4, 'A1': '2号南/高产1', 'A2': '45', 'A3': '19', 'A4': '21.68', 'A5': '76', 'A6': '3', 'A7': '0(0%)', 'A8': '7(15.56%)', 'A9': '32(71.11%)', 'A10': '6(13.33%)', 'A11': '0(0%)' },
  900. { 'id': 5, 'A1': '4号北/高产2', 'A2': '53', 'A3': '21', 'A4': '23.05', 'A5': '85', 'A6': '3', 'A7': '0(0%)', 'A8': '13(24.53%)', 'A9': '35(66.04%)', 'A10': '5(9.43%)', 'A11': '0(0%)' },
  901. { 'id': 6, 'A1': '4号南/高产3', 'A2': '62', 'A3': '22', 'A4': '24.09', 'A5': '96', 'A6': '3', 'A7': '0(0%)', 'A8': '10(16.13%)', 'A9': '44(70.97%)', 'A10': '8(12.90%)', 'A11': '0(0%)' }],
  902. total: 0,
  903. listLoading: true,
  904. temp: {}
  905. }
  906. },
  907. rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
  908. cellStyle: { padding: 0 + 'px' }
  909. }
  910. },
  911. created() {
  912. this.getTabList()
  913. this.getTabList2()
  914. this.getChart1()
  915. this.getChart2()
  916. this.getChart3()
  917. this.getChart4()
  918. this.getChart5()
  919. },
  920. mounted() {
  921. },
  922. methods: {
  923. handleDownload() {
  924. if (this.tab.radio == '1') {
  925. var excelDatas = [
  926. {
  927. tHeader: ['配方模板', '实际牛头数', '应混料量(kg)', '实际混料量(kg)', '撒料量(kg)', '混料时间(min)', '搅拌时间(min)', '转投剩料量(kg)', '今日剩料量(kg)', '剩料率(%)', 'TMR干物质(%)', '配方干物质采食量(kg/头)', '实际干物质采食量(kg/头)', '采食率(%) ', '配方成本(元/头 )', '实际成本(元/ 头)', '产奶量(kg /头)', '饲 料转化率', '公斤奶饲料成本'],
  928. filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15', 'A16', 'A17', 'A18', 'A19'],
  929. tableDatas: this.tab.table.list,
  930. sheetName: '配方'
  931. }
  932. ]
  933. json2excel(excelDatas, '效率统计-配方', true, 'xlsx')
  934. } else if (this.tab.radio == '2') {
  935. var excelDatas2 = [
  936. {
  937. tHeader: ['栏舍', '配方模板', '实际牛头数', '应混料量(kg)', '实际混料量(kg)', '撒料量(kg)', '混料时间(min)', '搅拌时间(min)', '转投剩料量(kg)', '今日剩料量(kg)', '剩料率(%)', 'TMR干物质(%)', '配方干物质采食量(kg/头)', ' 实际干物质采食量( kg/头)', '采食率 (%)', '配方成本( 元/头)', '实际成本 (元/头)', '产奶量(kg/头)', '饲料转化率', '公斤奶饲料成本'],
  938. filterVal: ['A1', 'A20', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15', 'A16', 'A17', 'A18', 'A19'],
  939. tableDatas: this.tab.table.list,
  940. sheetName: '栏舍'
  941. }
  942. ]
  943. json2excel(excelDatas2, '效率统计-栏舍', true, 'xlsx')
  944. } else if (this.tab.radio == '3') {
  945. var excelDatas3 = [
  946. {
  947. tHeader: ['牲畜类别', '实际牛头数', '应混料量(kg)', '实际混料量(kg)', '撒料量(kg)', '混料时间(min)', '搅拌时间(min)', '转投剩料量(kg)', '今日剩料量(kg)', '剩料率(%)', 'TMR干物质(%)', '配方干 物质采食量(kg/ 头)', '实际干物质采 食量(kg/头)', ' 采食率(%)', '配方 成本(元/头)', '实际成本(元/头)', '产奶量(kg/头)', '饲料转化率', '公斤奶饲料成本'],
  948. filterVal: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15', 'A16', 'A17', 'A18', 'A19'],
  949. tableDatas: this.tab.table.list,
  950. sheetName: '牲畜类别'
  951. }
  952. ]
  953. json2excel(excelDatas3, '效率统计-牲畜类别', true, 'xlsx')
  954. }
  955. },
  956. handleTabClick() {
  957. if (this.activeName == 'first') {
  958. this.getTabList()
  959. this.getTabList2()
  960. this.getChart1()
  961. this.getChart2()
  962. this.getChart3()
  963. this.getChart4()
  964. this.getChart5()
  965. } else if (this.activeName == 'second') {
  966. this.getTab2List()
  967. this.getTab2List2()
  968. this.getTab2List3()
  969. this.getTab2List4()
  970. }
  971. },
  972. changeRadio() {
  973. console.log(this.tab.radio)
  974. if (this.tab.radio == '1') {
  975. console.log('配方名称')
  976. this.tab.isFormulaName = true
  977. this.tab.isHouseName = false
  978. this.tab.isLivestockType = false
  979. this.tab.table.getdataListParm.name = 'getBarmilkList'
  980. this.getTabList()
  981. this.tab.table2.getdataListParm.name = 'getBarmilkList'
  982. this.getTabList2()
  983. this.tab.table.list = [
  984. { 'id': 1, 'A1': '干奶牛', 'A2': '107', 'A3': '3210', 'A4': '3200', 'A5': '3200', 'A6': '1.5', 'A7': '3.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.45', 'A12': '13.50', 'A13': '13.46', 'A14': '99.70', 'A15': '30.9', 'A16': '30.8', 'A17': '', 'A18': '', 'A19': '' },
  985. { 'id': 2, 'A1': '临产牛', 'A2': '93', 'A3': '3003', 'A4': '3008', 'A5': '3008', 'A6': '2.6', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '14.85', 'A13': '14.88 ', 'A14': '100.20', 'A15': '41.01', 'A16': '41.08', 'A17': '', 'A18': '', 'A19': '' },
  986. { 'id': 3, 'A1': '新产牛', 'A2': '16', 'A3': '372', 'A4': '362', 'A5': '33620', 'A6': '1.25', 'A7': '3.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '11.16', 'A13': '10.86', 'A14': '97.31', 'A15': '31.85', 'A16': '31.0', 'A17': '15', 'A18': '65%', 'A19': '1.55' },
  987. { 'id': 4, 'A1': '新产牛', 'A2': '119', 'A3': '3840', 'A4': '3864', 'A5': '3864', 'A6': '2.12', 'A7': '3.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '15.49', 'A13': '10.21', 'A14': '100.65', 'A15': '44.21', 'A16': '44.48', 'A17': '20', 'A18': '72%', 'A19': '1.6' },
  988. { 'id': 5, 'A1': '青年牛', 'A2': '103', 'A3': '2280', 'A4': '2287', 'A5': '2287', 'A6': '3', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.18', 'A13': '9.67', 'A14': '100.29', 'A15': '19.26', 'A16': '19.32', 'A17': '', 'A18': '', 'A19': '' },
  989. { 'id': 6, 'A1': '高产牛', 'A2': '96', 'A3': '4409', 'A4': '1976', 'A5': '1976', 'A6': '1', 'A7': '2.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.47', 'A12': '21.59', 'A13': '9.41', 'A14': '44.79', 'A15': '57.41', 'A16': '25.73', 'A17': '27', 'A18': '85%', 'A19': '1.2' },
  990. { 'id': 7, 'A1': '小育成', 'A2': '155', 'A3': '3308', 'A4': '3316', 'A5': '3316', 'A6': '1.63', 'A7': '2.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.44', 'A12': '9.39', 'A13': '9.98', 'A14': '100.21', 'A15': '22.2', 'A16': '22.25', 'A17': '', 'A18': '', 'A19': '' },
  991. { 'id': 8, 'A1': '大公牛', 'A2': '113', 'A3': '2684', 'A4': '2684', 'A5': '2684', 'A6': '2.2', 'A7': '3.5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.42', 'A12': '9.98', 'A13': '9.98', 'A14': '100.00', 'A15': '15.2', 'A16': '15.2', 'A17': '', 'A18': '', 'A19': '' },
  992. { 'id': 9, 'A1': '青年牛', 'A2': '154', 'A3': '3342', 'A4': '3326', 'A5': '3326', 'A6': '2.5', 'A7': '4.23', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '9.98', 'A13': '13.46', 'A14': '99.50', 'A15': '18.88', 'A16': '18.79', 'A17': '', 'A18': '', 'A19': '' },
  993. { 'id': 10, 'A1': '青年牛', 'A2': '150', 'A3': '3418', 'A4': '3417', 'A5': '3417', 'A6': '3.1', 'A7': '5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.48', 'A13': '13.46', 'A14': '100.00', 'A15': '19.82', 'A16': '19.82', 'A17': '', 'A18': '', 'A19': '' }
  994. ]
  995. } else if (this.tab.radio == '2') {
  996. console.log('栏舍名称')
  997. this.tab.isFormulaName = false
  998. this.tab.isHouseName = true
  999. this.tab.isLivestockType = false
  1000. this.tab.table.getdataListParm.name = 'getBarmilkList'
  1001. this.getTabList()
  1002. this.tab.table2.getdataListParm.name = 'getBarmilkList'
  1003. this.getTabList2()
  1004. this.tab.table.list = [
  1005. { 'id': 1, 'A1': '2号南', 'A2': '107', 'A3': '3210', 'A4': '3200', 'A5': '3200', 'A6': '1.5', 'A7': '3.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.45', 'A12': '13.50', 'A13': '13.46', 'A14': '99.70', 'A15': '30.9', 'A16': '30.8', 'A17': '', 'A18': '', 'A19': '', 'A20': '干奶牛' },
  1006. { 'id': 2, 'A1': '1号北', 'A2': '93', 'A3': '3003', 'A4': '3008', 'A5': '3008', 'A6': '2.6', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '14.85', 'A13': '14.88 ', 'A14': '100.20', 'A15': '41.01', 'A16': '41.08', 'A17': '', 'A18': '', 'A19': '', 'A20': '临产牛' },
  1007. { 'id': 3, 'A1': '1号南', 'A2': '16', 'A3': '372', 'A4': '362', 'A5': '33620', 'A6': '1.25', 'A7': '3.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '11.16', 'A13': '10.86', 'A14': '97.31', 'A15': '31.85', 'A16': '31.0', 'A17': '15', 'A18': '65%', 'A19': '1.55', 'A20': '新产牛' },
  1008. { 'id': 4, 'A1': '5号南', 'A2': '119', 'A3': '3840', 'A4': '3864', 'A5': '3864', 'A6': '2.12', 'A7': '3.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '15.49', 'A13': '10.21', 'A14': '100.65', 'A15': '44.21', 'A16': '44.48', 'A17': '20', 'A18': '72%', 'A19': '1.6', 'A20': '新产牛' },
  1009. { 'id': 5, 'A1': '5号北西', 'A2': '103', 'A3': '2280', 'A4': '2287', 'A5': '2287', 'A6': '3', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.18', 'A13': '9.67', 'A14': '100.29', 'A15': '19.26', 'A16': '19.32', 'A17': '', 'A18': '', 'A19': '', 'A20': '青年牛' },
  1010. { 'id': 6, 'A1': '4号北', 'A2': '96', 'A3': '4409', 'A4': '1976', 'A5': '1976', 'A6': '1', 'A7': '2.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.47', 'A12': '21.59', 'A13': '9.41', 'A14': '44.79', 'A15': '57.41', 'A16': '25.73', 'A17': '27', 'A18': '85%', 'A19': '1.2', 'A20': '高产牛' },
  1011. { 'id': 7, 'A1': '4号南', 'A2': '155', 'A3': '3308', 'A4': '3316', 'A5': '3316', 'A6': '1.63', 'A7': '2.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.44', 'A12': '9.39', 'A13': '9.98', 'A14': '100.21', 'A15': '22.2', 'A16': '22.25', 'A17': '', 'A18': '', 'A19': '', 'A20': '小育成' },
  1012. { 'id': 8, 'A1': '8号南', 'A2': '113', 'A3': '2684', 'A4': '2684', 'A5': '2684', 'A6': '2.2', 'A7': '3.5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.42', 'A12': '9.98', 'A13': '9.98', 'A14': '100.00', 'A15': '15.2', 'A16': '15.2', 'A17': '', 'A18': '', 'A19': '', 'A20': '大公牛' },
  1013. { 'id': 9, 'A1': '7号北', 'A2': '154', 'A3': '3342', 'A4': '3326', 'A5': '3326', 'A6': '2.5', 'A7': '4.23', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '9.98', 'A13': '13.46', 'A14': '99.50', 'A15': '18.88', 'A16': '18.79', 'A17': '', 'A18': '', 'A19': '', 'A20': '青年牛' },
  1014. { 'id': 10, 'A1': '8号北', 'A2': '150', 'A3': '3418', 'A4': '3417', 'A5': '3417', 'A6': '3.1', 'A7': '5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.48', 'A13': '13.46', 'A14': '100.00', 'A15': '19.82', 'A16': '19.82', 'A17': '', 'A18': '', 'A19': '', 'A20': '青年牛' }
  1015. ]
  1016. } else if (this.tab.radio == '3') {
  1017. console.log(' 牲畜类别')
  1018. this.tab.isFormulaName = false
  1019. this.tab.isHouseName = false
  1020. this.tab.isLivestockType = true
  1021. this.tab.table.getdataListParm.name = 'getBarmilkList'
  1022. this.getTabList()
  1023. this.tab.table2.getdataListParm.name = 'getBarmilkList'
  1024. this.getTabList2()
  1025. this.tab.table.list = [
  1026. { 'id': 1, 'A1': '干奶牛', 'A2': '107', 'A3': '3210', 'A4': '3200', 'A5': '3200', 'A6': '1.5', 'A7': '3.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.45', 'A12': '13.50', 'A13': '13.46', 'A14': '99.70', 'A15': '30.9', 'A16': '30.8', 'A17': '', 'A18': '', 'A19': '' },
  1027. { 'id': 2, 'A1': '临产牛', 'A2': '93', 'A3': '3003', 'A4': '3008', 'A5': '3008', 'A6': '2.6', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '14.85', 'A13': '14.88 ', 'A14': '100.20', 'A15': '41.01', 'A16': '41.08', 'A17': '', 'A18': '', 'A19': '' },
  1028. { 'id': 3, 'A1': '新产牛', 'A2': '16', 'A3': '372', 'A4': '362', 'A5': '33620', 'A6': '1.25', 'A7': '3.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '11.16', 'A13': '10.86', 'A14': '97.31', 'A15': '31.85', 'A16': '31.0', 'A17': '15', 'A18': '65%', 'A19': '1.55' },
  1029. { 'id': 4, 'A1': '新产牛', 'A2': '119', 'A3': '3840', 'A4': '3864', 'A5': '3864', 'A6': '2.12', 'A7': '3.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.48', 'A12': '15.49', 'A13': '10.21', 'A14': '100.65', 'A15': '44.21', 'A16': '44.48', 'A17': '20', 'A18': '72%', 'A19': '1.6' },
  1030. { 'id': 5, 'A1': '青年牛', 'A2': '103', 'A3': '2280', 'A4': '2287', 'A5': '2287', 'A6': '3', 'A7': '4.2', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.18', 'A13': '9.67', 'A14': '100.29', 'A15': '19.26', 'A16': '19.32', 'A17': '', 'A18': '', 'A19': '' },
  1031. { 'id': 6, 'A1': '高产牛', 'A2': '96', 'A3': '4409', 'A4': '1976', 'A5': '1976', 'A6': '1', 'A7': '2.3', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.47', 'A12': '21.59', 'A13': '9.41', 'A14': '44.79', 'A15': '57.41', 'A16': '25.73', 'A17': '27', 'A18': '85%', 'A19': '1.2' },
  1032. { 'id': 7, 'A1': '小育成', 'A2': '155', 'A3': '3308', 'A4': '3316', 'A5': '3316', 'A6': '1.63', 'A7': '2.4', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.44', 'A12': '9.39', 'A13': '9.98', 'A14': '100.21', 'A15': '22.2', 'A16': '22.25', 'A17': '', 'A18': '', 'A19': '' },
  1033. { 'id': 8, 'A1': '大公牛', 'A2': '113', 'A3': '2684', 'A4': '2684', 'A5': '2684', 'A6': '2.2', 'A7': '3.5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.42', 'A12': '9.98', 'A13': '9.98', 'A14': '100.00', 'A15': '15.2', 'A16': '15.2', 'A17': '', 'A18': '', 'A19': '' },
  1034. { 'id': 9, 'A1': '青年牛', 'A2': '154', 'A3': '3342', 'A4': '3326', 'A5': '3326', 'A6': '2.5', 'A7': '4.23', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '9.98', 'A13': '13.46', 'A14': '99.50', 'A15': '18.88', 'A16': '18.79', 'A17': '', 'A18': '', 'A19': '' },
  1035. { 'id': 10, 'A1': '青年牛', 'A2': '150', 'A3': '3418', 'A4': '3417', 'A5': '3417', 'A6': '3.1', 'A7': '5', 'A8': '0', 'A9': '0', 'A10': '0', 'A11': '0.46', 'A12': '10.48', 'A13': '13.46', 'A14': '100.00', 'A15': '19.82', 'A16': '19.82', 'A17': '', 'A18': '', 'A19': '' }
  1036. ]
  1037. }
  1038. },
  1039. // 汇总统计/混料
  1040. getTabList() {
  1041. this.tab.table.listLoading = true
  1042. GetDataByName(this.tab.table.getdataListParm).then(response => {
  1043. console.log('汇总统计/混料table数据', response.data.list)
  1044. if (response.data.list !== null) {
  1045. // this.tab.table.list = response.data.list
  1046. // this.tab.table.total = response.data.total
  1047. } else {
  1048. this.tab.table.list = []
  1049. }
  1050. setTimeout(() => {
  1051. this.tab.table.listLoading = false
  1052. }, 100)
  1053. })
  1054. },
  1055. // 汇总统计/撒料
  1056. getTabList2() {
  1057. this.tab.table2.listLoading = true
  1058. GetDataByName(this.tab.table2.getdataListParm).then(response => {
  1059. console.log('汇总统计/撒料table数据', response.data.list)
  1060. if (response.data.list !== null) {
  1061. this.tab.table2.list = response.data.list
  1062. this.tab.table2.total = response.data.total
  1063. } else {
  1064. this.tab.table2.list = []
  1065. }
  1066. setTimeout(() => {
  1067. this.tab.table2.listLoading = false
  1068. }, 100)
  1069. })
  1070. },
  1071. // 开始日期/结束日期
  1072. changeDate() {
  1073. if (this.tab.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab.table.getdataListParm.parammaps.inputDatetime !== null) {
  1074. this.tab.table.getdataListParm.parammaps.startTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
  1075. this.tab.table.getdataListParm.parammaps.stopTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
  1076. } else {
  1077. this.tab.table.getdataListParm.parammaps.inputDatetime = ''
  1078. this.tab.table.getdataListParm.parammaps.startTime = ''
  1079. this.tab.table.getdataListParm.parammaps.stopTime = ''
  1080. }
  1081. this.tab.table.getdataListParm.offset = 1
  1082. this.getTabList()
  1083. },
  1084. // 查询
  1085. handleSearch() {
  1086. if (this.tab.radio == '1') {
  1087. console.log('配方名称/查询')
  1088. this.tab.isFormulaName = true
  1089. this.tab.isHouseName = false
  1090. this.tab.isLivestockType = false
  1091. this.tab.table.getdataListParm.name = 'getBarmilkList'
  1092. this.getTabList()
  1093. this.tab.table2.getdataListParm.name = 'getBarmilkList'
  1094. this.getTabList2()
  1095. } else if (this.tab.radio == '2') {
  1096. console.log('栏舍名称/查询')
  1097. this.tab.isFormulaName = false
  1098. this.tab.isHouseName = true
  1099. this.tab.isLivestockType = false
  1100. this.tab.table.getdataListParm.name = 'getBarmilkList'
  1101. this.getTabList()
  1102. this.tab.table2.getdataListParm.name = 'getBarmilkList'
  1103. this.getTabList2()
  1104. } else if (this.tab.radio == '3') {
  1105. console.log(' 牲畜类别/查询')
  1106. this.tab.isFormulaName = false
  1107. this.tab.isHouseName = false
  1108. this.tab.isLivestockType = true
  1109. this.tab.table.getdataListParm.name = 'getBarmilkList'
  1110. this.getTabList()
  1111. this.tab.table2.getdataListParm.name = 'getBarmilkList'
  1112. this.getTabList2()
  1113. }
  1114. },
  1115. // 泌乳牛采食量
  1116. getChart1() {
  1117. this.tab.chart1.listLoading = true
  1118. GetDataByName(this.tab.chart1.getdataListParm).then(response => {
  1119. console.log('泌乳牛采食量图表数据', response.data.list)
  1120. if (response.data.list !== null) {
  1121. this.tab.chart1.chartLine_data = {
  1122. 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'],
  1123. data2: [25, 27.2, 26.5, 29, 26.4, 23.6, 27.7, 28, 31, 33.5, 30, 35, 29.8, 26, 29.5],
  1124. data3: [22.5, 25, 26.5, 24.3, 27.1, 25.5, 29, 22.4, 29, 19.8, 23.5, 22.8, 27.6, 21.2, 26]
  1125. }
  1126. this.tab.chart1.total = response.data.total
  1127. this.roadChartLine1(this.tab.chart1.chartLine_data)
  1128. } else {
  1129. this.tab.chart1.list = []
  1130. }
  1131. setTimeout(() => {
  1132. this.tab.chart1.listLoading = false
  1133. }, 100)
  1134. })
  1135. },
  1136. getChart1Table() {
  1137. this.tab.chart1.table.listLoading = true
  1138. GetDataByName(this.tab.chart1.table.getdataListParm).then(response => {
  1139. console.log('泌乳牛采食量table/导出数据', response.data.list)
  1140. if (response.data.list !== null) {
  1141. this.tab.chart1.table.list = response.data.list
  1142. this.tab.chart1.table.total = response.data.total
  1143. } else {
  1144. this.tab.chart1.table.list = []
  1145. }
  1146. setTimeout(() => {
  1147. this.tab.chart1.table.listLoading = false
  1148. }, 100)
  1149. })
  1150. },
  1151. roadChartLine1(chartLine_data) {
  1152. if (this.tab.chart1.chartLine != null) {
  1153. this.tab.chart1.chartLine.dispose()
  1154. }
  1155. this.tab.chart1.chartLine = echarts.init(document.getElementById('chartLine1'))
  1156. var option = {
  1157. tooltip: {
  1158. trigger: 'axis'
  1159. },
  1160. legend: {
  1161. data: ['泌乳牛采食量', '泌乳牛产奶量']
  1162. },
  1163. xAxis: [
  1164. {
  1165. type: 'category',
  1166. data: chartLine_data.data1
  1167. }
  1168. ],
  1169. yAxis: [
  1170. {
  1171. type: 'value',
  1172. name: '泌乳牛采食量',
  1173. axisLabel: {
  1174. formatter: '{value} '
  1175. }
  1176. }, {
  1177. type: 'value',
  1178. name: '泌乳牛产奶量',
  1179. axisLabel: {
  1180. formatter: '{value} '
  1181. }
  1182. }
  1183. ],
  1184. series: [{
  1185. name: '泌乳牛采食量',
  1186. type: 'bar',
  1187. itemStyle: { /* 设置柱状颜色*/
  1188. normal: {
  1189. color: '#61a5e8'
  1190. }
  1191. },
  1192. data: chartLine_data.data2
  1193. }, {
  1194. name: '泌乳牛产奶量',
  1195. type: 'line',
  1196. itemStyle: { /* 设置折线颜色*/
  1197. normal: {
  1198. color: '#ff2d2d'
  1199. }
  1200. },
  1201. data: chartLine_data.data3
  1202. }]
  1203. }
  1204. this.tab.chart1.chartLine.setOption(option)
  1205. window.onresize = function() {
  1206. this.tab.chart1.chartLine.resize()
  1207. }
  1208. },
  1209. // 牛栏剩料率
  1210. getChart2() {
  1211. this.tab.chart2.listLoading = true
  1212. GetDataByName(this.tab.chart2.getdataListParm).then(response => {
  1213. console.log('牛栏剩料率图表数据', response.data.list)
  1214. if (response.data.list !== null) {
  1215. this.tab.chart2.chartLine_data = {
  1216. data1: ['17号', '5号南', '3南东', '3南西', '1号南'],
  1217. 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'],
  1218. data3: [
  1219. { data: [3.5, 2.7, 6.6, 1.8, 2.2, 4.1, 5.3, 2.7, 0.8, 0.65, 2.1, 2.55, 2.7, 3.45, 2.1] },
  1220. { data: [2.8, 2.54, 1.5, 2.3, 2.1, 1.5, 1.9, 3.3, 4.1, 2.3, 2.6, 2.1, 2.73, 1.2, 0.65] },
  1221. { data: [1.2, 1.3, 1.1, 3.4, 0.9, 2.3, 2.1, 1.8, 3.6, 4.16, 2.87, 3.2, 4.1, 2.7, 2.1] },
  1222. { data: [2.1, 3.54, 1.9, 2.7, 2.1, 2.5, 2.9, 2.3, 2.1, 4.3, 1.5, 1.1, 2.53, 3.2, 1.65] },
  1223. { data: [2.8, 5.4, 2.5, 3.3, 3.1, 1.7, 1.2, 3.6, 1.1, 1.3, 2.7, 2.3, 1.3, 1.8, 3.1] }
  1224. ]
  1225. }
  1226. this.tab.chart2.total = response.data.total
  1227. this.roadChartLine2(this.tab.chart2.chartLine_data)
  1228. } else {
  1229. this.tab.chart2.list = []
  1230. }
  1231. setTimeout(() => {
  1232. this.tab.chart2.listLoading = false
  1233. }, 100)
  1234. })
  1235. },
  1236. getChart2Table() {
  1237. this.tab.chart2.table.listLoading = true
  1238. GetDataByName(this.tab.chart2.table.getdataListParm).then(response => {
  1239. console.log('牛栏剩料率table/导出数据', response.data.list)
  1240. if (response.data.list !== null) {
  1241. this.tab.chart2.table.list = response.data.list
  1242. this.tab.chart2.table.total = response.data.total
  1243. } else {
  1244. this.tab.chart2.table.list = []
  1245. }
  1246. setTimeout(() => {
  1247. this.tab.chart2.table.listLoading = false
  1248. }, 100)
  1249. })
  1250. },
  1251. roadChartLine2(chartLine_data) {
  1252. if (this.tab.chart2.chartLine != null) {
  1253. this.tab.chart2.chartLine.dispose()
  1254. }
  1255. this.tab.chart2.chartLine = echarts.init(document.getElementById('chartLine2'))
  1256. var option = {
  1257. title: {
  1258. text: ''
  1259. },
  1260. tooltip: {
  1261. trigger: 'axis'
  1262. },
  1263. legend: {
  1264. data: chartLine_data.data1,
  1265. top: 10,
  1266. right: 10
  1267. },
  1268. grid: {
  1269. left: '3%',
  1270. right: '8%',
  1271. bottom: '3%',
  1272. containLabel: true
  1273. },
  1274. toolbox: {
  1275. show: true,
  1276. right: '2%',
  1277. feature: {}
  1278. },
  1279. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '时间' },
  1280. yAxis: {
  1281. type: 'value', name: '剩料率'
  1282. },
  1283. series: (function() {
  1284. var serie = []
  1285. for (var i = 0; i < chartLine_data.data3.length; i++) {
  1286. var item = {
  1287. name: chartLine_data.data1[i],
  1288. type: 'line',
  1289. data: chartLine_data.data3[i].data
  1290. }
  1291. serie.push(item)
  1292. }
  1293. return serie
  1294. }())
  1295. }
  1296. this.tab.chart2.chartLine.setOption(option)
  1297. window.onresize = function() {
  1298. this.tab.chart2.chartLine.resize()
  1299. }
  1300. },
  1301. // 搅拌时间统计
  1302. getChart3() {
  1303. this.tab.chart3.listLoading = true
  1304. GetDataByName(this.tab.chart3.getdataListParm).then(response => {
  1305. console.log('搅拌时间统计图表数据', response.data.list)
  1306. if (response.data.list !== null) {
  1307. this.tab.chart3.chartLine_data = {
  1308. data1: ['平均搅拌时间', '混料+搅拌时间'],
  1309. 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'],
  1310. data3: [12, 13, 10.5, 10.4, 12.9, 13.3, 11.1, 11.5, 10.8, 12.5, 11.8, 12.9, 12.3, 12.1, 11.9],
  1311. data4: [33.5, 33.2, 34.1, 35.4, 35.9, 36.4, 34.1, 34.2, 33.9, 35.5, 34.7, 35.9, 35.2, 34.8, 34.1]
  1312. }
  1313. this.tab.chart3.total = response.data.total
  1314. this.roadChartLine3(this.tab.chart3.chartLine_data)
  1315. } else {
  1316. this.tab.chart3.list = []
  1317. }
  1318. setTimeout(() => {
  1319. this.tab.chart3.listLoading = false
  1320. }, 100)
  1321. })
  1322. },
  1323. getChart3Table() {
  1324. this.tab.chart3.table.listLoading = true
  1325. GetDataByName(this.tab.chart3.table.getdataListParm).then(response => {
  1326. console.log('搅拌时间统计table/导出数据', response.data.list)
  1327. if (response.data.list !== null) {
  1328. this.tab.chart3.table.list = response.data.list
  1329. this.tab.chart3.table.total = response.data.total
  1330. } else {
  1331. this.tab.chart3.table.list = []
  1332. }
  1333. setTimeout(() => {
  1334. this.tab.chart3.table.listLoading = false
  1335. }, 100)
  1336. })
  1337. },
  1338. roadChartLine3(chartLine_data) {
  1339. if (this.tab.chart3.chartLine != null) {
  1340. this.tab.chart3.chartLine.dispose()
  1341. }
  1342. this.tab.chart3.chartLine = echarts.init(document.getElementById('chartLine3'))
  1343. var option = {
  1344. title: {
  1345. text: ''
  1346. },
  1347. tooltip: {
  1348. trigger: 'axis'
  1349. },
  1350. legend: {
  1351. data: chartLine_data.data1,
  1352. top: 10,
  1353. right: 10
  1354. },
  1355. grid: {
  1356. left: '3%',
  1357. right: '8%',
  1358. bottom: '3%',
  1359. containLabel: true
  1360. },
  1361. toolbox: {
  1362. show: true,
  1363. right: '2%',
  1364. feature: {}
  1365. },
  1366. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '时间' },
  1367. yAxis: {
  1368. type: 'value', name: '分钟',
  1369. axisLabel: {
  1370. formatter: '{value}min'
  1371. }
  1372. },
  1373. series: [
  1374. {
  1375. name: chartLine_data.data1[0],
  1376. type: 'line',
  1377. stack: '总量',
  1378. data: chartLine_data.data3
  1379. },
  1380. {
  1381. name: chartLine_data.data1[1],
  1382. type: 'line',
  1383. stack: '总量',
  1384. data: chartLine_data.data4
  1385. },
  1386. {
  1387. name: chartLine_data.data1[2],
  1388. type: 'line',
  1389. stack: '总量',
  1390. data: chartLine_data.data5
  1391. }
  1392. ]
  1393. }
  1394. this.tab.chart3.chartLine.setOption(option)
  1395. window.onresize = function() {
  1396. this.tab.chart3.chartLine.resize()
  1397. }
  1398. },
  1399. // 转化率
  1400. getChart4() {
  1401. this.tab.chart4.listLoading = true
  1402. GetDataByName(this.tab.chart4.getdataListParm).then(response => {
  1403. console.log('转化率图表数据', response.data.list)
  1404. if (response.data.list !== null) {
  1405. this.tab.chart4.chartLine_data = {
  1406. data1: ['新产牛', '高产牛', '干奶牛', '低产牛', '小公牛', '小育成', '青年牛'],
  1407. 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'],
  1408. data3: [
  1409. { data: [76.5, 80.6, 75, 81, 85.5, 86.6, 87, 91.5, 87, 74, 76, 69.5, 84, 68.8, 91] },
  1410. { data: [78, 84, 85, 81, 80, 82.6, 85.8, 90.5, 84, 79.5, 77.6, 79.5, 81, 78.8, 92] },
  1411. { data: [86.5, 86, 77, 87, 70.5, 76, 92, 81.5, 86, 77.8, 72, 79.5, 88, 71, 93] },
  1412. { data: [74.5, 80, 75, 71, 81, 84, 89.7, 95, 80.7, 79, 72, 65, 88, 67.1, 89] },
  1413. { data: [79, 78, 71, 86, 80, 88, 82.8, 93, 83, 78.7, 74.6, 79.5, 94, 88.8, 81] },
  1414. { data: [85, 88.6, 85, 81, 71.5, 89.6, 80.7, 94, 85.7, 70, 77.4, 79.1, 81, 65, 90.5] },
  1415. { data: [78, 85, 69, 87, 92, 82, 87, 95.5, 80.7, 71.4, 70.6, 79.5, 81.4, 78.8, 88] }
  1416. ]
  1417. }
  1418. this.tab.chart4.total = response.data.total
  1419. this.roadChartLine4(this.tab.chart4.chartLine_data)
  1420. } else {
  1421. this.tab.chart4.list = []
  1422. }
  1423. setTimeout(() => {
  1424. this.tab.chart4.listLoading = false
  1425. }, 100)
  1426. })
  1427. },
  1428. getChart4Table() {
  1429. this.tab.chart4.table.listLoading = true
  1430. GetDataByName(this.tab.chart4.table.getdataListParm).then(response => {
  1431. console.log('转化率table/导出数据', response.data.list)
  1432. if (response.data.list !== null) {
  1433. this.tab.chart4.table.list = response.data.list
  1434. this.tab.chart4.table.total = response.data.total
  1435. } else {
  1436. this.tab.chart4.table.list = []
  1437. }
  1438. setTimeout(() => {
  1439. this.tab.chart4.table.listLoading = false
  1440. }, 100)
  1441. })
  1442. },
  1443. roadChartLine4(chartLine_data) {
  1444. if (this.tab.chart4.chartLine != null) {
  1445. this.tab.chart4.chartLine.dispose()
  1446. }
  1447. this.tab.chart4.chartLine = echarts.init(document.getElementById('chartLine4'))
  1448. var option = {
  1449. title: {
  1450. text: ''
  1451. },
  1452. tooltip: {
  1453. trigger: 'axis'
  1454. },
  1455. legend: {
  1456. data: chartLine_data.data1,
  1457. top: 10,
  1458. right: 10
  1459. },
  1460. grid: {
  1461. left: '3%',
  1462. right: '8%',
  1463. bottom: '3%',
  1464. containLabel: true
  1465. },
  1466. toolbox: {
  1467. show: true,
  1468. right: '2%',
  1469. feature: {}
  1470. },
  1471. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '时间' },
  1472. yAxis: {
  1473. type: 'value', name: '百分比'
  1474. },
  1475. series: (function() {
  1476. var serie = []
  1477. for (var i = 0; i < chartLine_data.data3.length; i++) {
  1478. var item = {
  1479. name: chartLine_data.data1[i],
  1480. type: 'line',
  1481. data: chartLine_data.data3[i].data
  1482. }
  1483. serie.push(item)
  1484. }
  1485. return serie
  1486. }())
  1487. }
  1488. this.tab.chart4.chartLine.setOption(option)
  1489. window.onresize = function() {
  1490. this.tab.chart4.chartLine.resize()
  1491. }
  1492. },
  1493. // 成本分析
  1494. getChart5() {
  1495. this.tab.chart5.listLoading = true
  1496. GetDataByName(this.tab.chart5.getdataListParm).then(response => {
  1497. console.log('转化率图表数据', response.data.list)
  1498. if (response.data.list !== null) {
  1499. this.tab.chart5.chartLine_data = {
  1500. data1: ['新产牛', '高产牛', '低产牛'],
  1501. 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'],
  1502. data3: [
  1503. { data: [1.5, 1.2, 1.7, 1.2, 1.6, 1.7, 1.6, 1.5, 1.2, 1.7, 1.2, 1.6, 1.7, 1.5, 2.1] },
  1504. { data: [1.7, 0.8, 1.2, 1.8, 1.7, 1.2, 1.8, 1.1, 1.5, 1.9, 1.8, 1.3, 1.4, 1.5, 1.4] },
  1505. { data: [1.3, 2.2, 1.9, 1.4, 2.1, 1, 1.3, 1.7, 1, 2, 1, 2.2, 1.1, 1.5, 1.2, 1.9] }
  1506. ]
  1507. }
  1508. this.tab.chart5.total = response.data.total
  1509. this.roadChartLine5(this.tab.chart5.chartLine_data)
  1510. } else {
  1511. this.tab.chart5.list = []
  1512. }
  1513. setTimeout(() => {
  1514. this.tab.chart5.listLoading = false
  1515. }, 100)
  1516. })
  1517. },
  1518. getChart5Table() {
  1519. this.tab.chart5.table.listLoading = true
  1520. GetDataByName(this.tab.chart5.table.getdataListParm).then(response => {
  1521. console.log('转化率table/导出数据', response.data.list)
  1522. if (response.data.list !== null) {
  1523. this.tab.chart5.table.list = response.data.list
  1524. this.tab.chart5.table.total = response.data.total
  1525. } else {
  1526. this.tab.chart5.table.list = []
  1527. }
  1528. setTimeout(() => {
  1529. this.tab.chart5.table.listLoading = false
  1530. }, 100)
  1531. })
  1532. },
  1533. roadChartLine5(chartLine_data) {
  1534. if (this.tab.chart5.chartLine != null) {
  1535. this.tab.chart5.chartLine.dispose()
  1536. }
  1537. this.tab.chart5.chartLine = echarts.init(document.getElementById('chartLine5'))
  1538. var option = {
  1539. title: {
  1540. text: ''
  1541. },
  1542. tooltip: {
  1543. trigger: 'axis'
  1544. },
  1545. legend: {
  1546. data: chartLine_data.data1,
  1547. top: 10,
  1548. right: 10
  1549. },
  1550. grid: {
  1551. left: '3%',
  1552. right: '8%',
  1553. bottom: '3%',
  1554. containLabel: true
  1555. },
  1556. toolbox: {
  1557. show: true,
  1558. right: '2%',
  1559. feature: {}
  1560. },
  1561. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data2, name: '时间' },
  1562. yAxis: {
  1563. type: 'value', name: '百分比'
  1564. },
  1565. series: (function() {
  1566. var serie = []
  1567. for (var i = 0; i < chartLine_data.data3.length; i++) {
  1568. var item = {
  1569. name: chartLine_data.data1[i],
  1570. type: 'line',
  1571. data: chartLine_data.data3[i].data
  1572. }
  1573. serie.push(item)
  1574. }
  1575. return serie
  1576. }())
  1577. }
  1578. this.tab.chart5.chartLine.setOption(option)
  1579. window.onresize = function() {
  1580. this.tab.chart5.chartLine.resize()
  1581. }
  1582. },
  1583. // 导出
  1584. handleExport(item) {
  1585. if (item == 'chart1') {
  1586. console.log('泌乳牛采食量导出')
  1587. this.getChart1Table()
  1588. } else if (item == 'chart2') {
  1589. console.log('牛栏剩料率导出')
  1590. this.getChart2Table()
  1591. } else if (item == 'chart3') {
  1592. console.log('搅拌时间统计导出')
  1593. this.getChart3Table()
  1594. } else if (item == 'chart4') {
  1595. console.log('转化率导出')
  1596. this.getChart4Table()
  1597. } else if (item == 'chart5') {
  1598. console.log('成本分析导出')
  1599. this.getChart5Table()
  1600. }
  1601. },
  1602. // 切换表格
  1603. handleTable(item) {
  1604. // 显示切换表格
  1605. if (item == 'chart1') {
  1606. console.log('泌乳牛采食量表格')
  1607. this.tab.chart1.isTable = true
  1608. this.tab.chart1.isChart = false
  1609. this.getChart1Table()
  1610. } else if (item == 'chart2') {
  1611. console.log('牛栏剩料率表格')
  1612. this.tab.chart2.isTable = true
  1613. this.tab.chart2.isChart = false
  1614. this.getChart2Table()
  1615. } else if (item == 'chart3') {
  1616. console.log('搅拌时间统计表格')
  1617. this.tab.chart3.isTable = true
  1618. this.tab.chart3.isChart = false
  1619. this.getChart3Table()
  1620. } else if (item == 'chart4') {
  1621. console.log('转化率表格')
  1622. this.tab.chart4.isTable = true
  1623. this.tab.chart4.isChart = false
  1624. this.getChart4Table()
  1625. } else if (item == 'chart5') {
  1626. console.log('成本分析表格')
  1627. this.tab.chart5.isTable = true
  1628. this.tab.chart5.isChart = false
  1629. this.getChart5Table()
  1630. }
  1631. },
  1632. // 切换图表
  1633. handleChart(item) {
  1634. // 显示切换图表
  1635. if (item == 'chart1') {
  1636. console.log('泌乳牛采食量图表')
  1637. this.tab.chart1.isTable = false
  1638. this.tab.chart1.isChart = true
  1639. } else if (item == 'chart2') {
  1640. console.log('牛栏剩料率图表')
  1641. this.tab.chart2.isTable = false
  1642. this.tab.chart2.isChart = true
  1643. } else if (item == 'chart3') {
  1644. console.log('搅拌时间统计图表')
  1645. this.tab.chart3.isTable = false
  1646. this.tab.chart3.isChart = true
  1647. } else if (item == 'chart4') {
  1648. console.log('转化率图表')
  1649. this.tab.chart4.isTable = false
  1650. this.tab.chart4.isChart = true
  1651. } else if (item == 'chart5') {
  1652. console.log('成本分析图表')
  1653. this.tab.chart5.isTable = false
  1654. this.tab.chart5.isChart = true
  1655. }
  1656. },
  1657. // 宾州筛分析
  1658. getTab2List() {
  1659. this.tab2.table.listLoading = true
  1660. GetDataByName(this.tab2.table.getdataListParm).then(response => {
  1661. console.log('宾州筛分析table数据', response.data.list)
  1662. if (response.data.list !== null) {
  1663. // this.tab2.table.list = response.data.list
  1664. // this.tab2.table.total = response.data.total
  1665. } else {
  1666. this.tab2.table.list = []
  1667. }
  1668. setTimeout(() => {
  1669. this.tab2.table.listLoading = false
  1670. }, 100)
  1671. })
  1672. },
  1673. // 粪便筛分析
  1674. getTab2List2() {
  1675. this.tab2.table2.listLoading = true
  1676. GetDataByName(this.tab2.table2.getdataListParm).then(response => {
  1677. console.log('粪便筛分析table数据', response.data.list)
  1678. if (response.data.list !== null) {
  1679. // this.tab2.table2.list = response.data.list
  1680. // this.tab2.table2.total = response.data.total
  1681. } else {
  1682. this.tab2.table2.list = []
  1683. }
  1684. setTimeout(() => {
  1685. this.tab2.table2.listLoading = false
  1686. }, 100)
  1687. })
  1688. },
  1689. // BCS评分
  1690. getTab2List3() {
  1691. this.tab2.table3.listLoading = true
  1692. GetDataByName(this.tab2.table3.getdataListParm).then(response => {
  1693. console.log('BCS评分table数据', response.data.list)
  1694. if (response.data.list !== null) {
  1695. // this.tab2.table3.list = response.data.list
  1696. // this.tab2.table3.total = response.data.total
  1697. } else {
  1698. this.tab2.table3.list = []
  1699. }
  1700. setTimeout(() => {
  1701. this.tab2.table3.listLoading = false
  1702. }, 100)
  1703. })
  1704. },
  1705. // 粪便评分
  1706. getTab2List4() {
  1707. this.tab2.table4.listLoading = true
  1708. GetDataByName(this.tab2.table4.getdataListParm).then(response => {
  1709. console.log('成本分析table数据', response.data.list)
  1710. if (response.data.list !== null) {
  1711. // this.tab2.table4.list = response.data.list
  1712. // this.tab2.table4.total = response.data.total
  1713. } else {
  1714. this.tab2.table4.list = []
  1715. }
  1716. setTimeout(() => {
  1717. this.tab2.table4.listLoading = false
  1718. }, 100)
  1719. })
  1720. }
  1721. }
  1722. }
  1723. </script>
  1724. <style lang="scss" scoped>
  1725. .search{margin-bottom:10px;}
  1726. </style>