|
@@ -699,7 +699,7 @@
|
|
|
<u-table-column sortable label="TMR名称" min-width="70px" align="center" prop="TMR名称" />
|
|
|
<u-table-column sortable label="车次" min-width="50px" align="center" prop="车次" />
|
|
|
<u-table-column sortable label="班次" min-width="50px" align="center" prop="班次" />
|
|
|
- <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
|
|
|
+ <!-- <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
|
|
|
<template slot-scope="{row}">
|
|
|
<a @click="clickRecipeName2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.配方名称 }}</a>
|
|
|
</template>
|
|
@@ -708,7 +708,9 @@
|
|
|
<template slot-scope="{row}">
|
|
|
<a @click="clickFeed2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.饲料 }}</a>
|
|
|
</template>
|
|
|
- </u-table-column>
|
|
|
+ </u-table-column> -->
|
|
|
+ <u-table-column sortable label="配方名称" min-width="55px" align="center" prop="配方名称" />
|
|
|
+ <u-table-column sortable label="饲料" min-width="55px" align="center" prop="饲料" />
|
|
|
<u-table-column sortable label="理论重量" min-width="55px" align="center" prop="理论重量" />
|
|
|
<u-table-column sortable label="实际重量" min-width="55px" align="center" prop="实际重量" />
|
|
|
<u-table-column sortable label="误差值" min-width="45px" align="center" prop="误差值" />
|
|
@@ -784,16 +786,8 @@
|
|
|
<u-table-column sortable label="TMR名称" min-width="70px" align="center" prop="TMR名称" />
|
|
|
<u-table-column sortable label="车次" min-width="45px" align="center" prop="车次" />
|
|
|
<u-table-column sortable label="班次" min-width="45px" align="center" prop="班次" />
|
|
|
- <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <a @click="clickRecipeName3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.配方名称 }}</a>
|
|
|
- </template>
|
|
|
- </u-table-column>
|
|
|
- <u-table-column sortable label="栏舍" min-width="70px" align="center" prop="栏舍">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <a @click="clickFence3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.栏舍 }}</a>
|
|
|
- </template>
|
|
|
- </u-table-column>
|
|
|
+ <u-table-column sortable label="配方名称" min-width="45px" align="center" prop="配方名称" />
|
|
|
+ <u-table-column sortable label="栏舍" min-width="45px" align="center" prop="栏舍" />
|
|
|
<u-table-column sortable label="理论重量" min-width="55px" align="center" prop="理论重量" />
|
|
|
<u-table-column sortable label="实际重量" min-width="55px" align="center" prop="实际重量" />
|
|
|
<u-table-column sortable label="误差值" min-width="45px" align="center" prop="误差值" />
|
|
@@ -821,7 +815,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 查看 -->
|
|
|
- <See :show.sync="isShowDialog" :row-pid="rowPid" :start-time="startTime" :stop-time="stopTime" :optdevice="optdevice" :title-fname="titlefname" :method-name="methodName" :error="error" />
|
|
|
+ <See :show.sync="isShowDialog" :row-pid="rowPid" :start-time="startTime" :stop-time="stopTime" :optdevice="optdevice" :title-fname="titlefname" :method-name="methodName" :method-pastureid="methodPastureid" :error="error" />
|
|
|
|
|
|
<!-- 配方名称弹窗 -->
|
|
|
<el-dialog :title="textMap[recipeNameTemp2.dialogStatus]" :visible.sync="recipeNameTemp2.dialogFormVisible" :close-on-click-modal="false" width="90%">
|
|
@@ -1722,6 +1716,7 @@ export default {
|
|
|
},
|
|
|
titlefname: '',
|
|
|
methodName:'',
|
|
|
+ methodPastureid:'',
|
|
|
rowPid: '',
|
|
|
optdevice:'',
|
|
|
startTime:'',
|
|
@@ -4100,7 +4095,7 @@ export default {
|
|
|
data.status = this.tab.chart7.getdataListParm.parammaps.status
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
- if (response.data !== null && response.data.list !== null && response.data.data !== null) {
|
|
|
+ if (response.data !== null && response.data.list !== null && response.data.data !== null && response.data.data.length>0) {
|
|
|
for (let i = 0; i < response.data.data.length; i++) {
|
|
|
// 撒料时间
|
|
|
var b = []
|
|
@@ -4697,34 +4692,42 @@ export default {
|
|
|
this.methodName = 'getDownloadedplanByJsyHL'
|
|
|
this.optdevice = row.驾驶员
|
|
|
this.titlefname = '准确性详情——驾驶员:' + row.驾驶员
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
}else if (this.tab.radio == 1) {
|
|
|
this.methodName = 'getDownloadedplanByTemHL'
|
|
|
this.optdevice = row.配方名称
|
|
|
this.titlefname = '准确性详情——配方名称:' + row.配方名称
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
} else if (this.tab.radio == 2) {
|
|
|
this.methodName = 'getDownloadedplanByBarHL'
|
|
|
this.optdevice = row.栏舍名称
|
|
|
this.titlefname = '准确性详情——栏舍名称:' + row.栏舍名称
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
} else if (this.tab.radio == 3) {
|
|
|
this.methodName = 'getDownloadedplanBySCHL'
|
|
|
this.optdevice = row.牲畜类别
|
|
|
this.titlefname = '准确性详情——牲畜类别:' + row.牲畜类别
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
} else if (this.tab.radio == 4) {
|
|
|
this.methodName = 'getDownloadedplanByTrainsHL'
|
|
|
this.optdevice = row.车次
|
|
|
this.titlefname = '准确性详情——车次:' + row.车次
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
} else if (this.tab.radio == 5) {
|
|
|
this.methodName = 'getDownloadedplanByTmrHL'
|
|
|
this.optdevice = row.TMR名称
|
|
|
this.titlefname = '准确性详情——TMR名称:' + row.TMR名称
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
} else if (this.tab.radio == 6) {
|
|
|
this.methodName = 'getDownloadedplanByFeedHL'
|
|
|
this.optdevice = row.fname
|
|
|
this.titlefname = '准确性详情——饲料:' + row.fname
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
} else if (this.tab.radio == 7) {
|
|
|
this.methodName = 'getDownloadedplanByWflHL'
|
|
|
this.optdevice = row.fname
|
|
|
this.titlefname = '准确性详情'
|
|
|
+ this.methodPastureid = this.tab.table.getdataListParm.parammaps.pastureId
|
|
|
}
|
|
|
}else{
|
|
|
// 撒料
|
|
@@ -4773,7 +4776,7 @@ export default {
|
|
|
data.start_time = this.tab.table.getdataListParm.parammaps.startTime
|
|
|
data.end_time = this.tab.table.getdataListParm.parammaps.stopTime
|
|
|
postJson(url,data).then(response => {
|
|
|
- if(response.data.list !== null){
|
|
|
+ if(response.data !== null && response.data.list !== null){
|
|
|
this.tab.TMRNameList = response.data.list
|
|
|
}else{
|
|
|
this.tab.TMRNameList = []
|
|
@@ -4788,6 +4791,7 @@ export default {
|
|
|
data.start_time = this.tab2.table.getdataListParm.parammaps.startTime
|
|
|
data.end_time = this.tab2.table.getdataListParm.parammaps.stopTime
|
|
|
postJson(url,data).then(response => {
|
|
|
+ this.tab2.table.listLoading = false
|
|
|
if(response.data !== null){
|
|
|
this.tab2.TMRNameList = response.data.list
|
|
|
}else{
|
|
@@ -4803,6 +4807,7 @@ export default {
|
|
|
data.start_time = this.tab3.table.getdataListParm.parammaps.startTime
|
|
|
data.end_time = this.tab3.table.getdataListParm.parammaps.stopTime
|
|
|
postJson(url,data).then(response => {
|
|
|
+ this.tab3.table.listLoading = false
|
|
|
if(response.data.list !== null){
|
|
|
this.tab3.TMRNameList = response.data.list
|
|
|
}else{
|
|
@@ -4907,7 +4912,7 @@ export default {
|
|
|
parammaps: this.feedTemp.getdataListParm.parammaps
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
- if (response.data.list !== null && response.data.list !== '') {
|
|
|
+ if (response.data.list !== null && response.data.list !== '' && response.data.list.length > 0) {
|
|
|
for (let i = 0; i < response.data.list.length; i++) {
|
|
|
if (response.data.list[i].arrList == null) {
|
|
|
this.$set(response.data.list[i], 'arrList', [])
|
|
@@ -4966,7 +4971,7 @@ export default {
|
|
|
parammaps:this.recipeNameTemp3.getdataListParm.parammaps
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
- if (response.data.list !== null && response.data.list !=='') {
|
|
|
+ if (response.data.list !== null && response.data.list !=='' && response.data.list.length > 0) {
|
|
|
for (let i = 0; i < response.data.list.length; i++) {
|
|
|
if (response.data.list[i].arrList == null) {
|
|
|
this.$set(response.data.list[i], 'arrList', [])
|
|
@@ -5025,7 +5030,7 @@ export default {
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
this.fenceTemp.tab1.listLoading = false
|
|
|
- if (response.data !== null && response.data !== '') {
|
|
|
+ if (response.data !== null && response.data !== '' && response.data.length>0) {
|
|
|
for (let i = 0; i < response.data.length; i++) {
|
|
|
if (response.data[i].ptid == undefined || response.data[i].ptname == '') {
|
|
|
this.$set(response.data[i], 'ptid', '')
|