|
@@ -92,7 +92,13 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.operatetime }}</span>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="是否剩料" min-width="100px" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-switch v-model="scope.row.excess" disabled active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<el-table-column label="操作" align="center" width="80" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="{row}">
|
|
|
<el-button v-if="isRoleEdit" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate(row)" />
|
|
@@ -349,7 +355,7 @@ export default {
|
|
|
uploadData() {
|
|
|
return {
|
|
|
name: 'checkdryfresh,checkbarname,checktimes,insertFtdryUpload',
|
|
|
- importParams: '栏舍名称,班次,鲜样重量(g),烘干重量(g),操作人,操作日期',
|
|
|
+ importParams: '栏舍名称,班次,鲜样重量(g),烘干重量(g),操作人,操作日期,是否剩料(是/否)',
|
|
|
sheetname: 'Sheet1',
|
|
|
// 登录牧场
|
|
|
pastureid: Cookies.get('pastureid'),
|
|
@@ -834,8 +840,8 @@ export default {
|
|
|
}
|
|
|
var excelDatas = [
|
|
|
{
|
|
|
- tHeader: ['栏舍名称', '班次', '鲜样重量(g)', '烘干重量(g)', '理论干物质', '实际干物质', '操作人', '操作日期'],
|
|
|
- filterVal: ['barname', 'timesstr', 'freshweight', 'dryweight', 'thoweight', 'actweight', 'emp', 'operatetime'],
|
|
|
+ tHeader: ['栏舍名称', '班次', '鲜样重量(g)', '烘干重量(g)', '理论干物质', '实际干物质', '操作人', '操作日期','是否剩料'],
|
|
|
+ filterVal: ['barname', 'timesstr', 'freshweight', 'dryweight', 'thoweight', 'actweight', 'emp', 'operatetime','excess'],
|
|
|
tableDatas: this.download.list,
|
|
|
sheetName: 'Sheet1'
|
|
|
}
|