|
@@ -17,7 +17,7 @@
|
|
|
<!-- <el-input v-model="table.getdataListParm.parammaps.tname" placeholder="请输入配方名称" style="width: 180px;" class="filter-item" /> -->
|
|
|
<el-button class="successBorder" @click="form_search">查询</el-button>
|
|
|
<el-button v-if="isRoleEdit" class="successBorder" @click="handleDryMatterRegulation">干物质调节</el-button>
|
|
|
- <el-button v-if="isRoleEdit && isSynchronous" class="successBorder" @click="handleSynchronous">软件头数同步</el-button>
|
|
|
+ <el-button v-if="isRoleEdit && isSynchronous" class="successBorder" @click="handleSynchronous">软件羊只数同步</el-button>
|
|
|
<el-button v-if="isRoleEdit && !isproportion" class="successBorder" @click="handle_batchEdit">批量编辑</el-button>
|
|
|
<el-button v-if="isRoleEdit && isproportion" icon="el-icon-folder-checked" class="success" @click="handle_batchEdit_save">保存</el-button>
|
|
|
<el-button v-if="isRoleEdit && isproportion" icon="el-icon-close" class="sortCancel" @click="cancelChangeEdit">取消</el-button>
|
|
@@ -66,12 +66,12 @@
|
|
|
<span>{{ scope.row.pen }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :key="2" label="软件头数" min-width="60px" align="center">
|
|
|
+ <el-table-column :key="2" label="软件羊只数" min-width="60px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.softccount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :key="3" label="实际头数" min-width="80px" align="center">
|
|
|
+ <el-table-column :key="3" label="实际羊只数" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit && !isproportion">{{ scope.row.ccount }}</span>
|
|
|
<el-input v-if="scope.row.Edit || isproportion" v-model="scope.row.ccount" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurCcount(scope.row)" :placeholder="scope.row.placeholder_ccount" @focus="focusData(scope.row)" />
|
|
@@ -83,7 +83,7 @@
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.ratio" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurRatio(scope.row)" :placeholder="scope.row.placeholder_ratio" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :key="5" label="系数头数" min-width="85px" align="center">
|
|
|
+ <el-table-column :key="5" label="系数羊只数" min-width="85px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.ccountratio }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.ccountratio" type="number" style="width:100%;padding:10px 0;" @blur="blurCcountratio(scope.row)" :placeholder="scope.row.placeholder_ccountratio" />
|
|
@@ -312,10 +312,10 @@
|
|
|
</u-table-column> -->
|
|
|
<u-table-column :key="2" label="栏舍名称" prop="barname" min-width="90px" align="center" class-name="small-padding fixed-width" fixed="left" />
|
|
|
<u-table-column :key="3" label="班次" prop="times" min-width="90px" align="center" class-name="small-padding fixed-width" fixed="left" />
|
|
|
- <u-table-column :key="4" label="软件头数" prop="softccount" min-width="70px" align="center" />
|
|
|
- <u-table-column :key="5" label="实际头数" prop="ccount" min-width="70px" align="center" />
|
|
|
+ <u-table-column :key="4" label="软件羊只数" prop="softccount" min-width="70px" align="center" />
|
|
|
+ <u-table-column :key="5" label="实际羊只数" prop="ccount" min-width="70px" align="center" />
|
|
|
<u-table-column :key="6" label="系数(%)" prop="ratio" min-width="70px" align="center" />
|
|
|
- <u-table-column :key="7" label="系数头数" prop="ccountratio" min-width="70px" align="center" />
|
|
|
+ <u-table-column :key="7" label="系数羊只数" prop="ccountratio" min-width="70px" align="center" />
|
|
|
<u-table-column :key="8" label="配方模板" prop="ptname" min-width="70px" align="center" />
|
|
|
<u-table-column v-if="table.isPtsfname" :key="9" label="补料配方" prop="ptsname" min-width="70px" align="center" />
|
|
|
<u-table-column :key="10" label="班次比例" prop="tratio" min-width="70px" align="center" />
|
|
@@ -639,12 +639,12 @@
|
|
|
<span>{{ scope.row.sumcowcount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="单产(kg/头)" min-width="130px" align="center">
|
|
|
+ <el-table-column label="单产(kg/羊只)" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.product }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="干物质采食量(kg/头)" min-width="130px" align="center">
|
|
|
+ <el-table-column label="干物质采食量(kg/羊只)" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.cowneed }}</span>
|
|
|
</template>
|
|
@@ -725,12 +725,12 @@
|
|
|
<span>{{ scope.row.sumcowcount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="单产(kg/头)" min-width="130px" align="center">
|
|
|
+ <el-table-column label="单产(kg/羊只)" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.product }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="干物质采食量(kg/头)" min-width="130px" align="center">
|
|
|
+ <el-table-column label="干物质采食量(kg/羊只)" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.cowneed }}</span>
|
|
|
</template>
|
|
@@ -1122,7 +1122,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- // 设置请求头
|
|
|
+ // 设置请求羊只
|
|
|
headers() {
|
|
|
return {
|
|
|
token: getToken()
|
|
@@ -1131,16 +1131,16 @@ export default {
|
|
|
uploadData() {
|
|
|
return {
|
|
|
name: 'checkbarname,checkftsw,checkftbl',
|
|
|
- importParams: '栏舍名称,实际头数,系数(%),配方模板,补料配方,第一班比例(%),第二班比例(%),第三班比例(%)',
|
|
|
+ importParams: '栏舍名称,实际羊只数,系数(%),配方模板,补料配方,第一班比例(%),第二班比例(%),第三班比例(%)',
|
|
|
sheetname: 'Sheet1',
|
|
|
// 登录牧场
|
|
|
pastureid: Cookies.get('pastureid'),
|
|
|
// 日期参数
|
|
|
dateParams: '',
|
|
|
// 必填参数
|
|
|
- requiredParams: '栏舍名称,实际头数,系数(%),配方模板,',
|
|
|
+ requiredParams: '栏舍名称,实际羊只数,系数(%),配方模板,',
|
|
|
// 为数值的参数
|
|
|
- numParams: '实际头数,系数(%),第一班比例(%),第二班比例(%),第三班比例(%),,第四班比例(%)'
|
|
|
+ numParams: '实际羊只数,系数(%),第一班比例(%),第二班比例(%),第三班比例(%),,第四班比例(%)'
|
|
|
}
|
|
|
},
|
|
|
// 设置上传地址
|
|
@@ -1569,15 +1569,15 @@ export default {
|
|
|
row.dryweight = this.recipeTemplateList.find(obj => obj.id == item).dryweight// SfweightLock
|
|
|
// 补料重量supplyweight
|
|
|
// 配方重量ftweight
|
|
|
- // 系数头数ccountratio
|
|
|
+ // 系数羊只数ccountratio
|
|
|
// 投喂量feedweight
|
|
|
- // 实际牛头数ccount
|
|
|
+ // 实际牛羊只数ccount
|
|
|
// 投喂量 = 配方重量 + 补料重量
|
|
|
- // 配方重量 = Sfweight * 系数头数 + SfweightLock * 实际牛头数ccount
|
|
|
+ // 配方重量 = Sfweight * 系数羊只数 + SfweightLock * 实际牛羊只数ccount
|
|
|
console.log(row.Sfweight, 'row.Sfweight')
|
|
|
- console.log(row.ccountratio, '系数头数')
|
|
|
+ console.log(row.ccountratio, '系数羊只数')
|
|
|
console.log(row.SfweightLock, 'SfweightLock')
|
|
|
- console.log(row.ccount, '实际牛头数')
|
|
|
+ console.log(row.ccount, '实际牛羊只数')
|
|
|
if (row.Sfweight !== '' && row.ccount !== '') {
|
|
|
this.$set(row, 'ftweight', formatNum(parseFloat(row.Sfweight) * parseFloat(row.ccountratio) + parseFloat(row.SfweightLock) * parseFloat(row.ccount), parseInt(Cookies.get('decimal'))))
|
|
|
} else {
|
|
@@ -1640,9 +1640,9 @@ export default {
|
|
|
}
|
|
|
// 补料重量supplyweight
|
|
|
// 配方重量ftweight
|
|
|
- // 系数头数ccountratio
|
|
|
+ // 系数羊只数ccountratio
|
|
|
// 投喂量feedweight
|
|
|
- // 实际牛头数ccount
|
|
|
+ // 实际牛羊只数ccount
|
|
|
// 投喂量 = 配方重量 + 补料重量
|
|
|
row.myccname = this.feedingFormulaList.find(obj => obj.id == item).ccname
|
|
|
if (row.bigcowclass !== row.myccname) {
|
|
@@ -1658,12 +1658,12 @@ export default {
|
|
|
row.BLweight = 0
|
|
|
row.BLSfweightLock = 0
|
|
|
}
|
|
|
- // 配方重量 = 系数头数 * Sfweight
|
|
|
+ // 配方重量 = 系数羊只数 * Sfweight
|
|
|
// if (row.ccountratio !== '' && row.ftweight !== '') {
|
|
|
// row.ftweight = parseFloat(row.Sfweight) * parseFloat(row.ccountratio)
|
|
|
// }
|
|
|
|
|
|
- // 补料重量 = 系数头数 * BLweight
|
|
|
+ // 补料重量 = 系数羊只数 * BLweight
|
|
|
// console.log(row.ccountratio)
|
|
|
// console.log(row.ccount)
|
|
|
// console.log(row.BLweight)
|
|
@@ -1700,11 +1700,11 @@ export default {
|
|
|
this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4) + parseFloat(row.w5) + parseFloat(row.w6))
|
|
|
row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
|
|
|
},
|
|
|
- // 实际牛头数失去焦点计算
|
|
|
- // ccount实际牛头数
|
|
|
+ // 实际牛羊只数失去焦点计算
|
|
|
+ // ccount实际牛羊只数
|
|
|
// ratio系数
|
|
|
- // ccountratio系数牛头数
|
|
|
- blurCcount(row) { // 实际牛头数
|
|
|
+ // ccountratio系数牛羊只数
|
|
|
+ blurCcount(row) { // 实际牛羊只数
|
|
|
if (row.ftid !== '-1' && row.ftid !== '') {
|
|
|
row.Sfweight = this.recipeTemplateList.find(obj => obj.id == row.ftid).Sfweight
|
|
|
row.SfweightLock = this.recipeTemplateList.find(obj => obj.id == row.ftid).SfweightLock
|
|
@@ -1717,9 +1717,9 @@ export default {
|
|
|
if (row.w6 == '' || row.w6 == undefined || isNaN(row.w6)) { row.w6 = 0 }
|
|
|
|
|
|
// 系数不变
|
|
|
- // 系数头数=实际牛头数*系数
|
|
|
+ // 系数羊只数=实际牛羊只数*系数
|
|
|
row.ccountratio = row.ccount * row.ratio / 100
|
|
|
- // 配方重量=实际牛头数*系数*配方模板取Sfweight
|
|
|
+ // 配方重量=实际牛羊只数*系数*配方模板取Sfweight
|
|
|
row.ftweight = (row.ccount * row.ratio / 100 * row.Sfweight).toFixed(this.decimal)
|
|
|
this.public(row)
|
|
|
this.placeholder(row)
|
|
@@ -1735,10 +1735,10 @@ export default {
|
|
|
if (row.w4 == '' || row.w4 == undefined || isNaN(row.w4)) { row.w4 = 0 }
|
|
|
if (row.w5 == '' || row.w5 == undefined || isNaN(row.w5)) { row.w5 = 0 }
|
|
|
if (row.w6 == '' || row.w6 == undefined || isNaN(row.w6)) { row.w6 = 0 }
|
|
|
- // 配方重量=实际牛头数*系数*配方模板取Sfweight
|
|
|
+ // 配方重量=实际牛羊只数*系数*配方模板取Sfweight
|
|
|
row.ftweight = (row.ccount * row.ratio / 100 * row.Sfweight).toFixed(this.decimal)
|
|
|
- // 实际牛头数不变
|
|
|
- // 系数头数=实际牛头数*系数
|
|
|
+ // 实际牛羊只数不变
|
|
|
+ // 系数羊只数=实际牛羊只数*系数
|
|
|
row.ccountratio = (parseFloat(row.ccount)*(parseFloat(row.ratio) / 100)).toFixed(this.decimal)
|
|
|
this.public(row)
|
|
|
this.placeholder(row)
|
|
@@ -1754,10 +1754,10 @@ export default {
|
|
|
if (row.w4 == '' || row.w4 == undefined || isNaN(row.w4)) { row.w4 = 0 }
|
|
|
if (row.w5 == '' || row.w5 == undefined || isNaN(row.w5)) { row.w5 = 0 }
|
|
|
if (row.w6 == '' || row.w6 == undefined || isNaN(row.w6)) { row.w6 = 0 }
|
|
|
- // 实际牛头数不变
|
|
|
- // 系数=系数头数/实际牛头数*100
|
|
|
+ // 实际牛羊只数不变
|
|
|
+ // 系数=系数羊只数/实际牛羊只数*100
|
|
|
row.ratio = (parseFloat(row.ccountratio) / parseFloat(row.ccount) * 100).toFixed(this.decimal)
|
|
|
- // 配方重量=实际牛头数*系数*配方模板取Sfweight
|
|
|
+ // 配方重量=实际牛羊只数*系数*配方模板取Sfweight
|
|
|
row.ftweight = (row.ccount * row.ratio / 100 * row.Sfweight).toFixed(this.decimal)
|
|
|
this.public(row)
|
|
|
this.placeholder(row)
|
|
@@ -1899,7 +1899,7 @@ export default {
|
|
|
if (row.ftid !== '-1' && row.ftid !== '') {
|
|
|
row.Sfweight = this.recipeTemplateList.find(obj => obj.id == row.ftid).Sfweight
|
|
|
}
|
|
|
- // 配方重量=实际牛头数*系数*配方模板取Sfweight
|
|
|
+ // 配方重量=实际牛羊只数*系数*配方模板取Sfweight
|
|
|
row.ftweight = (parseFloat(row.ccount) * parseFloat(row.ratio) / 100 * parseFloat(row.Sfweight)).toFixed(this.decimal)
|
|
|
console.log(parseFloat(row.ccount),'======ccount')
|
|
|
console.log(parseFloat(row.ftweight),'======ftweight')
|
|
@@ -2009,7 +2009,7 @@ export default {
|
|
|
this.$set(row, 'placeholder_ccountratio', this.oldRowList.ccountratio)
|
|
|
},
|
|
|
blurWeight(row,item) {
|
|
|
- // 配方重量=实际牛头数*系数*配方模板取Sfweight
|
|
|
+ // 配方重量=实际牛羊只数*系数*配方模板取Sfweight
|
|
|
if (row.ftid !== '-1' && row.ftid !== '') {
|
|
|
row.Sfweight = this.recipeTemplateList.find(obj => obj.id == row.ftid).Sfweight
|
|
|
}
|
|
@@ -2321,20 +2321,20 @@ export default {
|
|
|
obj.data.push({'old':this.oldRowList.bw6,'new':row.bw6,times:6,'ptid':row.ftid,'ptsid':row.ptsfid})
|
|
|
}
|
|
|
if (this.table.temp.ccount == '' && this.table.temp.ratio == '' && this.table.temp.ccountratio == '' && this.table.temp.ftid == '') {
|
|
|
- this.$message({ type: 'error', message: '实际头数/系数/系数头数/配方模版不能为空', duration: 2000 })
|
|
|
+ this.$message({ type: 'error', message: '实际羊只数/系数/系数羊只数/配方模版不能为空', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
if (this.table.temp.ratio == '' && this.table.temp.ccountratio == '' && this.table.temp.ftid == '') {
|
|
|
- this.$message({ type: 'error', message: '系数/系数头数/配方模版不能为空', duration: 2000 })
|
|
|
+ this.$message({ type: 'error', message: '系数/系数羊只数/配方模版不能为空', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
if (this.table.temp.ccountratio == '' && this.table.temp.ftid == '') {
|
|
|
- this.$message({ type: 'error', message: '系数头数/配方模版不能为空', duration: 2000 })
|
|
|
+ this.$message({ type: 'error', message: '系数羊只数/配方模版不能为空', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
- console.log(this.table.temp.ccount, '实际头数不能为空')
|
|
|
+ console.log(this.table.temp.ccount, '实际羊只数不能为空')
|
|
|
if (this.table.temp.ccount === '') {
|
|
|
- this.$message({ type: 'error', message: '实际头数不能为空', duration: 2000 })
|
|
|
+ this.$message({ type: 'error', message: '实际羊只数不能为空', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
if (this.table.temp.ratio === '') {
|
|
@@ -2342,7 +2342,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
if (this.table.temp.ccountratio === '') {
|
|
|
- this.$message({ type: 'error', message: '系数头数不能为空', duration: 2000 })
|
|
|
+ this.$message({ type: 'error', message: '系数羊只数不能为空', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
if (this.table.temp.ftid == '') {
|
|
@@ -2353,7 +2353,7 @@ export default {
|
|
|
if (!positiveInteger.test(parseFloat(this.table.temp.ccount))) {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
- message: '实际头数请输入正整数',
|
|
|
+ message: '实际羊只数请输入正整数',
|
|
|
duration: 2000
|
|
|
})
|
|
|
return false
|
|
@@ -2711,11 +2711,11 @@ export default {
|
|
|
this.$message({ type: 'error', message: '开始日期结束日期不能为空', duration: 2000 })
|
|
|
return false
|
|
|
} else {
|
|
|
- // 牛头数
|
|
|
+ // 牛羊只数
|
|
|
const positiveInteger = /^[1-9]\d*$/
|
|
|
if (this.nutritional.tab1.temp.cowsum !== '') {
|
|
|
if (!positiveInteger.test(parseFloat(this.nutritional.tab1.temp.cowsum))) {
|
|
|
- this.$message({ type: 'error', message: '头数请输入正整数', duration: 2000 })
|
|
|
+ this.$message({ type: 'error', message: '羊只数请输入正整数', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
@@ -3185,15 +3185,15 @@ export default {
|
|
|
var downloadList = [
|
|
|
{ 'obj1': '1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;' },
|
|
|
{ 'obj1': '2、底部工作表名称不可更改,默认为:Sheet1;' },
|
|
|
- { 'obj1': '3、栏舍名称,实际头数,系数(%),系数头数,配方模板,补料配方字体为必填;' },
|
|
|
+ { 'obj1': '3、栏舍名称,实际羊只数,系数(%),系数羊只数,配方模板,补料配方字体为必填;' },
|
|
|
{ 'obj1': '4、第一列栏舍名称默认为系统中栏舍,不可修改;' },
|
|
|
- { 'obj1': '5、实际头数为正整数,系数为正数,至多保留俩位小数;' },
|
|
|
+ { 'obj1': '5、实际羊只数为正整数,系数为正数,至多保留俩位小数;' },
|
|
|
{ 'obj1': '6、配方模板名称必须与系统中配方计划—配方模板中的饲喂配方匹配;若补料配方开启,需与配方模板中的补料配方匹配;' },
|
|
|
{ 'obj1': '7、数据最多可导入200条,超过200条请分多个文件导入。' }
|
|
|
]
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '第四班比例(%)','第五班比例(%)','第六班比例(%)'],
|
|
|
+ tHeader: ['栏舍名称', '实际羊只数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '第四班比例(%)','第五班比例(%)','第六班比例(%)'],
|
|
|
filterVal: ['barname', '', '', '', '', '', '', '', ''],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3262,7 +3262,7 @@ export default {
|
|
|
if (this.table.isRW1 == true && this.table.isRW2 == false && this.table.isRW3 == false && this.table.isRW4 == false && this.table.isRW5 == false && this.table.isRW6 == false) {
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
+ tHeader: ['栏舍名称', '软件羊只数', '实际羊只数', '系数(%)', '系数羊只数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3271,7 +3271,7 @@ export default {
|
|
|
} else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == false && this.table.isRW4 == false && this.table.isRW5 == false && this.table.isRW6 == false) {
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
+ tHeader: ['栏舍名称', '软件羊只数', '实际羊只数', '系数(%)', '系数羊只数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3280,7 +3280,7 @@ export default {
|
|
|
} else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == false && this.table.isRW5 == false && this.table.isRW6 == false) {
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
+ tHeader: ['栏舍名称', '软件羊只数', '实际羊只数', '系数(%)', '系数羊只数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3289,7 +3289,7 @@ export default {
|
|
|
} else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == true && this.table.isRW5 == false && this.table.isRW6 == false) {
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
+ tHeader: ['栏舍名称', '软件羊只数', '实际羊只数', '系数(%)', '系数羊只数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'r4', 'w4', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3298,7 +3298,7 @@ export default {
|
|
|
}else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == true && this.table.isRW5 == true && this.table.isRW6 == false) {
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
+ tHeader: ['栏舍名称', '软件羊只数', '实际羊只数', '系数(%)', '系数羊只数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'r4', 'w4','r5', 'w5', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3307,7 +3307,7 @@ export default {
|
|
|
}else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == true && this.table.isRW5 == true && this.table.isRW6 == true) {
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量','第六班比例(%)', '第六班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
+ tHeader: ['栏舍名称', '软件羊只数', '实际羊只数', '系数(%)', '系数羊只数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量','第六班比例(%)', '第六班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
|
|
|
filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'r4', 'w4','r5', 'w5','r6', 'w6', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
@@ -3335,10 +3335,10 @@ export default {
|
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
|
const list1 = res.data.result
|
|
|
const tHeader = [
|
|
|
- '栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '错误信息'
|
|
|
+ '栏舍名称', '实际羊只数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '错误信息'
|
|
|
]
|
|
|
const filterVal = [
|
|
|
- '栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', 'error_msg'
|
|
|
+ '栏舍名称', '实际羊只数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', 'error_msg'
|
|
|
]
|
|
|
const data1 = this.formatJson(filterVal, list1)
|
|
|
excel.export_json_to_excel({ header: tHeader, data: data1, filename: '栏舍配方导入报错信息', autoWidth: true, bookType: 'xlsx' })
|
|
@@ -3367,7 +3367,7 @@ export default {
|
|
|
this.$refs.mychild.restTemp()
|
|
|
},
|
|
|
handleSynchronous(){
|
|
|
- MessageBox.confirm('是否进行软件头数同步?', {
|
|
|
+ MessageBox.confirm('是否进行软件羊只数同步?', {
|
|
|
confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
|
|
|
}).then(() => {
|
|
|
const url = 'authdata/ud/feedp/sync'
|
|
@@ -3378,7 +3378,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}).catch(() => {
|
|
|
- this.$message({ type: 'info', message: '已取消软件头数同步' })
|
|
|
+ this.$message({ type: 'info', message: '已取消软件羊只数同步' })
|
|
|
})
|
|
|
},
|
|
|
handle_batchEdit(){
|