|
@@ -4,19 +4,19 @@
|
|
|
<!-- 配方模板表 -->
|
|
|
<div ref="template" class="template">
|
|
|
<div class="recipeTemplate">
|
|
|
- <p>配方模板表</p>
|
|
|
+ <p>{{$t('formulationEvaluation.pfmbb')}}</p>
|
|
|
</div>
|
|
|
<div class="search">
|
|
|
<el-select v-model="table.getdataListParm.parammaps.ccname" filterable :placeholder="$t('feedingEfficiency.cxlb')" class="filter-item" clearable>
|
|
|
<el-option v-for="item in livestockTypeList" :key="item.value" :label="item.label" :value="item.label" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.fttype" filterable placeholder="配方类型" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.fttype" filterable :placeholder="$t('formulationEvaluation.pflx')" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.label" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.source" filterable placeholder="来源" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.source" filterable :placeholder="$t('formulationEvaluation.ly')" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in sourceList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.enable" filterable placeholder="是否启用" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.enable" filterable :placeholder="$t('formulationEvaluation.sfqy')" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in enableList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
<div ref="selectInput" class="filter-item selectInput">
|
|
@@ -24,14 +24,14 @@
|
|
|
<i v-if="arrowDown" icon="el-icon-arrow-down" class="el-icon-arrow-down" />
|
|
|
<i v-if="arrowUp" icon="el-icon-arrow-up" class="el-icon-arrow-up" />
|
|
|
<ul v-if="arrowUp" class="selectUl">
|
|
|
- <li><a>配方名称</a><el-input v-model="table.getdataListParm.parammaps.tname" clearable style="width: 245px;" /></li>
|
|
|
- <li><a>备注</a><el-input v-model="table.getdataListParm.parammaps.remark" clearable style="width: 245px;" /></li>
|
|
|
+ <li><a>{{$t('formulationEvaluation.pfmc')}}</a><el-input v-model="table.getdataListParm.parammaps.tname" clearable style="width: 245px;" /></li>
|
|
|
+ <li><a>{{$t('formulationEvaluation.remark')}}</a><el-input v-model="table.getdataListParm.parammaps.remark" clearable style="width: 245px;" /></li>
|
|
|
<li />
|
|
|
- <!-- <li><a>来源</a><el-input v-model="table.getdataListParm.parammaps.source" clearable style="width: 245px;" /></li> -->
|
|
|
+ <!-- <li><a>{{$t('formulationEvaluation.ly')}}</a><el-input v-model="table.getdataListParm.parammaps.source" clearable style="width: 245px;" /></li> -->
|
|
|
<li>
|
|
|
<div style="float: right;">
|
|
|
- <el-button class="downminCancel" @click="arrowUp=false;arrowDown=true;">取消</el-button>
|
|
|
- <el-button class="miniPrimary" @click="form_search">搜索</el-button>
|
|
|
+ <el-button class="downminCancel" @click="arrowUp=false;arrowDown=true;">{{$t('formulationEvaluation.cancel')}}</el-button>
|
|
|
+ <el-button class="miniPrimary" @click="form_search">{{$t('formulationEvaluation.search')}}</el-button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -40,19 +40,19 @@
|
|
|
<el-button class="successBorder" @click="handleRefresh">{{$t('common.reset')}}</el-button>
|
|
|
</div>
|
|
|
<div class="operation">
|
|
|
- <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleCreate">新增</el-button>
|
|
|
- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">配方上传</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleCreate">{{$t('formulationEvaluation.add')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">{{$t('formulationEvaluation.pfsc')}}</el-button>
|
|
|
<el-upload style="float: right;margin-right: 15px;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImport" :on-success="handleImportSuccess">
|
|
|
- <el-button v-if="isRoleEdit" class="export" icon="el-icon-download" style="float: right;">导入</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" class="export" icon="el-icon-download" style="float: right;">{{$t('formulationEvaluation.enter')}}</el-button>
|
|
|
</el-upload>
|
|
|
<el-dropdown style="float: right;">
|
|
|
- <el-button class="export" icon="el-icon-upload2">导出</el-button>
|
|
|
+ <el-button class="export" icon="el-icon-upload2">{{$t('formulationEvaluation.out')}}</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item @click.native="handleExport(1)">导出模板</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="handleExport(2)">导出数据</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleExport(1)">{{$t('formulationEvaluation.outmb')}}</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleExport(2)">{{$t('formulationEvaluation.outsj')}}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
- <el-button class="export" style="float: right;" @click="handleRecipeRecord">配方记录</el-button>
|
|
|
+ <el-button class="export" style="float: right;" @click="handleRecipeRecord">{{$t('formulationEvaluation.pfjl')}}</el-button>
|
|
|
</div>
|
|
|
<div ref="table" class="table">
|
|
|
<el-table
|
|
@@ -72,27 +72,27 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" align="center" width="50" />
|
|
|
- <el-table-column label="序号" align="center" type="index" width="50px" />
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
|
|
|
<el-table-column :label="$t('errorAnalysis.feedName')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.tname }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model.trim="scope.row.tname" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:98%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方编码" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pfbm')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.tcode }}</span>
|
|
|
<!-- <el-input v-if="scope.row.Edit" v-model.trim="scope.row.tcode" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:98%;padding:10px 0;" /> -->
|
|
|
<el-input v-if="scope.row.Edit" v-model.trim="scope.row.tcode" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" disabled maxlength="32" style="width:98%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="容重(kg/m³)" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.rl')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.volume }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model.trim="scope.row.volume" type="number" style="width:98%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方颜色" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pfys')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-color-picker v-model="scope.row.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" :disabled="scope.row.NoEdit" />
|
|
|
</template>
|
|
@@ -105,47 +105,47 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方类型" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pflx')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.fttype }}</span>
|
|
|
- <el-select v-if="scope.row.Edit && scope.row.isCreate == true" v-model="scope.row.fttypeid" filterable placeholder="配方类型" class="filter-item" style="width:95%;padding:10px 0;" @change="changeFormulaType">
|
|
|
+ <el-select v-if="scope.row.Edit && scope.row.isCreate == true" v-model="scope.row.fttypeid" filterable :placeholder="$t('formulationEvaluation.pflx')" class="filter-item" style="width:95%;padding:10px 0;" @change="changeFormulaType">
|
|
|
<el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
- <el-select v-if="scope.row.Edit && scope.row.isUpdateSave == true" v-model="scope.row.fttypeid" disabled filterable placeholder="配方类型" class="filter-item" style="width:95%;padding:10px 0;" @change="changeFormulaType">
|
|
|
+ <el-select v-if="scope.row.Edit && scope.row.isUpdateSave == true" v-model="scope.row.fttypeid" disabled filterable :placeholder="$t('formulationEvaluation.pflx')" class="filter-item" style="width:95%;padding:10px 0;" @change="changeFormulaType">
|
|
|
<el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="来源" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.ly')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.source }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.remark')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.remark }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.remark" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="255" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="版本号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.bbh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.version }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="牛群类别" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.nqlb')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.cattleName }}</span>
|
|
|
- <el-select v-if="scope.row.Edit" v-model="scope.row.cattle" filterable placeholder="牛群类别" class="filter-item" style="width:95%;padding:10px 0;">
|
|
|
+ <el-select v-if="scope.row.Edit" v-model="scope.row.cattle" filterable :placeholder="$t('formulationEvaluation.nqlb')" class="filter-item" style="width:95%;padding:10px 0;">
|
|
|
<el-option v-for="item in distCattle" :key="item.value" :label="item.distName" :value="item.distCode" />
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="是否启用" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sfqy')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.enable" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.$index, scope.row)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="跳转重量域(kg)" min-width="85px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.tzzly')" min-width="85px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.autozone }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.autozone" type="textarea" :disabled="scope.row.fttype !=='预混配方'" :autosize="{ minRows: 1.3, maxRows: 4}" style="width:95%;padding:10px 0;" />
|
|
@@ -175,19 +175,19 @@
|
|
|
<!-- 配方详情表 -->
|
|
|
<div v-if="isDetail" ref="detail" class="detail">
|
|
|
<div class="recipeTemplate">
|
|
|
- <p>配方详情表</p>
|
|
|
+ <p>{{$t('formulationEvaluation.pfbqb')}}</p>
|
|
|
</div>
|
|
|
<div style="line-height: 25px;border-bottom: 1px solid #000;margin-bottom: 10px;font-size:16px; font-weight: 600;">
|
|
|
- <span :style="{color: table2.getdataListParm.parammaps.tcolor}">配方名称:{{table2.getdataListParm.parammaps.tname }}</span><span style="margin: 0 60px;">牲畜类别:{{table2.getdataListParm.parammaps.ccname}}</span><span>配方类型:{{table2.getdataListParm.parammaps.fttype}}</span>
|
|
|
+ <span :style="{color: table2.getdataListParm.parammaps.tcolor}">{{$t('formulationEvaluation.pfmc')}} : {{table2.getdataListParm.parammaps.tname }}</span><span style="margin: 0 60px;">{{$t('formulationEvaluation.cclx')}}{{table2.getdataListParm.parammaps.ccname}}</span><span>{{$t('formulationEvaluation.pflx')}}:{{table2.getdataListParm.parammaps.fttype}}</span>
|
|
|
</div>
|
|
|
<div class="operation">
|
|
|
- <el-button v-if="isRoleEdit" style="float: left;" icon="el-icon-plus" class="success" @click="handleCreate2">新增</el-button>
|
|
|
- <el-button v-if="isRoleEdit" style="float: left;" icon="el-icon-delete" class="danger" @click="form_delete2">删除</el-button>
|
|
|
- <el-button v-if="isRoleEdit" style="float: left;" class="success" icon="el-icon-takeaway-box" @click="handleSyntheticPremix">合成预混料</el-button>
|
|
|
- <el-button v-if="isOrder && isRoleEdit" icon="el-icon-sort" style="float: left;" class="success" @click="handleChangeOrder">更改顺序</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" style="float: left;" icon="el-icon-plus" class="success" @click="handleCreate2">{{$t('formulationEvaluation.add')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" style="float: left;" icon="el-icon-delete" class="danger" @click="form_delete2">{{$t('formulationEvaluation.del')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" style="float: left;" class="success" icon="el-icon-takeaway-box" @click="handleSyntheticPremix">{{$t('formulationEvaluation.hcyhl')}}</el-button>
|
|
|
+ <el-button v-if="isOrder && isRoleEdit" icon="el-icon-sort" style="float: left;" class="success" @click="handleChangeOrder">{{$t('formulationEvaluation.ggsx')}}</el-button>
|
|
|
<div v-else style="float: left;margin-left: 10px;">
|
|
|
- <el-button v-if="isRoleEdit" icon="el-icon-folder-checked" class="success" @click="saveChangeOrder">保存</el-button>
|
|
|
- <el-button v-if="isRoleEdit" icon="el-icon-close" class="sortCancel" @click="cancelChangeOrder">取消</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" icon="el-icon-folder-checked" class="success" @click="saveChangeOrder">{{$t('formulationEvaluation.save')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" icon="el-icon-close" class="sortCancel" @click="cancelChangeOrder">{{$t('formulationEvaluation.cancel')}}</el-button>
|
|
|
</div>
|
|
|
<div ref="selectInput2" class="filter-item selectInput" style="margin: 0 10px;">
|
|
|
<el-input v-model="table2.getdataListParm.parammaps.all" type="text" name="" value="" placeholder="请点击选择搜索条件" class="Input" />
|
|
@@ -195,39 +195,39 @@
|
|
|
<i v-if="arrowUp2" icon="el-icon-arrow-up" class="el-icon-arrow-up" />
|
|
|
<ul v-if="arrowUp2" class="selectUl">
|
|
|
<li>
|
|
|
- <a style="width: 130px;">饲料名称</a>
|
|
|
+ <a style="width: 130px;">{{$t('formulationEvaluation.slmc')}}</a>
|
|
|
<el-select v-model="table2.getdataListParm.parammaps.fname" filterable placeholder="" style="width:190px;">
|
|
|
<el-option v-for="item in feedNameList" :key="item.id" :label="item.fname" :value="item.fname" />
|
|
|
</el-select>
|
|
|
</li>
|
|
|
- <li><a style="width: 130px;">饲料组名称</a><el-input v-model="table2.getdataListParm.parammaps.feedgroup" style="width: 190px;" /></li>
|
|
|
- <li><a style="width: 130px;">重量</a><el-input v-model="table2.getdataListParm.parammaps.fweight" style="width: 190px;" /></li>
|
|
|
+ <li><a style="width: 130px;">{{$t('formulationEvaluation.slzmc')}}</a><el-input v-model="table2.getdataListParm.parammaps.feedgroup" style="width: 190px;" /></li>
|
|
|
+ <li><a style="width: 130px;">{{$t('formulationEvaluation.reset')}}</a><el-input v-model="table2.getdataListParm.parammaps.fweight" style="width: 190px;" /></li>
|
|
|
<li>
|
|
|
- <a style="width: 130px;">搅拌延时</a>
|
|
|
+ <a style="width: 130px;">{{$t('formulationEvaluation.jbys')}}</a>
|
|
|
<el-select v-model="table2.getdataListParm.parammaps.autosecondname" filterable placeholder="" style="width:190px;" clearable>
|
|
|
<el-option v-for="item in mixingDelayList" :key="item.id" :label="item.name" :value="item.name" />
|
|
|
</el-select>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <a style="width: 130px;">是否锁定牛头数比例</a>
|
|
|
+ <a style="width: 130px;">{{$t('formulationEvaluation.sfsdntbs')}}</a>
|
|
|
<el-select v-model="table2.getdataListParm.parammaps.islockcount" placeholder="" style="width:190px;" clearable>
|
|
|
<el-option v-for="item in lockBullsList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</li>
|
|
|
- <li><a style="width: 130px;">顺序</a><el-input v-model="table2.getdataListParm.parammaps.sort" style="width: 190px;" /></li>
|
|
|
+ <li><a style="width: 130px;">{{$t('formulationEvaluation.sort')}}</a><el-input v-model="table2.getdataListParm.parammaps.sort" style="width: 190px;" /></li>
|
|
|
<li>
|
|
|
<div style="float: right;">
|
|
|
- <el-button class="downminCancel" @click="arrowUp2=false;arrowDown2=true;">取消</el-button>
|
|
|
- <el-button class="miniPrimary" @click="form_search2">搜索</el-button>
|
|
|
+ <el-button class="downminCancel" @click="arrowUp2=false;arrowDown2=true;">{{$t('formulationEvaluation.cancel')}}</el-button>
|
|
|
+ <el-button class="miniPrimary" @click="form_search2">{{$t('formulationEvaluation.search')}}</el-button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<el-button class="successBorder" @click="form_search2">{{$t('common.query')}}</el-button>
|
|
|
<el-button class="successBorder" @click="handleRefresh2">{{$t('common.reset')}}</el-button>
|
|
|
- <el-button class="hide" @click="handleCloseTable2">隐藏</el-button>
|
|
|
- <el-button v-if="isEnlarge" class="hide2" @click="handleEnlarge">放大</el-button>
|
|
|
- <el-button v-else class="hide2" @click="handleNarrow">缩小</el-button>
|
|
|
+ <el-button class="hide" @click="handleCloseTable2">{{$t('formulationEvaluation.hide')}}</el-button>
|
|
|
+ <el-button v-if="isEnlarge" class="hide2" @click="handleEnlarge">{{$t('formulationEvaluation.fd')}}</el-button>
|
|
|
+ <el-button v-else class="hide2" @click="handleNarrow">{{$t('formulationEvaluation.sx')}}</el-button>
|
|
|
</div>
|
|
|
<div v-if="isEnlarge" class="table2">
|
|
|
<el-table
|
|
@@ -252,8 +252,8 @@
|
|
|
@cell-dblclick="celldblclick"
|
|
|
>
|
|
|
<el-table-column type="selection" width="50" />
|
|
|
- <el-table-column label="序号" align="center" type="index" width="50px" />
|
|
|
- <el-table-column label="饲料组" min-width="120px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.slz')" min-width="120px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.groupNoEdit">{{ scope.row.feedgroup }}</span>
|
|
|
<el-input v-if="scope.row.groupEdit" v-model="scope.row.feedgroup" :disabled="scope.row.isGroupDisabled" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
@@ -267,28 +267,28 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="重量(KG)" prop="fweight" width="120px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.reset1')" prop="fweight" width="120px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.fweight }}</span>
|
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.fweight" placeholder="重量" step="0.0001" type="number" style="width:95%;padding:10px 0;" />
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.fweight" :placeholder="$t('formulationEvaluation.reset')" step="0.0001" type="number" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="搅拌延时(min)" min-width="80px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.jbys')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.autosecond }}</span>
|
|
|
- <!-- <el-select v-if="scope.row.Edit" v-model="scope.row.autosecond" filterable placeholder="搅拌延时" class="filter-item" style="width:95%;padding:10px 0;">
|
|
|
+ <!-- <el-select v-if="scope.row.Edit" v-model="scope.row.autosecond" filterable :placeholder="$t('formulationEvaluation.jbys')" class="filter-item" style="width:95%;padding:10px 0;">
|
|
|
<el-option v-for="item in mixingDelayList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select> -->
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.autosecond" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="允许延时偏差(min)" min-width="80px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.yxyspc')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.deviation }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.deviation" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="lockCount.isLockCount" label="是否锁定牛头数比例" min-width="80px" align="center">
|
|
|
+ <el-table-column v-if="lockCount.isLockCount" :label="$t('formulationEvaluation.sfsdntbs')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit && scope.row.islockcount == '0'">否</span>
|
|
|
<span v-if="scope.row.NoEdit && scope.row.islockcount == '1'">是</span>
|
|
@@ -297,12 +297,12 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="加料前停机" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.jlqtj')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.shutdown" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="顺序" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sort')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.sort }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.sort" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" @blur="blurSort(scope.row)" />
|
|
@@ -349,8 +349,8 @@
|
|
|
@cell-dblclick="celldblclick"
|
|
|
>
|
|
|
<el-table-column type="selection" width="50" />
|
|
|
- <el-table-column label="序号11" align="center" type="index" width="50px" />
|
|
|
- <el-table-column label="饲料组" min-width="120px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.slz')" min-width="120px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.groupNoEdit">{{ scope.row.feedgroup }}</span>
|
|
|
<el-input v-if="scope.row.groupEdit" v-model="scope.row.feedgroup" :disabled="scope.row.isGroupDisabled" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
@@ -364,34 +364,34 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="重量123(KG)" prop="fweight" width="120px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.reset1')" prop="fweight" width="120px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.fweight }}</span>
|
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.fweight" placeholder="重量" step="0.0001" type="number" style="width:95%;padding:10px 0;" />
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.fweight" :placeholder="$t('formulationEvaluation.reset')" step="0.0001" type="number" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="搅拌延时(min)" min-width="80px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.jbys')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.autosecond }}</span>
|
|
|
- <el-select v-if="scope.row.Edit" v-model="scope.row.autosecond" filterable placeholder="搅拌延时" class="filter-item" style="width:95%;padding:10px 0;">
|
|
|
+ <el-select v-if="scope.row.Edit" v-model="scope.row.autosecond" filterable :placeholder="$t('formulationEvaluation.jbys')" class="filter-item" style="width:95%;padding:10px 0;">
|
|
|
<el-option v-for="item in mixingDelayList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- TODO: -->
|
|
|
- <el-table-column label="允许延时偏差(min)" min-width="80px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.yxyspc')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.deviation }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.deviation" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="加料前停机" min-width="70px" align="center">
|
|
|
+ <el-table-column:label="$t('formulationEvaluation.jlqtj')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.shutdown" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column:label=>
|
|
|
<!-- -->
|
|
|
- <el-table-column v-if="lockCount.isLockCount" label="是否锁定牛头数比例" min-width="80px" align="center">
|
|
|
+ <el-table-column v-if="lockCount.isLockCount" :label="$t('formulationEvaluation.sfsdntbs')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit && scope.row.islockcount == '0'">否</span>
|
|
|
<span v-if="scope.row.NoEdit && scope.row.islockcount == '1'">是</span>
|
|
@@ -400,7 +400,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="顺序" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sort')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.sort }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.sort" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" @blur="blurSort(scope.row)" />
|
|
@@ -442,10 +442,10 @@
|
|
|
<div class="dialogMinHeight" style="overflow-y: auto;margin-bottom: 0px;overflow-x: hidden;">
|
|
|
<div ref="templateDialog" class="templateDialog">
|
|
|
<div class="recipeTemplate">
|
|
|
- <p>配方模板表</p>
|
|
|
+ <p>{{$t('formulationEvaluation.pfmbb')}}</p>
|
|
|
</div>
|
|
|
<div class="operation1">
|
|
|
- <el-date-picker v-model="template.table.getdataListParm.parammaps.date" type="date" placeholder="请选择历史记录时间" :clearable="false" style="width: 180px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeDate" />
|
|
|
+ <el-date-picker v-model="template.table.getdataListParm.parammaps.date" type="date" :placeholder="$t('formulationEvaluation.lssjjl')":clearable="false" style="width: 180px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeDate" />
|
|
|
<!-- <el-button class="successBorder" @click="handleApplication">应用</el-button> -->
|
|
|
</div>
|
|
|
|
|
@@ -453,10 +453,10 @@
|
|
|
<el-select v-model="template.table.getdataListParm.parammaps.ccname" :placeholder="$t('feedingEfficiency.cxlb')" class="filter-item" clearable>
|
|
|
<el-option v-for="item in livestockTypeList" :key="item.value" :label="item.label" :value="item.label" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="template.table.getdataListParm.parammaps.fttype" placeholder="配方类型" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-select v-model="template.table.getdataListParm.parammaps.fttype" :placeholder="$t('formulationEvaluation.pflx')" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.label" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="template.table.getdataListParm.parammaps.enable" placeholder="是否启用" class="filter-item" style="margin-left:10px;width: 120px;" clearable>
|
|
|
+ <el-select v-model="template.table.getdataListParm.parammaps.enable" :placeholder="$t('formulationEvaluation.sfqy')" class="filter-item" style="margin-left:10px;width: 120px;" clearable>
|
|
|
<el-option v-for="item in enableList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
<div ref="selectInput" class="filter-item selectInput">
|
|
@@ -464,13 +464,13 @@
|
|
|
<i v-if="arrowDown" icon="el-icon-arrow-down" class="el-icon-arrow-down" />
|
|
|
<i v-if="arrowUp" icon="el-icon-arrow-up" class="el-icon-arrow-up" />
|
|
|
<ul v-if="arrowUp" class="selectUl">
|
|
|
- <li><a>配方名称</a><el-input v-model="template.table.getdataListParm.parammaps.tname" style="width: 245px;" /></li>
|
|
|
- <li><a>备注</a><el-input v-model="template.table.getdataListParm.parammaps.remark" style="width: 245px;" /></li>
|
|
|
- <li><a>来源</a><el-input v-model="template.table.getdataListParm.parammaps.source" style="width: 245px;" /></li>
|
|
|
+ <li><a>{{$t('formulationEvaluation.pfmc')}}</a><el-input v-model="template.table.getdataListParm.parammaps.tname" style="width: 245px;" /></li>
|
|
|
+ <li><a>{{$t('formulationEvaluation.remark')}}</a><el-input v-model="template.table.getdataListParm.parammaps.remark" style="width: 245px;" /></li>
|
|
|
+ <li><a>{{$t('formulationEvaluation.ly')}}</a><el-input v-model="template.table.getdataListParm.parammaps.source" style="width: 245px;" /></li>
|
|
|
<li>
|
|
|
<div style="float: right;">
|
|
|
- <el-button class="downminCancel" @click="arrowUp=false;arrowDown=true;">取消</el-button>
|
|
|
- <el-button class="miniPrimary" @click="handleDialogSearch">搜索</el-button>
|
|
|
+ <el-button class="downminCancel" @click="arrowUp=false;arrowDown=true;">{{$t('formulationEvaluation.cancel')}}</el-button>
|
|
|
+ <el-button class="miniPrimary" @click="handleDialogSearch">{{$t('formulationEvaluation.search')}}</el-button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -495,8 +495,8 @@
|
|
|
class="elTable table-fixed"
|
|
|
@row-click="tableRowClickDialog"
|
|
|
>
|
|
|
- <el-table-column v-if="template.dialogStatus == 'RecipeRecord'" label="序号" align="center" type="index" width="50px" />
|
|
|
- <el-table-column v-else label="序号" align="center" type="index" width="50px">
|
|
|
+ <el-table-column v-if="template.dialogStatus == 'RecipeRecord'" :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
|
|
|
+ <el-table-column v-else :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.$index + (template.table.pageNum-1) * template.table.pageSize + 1 }}</span>
|
|
|
</template>
|
|
@@ -506,12 +506,12 @@
|
|
|
<span>{{ scope.row.tname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方编码" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pfbm')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.tcode }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方颜色" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pfys')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-color-picker v-model="scope.row.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" />
|
|
|
</template>
|
|
@@ -521,32 +521,32 @@
|
|
|
<span>{{ scope.row.ccname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方类型" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pflx')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fttype }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="来源" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.ly')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.source }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.remark')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.remark }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="版本号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.bbh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.version }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="版本时间" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.bbsj')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.versiontime }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="是否启用" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sfqy')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.enable" disabled active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
|
|
|
</template>
|
|
@@ -557,7 +557,7 @@
|
|
|
|
|
|
<div v-if="isDetailDialog" id="detailDialog2" ref="detailDialog2" class="detailDialog" style="margin-top: 30px;height: 200px;overflow-y: auto;overflow-x: hidden;">
|
|
|
<div class="recipeTemplate">
|
|
|
- <p>配方详情表</p>
|
|
|
+ <p>{{$t('formulationEvaluation.pfbqb')}}</p>
|
|
|
</div>
|
|
|
<div class="operation">
|
|
|
<div ref="selectInput2" class="filter-item selectInput">
|
|
@@ -566,37 +566,37 @@
|
|
|
<i v-if="arrowUp2" icon="el-icon-arrow-up" class="el-icon-arrow-up" />
|
|
|
<ul v-if="arrowUp2" class="selectUl">
|
|
|
<li>
|
|
|
- <a style="width: 130px;">饲料名称</a>
|
|
|
+ <a style="width: 130px;">{{$t('formulationEvaluation.slmc')}}</a>
|
|
|
<el-select v-model="template.table2.getdataListParm.parammaps.fname" filterable placeholder="" style="width:245px;">
|
|
|
<el-option v-for="item in feedNameList" :key="item.id" :label="item.fname" :value="item.fname" />
|
|
|
</el-select>
|
|
|
</li>
|
|
|
- <li><a style="width: 130px;">饲料组名称</a><el-input v-model="template.table2.getdataListParm.parammaps.feedgroup" style="width: 245px;" /></li>
|
|
|
- <li><a style="width: 130px;">重量</a><el-input v-model="template.table2.getdataListParm.parammaps.fweight" style="width: 245px;" /></li>
|
|
|
+ <li><a style="width: 130px;">{{$t('formulationEvaluation.slzmc')}}</a><el-input v-model="template.table2.getdataListParm.parammaps.feedgroup" style="width: 245px;" /></li>
|
|
|
+ <li><a style="width: 130px;">{{$t('formulationEvaluation.reset')}}</a><el-input v-model="template.table2.getdataListParm.parammaps.fweight" style="width: 245px;" /></li>
|
|
|
<li>
|
|
|
- <a style="width: 130px;">搅拌延时</a>
|
|
|
+ <a style="width: 130px;">{{$t('formulationEvaluation.jbys')}}</a>
|
|
|
<el-select v-model="template.table2.getdataListParm.parammaps.autosecondname" filterable placeholder="" style="width:245px;">
|
|
|
<el-option v-for="item in mixingDelayList" :key="item.id" :label="item.name" :value="item.name" />
|
|
|
</el-select>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <a style="width: 130px;">是否锁定牛头数比例</a>
|
|
|
+ <a style="width: 130px;">{{$t('formulationEvaluation.sfsdntbs')}}</a>
|
|
|
<el-select v-model="template.table2.getdataListParm.parammaps.islockcount" placeholder="" style="width:245px;">
|
|
|
<el-option v-for="item in lockBullsList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</li>
|
|
|
- <li><a style="width: 130px;">顺序</a><el-input v-model="template.table2.getdataListParm.parammaps.sort" style="width: 245px;" /></li>
|
|
|
+ <li><a style="width: 130px;">{{$t('formulationEvaluation.sort')}}</a><el-input v-model="template.table2.getdataListParm.parammaps.sort" style="width: 245px;" /></li>
|
|
|
<li>
|
|
|
<div style="float: right;">
|
|
|
- <el-button class="downminCancel" @click="arrowUp2=false;arrowDown2=true;">取消</el-button>
|
|
|
- <el-button class="miniPrimary" @click="handleDialogSearch2">搜索</el-button>
|
|
|
+ <el-button class="downminCancel" @click="arrowUp2=false;arrowDown2=true;">{{$t('formulationEvaluation.cancel')}}</el-button>
|
|
|
+ <el-button class="miniPrimary" @click="handleDialogSearch2">{{$t('formulationEvaluation.search')}}</el-button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<el-button class="successBorder" @click="handleDialogSearch2">{{$t('common.query')}}</el-button>
|
|
|
<el-button class="successBorder" @click="handleDialogRefresh2">{{$t('common.reset')}}</el-button>
|
|
|
- <el-button class="hide" @click="handleDialogCloseTable2">隐藏</el-button>
|
|
|
+ <el-button class="hide" @click="handleDialogCloseTable2">{{$t('formulationEvaluation.hide')}}</el-button>
|
|
|
</div>
|
|
|
|
|
|
<div class="table2">
|
|
@@ -617,7 +617,7 @@
|
|
|
class="elTable table-fixed"
|
|
|
row-key="id"
|
|
|
>
|
|
|
- <el-table-column label="饲料组" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.slz')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.feedgroup }}</span>
|
|
|
</template>
|
|
@@ -627,23 +627,23 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="重量(KG)" prop="fweight" min-width="200px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.reset1')"prop="fweight" min-width="200px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fweight }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="搅拌延时(min)" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.jbys')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.autosecondname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="是否锁定牛头数比例" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sfsdntbs')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.islockcount == '0'">否</span>
|
|
|
<span v-if="scope.row.islockcount == '1'">是</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="顺序" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sort')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -672,7 +672,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="detailDialog">
|
|
|
- <h2>饲料</h2>
|
|
|
+ <h2>{{$t('formulationEvaluation.feed')}}</h2>
|
|
|
<div class="table1">
|
|
|
<el-table
|
|
|
:key="detail.tableKey"
|
|
@@ -687,32 +687,32 @@
|
|
|
class="elTable table-fixed"
|
|
|
show-summary
|
|
|
>
|
|
|
- <el-table-column label="序号" align="center" type="index" width="50px" />
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px" />
|
|
|
<el-table-column :label="$t('InventoryManagement.silc')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="fweight" label="重量(KG)" />
|
|
|
- <el-table-column label="搅拌延时(min)" min-width="110px" align="center">
|
|
|
+ <el-table-column prop="fweight" :label="$t('formulationEvaluation.reset1')"/>
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.jbys')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.autosecond }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="lockCount.isLockCount" label="是否锁定牛头数比例" min-width="130px" align="center">
|
|
|
+ <el-table-column v-if="lockCount.isLockCount" :label="$t('formulationEvaluation.sfsdntbs')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.islockcount == '0'">否</span>
|
|
|
<span v-if="scope.row.islockcount == '1'">是</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="顺序" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sort')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
- <h2>合成预混料</h2>
|
|
|
+ <h2>{{$t('formulationEvaluation.hcyhl')}}</h2>
|
|
|
<div class="table2" style="margin-bottom: 50px;">
|
|
|
<el-table
|
|
|
:key="detail.tableKey2"
|
|
@@ -732,7 +732,7 @@
|
|
|
<el-input v-model="scope.row.tname" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" :disabled="detail.disabled" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方颜色" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pfys')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-color-picker v-model="scope.row.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" :disabled="detail.disabled" />
|
|
|
</template>
|
|
@@ -744,27 +744,27 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配方类型" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.pflx')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fttype }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="来源" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.ly')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.source }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="容重(kg/m³)" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.rl')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.volume" style="width:95%;padding:10px 0;" :disabled="detail.disabled" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.remark')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.remark" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" :disabled="detail.disabled" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="是否启用" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.sfqy')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.enable" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" :disabled="detail.disabled" />
|
|
|
</template>
|
|
@@ -809,15 +809,15 @@
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
>
|
|
|
- <el-table-column label="序号" align="center" type="index" width="50px">
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xh')" align="center" type="index" width="50px">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.$index + (rowRecipeRecord.pageNum-1) * rowRecipeRecord.pageSize + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="序号" width="60px" align="center" prop="sort" /> -->
|
|
|
- <el-table-column label="修改时间" width="100px" align="center" prop="datetime1" />
|
|
|
- <el-table-column label="修改用户" width="130px" align="center" prop="empname" />
|
|
|
- <el-table-column label="饲料名称(单位:kg)" min-width="800px" align="center">
|
|
|
+ <!-- <el-table-column :label="$t('formulationEvaluation.xh')" width="60px" align="center" prop="sort" /> -->
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xgsj')" width="100px" align="center" prop="datetime1" />
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.xgyh')" width="130px" align="center" prop="empname" />
|
|
|
+ <el-table-column :label="$t('formulationEvaluation.slmcdw')" min-width="800px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-for="element in scope.row.arrList" :key="element.name" class="list-group-item2 item" style="width:150px;float: left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin: 5px 5px;padding: 0;height: 30px;">
|
|
|
<el-tooltip v-if="element.change== 'red'" placement="top" :open-delay="1000">
|