6618d6a2aaad616ec6838ef98e8ae96643b3af86.svn-base 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. <template>
  2. <div class="app-container">
  3. <!-- <h1>牧场</h1> -->
  4. <div class="search">
  5. <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions" />
  6. <el-select v-model="table.getdataListParm.parammaps.lpplantype" placeholder="计划类型" class="filter-item" style="width: 120px;" clearable>
  7. <el-option v-for="item in planTypeList" :key="item.value" :label="item.lable" :value="item.value" />
  8. </el-select>
  9. <el-input v-model="table.getdataListParm.parammaps.tmrtname" placeholder="TMR名称" style="width: 180px;" class="filter-item" clearable />
  10. <el-select v-model="table.getdataListParm.parammaps.iscompleted" placeholder="工作状态" class="filter-item" style="width: 120px;" clearable>
  11. <el-option v-for="item in workingConditionList" :key="item.id" :label="item.name" :value="item.id" />
  12. </el-select>
  13. <el-button class="successBorder" @click="handleSearch">查询</el-button>
  14. <el-button class="successBorder" @click="handleRefresh">重置</el-button>
  15. </div>
  16. <el-row :gutter="20">
  17. <el-col :span="8">
  18. <h4>TMR设备列表</h4>
  19. <div class="table">
  20. <el-table
  21. :key="table.tableKey"
  22. v-loading="table.listLoading"
  23. element-loading-text="给我一点时间"
  24. :data="table.list"
  25. border
  26. fit
  27. highlight-current-row
  28. style="width: 100%;"
  29. :row-style="rowStyle"
  30. :cell-style="cellStyle"
  31. class="elTable table-fixed"
  32. height="970px"
  33. @row-click="rowClick"
  34. >
  35. <el-table-column label="开始时间" min-width="100px" align="center" prop="intime" />
  36. <el-table-column label="计划类型" min-width="80px" align="center" prop="lpplantype" />
  37. <el-table-column label="描述" min-width="90px" align="center" prop="remark" />
  38. <el-table-column label="TMR名称" min-width="80px" align="center" prop="tmrtname" />
  39. </el-table>
  40. </div>
  41. </el-col>
  42. <!-- 预混计划 -->
  43. <el-col v-if="isPremixedPlan" :span="16">
  44. <h4>{{ title }}</h4>
  45. <div class="detail">
  46. <div class="detail-t">
  47. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  48. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  49. </div>
  50. <div class="detail-b">
  51. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  52. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  53. </div>
  54. </div>
  55. <div class="Mixture">
  56. <h4>混料详情</h4>
  57. <el-table
  58. :key="table3.tableKey"
  59. v-loading="table3.listLoading"
  60. element-loading-text="给我一点时间"
  61. :data="table3.list"
  62. border
  63. fit
  64. highlight-current-row
  65. style="width: 100%;"
  66. :row-style="rowStyle"
  67. :cell-style="cellStyle"
  68. class="elTable table-fixed"
  69. height="200px"
  70. show-summary
  71. >
  72. <el-table-column label="操作编号" min-width="70px" align="center" prop="sort" />
  73. <el-table-column label="饲料名称" min-width="70px" align="center" prop="fname" />
  74. <el-table-column label="计划重量" min-width="70px" align="center" prop="lweight" />
  75. <el-table-column label="实际重量" min-width="70px" align="center" prop="actualweightminus" />
  76. <el-table-column label="误差值" min-width="70px" align="center" prop="diff" />
  77. <el-table-column label="准确率" min-width="70px" align="center" prop="diffRate" />
  78. <el-table-column label="完成时间" min-width="70px" align="center" prop="intime" />
  79. <el-table-column label="过程时间" min-width="70px" align="center" prop="proesstime" />
  80. <el-table-column label="跳转方式" min-width="70px" align="center" prop="buttontype" />
  81. <el-table-column label="开始重量" min-width="70px" align="center" prop="lastactualweight" />
  82. <el-table-column label="结束重量" min-width="70px" align="center" prop="actualweight" />
  83. </el-table>
  84. </div>
  85. </el-col>
  86. <!-- 撒料计划 -->
  87. <el-col v-if="isSpreadingPlan" :span="16">
  88. <h4>{{ title }}</h4>
  89. <div class="detail">
  90. <div class="detail-t">
  91. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  92. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  93. </div>
  94. <div class="detail-b">
  95. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  96. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  97. <span>撒料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Sdif }}kg</span>;</span>
  98. <span>撒料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].SdifRate }}</span></span>
  99. </div>
  100. </div>
  101. <div class="Mixture">
  102. <h4>混料详情</h4>
  103. <el-table
  104. :key="table3.tableKey"
  105. v-loading="table3.listLoading"
  106. element-loading-text="给我一点时间"
  107. :data="table3.list"
  108. border
  109. fit
  110. highlight-current-row
  111. style="width: 100%;"
  112. :row-style="rowStyle"
  113. :cell-style="cellStyle"
  114. class="elTable table-fixed"
  115. height="200px"
  116. show-summary
  117. >
  118. <el-table-column label="操作编号" min-width="70px" align="center" prop="sort" />
  119. <el-table-column label="饲料名称" min-width="70px" align="center" prop="fname" />
  120. <el-table-column label="计划重量" min-width="50px" align="center" prop="lweight" />
  121. <el-table-column label="实际重量" min-width="70px" align="center" prop="actualweightminus" />
  122. <el-table-column label="误差值" min-width="70px" align="center" prop="diff" />
  123. <el-table-column label="准确率" min-width="70px" align="center" prop="diffRate" />
  124. <el-table-column label="完成时间" min-width="70px" align="center" prop="intime" />
  125. <el-table-column label="过程时间" min-width="70px" align="center" prop="proesstime" />
  126. <el-table-column label="跳转方式" min-width="70px" align="center" prop="buttontype" />
  127. <el-table-column label="开始重量" min-width="70px" align="center" prop="lastactualweight" />
  128. <el-table-column label="结束重量" min-width="70px" align="center" prop="actualweight" />
  129. </el-table>
  130. </div>
  131. <div class="SpreadingMaterials">
  132. <h4>撒料详情</h4>
  133. <el-table
  134. :key="table4.tableKey"
  135. v-loading="table4.listLoading"
  136. element-loading-text="给我一点时间"
  137. :data="table4.list"
  138. border
  139. fit
  140. highlight-current-row
  141. style="width: 100%;"
  142. :row-style="rowStyle"
  143. :cell-style="cellStyle"
  144. class="elTable table-fixed"
  145. height="200px"
  146. show-summary
  147. >
  148. <el-table-column label="操作编号" min-width="70px" align="center" prop="sort" />
  149. <el-table-column label="栏舍名称" min-width="70px" align="center" prop="fname" />
  150. <el-table-column label="计划重量" min-width="70px" align="center" prop="lweight" />
  151. <el-table-column label="实际重量" min-width="70px" align="center" prop="actualweightminus" />
  152. <el-table-column label="误差值" min-width="70px" align="center" prop="diff" />
  153. <el-table-column label="准确率" min-width="70px" align="center" prop="diffRate" />
  154. <el-table-column label="完成时间" min-width="70px" align="center" prop="intime" />
  155. <el-table-column label="过程时间" min-width="70px" align="center" prop="proesstime" />
  156. <el-table-column label="跳转方式" min-width="70px" align="center" prop="buttontype" />
  157. <el-table-column label="开始重量" min-width="70px" align="center" prop="lastactualweight" />
  158. <el-table-column label="结束重量" min-width="70px" align="center" prop="actualweight" />
  159. </el-table>
  160. </div>
  161. <div class="ControlChart">
  162. <h4>监控图</h4>
  163. <div id="chartLine" style="width: 100%;height:300px;" />
  164. </div>
  165. </el-col>
  166. <!-- 剩料计划 -->
  167. <el-col v-if="isResidualMaterialPlan" :span="16">
  168. <h4>{{ title }}</h4>
  169. <div class="detail">
  170. <div class="detail-t">
  171. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  172. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  173. </div>
  174. <div class="detail-b" />
  175. </div>
  176. <div class="Mixture">
  177. <h4>剩料收集详情</h4>
  178. <el-table
  179. :key="table3.tableKey"
  180. v-loading="table3.listLoading"
  181. element-loading-text="给我一点时间"
  182. :data="table3.list"
  183. border
  184. fit
  185. highlight-current-row
  186. style="width: 100%;"
  187. :row-style="rowStyle"
  188. :cell-style="cellStyle"
  189. class="elTable table-fixed"
  190. height="200px"
  191. show-summary
  192. >
  193. <el-table-column label="操作编号" min-width="110px" align="center">
  194. <template slot-scope="scope">
  195. <span>{{ scope.row.sort }}</span>
  196. </template>
  197. </el-table-column>
  198. <el-table-column label="栏舍名称" min-width="90px" align="center">
  199. <template slot-scope="scope">
  200. <span>{{ scope.row.fname }}</span>
  201. </template>
  202. </el-table-column>
  203. <el-table-column label="剩料采集重量(kg)" min-width="110px" align="center">
  204. <template slot-scope="scope">
  205. <span>{{ scope.row.sweight }}</span>
  206. </template>
  207. </el-table-column>
  208. </el-table>
  209. </div>
  210. <div class="SpreadingMaterials">
  211. <h4>撒料详情</h4>
  212. <el-table
  213. :key="table4.tableKey"
  214. v-loading="table4.listLoading"
  215. :span-method="objectSpanMethod"
  216. element-loading-text="给我一点时间"
  217. :data="table4.list"
  218. border
  219. fit
  220. highlight-current-row
  221. style="width: 100%;"
  222. :row-style="rowStyle"
  223. :cell-style="cellStyle"
  224. class="elTable table-fixed"
  225. height="200px"
  226. show-summary
  227. >
  228. <el-table-column label="操作编号" min-width="110px" align="center">
  229. <template slot-scope="scope">
  230. <span>{{ scope.row.sort }}</span>
  231. </template>
  232. </el-table-column>
  233. <el-table-column label="转投栏舍" min-width="90px" align="center">
  234. <template slot-scope="scope">
  235. <span>{{ scope.row.fname }}</span>
  236. </template>
  237. </el-table-column>
  238. <el-table-column label="允许分配剩料量" min-width="110px" align="center">
  239. <template slot-scope="scope">
  240. <span>{{ scope.row.lweight }}</span>
  241. </template>
  242. </el-table-column>
  243. <el-table-column label="实际分配重量(kg)" min-width="110px" align="center">
  244. <template slot-scope="scope">
  245. <span>{{ scope.row.actualweightminus }}</span>
  246. </template>
  247. </el-table-column>
  248. <el-table-column label="废弃剩料重量" min-width="110px" align="center" prop="aweight">
  249. <template slot-scope="scope">
  250. <span>{{ scope.row.aweight }}</span>
  251. </template>
  252. </el-table-column>
  253. </el-table>
  254. </div>
  255. </el-col>
  256. <!-- 撒料计划-混料 -->
  257. <el-col v-if="isSpreadingPlanSH" :span="16">
  258. <h4>{{ title }}</h4>
  259. <div class="detail">
  260. <div class="detail-t">
  261. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  262. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  263. </div>
  264. <div class="detail-b">
  265. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  266. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  267. <span>撒料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Sdif }}kg</span>;</span>
  268. <span>撒料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].SdifRate }}</span></span>
  269. </div>
  270. </div>
  271. <div class="Mixture">
  272. <h4>混料详情</h4>
  273. <el-table
  274. :key="table3.tableKey"
  275. v-loading="table3.listLoading"
  276. element-loading-text="给我一点时间"
  277. :data="table3.list"
  278. border
  279. fit
  280. highlight-current-row
  281. style="width: 100%;"
  282. :row-style="rowStyle"
  283. :cell-style="cellStyle"
  284. class="elTable table-fixed"
  285. height="200px"
  286. show-summary
  287. >
  288. <el-table-column label="操作编号" min-width="110px" align="center">
  289. <template slot-scope="scope">
  290. <span>{{ scope.row.sort }}</span>
  291. </template>
  292. </el-table-column>
  293. <el-table-column label="饲料名称" min-width="90px" align="center">
  294. <template slot-scope="scope">
  295. <span>{{ scope.row.fname }}</span>
  296. </template>
  297. </el-table-column>
  298. <el-table-column label="计划重量" min-width="110px" align="center">
  299. <template slot-scope="scope">
  300. <span>{{ scope.row.lweight }}</span>
  301. </template>
  302. </el-table-column>
  303. <el-table-column label="实际重量" min-width="110px" align="center">
  304. <template slot-scope="scope">
  305. <span>{{ scope.row.actualweightminus }}</span>
  306. </template>
  307. </el-table-column>
  308. <el-table-column label="误差值" min-width="110px" align="center">
  309. <template slot-scope="scope">
  310. <span>{{ scope.row.diff }}</span>
  311. </template>
  312. </el-table-column>
  313. <el-table-column label="准确率" min-width="90px" align="center">
  314. <template slot-scope="scope">
  315. <span>{{ scope.row.diffRate }}</span>
  316. </template>
  317. </el-table-column>
  318. <el-table-column label="完成时间" min-width="110px" align="center">
  319. <template slot-scope="scope">
  320. <span>{{ scope.row.intime }}</span>
  321. </template>
  322. </el-table-column>
  323. <el-table-column label="过程时间" min-width="110px" align="center">
  324. <template slot-scope="scope">
  325. <span>{{ scope.row.proesstime }}</span>
  326. </template>
  327. </el-table-column>
  328. <el-table-column label="跳转方式" min-width="110px" align="center">
  329. <template slot-scope="scope">
  330. <span>{{ scope.row.buttontype }}</span>
  331. </template>
  332. </el-table-column>
  333. <el-table-column label="开始重量" min-width="110px" align="center">
  334. <template slot-scope="scope">
  335. <span>{{ scope.row.lastactualweight }}</span>
  336. </template>
  337. </el-table-column>
  338. <el-table-column label="结束重量" min-width="110px" align="center">
  339. <template slot-scope="scope">
  340. <span>{{ scope.row.actualweight }}</span>
  341. </template>
  342. </el-table-column>
  343. </el-table>
  344. </div>
  345. <div class="SpreadingMaterials">
  346. <h4>撒料详情</h4>
  347. <el-table
  348. :key="table4.tableKey"
  349. v-loading="table4.listLoading"
  350. element-loading-text="给我一点时间"
  351. :data="table4.list"
  352. border
  353. fit
  354. highlight-current-row
  355. style="width: 100%;"
  356. :row-style="rowStyle"
  357. :cell-style="cellStyle"
  358. class="elTable table-fixed"
  359. height="200px"
  360. show-summary
  361. >
  362. <el-table-column label="操作编号" min-width="110px" align="center">
  363. <template slot-scope="scope">
  364. <span>{{ scope.row.sort }}</span>
  365. </template>
  366. </el-table-column>
  367. <el-table-column label="撒料车辆" min-width="90px" align="center">
  368. <template slot-scope="scope">
  369. <span>{{ scope.row.fname }}</span>
  370. </template>
  371. </el-table-column>
  372. <el-table-column label="计划重量" min-width="110px" align="center">
  373. <template slot-scope="scope">
  374. <span>{{ scope.row.lweight }}</span>
  375. </template>
  376. </el-table-column>
  377. <el-table-column label="实际重量" min-width="110px" align="center">
  378. <template slot-scope="scope">
  379. <span>{{ scope.row.actualweightminus }}</span>
  380. </template>
  381. </el-table-column>
  382. <el-table-column label="误差值" min-width="110px" align="center">
  383. <template slot-scope="scope">
  384. <span>{{ scope.row.diff }}</span>
  385. </template>
  386. </el-table-column>
  387. <el-table-column label="准确率" min-width="90px" align="center">
  388. <template slot-scope="scope">
  389. <span>{{ scope.row.diffRate }}</span>
  390. </template>
  391. </el-table-column>
  392. <el-table-column label="完成时间" min-width="110px" align="center">
  393. <template slot-scope="scope">
  394. <span>{{ scope.row.intime }}</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.proesstime }}</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.buttontype }}</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.lastactualweight }}</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.actualweight }}</span>
  415. </template>
  416. </el-table-column>
  417. </el-table>
  418. </div>
  419. <div class="ControlChart">
  420. <h4>监控图</h4>
  421. <div id="chartLine" style="width: 100%;height:300px;" />
  422. </div>
  423. </el-col>
  424. <!-- 撒料计划-撒料 -->
  425. <el-col v-if="isSpreadingPlanSS" :span="16">
  426. <h4>{{ title }}</h4>
  427. <div class="detail">
  428. <div class="detail-t">
  429. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  430. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  431. </div>
  432. <div class="detail-b">
  433. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  434. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  435. <span>撒料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Sdif }}kg</span>;</span>
  436. <span>撒料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].SdifRate }}</span></span>
  437. </div>
  438. </div>
  439. <div class="Mixture">
  440. <h4>混料详情</h4>
  441. <el-table
  442. :key="table3.tableKey"
  443. v-loading="table3.listLoading"
  444. element-loading-text="给我一点时间"
  445. :data="table3.list"
  446. border
  447. fit
  448. highlight-current-row
  449. style="width: 100%;"
  450. :row-style="rowStyle"
  451. :cell-style="cellStyle"
  452. class="elTable table-fixed"
  453. height="200px"
  454. show-summary
  455. >
  456. <el-table-column label="操作编号" min-width="110px" align="center">
  457. <template slot-scope="scope">
  458. <span>{{ scope.row.sort }}</span>
  459. </template>
  460. </el-table-column>
  461. <el-table-column label="撒料车辆" min-width="90px" align="center">
  462. <template slot-scope="scope">
  463. <span>{{ scope.row.fname }}</span>
  464. </template>
  465. </el-table-column>
  466. <el-table-column label="计划重量" min-width="110px" align="center">
  467. <template slot-scope="scope">
  468. <span>{{ scope.row.lweight }}</span>
  469. </template>
  470. </el-table-column>
  471. <el-table-column label="实际重量" min-width="110px" align="center">
  472. <template slot-scope="scope">
  473. <span>{{ scope.row.actualweightminus }}</span>
  474. </template>
  475. </el-table-column>
  476. <el-table-column label="误差值" min-width="110px" align="center">
  477. <template slot-scope="scope">
  478. <span>{{ scope.row.diff }}</span>
  479. </template>
  480. </el-table-column>
  481. <el-table-column label="准确率" min-width="90px" align="center">
  482. <template slot-scope="scope">
  483. <span>{{ scope.row.diffRate }}</span>
  484. </template>
  485. </el-table-column>
  486. <el-table-column label="完成时间" min-width="110px" align="center">
  487. <template slot-scope="scope">
  488. <span>{{ scope.row.intime }}</span>
  489. </template>
  490. </el-table-column>
  491. <el-table-column label="过程时间" min-width="110px" align="center">
  492. <template slot-scope="scope">
  493. <span>{{ scope.row.proesstime }}</span>
  494. </template>
  495. </el-table-column>
  496. <el-table-column label="跳转方式" min-width="110px" align="center">
  497. <template slot-scope="scope">
  498. <span>{{ scope.row.buttontype }}</span>
  499. </template>
  500. </el-table-column>
  501. <el-table-column label="开始重量" min-width="110px" align="center">
  502. <template slot-scope="scope">
  503. <span>{{ scope.row.lastactualweight }}</span>
  504. </template>
  505. </el-table-column>
  506. <el-table-column label="结束重量" min-width="110px" align="center">
  507. <template slot-scope="scope">
  508. <span>{{ scope.row.actualweight }}</span>
  509. </template>
  510. </el-table-column>
  511. </el-table>
  512. </div>
  513. <div class="SpreadingMaterials">
  514. <h4>撒料详情</h4>
  515. <el-table
  516. :key="table4.tableKey"
  517. v-loading="table4.listLoading"
  518. element-loading-text="给我一点时间"
  519. :data="table4.list"
  520. border
  521. fit
  522. highlight-current-row
  523. style="width: 100%;"
  524. :row-style="rowStyle"
  525. :cell-style="cellStyle"
  526. class="elTable table-fixed"
  527. height="200px"
  528. show-summary
  529. >
  530. <el-table-column label="操作编号" min-width="110px" align="center">
  531. <template slot-scope="scope">
  532. <span>{{ scope.row.sort }}</span>
  533. </template>
  534. </el-table-column>
  535. <el-table-column label="撒料车辆" min-width="90px" align="center">
  536. <template slot-scope="scope">
  537. <span>{{ scope.row.fname }}</span>
  538. </template>
  539. </el-table-column>
  540. <el-table-column label="计划重量" min-width="110px" align="center">
  541. <template slot-scope="scope">
  542. <span>{{ scope.row.lweight }}</span>
  543. </template>
  544. </el-table-column>
  545. <el-table-column label="实际重量" min-width="110px" align="center">
  546. <template slot-scope="scope">
  547. <span>{{ scope.row.actualweightminus }}</span>
  548. </template>
  549. </el-table-column>
  550. <el-table-column label="误差值" min-width="110px" align="center">
  551. <template slot-scope="scope">
  552. <span>{{ scope.row.diff }}</span>
  553. </template>
  554. </el-table-column>
  555. <el-table-column label="准确率" min-width="90px" align="center">
  556. <template slot-scope="scope">
  557. <span>{{ scope.row.diffRate }}</span>
  558. </template>
  559. </el-table-column>
  560. <el-table-column label="完成时间" min-width="110px" align="center">
  561. <template slot-scope="scope">
  562. <span>{{ scope.row.intime }}</span>
  563. </template>
  564. </el-table-column>
  565. <el-table-column label="过程时间" min-width="110px" align="center">
  566. <template slot-scope="scope">
  567. <span>{{ scope.row.proesstime }}</span>
  568. </template>
  569. </el-table-column>
  570. <el-table-column label="跳转方式" min-width="110px" align="center">
  571. <template slot-scope="scope">
  572. <span>{{ scope.row.buttontype }}</span>
  573. </template>
  574. </el-table-column>
  575. <el-table-column label="开始重量" min-width="110px" align="center">
  576. <template slot-scope="scope">
  577. <span>{{ scope.row.lastactualweight }}</span>
  578. </template>
  579. </el-table-column>
  580. <el-table-column label="结束重量" min-width="110px" align="center">
  581. <template slot-scope="scope">
  582. <span>{{ scope.row.actualweight }}</span>
  583. </template>
  584. </el-table-column>
  585. </el-table>
  586. </div>
  587. <div class="ControlChart">
  588. <h4>监控图</h4>
  589. <div id="chartLine" style="width: 100%;height:300px;" />
  590. </div>
  591. </el-col>
  592. </el-row>
  593. </div>
  594. </template>
  595. <script>
  596. import echarts from 'echarts'
  597. require('echarts/theme/macarons')
  598. import { GetDataByName, GetReportform } from '@/api/common'
  599. import Cookies from 'js-cookie'
  600. import { parseTime } from '@/utils/index.js'
  601. export default {
  602. name: 'PastureProcessAnalysis',
  603. data() {
  604. return {
  605. title: '',
  606. isPremixedPlan: '', // 预混计划
  607. isSpreadingPlan: '', // 撒料计划
  608. isResidualMaterialPlan: '', // 剩料计划,
  609. isSpreadingPlanSH: '', // 撒料计划-混料
  610. isSpreadingPlanSS: '', // 撒料计划-撒料
  611. pickerMinDate: '',
  612. pickerOptions: {
  613. onPick: ({ maxDate, minDate }) => {
  614. this.pickerMinDate = minDate.getTime()
  615. if (maxDate) {
  616. this.pickerMinDate = ''
  617. }
  618. },
  619. // 限制不能选择今天之后的日期
  620. disabledDate: (time) => {
  621. if (this.pickerMinDate !== '') {
  622. const one = 31 * 24 * 3600 * 1000
  623. const minTime = this.pickerMinDate - one
  624. let maxTime = this.pickerMinDate + one
  625. if (maxTime > new Date()) {
  626. maxTime = new Date()
  627. }
  628. return time.getTime() < minTime || time.getTime() > maxTime
  629. }
  630. return time.getTime() > Date.now()
  631. }
  632. },
  633. requestParams: [
  634. { name: 'getBarListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }},
  635. { name: 'getCowclassListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }}
  636. ],
  637. planTypeList: [{ lable: '预混计划', value: '4' }, { lable: '撒料计划', value: '0' }, { lable: '剩料计划', value: '3' }, { lable: '撒料计划-混料', value: '1' }, { lable: '撒料计划-撒料', value: '2' }, { lable: '预称重计划', value: '5' }], // 计划类型
  638. workingConditionList: [{ id: '0', name: '进行中' }, { id: '1', name: '已完成' }], // 工作状态
  639. // TMR设备列表
  640. table: {
  641. getdataListParm: {
  642. name: 'getprocessAnalysis',
  643. page: 1,
  644. offset: 1,
  645. pagecount: '',
  646. returntype: 'Map',
  647. parammaps: {
  648. pastureid: Cookies.get('pastureid'),
  649. startTime: parseTime(new Date(), '{y}-{m}-{d}'),
  650. stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
  651. inputDatetime: [new Date(), new Date()],
  652. iscompleted: '',
  653. tmrtname: '',
  654. lpplantype: ''
  655. }
  656. },
  657. tableKey: 0,
  658. list: [],
  659. total: 0,
  660. listLoading: true
  661. },
  662. // 过程详情
  663. table2: {
  664. getdataListParm: {
  665. name: 'getprocessAnalysisStr',
  666. page: 1,
  667. offset: 1,
  668. pagecount: 1,
  669. returntype: 'Map',
  670. parammaps: {
  671. pastureid: Cookies.get('pastureid'),
  672. id: ''
  673. }
  674. },
  675. tableKey: 0,
  676. list: [],
  677. total: 0,
  678. listLoading: true
  679. },
  680. // 混料详情
  681. table3: {
  682. getdataListParm: {
  683. name: 'getprocessAnalysisHL',
  684. page: 1,
  685. offset: 1,
  686. pagecount: '',
  687. returntype: 'Map',
  688. parammaps: {
  689. pastureid: Cookies.get('pastureid'),
  690. id: ''
  691. }
  692. },
  693. tableKey: 0,
  694. list: [],
  695. total: 0,
  696. listLoading: true
  697. },
  698. // 撒料详情
  699. table4: {
  700. getdataListParm: {
  701. name: 'getprocessAnalysisSL',
  702. page: 1,
  703. offset: 1,
  704. pagecount: '',
  705. returntype: 'Map',
  706. parammaps: {
  707. pastureid: Cookies.get('pastureid'),
  708. id: ''
  709. }
  710. },
  711. tableKey: 0,
  712. list: [],
  713. total: 0,
  714. listLoading: true
  715. },
  716. chart1: {
  717. getdataListParm: {
  718. name: 'getprocessAnalysisTB',
  719. page: 1,
  720. offset: 1,
  721. pagecount: '',
  722. returntype: 'Map',
  723. parammaps: {
  724. pastureid: Cookies.get('pastureid'),
  725. id: ''
  726. }
  727. },
  728. tableKey: 0,
  729. list: [],
  730. total: 0,
  731. listLoading: false,
  732. chartLine_data: []
  733. },
  734. chartLine: null,
  735. chartLine_data: {},
  736. rowStyle: { maxHeight: 30 + 'px', height: 30 + 'px' },
  737. cellStyle: { padding: 0 + 'px' }
  738. }
  739. },
  740. created() {
  741. this.getList()
  742. },
  743. methods: {
  744. // TMR设备列表
  745. getList() {
  746. this.table.listLoading = true
  747. GetDataByName(this.table.getdataListParm).then(response => {
  748. console.log('TMR设备列表table数据', response.data.list)
  749. if (response.data.list !== null) {
  750. this.table.list = response.data.list
  751. if (response.data.list[0].lpplantype == '预混计划') {
  752. this.isPremixedPlan = true
  753. this.isSpreadingPlan = false
  754. this.isResidualMaterialPlan = false
  755. this.isSpreadingPlanSH = false
  756. this.isSpreadingPlanSS = false
  757. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  758. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  759. this.getList2()
  760. this.getList3()
  761. } else if (response.data.list[0].lpplantype == '剩料计划') {
  762. this.isResidualMaterialPlan = true
  763. this.isPremixedPlan = false
  764. this.isSpreadingPlan = false
  765. this.isSpreadingPlanSH = false
  766. this.isSpreadingPlanSS = false
  767. this.table2.getdataListParm.name = 'getprocessAnalysisStrSH'
  768. this.table3.getdataListParm.name = 'getprocessAnalysisHLSH'
  769. this.table4.getdataListParm.name = 'getprocessAnalysisSLSH'
  770. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  771. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  772. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  773. this.getList2()
  774. this.getList3()
  775. this.getList4()
  776. } else if (response.data.list[0].lpplantype == '撒料计划-混料') {
  777. // 撒料计划-混料
  778. this.isSpreadingPlan = false
  779. this.isResidualMaterialPlan = false
  780. this.isPremixedPlan = false
  781. this.isSpreadingPlanSH = true
  782. this.isSpreadingPlanSS = false
  783. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  784. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  785. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  786. this.getList2()
  787. this.getList3()
  788. this.getList4()
  789. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  790. this.getChart1()
  791. } else if (response.data.list[0].lpplantype == '撒料计划-撒料') {
  792. // 撒料计划-撒料
  793. this.isSpreadingPlan = false
  794. this.isResidualMaterialPlan = false
  795. this.isPremixedPlan = false
  796. this.isSpreadingPlanSH = false
  797. this.isSpreadingPlanSS = true
  798. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  799. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  800. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  801. this.getList2()
  802. this.getList3()
  803. this.getList4()
  804. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  805. this.getChart1()
  806. } else if (response.data.list[0].lpplantype == '预称重计划') {
  807. // 撒料计划-混料
  808. this.isSpreadingPlan = false
  809. this.isResidualMaterialPlan = false
  810. this.isPremixedPlan = false
  811. this.isSpreadingPlanSH = true
  812. this.isSpreadingPlanSS = false
  813. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  814. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  815. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  816. this.getList2()
  817. this.getList3()
  818. this.getList4()
  819. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  820. this.getChart1()
  821. } else {
  822. // 撒料
  823. this.isSpreadingPlan = true
  824. this.isResidualMaterialPlan = false
  825. this.isPremixedPlan = false
  826. this.isSpreadingPlanSH = false
  827. this.isSpreadingPlanSS = false
  828. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  829. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  830. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  831. this.getList2()
  832. this.getList3()
  833. this.getList4()
  834. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  835. this.getChart1()
  836. }
  837. this.title = '过程详情-' + response.data.list[0].lpplantype
  838. } else {
  839. this.table.list = []
  840. this.table2.list = []
  841. this.table3.list = []
  842. this.table2.listLoading = false
  843. this.table3.listLoading = false
  844. this.table4.listLoading = false
  845. this.chart1.listLoading = false
  846. }
  847. setTimeout(() => {
  848. this.table.listLoading = false
  849. }, 100)
  850. })
  851. },
  852. handleSearch() {
  853. console.log('点击了查询')
  854. if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
  855. this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
  856. this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
  857. } else {
  858. this.table.getdataListParm.parammaps.inputDatetime = ''
  859. this.table.getdataListParm.parammaps.startTime = ''
  860. this.table.getdataListParm.parammaps.stopTime = ''
  861. }
  862. this.table.getdataListParm.offset = 1
  863. this.getList()
  864. },
  865. handleRefresh() {
  866. console.log('点击了重置')
  867. this.table.getdataListParm.parammaps.tmrtname = ''
  868. this.table.getdataListParm.parammaps.iscompleted = ''
  869. this.table.getdataListParm.parammaps.lpplantype = ''
  870. this.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
  871. this.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{y}-{m}-{d}')
  872. this.table.getdataListParm.parammaps.inputDatetime = [new Date(), new Date()]
  873. this.table.getdataListParm.offset = 1
  874. this.getList()
  875. },
  876. rowClick(row, column, event) {
  877. this.table2.getdataListParm.parammaps.id = row.id
  878. this.table3.getdataListParm.parammaps.pid = row.id
  879. this.table4.getdataListParm.parammaps.pid = row.id
  880. this.chart1.getdataListParm.parammaps.pid = row.id
  881. if (row.lpplantype == '预混计划') {
  882. this.isPremixedPlan = true
  883. this.isResidualMaterialPlan = false
  884. this.isSpreadingPlan = false
  885. this.isSpreadingPlanSH = false
  886. this.isSpreadingPlanSS = false
  887. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  888. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  889. this.getList2()
  890. this.getList3()
  891. } else if (row.lpplantype == '剩料计划') {
  892. this.isResidualMaterialPlan = true
  893. this.isPremixedPlan = false
  894. this.isSpreadingPlan = false
  895. this.isSpreadingPlanSH = false
  896. this.isSpreadingPlanSS = false
  897. this.table2.getdataListParm.name = 'getprocessAnalysisStrSH'
  898. this.table3.getdataListParm.name = 'getprocessAnalysisHLSH'
  899. this.table4.getdataListParm.name = 'getprocessAnalysisSLSH'
  900. this.getList2()
  901. this.getList3()
  902. this.getList4()
  903. } else if (row.lpplantype == '撒料计划-混料') {
  904. this.isSpreadingPlan = false
  905. this.isPremixedPlan = false
  906. this.isResidualMaterialPlan = false
  907. this.isSpreadingPlanSH = true
  908. this.isSpreadingPlanSS = false
  909. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  910. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  911. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  912. this.getList2()
  913. this.getList3()
  914. this.getList4()
  915. this.getChart1()
  916. } else if (row.lpplantype == '撒料计划-撒料') {
  917. this.isSpreadingPlan = false
  918. this.isPremixedPlan = false
  919. this.isResidualMaterialPlan = false
  920. this.isSpreadingPlanSH = false
  921. this.isSpreadingPlanSS = true
  922. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  923. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  924. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  925. this.getList2()
  926. this.getList3()
  927. this.getList4()
  928. this.getChart1()
  929. } else if (row.lpplantype == '预称重计划') {
  930. this.isSpreadingPlan = false
  931. this.isPremixedPlan = false
  932. this.isResidualMaterialPlan = false
  933. this.isSpreadingPlanSH = true
  934. this.isSpreadingPlanSS = false
  935. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  936. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  937. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  938. this.getList2()
  939. this.getList3()
  940. this.getList4()
  941. this.getChart1()
  942. } else {
  943. this.isSpreadingPlan = true
  944. this.isPremixedPlan = false
  945. this.isResidualMaterialPlan = false
  946. this.isSpreadingPlanSH = false
  947. this.isSpreadingPlanSS = false
  948. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  949. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  950. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  951. this.getList2()
  952. this.getList3()
  953. this.getList4()
  954. this.getChart1()
  955. }
  956. this.title = '过程详情-' + row.lpplantype
  957. },
  958. // 过程详情
  959. getList2() {
  960. this.table2.listLoading = false
  961. GetDataByName(this.table2.getdataListParm).then(response => {
  962. console.log('过程详情table数据', response.data.list)
  963. if (response.data.list !== null) {
  964. this.table2.list = response.data.list
  965. } else {
  966. this.table2.list = []
  967. }
  968. setTimeout(() => {
  969. this.table2.listLoading = false
  970. }, 100)
  971. })
  972. },
  973. // 混料详情
  974. getList3() {
  975. this.table3.listLoading = false
  976. GetDataByName(this.table3.getdataListParm).then(response => {
  977. console.log('混料详情table数据', response.data.list)
  978. if (response.data.list !== null) {
  979. this.table3.list = response.data.list
  980. } else {
  981. this.table3.list = []
  982. }
  983. setTimeout(() => {
  984. this.table3.listLoading = false
  985. }, 100)
  986. })
  987. },
  988. // 撒料详情
  989. getList4() {
  990. this.table4.listLoading = false
  991. GetDataByName(this.table4.getdataListParm).then(response => {
  992. console.log('撒料详情table数据', response.data.list)
  993. if (response.data.list !== null) {
  994. this.table4.list = response.data.list
  995. this.rowspan()
  996. } else {
  997. this.table4.list = []
  998. }
  999. setTimeout(() => {
  1000. this.table4.listLoading = false
  1001. }, 100)
  1002. })
  1003. },
  1004. rowspan() {
  1005. this.spanArr = []
  1006. this.table4.list.forEach((item, index) => {
  1007. if (index == 0) {
  1008. this.spanArr.push(1)
  1009. this.position = 0
  1010. } else {
  1011. console.log(item, index, '======')
  1012. if (this.table4.list[index].aweight == this.table4.list[index - 1].aweight) {
  1013. this.spanArr[this.position] += 1
  1014. this.spanArr.push(0)
  1015. } else {
  1016. this.spanArr.push(1)
  1017. this.position = index
  1018. }
  1019. }
  1020. })
  1021. },
  1022. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  1023. if (columnIndex == 4) {
  1024. const _row = this.spanArr[rowIndex]
  1025. const _col = _row > 0 ? 1 : 0
  1026. return {
  1027. rowspan: _row,
  1028. colspan: _col
  1029. }
  1030. }
  1031. },
  1032. getChart1() {
  1033. this.chart1.listLoading = true
  1034. GetReportform(this.chart1.getdataListParm).then(response => {
  1035. if (response.data.list !== null) {
  1036. this.chart1.list = response.data.data
  1037. console.log('实时监控', response.data.list)
  1038. // console.log('实时监控', response.data.list.data4)
  1039. var evenNumbers = []// 偶数
  1040. var oddNumbers = []// 奇数
  1041. for (let i = 0; i < response.data.list.data4.length; i++) {
  1042. console.log(response.data.list.data4[i])
  1043. if (i == 0) {
  1044. oddNumbers.push(response.data.list.data4[i])
  1045. } else {
  1046. if (i % 2 == 0) {
  1047. evenNumbers.push(response.data.list.data4[i])
  1048. } else {
  1049. oddNumbers.push(response.data.list.data4[i])
  1050. }
  1051. }
  1052. }
  1053. response.data.list.data4 = oddNumbers
  1054. response.data.list.data5 = evenNumbers
  1055. this.chart1.chartLine_data = response.data.list
  1056. this.chart1.total = response.data.total
  1057. this.roadChartLine1(this.chart1.chartLine_data)
  1058. } else {
  1059. this.chart1.list = []
  1060. }
  1061. setTimeout(() => {
  1062. this.chart1.listLoading = false
  1063. }, 100)
  1064. })
  1065. },
  1066. roadChartLine1(chartLine_data) {
  1067. if (this.chartLine != null) {
  1068. this.chartLine.dispose()
  1069. }
  1070. this.chartLine = echarts.init(document.getElementById('chartLine'))
  1071. var option = {
  1072. title: {
  1073. text: '',
  1074. subtext: ''
  1075. },
  1076. color: ['#38c193', '#5199e5', '#fdb06a', '#fb8b73'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
  1077. legend: [{
  1078. itemWidth: 15, itemHeight: 7, right: '25%', textStyle: { fontSize: 12 },
  1079. data: [{ name: '设计重量' }, { name: '实际重量' }]
  1080. }, {
  1081. itemWidth: 15, itemHeight: 15, right: '0', textStyle: { fontSize: 12 },
  1082. data: [{ name: '开始重量', icon: 'image://https://kptyun.cn:8081/file/pic/3.png' }, { name: '结束重量', icon: 'image://https://kptyun.cn:8081/file/pic/4.png' }]
  1083. }],
  1084. tooltip: {
  1085. trigger: 'axis'
  1086. },
  1087. calculable: true,
  1088. xAxis: [
  1089. {
  1090. type: 'category',
  1091. splitLine: { show: false }, // 去除网格线
  1092. name: '时间',
  1093. data: chartLine_data.data1,
  1094. axisLabel: {
  1095. show: true,
  1096. textStyle: {
  1097. color: '#666' // 这里用参数代替了
  1098. }
  1099. }
  1100. }
  1101. ],
  1102. yAxis: [
  1103. {
  1104. type: 'value'
  1105. }
  1106. ],
  1107. series: [
  1108. {
  1109. symbol: 'none',
  1110. name: '实际重量',
  1111. type: 'line',
  1112. // step: 'end',
  1113. data: chartLine_data.data3,
  1114. smooth: true,
  1115. barWidth: '37',
  1116. itemStyle: {
  1117. normal: {
  1118. lineStyle: { color: '#ff3131' }
  1119. }
  1120. }
  1121. },
  1122. {
  1123. symbol: 'none',
  1124. name: '设计重量',
  1125. type: 'line',
  1126. step: 'middle',
  1127. // symbol: 'rect',
  1128. // symbolSize: [100, 2],
  1129. // label: { show: true, formatter: '{b} {c}kg' },
  1130. data: chartLine_data.data2
  1131. }, , {
  1132. name: '开始重量',
  1133. symbol: 'image://https://kptyun.cn:8081/file/pic/3.png',
  1134. symbolSize: 10,
  1135. type: 'scatter',
  1136. data: chartLine_data.data4
  1137. }, {
  1138. name: '结束重量',
  1139. symbol: 'image://https://kptyun.cn:8081/file/pic/4.png',
  1140. symbolSize: 10,
  1141. type: 'scatter',
  1142. data: chartLine_data.data5
  1143. }]
  1144. }
  1145. this.chartLine.setOption(option)
  1146. window.onresize = function() {
  1147. this.chartLine.resize()
  1148. }
  1149. }
  1150. }
  1151. }
  1152. </script>
  1153. <style lang="scss" scoped>
  1154. .search{padding-top:10px;clear: both;}
  1155. .table{margin-top:10px;}
  1156. .detail{
  1157. height:84px;border: 1px solid #EBEEF5;padding-left:10px;font:16px/32px '';color:#333;
  1158. .detail-t{margin-top: 10px;}
  1159. .detail-b{margin-bottom: 10px;}
  1160. }
  1161. </style>