|
@@ -4990,7 +4990,7 @@ export default {
|
|
|
]
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '实际牛头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '第四班比例(%)'],
|
|
|
+ tHeader: ['栏舍名称', '实际牛头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '第四班比例(%)','第五班比例(%)','第六班比例(%)'],
|
|
|
filterVal: ['barname', '', '', '', '', '', '', '', ''],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -5039,6 +5039,14 @@ export default {
|
|
|
response.data.list[i].r4 = 0
|
|
|
response.data.list[i].w4 = 0
|
|
|
}
|
|
|
+ if (response.data.list[i].r5 == '' || response.data.list[i].r5 == undefined) {
|
|
|
+ response.data.list[i].r5 = 0
|
|
|
+ response.data.list[i].w5 = 0
|
|
|
+ }
|
|
|
+ if (response.data.list[i].r6 == '' || response.data.list[i].r6 == undefined) {
|
|
|
+ response.data.list[i].r6 = 0
|
|
|
+ response.data.list[i].w6 = 0
|
|
|
+ }
|
|
|
this.$set(response.data.list[i], 'sumr', parseFloat(response.data.list[i].r1) + parseFloat(response.data.list[i].r2) + parseFloat(response.data.list[i].r3) + parseFloat(response.data.list[i].r4))
|
|
|
response.data.list[i].sumr = formatNum(response.data.list[i].sumr, parseInt(Cookies.get('decimalr')))
|
|
|
this.$set(response.data.list[i], 'dailyWeight', parseFloat(response.data.list[i].w1) + parseFloat(response.data.list[i].w2) + parseFloat(response.data.list[i].w3) + parseFloat(response.data.list[i].w4))
|