|
@@ -2,7 +2,7 @@
|
|
|
<div class="app-container">
|
|
|
<div class="search">
|
|
|
<el-select v-model="table.getdataListParm.parammaps.pastureid" placeholder="牧场" class="filter-item" style="width: 120px;">
|
|
|
- <el-option v-for="item in pastureList" :key="item.pastureid" :label="item.pasturename" :value="item.pastureid" />
|
|
|
+ <el-option v-for="item in pastureList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
<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" @change="change_date"/>
|
|
|
<el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled" @click="handleBefore" />
|
|
@@ -514,7 +514,7 @@
|
|
|
import echarts from 'echarts'
|
|
|
|
|
|
require('echarts/theme/macarons')
|
|
|
-import { GetDataByName,GetDataByNames, GetReportform, formatNum,processAnalysist } from '@/api/common'
|
|
|
+import { GetDataByName,GetDataByNames, GetReportform, formatNum,processAnalysist,postJson } from '@/api/common'
|
|
|
import Cookies from 'js-cookie'
|
|
|
import { parseTime } from '@/utils/index.js'
|
|
|
export default {
|
|
@@ -570,7 +570,7 @@ export default {
|
|
|
},
|
|
|
cixCategoryParm:{
|
|
|
name: 'getFeedclassList', offset: 0, pagecount: 0,
|
|
|
- parammaps: { 'pastureid': Cookies.get('pastureid') }
|
|
|
+ parammaps: { 'pastureid': parseInt(Cookies.get('pastureId'))}
|
|
|
},
|
|
|
planTypeList: [{ lable: '预混计划', value: '4' }, { lable: '撒料计划', value: '0' }, { lable: '剩料计划', value: '3' }, { lable: '撒料计划-混料', value: '1' }, { lable: '撒料计划-撒料', value: '2' }, { lable: '预称重计划', value: '5' }], // 计划类型
|
|
|
workingConditionList: [{ id: '0', name: '进行中' }, { id: '1', name: '已完成' }], // 工作状态
|
|
@@ -585,7 +585,7 @@ export default {
|
|
|
pagecount: '',
|
|
|
returntype: 'Map',
|
|
|
parammaps: {
|
|
|
- pastureid: Cookies.get('pastureid'),
|
|
|
+ pastureid: parseInt(Cookies.get('pastureId')),
|
|
|
startTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
inputDatetime: [new Date(), new Date()],
|
|
@@ -610,7 +610,7 @@ export default {
|
|
|
pagecount: 1,
|
|
|
returntype: 'Map',
|
|
|
parammaps: {
|
|
|
- pastureid: Cookies.get('pastureid'),
|
|
|
+ pastureid: parseInt(Cookies.get('pastureId')),
|
|
|
id: ''
|
|
|
}
|
|
|
},
|
|
@@ -628,7 +628,7 @@ export default {
|
|
|
pagecount: '',
|
|
|
returntype: 'Map',
|
|
|
parammaps: {
|
|
|
- pastureid: Cookies.get('pastureid'),
|
|
|
+ pastureid: parseInt(Cookies.get('pastureId')),
|
|
|
id: ''
|
|
|
}
|
|
|
},
|
|
@@ -646,7 +646,7 @@ export default {
|
|
|
pagecount: '',
|
|
|
returntype: 'Map',
|
|
|
parammaps: {
|
|
|
- pastureid: Cookies.get('pastureid'),
|
|
|
+ pastureid: parseInt(Cookies.get('pastureId')),
|
|
|
id: ''
|
|
|
}
|
|
|
},
|
|
@@ -663,7 +663,7 @@ export default {
|
|
|
pagecount: '',
|
|
|
returntype: 'Map',
|
|
|
parammaps: {
|
|
|
- pastureid: Cookies.get('pastureid'),
|
|
|
+ pastureid: parseInt(Cookies.get('pastureId')),
|
|
|
id: ''
|
|
|
}
|
|
|
},
|
|
@@ -681,13 +681,11 @@ export default {
|
|
|
|
|
|
TMRList:[],
|
|
|
errorList:[{ value: '有误差', label: '有误差' }, { value: '无误差', label: '无误差' }],
|
|
|
- requestParams: [
|
|
|
- { name: 'getPastureListJT', offset: 0, pagecount: 0, parammaps: { pastureid: Cookies.get('pastureid'), pasturename: '' }}
|
|
|
- ],
|
|
|
- pastureList: [], // 牧场
|
|
|
+
|
|
|
+ pastureList: JSON.parse(sessionStorage.pastureList), //牧场
|
|
|
downTMR: { name: 'getDownloadedplanTmrName', offset: 0, pagecount: 0,
|
|
|
parammaps: {
|
|
|
- pastureid: Cookies.get('pastureid'),
|
|
|
+ pastureid: parseInt(Cookies.get('pastureId')),
|
|
|
startdate: '',
|
|
|
enddate: '',
|
|
|
}
|
|
@@ -696,44 +694,95 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getCixCategoryList()
|
|
|
- this.getList()
|
|
|
- this.getDownLists()
|
|
|
+ this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
- getDownLists() {
|
|
|
- GetDataByNames(this.requestParams).then(response => {
|
|
|
- this.pastureList = response.data.getPastureListJT.list
|
|
|
- this.table.getdataListParm.parammaps.pastureid = response.data.getPastureListJT.list[0].pastureid
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- },
|
|
|
change_date(e){
|
|
|
console.log(e)
|
|
|
this.getDownList()
|
|
|
},
|
|
|
|
|
|
- getDownList() {
|
|
|
- this.downTMR.parammaps.startdate = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.downTMR.parammaps.enddate = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- GetDataByName(this.downTMR).then(response => {
|
|
|
- console.log(response.data.list)
|
|
|
- this.TMRList = response.data.list
|
|
|
+ getDownList() {
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/statistics/mixed_category_tmr_name'
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.table.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.downTMR.name,
|
|
|
+ 'start_time':parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}'),
|
|
|
+ 'end_time':parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ }
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ this.TMRList = response.data.list
|
|
|
})
|
|
|
},
|
|
|
- getCixCategoryList(){
|
|
|
- GetDataByName(this.cixCategoryParm).then(response => {
|
|
|
- if(response.data.list !== null){
|
|
|
- this.cixCategoryList = response.data.list
|
|
|
- }else{
|
|
|
- this.cixCategoryList = []
|
|
|
- }
|
|
|
+ getCixCategoryList(){
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/statistics/mixed_category_tmr_name'
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.table.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.cixCategoryParm.name,
|
|
|
+ 'start_time':parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}'),
|
|
|
+ 'end_time':parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ }
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ this.cixCategoryList = response.data.list
|
|
|
})
|
|
|
},
|
|
|
// TMR设备列表
|
|
|
- getList() {
|
|
|
- this.table.listLoading = true
|
|
|
- processAnalysist(this.table.getdataListParm).then(response => {
|
|
|
- // console.log('TMR设备列表table数据', response.data.list)
|
|
|
+ getList() {
|
|
|
+ this.table.listLoading = true
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/process/analysis' + '?page=' + page + '&page_size=' + page_size
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.table.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.table.getdataListParm.name,
|
|
|
+ 'start_time':this.table.getdataListParm.parammaps.startTime,
|
|
|
+ 'end_time':this.table.getdataListParm.parammaps.stopTime
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.tmr_name){
|
|
|
+ data.tmr_name = this.table.getdataListParm.parammaps.tmrtname
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.error_range){
|
|
|
+ data.error_range = this.table.getdataListParm.parammaps.error_range
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.work_status){
|
|
|
+ data.work_status = this.table.getdataListParm.parammaps.work_status
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.mix_feed_type){
|
|
|
+ data.mix_feed_type = this.table.getdataListParm.parammaps.mix_feed_type
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.plan_type){
|
|
|
+ data.plan_type = this.table.getdataListParm.parammaps.plan_type
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.slwc1){
|
|
|
+ data.slwc1 = this.table.getdataListParm.parammaps.slwc1
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.slwc2){
|
|
|
+ data.slwc2 = this.table.getdataListParm.parammaps.slwc2
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.slzq1){
|
|
|
+ data.slzq1 = this.table.getdataListParm.parammaps.slzq1
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.slzq2){
|
|
|
+ data.slzq2 = this.table.getdataListParm.parammaps.slzq2
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.hlwc1){
|
|
|
+ data.hlwc1 = this.table.getdataListParm.parammaps.hlwc1
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.hlwc2){
|
|
|
+ data.hlwc2 = this.table.getdataListParm.parammaps.hlwc2
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.hlzq1){
|
|
|
+ data.hlzq1 = this.table.getdataListParm.parammaps.hlzq1
|
|
|
+ }
|
|
|
+ if(this.table.getdataListParm.parammaps.hlzq2){
|
|
|
+ data.hlzq2 = this.table.getdataListParm.parammaps.hlzq2
|
|
|
+ }
|
|
|
+ console.log(data,'===999')
|
|
|
+ postJson(url, data).then(response => {
|
|
|
if (response.data.list !== null) {
|
|
|
this.table.list = response.data.list
|
|
|
this.table.total = response.data.total
|
|
@@ -744,9 +793,9 @@ export default {
|
|
|
this.isSpreadingPlanSH = false
|
|
|
this.isSpreadingPlanSS = false
|
|
|
this.table2.getdataListParm.parammaps.id = response.data.list[0].id
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table2.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.table3.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.getList2()
|
|
@@ -761,11 +810,11 @@ export default {
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHLSH'
|
|
|
this.table4.getdataListParm.name = 'getprocessAnalysisSLSH'
|
|
|
this.table2.getdataListParm.parammaps.id = response.data.list[0].id
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table2.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.table3.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.getList2()
|
|
@@ -779,18 +828,18 @@ export default {
|
|
|
this.isSpreadingPlanSH = true
|
|
|
this.isSpreadingPlanSS = false
|
|
|
this.table2.getdataListParm.parammaps.id = response.data.list[0].id
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table2.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.table3.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
|
this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getChart1()
|
|
|
} else if (response.data.list[0].lpplantype == '撒料计划-撒料') {
|
|
|
// 撒料计划-撒料
|
|
@@ -800,18 +849,18 @@ export default {
|
|
|
this.isSpreadingPlanSH = false
|
|
|
this.isSpreadingPlanSS = true
|
|
|
this.table2.getdataListParm.parammaps.id = response.data.list[0].id
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table2.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.table3.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
|
this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getChart1()
|
|
|
} else if (response.data.list[0].lpplantype == '预称重计划') {
|
|
|
// 撒料计划-混料
|
|
@@ -821,18 +870,18 @@ export default {
|
|
|
this.isSpreadingPlanSH = true
|
|
|
this.isSpreadingPlanSS = false
|
|
|
this.table2.getdataListParm.parammaps.id = response.data.list[0].id
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table2.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.table3.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
|
this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getChart1()
|
|
|
} else {
|
|
|
// 撒料
|
|
@@ -842,18 +891,18 @@ export default {
|
|
|
this.isSpreadingPlanSH = false
|
|
|
this.isSpreadingPlanSS = false
|
|
|
this.table2.getdataListParm.parammaps.id = response.data.list[0].id
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.table2.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.table3.getdataListParm.parammaps.fclassid = this.table.getdataListParm.parammaps.fclassid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
|
this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = response.data.list[0].pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getChart1()
|
|
|
}
|
|
|
this.title = response.data.list[0].lpplantype
|
|
@@ -1034,8 +1083,8 @@ export default {
|
|
|
this.isSpreadingPlanSS = false
|
|
|
this.table2.getdataListParm.name = 'getprocessAnalysisStr'
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHL'
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
} else if (row.lpplantype == '剩料计划') {
|
|
@@ -1048,9 +1097,9 @@ export default {
|
|
|
this.table2.getdataListParm.name = 'getprocessAnalysisStrSH'
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHLSH'
|
|
|
this.table4.getdataListParm.name = 'getprocessAnalysisSLSH'
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
@@ -1063,10 +1112,10 @@ export default {
|
|
|
this.table2.getdataListParm.name = 'getprocessAnalysisStr'
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHL'
|
|
|
this.table4.getdataListParm.name = 'getprocessAnalysisSL'
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
@@ -1080,10 +1129,10 @@ export default {
|
|
|
this.table2.getdataListParm.name = 'getprocessAnalysisStr'
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHL'
|
|
|
this.table4.getdataListParm.name = 'getprocessAnalysisSL'
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
@@ -1097,10 +1146,10 @@ export default {
|
|
|
this.table2.getdataListParm.name = 'getprocessAnalysisStr'
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHL'
|
|
|
this.table4.getdataListParm.name = 'getprocessAnalysisSL'
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
@@ -1115,10 +1164,10 @@ export default {
|
|
|
this.table2.getdataListParm.name = 'getprocessAnalysisStr'
|
|
|
this.table3.getdataListParm.name = 'getprocessAnalysisHL'
|
|
|
this.table4.getdataListParm.name = 'getprocessAnalysisSL'
|
|
|
- this.table2.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table3.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.table4.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
- this.chart1.getdataListParm.parammaps.pastureid = row.pastureid
|
|
|
+ this.table2.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table3.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.table4.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
+ this.chart1.getdataListParm.parammaps.pastureid = this.table.getdataListParm.parammaps.pastureid
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
this.getList4()
|
|
@@ -1129,7 +1178,64 @@ export default {
|
|
|
// 过程详情
|
|
|
getList2() {
|
|
|
this.table2.listLoading = false
|
|
|
- GetDataByName(this.table2.getdataListParm).then(response => {
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/process/analysis/mixed_sprinkle_detail' + '?page=' + page + '&page_size=' + page_size
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.table2.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.table2.getdataListParm.name,
|
|
|
+ 'start_time':this.table.getdataListParm.parammaps.startTime,
|
|
|
+ 'end_time':this.table.getdataListParm.parammaps.stopTime
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.pid){
|
|
|
+ data.pid = this.table2.getdataListParm.parammaps.pid
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.fclassid){
|
|
|
+ data.fclass_id = this.table2.getdataListParm.parammaps.fclassid
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.id){
|
|
|
+ data.id = this.table2.getdataListParm.parammaps.id
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.tmr_name){
|
|
|
+ data.tmr_name = this.table2.getdataListParm.parammaps.tmrtname
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.error_range){
|
|
|
+ data.error_range = this.table2.getdataListParm.parammaps.error_range
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.work_status){
|
|
|
+ data.work_status = this.table2.getdataListParm.parammaps.work_status
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.mix_feed_type){
|
|
|
+ data.mix_feed_type = this.table2.getdataListParm.parammaps.mix_feed_type
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.plan_type){
|
|
|
+ data.plan_type = this.table2.getdataListParm.parammaps.plan_type
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.slwc1){
|
|
|
+ data.slwc1 = this.table2.getdataListParm.parammaps.slwc1
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.slwc2){
|
|
|
+ data.slwc2 = this.table2.getdataListParm.parammaps.slwc2
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.slzq1){
|
|
|
+ data.slzq1 = this.table2.getdataListParm.parammaps.slzq1
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.slzq2){
|
|
|
+ data.slzq2 = this.table2.getdataListParm.parammaps.slzq2
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.hlwc1){
|
|
|
+ data.hlwc1 = this.table2.getdataListParm.parammaps.hlwc1
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.hlwc2){
|
|
|
+ data.hlwc2 = this.table2.getdataListParm.parammaps.hlwc2
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.hlzq1){
|
|
|
+ data.hlzq1 = this.table2.getdataListParm.parammaps.hlzq1
|
|
|
+ }
|
|
|
+ if(this.table2.getdataListParm.parammaps.hlzq2){
|
|
|
+ data.hlzq2 = this.table2.getdataListParm.parammaps.hlzq2
|
|
|
+ }
|
|
|
+ postJson(url, data).then(response => {
|
|
|
console.log('过程详情table数据', response.data.list)
|
|
|
if (response.data.list !== null) {
|
|
|
this.table2.list = response.data.list
|
|
@@ -1144,7 +1250,65 @@ export default {
|
|
|
// 混料详情
|
|
|
getList3() {
|
|
|
this.table3.listLoading = false
|
|
|
- GetDataByName(this.table3.getdataListParm).then(response => {
|
|
|
+ // GetDataByName(this.table3.getdataListParm).then(response => {
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/process/analysis/mixed_sprinkle_detail' + '?page=' + page + '&page_size=' + page_size
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.table3.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.table3.getdataListParm.name,
|
|
|
+ 'start_time':this.table.getdataListParm.parammaps.startTime,
|
|
|
+ 'end_time':this.table.getdataListParm.parammaps.stopTime
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.pid){
|
|
|
+ data.pid = this.table3.getdataListParm.parammaps.pid
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.fclassid){
|
|
|
+ data.fclass_id = this.table3.getdataListParm.parammaps.fclassid
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.id){
|
|
|
+ data.id = this.table3.getdataListParm.parammaps.id
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.tmr_name){
|
|
|
+ data.tmr_name = this.table3.getdataListParm.parammaps.tmrtname
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.error_range){
|
|
|
+ data.error_range = this.table3.getdataListParm.parammaps.error_range
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.work_status){
|
|
|
+ data.work_status = this.table3.getdataListParm.parammaps.work_status
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.mix_feed_type){
|
|
|
+ data.mix_feed_type = this.table3.getdataListParm.parammaps.mix_feed_type
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.plan_type){
|
|
|
+ data.plan_type = this.table3.getdataListParm.parammaps.plan_type
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.slwc1){
|
|
|
+ data.slwc1 = this.table3.getdataListParm.parammaps.slwc1
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.slwc2){
|
|
|
+ data.slwc2 = this.table3.getdataListParm.parammaps.slwc2
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.slzq1){
|
|
|
+ data.slzq1 = this.table3.getdataListParm.parammaps.slzq1
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.slzq2){
|
|
|
+ data.slzq2 = this.table3.getdataListParm.parammaps.slzq2
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.hlwc1){
|
|
|
+ data.hlwc1 = this.table3.getdataListParm.parammaps.hlwc1
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.hlwc2){
|
|
|
+ data.hlwc2 = this.table3.getdataListParm.parammaps.hlwc2
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.hlzq1){
|
|
|
+ data.hlzq1 = this.table3.getdataListParm.parammaps.hlzq1
|
|
|
+ }
|
|
|
+ if(this.table3.getdataListParm.parammaps.hlzq2){
|
|
|
+ data.hlzq2 = this.table3.getdataListParm.parammaps.hlzq2
|
|
|
+ }
|
|
|
+ postJson(url, data).then(response => {
|
|
|
console.log('混料详情table数据', response.data.list)
|
|
|
if (response.data.list !== null) {
|
|
|
this.table3.list = response.data.list
|
|
@@ -1176,7 +1340,65 @@ export default {
|
|
|
// 撒料详情
|
|
|
getList4() {
|
|
|
this.table4.listLoading = false
|
|
|
- GetDataByName(this.table4.getdataListParm).then(response => {
|
|
|
+ // GetDataByName(this.table4.getdataListParm).then(response => {
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/process/analysis/mixed_sprinkle_detail' + '?page=' + page + '&page_size=' + page_size
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.table4.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.table4.getdataListParm.name,
|
|
|
+ 'start_time':this.table.getdataListParm.parammaps.startTime,
|
|
|
+ 'end_time':this.table.getdataListParm.parammaps.stopTime
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.pid){
|
|
|
+ data.pid = this.table4.getdataListParm.parammaps.pid
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.fclassid){
|
|
|
+ data.fclass_id = this.table4.getdataListParm.parammaps.fclassid
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.id){
|
|
|
+ data.id = this.table4.getdataListParm.parammaps.id
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.tmr_name){
|
|
|
+ data.tmr_name = this.table4.getdataListParm.parammaps.tmrtname
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.error_range){
|
|
|
+ data.error_range = this.table4.getdataListParm.parammaps.error_range
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.work_status){
|
|
|
+ data.work_status = this.table4.getdataListParm.parammaps.work_status
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.mix_feed_type){
|
|
|
+ data.mix_feed_type = this.table4.getdataListParm.parammaps.mix_feed_type
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.plan_type){
|
|
|
+ data.plan_type = this.table4.getdataListParm.parammaps.plan_type
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.slwc1){
|
|
|
+ data.slwc1 = this.table4.getdataListParm.parammaps.slwc1
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.slwc2){
|
|
|
+ data.slwc2 = this.table4.getdataListParm.parammaps.slwc2
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.slzq1){
|
|
|
+ data.slzq1 = this.table4.getdataListParm.parammaps.slzq1
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.slzq2){
|
|
|
+ data.slzq2 = this.table4.getdataListParm.parammaps.slzq2
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.hlwc1){
|
|
|
+ data.hlwc1 = this.table4.getdataListParm.parammaps.hlwc1
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.hlwc2){
|
|
|
+ data.hlwc2 = this.table4.getdataListParm.parammaps.hlwc2
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.hlzq1){
|
|
|
+ data.hlzq1 = this.table4.getdataListParm.parammaps.hlzq1
|
|
|
+ }
|
|
|
+ if(this.table4.getdataListParm.parammaps.hlzq2){
|
|
|
+ data.hlzq2 = this.table4.getdataListParm.parammaps.hlzq2
|
|
|
+ }
|
|
|
+ postJson(url, data).then(response => {
|
|
|
console.log('撒料详情table数据', response.data.list)
|
|
|
if (response.data.list !== null) {
|
|
|
this.table4.list = response.data.list
|
|
@@ -1236,36 +1458,67 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getChart1() {
|
|
|
- this.chart1.listLoading = true
|
|
|
- GetReportform(this.chart1.getdataListParm).then(response => {
|
|
|
+ this.chart1.listLoading = true
|
|
|
+ let page = 0
|
|
|
+ let page_size = 0
|
|
|
+ let url = '/api/v1/ops/process/analysis/mixed_sprinkle_detail' + '?page=' + page + '&page_size=' + page_size
|
|
|
+ let data = {
|
|
|
+ 'pasture_id':this.chart1.getdataListParm.parammaps.pastureid,
|
|
|
+ 'api_name':this.chart1.getdataListParm.name,
|
|
|
+ 'start_time':this.table.getdataListParm.parammaps.startTime,
|
|
|
+ 'end_time':this.table.getdataListParm.parammaps.stopTime
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.pid){
|
|
|
+ data.pid = this.chart1.getdataListParm.parammaps.pid
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.fclassid){
|
|
|
+ data.fclass_id = this.chart1.getdataListParm.parammaps.fclassid
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.id){
|
|
|
+ data.id = this.chart1.getdataListParm.parammaps.id
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.tmr_name){
|
|
|
+ data.tmr_name = this.chart1.getdataListParm.parammaps.tmrtname
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.error_range){
|
|
|
+ data.error_range = this.chart1.getdataListParm.parammaps.error_range
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.work_status){
|
|
|
+ data.work_status = this.chart1.getdataListParm.parammaps.work_status
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.mix_feed_type){
|
|
|
+ data.mix_feed_type = this.chart1.getdataListParm.parammaps.mix_feed_type
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.plan_type){
|
|
|
+ data.plan_type = this.chart1.getdataListParm.parammaps.plan_type
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.slwc1){
|
|
|
+ data.slwc1 = this.chart1.getdataListParm.parammaps.slwc1
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.slwc2){
|
|
|
+ data.slwc2 = this.chart1.getdataListParm.parammaps.slwc2
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.slzq1){
|
|
|
+ data.slzq1 = this.chart1.getdataListParm.parammaps.slzq1
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.slzq2){
|
|
|
+ data.slzq2 = this.chart1.getdataListParm.parammaps.slzq2
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.hlwc1){
|
|
|
+ data.hlwc1 = this.chart1.getdataListParm.parammaps.hlwc1
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.hlwc2){
|
|
|
+ data.hlwc2 = this.chart1.getdataListParm.parammaps.hlwc2
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.hlzq1){
|
|
|
+ data.hlzq1 = this.chart1.getdataListParm.parammaps.hlzq1
|
|
|
+ }
|
|
|
+ if(this.chart1.getdataListParm.parammaps.hlzq2){
|
|
|
+ data.hlzq2 = this.chart1.getdataListParm.parammaps.hlzq2
|
|
|
+ }
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ // GetReportform(this.chart1.getdataListParm).then(response => {
|
|
|
if (response.data.list !== null) {
|
|
|
- // response.data.list = {
|
|
|
- // // 'data1': ['09:34:32', '09:34:46', '09:34:46', '09:34:50'],
|
|
|
- // 'data2': [
|
|
|
- // ['09:34:32', '1724.11'],
|
|
|
- // ['09:34:46', '1724.12'],
|
|
|
- // ['09:34:46', '-50.13'],
|
|
|
- // ['09:34:50', '-51.14']
|
|
|
- // ],
|
|
|
- // 'data3': [
|
|
|
- // ['09:34:32', '0'],
|
|
|
- // ['09:34:46', '1725.15'],
|
|
|
- // ['09:34:46', '1726.16'],
|
|
|
- // ['09:34:50', '1.17']
|
|
|
- // ],
|
|
|
- // 'data4': [
|
|
|
- // ['09:34:32', '0.18'],
|
|
|
- // ['09:34:46', '1725.19'],
|
|
|
- // ['09:34:46', '1335.20'],
|
|
|
- // ['09:34:50', '1.21']
|
|
|
- // ],
|
|
|
- // 'data5': [
|
|
|
- // ['09:34:32', '0.22', '栏舍', '303东1'],
|
|
|
- // ['09:34:46', '1726.23', '饲料', '国产燕麦2'],
|
|
|
- // ['09:34:46', '1335.24', '栏舍', '303东3'],
|
|
|
- // ['09:34:50', '1.25', '饲料', '国产燕麦4']
|
|
|
- // ]
|
|
|
- // }
|
|
|
this.chart1.list = response.data.data
|
|
|
console.log('实时监控', response.data.list)
|
|
|
this.chart1.chartLine_data = response.data.list
|