|
@@ -3,43 +3,43 @@
|
|
|
<!-- 配方模板表 -->
|
|
|
<div ref="template" class="template">
|
|
|
<div class="recipeTemplate">
|
|
|
- <p>日执行计划</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.title')}}</p>
|
|
|
</div>
|
|
|
<div class="search">
|
|
|
- <el-date-picker v-model="table.getdataListParm.parammaps.mydate" type="date" placeholder="选择日期" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeDate" />
|
|
|
+ <el-date-picker v-model="table.getdataListParm.parammaps.mydate" type="date" :placeholder="$t('dailyExecutionPlan.xzrq')" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeDate" />
|
|
|
<el-button class="el-icon-arrow-left elIconArrowLeft" @click="handleBefore" />
|
|
|
<el-button class="el-icon-arrow-right elIconArrowRight" @click="handleNext" />
|
|
|
<el-select v-model="table.getdataListParm.parammaps.lpplantype" filterable
|
|
|
-:placeholder="$t('processAnalysis.planType')"class="filter-item" clearable style="width: 120px;" @change="changePlanType">
|
|
|
+:placeholder="$t('processAnalysis.planType')" class="filter-item" clearable style="width: 120px;" @change="changePlanType">
|
|
|
<el-option v-for="item in planTypeList" :key="item.value" :label="item.lable" :value="item.value" />
|
|
|
</el-select>
|
|
|
<el-select v-model="table.getdataListParm.parammaps.times" filterable :placeholder="$t('premixedPlan.bc')" class="filter-item" style="width: 120px;" clearable @change="changeFrequency">
|
|
|
<el-option v-for="item in frequencyList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.printType" filterable placeholder="打印类型" class="filter-item" :clearable="false" style="width: 120px;">
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.printType" filterable :placeholder="$t('dailyExecutionPlan.dylx')" class="filter-item" :clearable="false" style="width: 120px;">
|
|
|
<el-option v-for="item in printingTypeList" :key="item.value" :label="item.lable" :value="item.value" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.plandimen" filterable placeholder="计划维度" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.plandimen" filterable :placeholder="$t('dailyExecutionPlan.jhwd')" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
<el-option v-for="item in planningDimensionList" :key="item.value" :label="item.lable" :value="item.value" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.enable3" filterable placeholder="导出类型" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.enable3" filterable :placeholder="$t('dailyExecutionPlan.dclx')" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
<el-option v-for="item in exportTypeList" :key="item.value" :label="item.lable" :value="item.value" />
|
|
|
</el-select>
|
|
|
<el-select v-model="table.getdataListParm.parammaps.tmrname" filterable :placeholder="$t('processAnalysis.tmrName')" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
<el-option v-for="item in tmrDownList" :key="item.tmrname" :label="item.tmrname" :value="item.tmrtname" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table.getdataListParm.parammaps.iscompleted" filterable placeholder="执行状态" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
+ <el-select v-model="table.getdataListParm.parammaps.iscompleted" filterable :placeholder="$t('dailyExecutionPlan.zxzt')" class="filter-item" style="width: 120px;" :clearable="false">
|
|
|
<el-option v-for="item in iscompletedList" :key="item.value" :label="item.lable" :value="item.value" />
|
|
|
</el-select>
|
|
|
<el-button class="successBorder" @click="form_search">{{$t('common.query')}}</el-button>
|
|
|
<el-button class="export" icon="el-icon-upload2" @click="handleExport">{{$t('formulationEvaluation.out')}}</el-button>
|
|
|
- <el-button class="export" icon="el-icon-upload2" @click="handlePrint">打印</el-button>
|
|
|
- <el-button class="export" style="margin-left: -5px;" @click="form_deleteRecord">删除记录</el-button>
|
|
|
+ <el-button class="export" icon="el-icon-upload2" @click="handlePrint">{{$t('dailyExecutionPlan.dy')}}</el-button>
|
|
|
+ <el-button class="export" style="margin-left: -5px;" @click="form_deleteRecord">{{$t('dailyExecutionPlan.scjl')}}</el-button>
|
|
|
</div>
|
|
|
<div class="operation" style="margin-bottom: 26px;">
|
|
|
- <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleCreate">新生成</el-button>
|
|
|
- <el-button v-if="isRoleEdit" class="success" icon="el-icon-edit-outline" @click="handleRevisePlan">修改计划</el-button>
|
|
|
- <el-button v-if="isRoleEdit" class="copy" icon="el-icon-copy-document" @click="handleCopy">复制计划</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleCreate">{{$t('dailyExecutionPlan.xsc')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" class="success" icon="el-icon-edit-outline" @click="handleRevisePlan">{{$t('dailyExecutionPlan.xgjh')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" class="copy" icon="el-icon-copy-document" @click="handleCopy">{{$t('dailyExecutionPlan.fzjh')}}</el-button>
|
|
|
<el-button v-if="isOrder && isRoleEdit" icon="el-icon-sort" class="success" @click="handleChangeOrder">{{$t('formulationEvaluation.ggsx')}}</el-button>
|
|
|
<div v-else style="margin-left: 10px;display: inline-block;">
|
|
|
<el-button v-if="isRoleEdit" icon="el-icon-folder-checked" class="success" @click="saveChangeOrder">{{$t('formulationEvaluation.save')}}</el-button>
|
|
@@ -47,15 +47,15 @@
|
|
|
</div>
|
|
|
<el-button v-if="isRoleEdit" class="success" icon="el-icon-open" @click="handleTakeEffect">{{$t('premixedPlan.sx')}}</el-button>
|
|
|
<el-button v-if="isRoleEdit" class="danger" icon="el-icon-turn-off" @click="handleDisable">{{$t('premixedPlan.jy')}}</el-button>
|
|
|
- <el-button v-if="dataSynchronization2.isDataSynchronization" class="success" icon="el-icon-plus" @click="form_updata">上传计划</el-button>
|
|
|
- <el-button v-if="dataSynchronization.isDataSynchronization && isRoleEdit" class="success" @click="handleDataSynchronization">数据同步</el-button>
|
|
|
- <el-button v-if="dataSynchronization3.isDataSynchronization&&isRoleEdit" class="success" @click="handleDataUpload">数据上传</el-button>
|
|
|
+ <el-button v-if="dataSynchronization2.isDataSynchronization" class="success" icon="el-icon-plus" @click="form_updata">{{$t('dailyExecutionPlan.scjh')}}</el-button>
|
|
|
+ <el-button v-if="dataSynchronization.isDataSynchronization && isRoleEdit" class="success" @click="handleDataSynchronization">{{$t('dailyExecutionPlan.sjtb')}}</el-button>
|
|
|
+ <el-button v-if="dataSynchronization3.isDataSynchronization&&isRoleEdit" class="success" @click="handleDataUpload">{{$t('dailyExecutionPlan.sjsc')}}</el-button>
|
|
|
<el-button v-if="isRoleEdit" class="danger" icon="el-icon-delete" @click="handleDelete">{{$t('formulationEvaluation.del')}}</el-button>
|
|
|
- <el-button v-if="isRoleEdit && sapUpload.isSap" class="success" icon="el-icon-upload2" @click="handleSAPUpload">SAP上传</el-button>
|
|
|
- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd1">搅拌数据上传</el-button>
|
|
|
- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd2">剩料上传</el-button>
|
|
|
- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd3">撒料上传</el-button>
|
|
|
- <el-button v-if="isRoleEdit" class="success" icon="el-icon-circle-check" @click="handleQuickcompletion">快速完成</el-button>
|
|
|
+ <el-button v-if="isRoleEdit && sapUpload.isSap" class="success" icon="el-icon-upload2" @click="handleSAPUpload">{{$t('dailyExecutionPlan.spasc')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd1">{{$t('dailyExecutionPlan.jbsjsc')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd2">{{$t('dailyExecutionPlan.slsc')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd3">{{$t('dailyExecutionPlan.salsc')}}</el-button>
|
|
|
+ <el-button v-if="isRoleEdit" class="success" icon="el-icon-circle-check" @click="handleQuickcompletion">{{$t('dailyExecutionPlan.kswc')}}</el-button>
|
|
|
</div>
|
|
|
<!-- 日执行计划 -->
|
|
|
<div class="table">
|
|
@@ -81,12 +81,12 @@
|
|
|
>
|
|
|
<el-table-column type="selection" min-width="50" />
|
|
|
<el-table-column :label="$t('formulationEvaluation.xh')" align="center" prop="sort" width="50px" />
|
|
|
- <el-table-column label="计划名称" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.jhmc')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.projname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="计划类型" prop="weight" min-width="90px" align="center" :formatter="lpplantype" />
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.jhlx')" prop="weight" min-width="90px" align="center" :formatter="lpplantype" />
|
|
|
<el-table-column :label="$t('premixedPlan.tmrbh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.tmrtname }}</span>
|
|
@@ -100,7 +100,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="已执行" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.yzx')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.havebutton == 0" style="background: #009A69;color:#fff;line-height:30px;">否</div>
|
|
|
<div v-else style="background: #FC2323;color:#000 ;line-height:30px;">是</div>
|
|
@@ -111,12 +111,12 @@
|
|
|
<span>{{ scope.row.times }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="理论量" min-width="80px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.lhl')" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.lweight }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="启用" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.qy')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-if="dataDisabled == false" v-model="scope.row.enable" :disabled="scope.row.havebutton == 1" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.row)" />
|
|
|
<el-switch v-else v-model="scope.row.enable" disabled active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.row)" />
|
|
@@ -142,7 +142,7 @@
|
|
|
<span>{{ scope.row.display }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="发料位" min-width="80px" align="left">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.flw')" min-width="80px" align="left">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.barnames }}</span>
|
|
|
</template>
|
|
@@ -166,7 +166,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table2">
|
|
|
<div class="contentOperation">
|
|
|
- <p>计划详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.jhxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -184,7 +184,7 @@
|
|
|
class="elTable table-fixed"
|
|
|
:span-method="objectSpanMethod"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -194,13 +194,13 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" prop="weight" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" prop="weight" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="小计" prop="description" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.xj')" prop="description" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.subtotal }}</span>
|
|
|
</template>
|
|
@@ -230,7 +230,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table2">
|
|
|
<div class="contentOperation">
|
|
|
- <p>计划详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.jhxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -248,7 +248,7 @@
|
|
|
class="elTable table-fixed"
|
|
|
:span-method="objectSpanMethod"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -258,13 +258,13 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" prop="weight" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" prop="weight" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="小计" prop="description" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.xj')" prop="description" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.subtotal }}</span>
|
|
|
</template>
|
|
@@ -288,7 +288,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table3">
|
|
|
<div class="contentOperation">
|
|
|
- <p>栏舍详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.lsxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -305,7 +305,7 @@
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
>
|
|
|
- <el-table-column label=" 操作序号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -315,7 +315,7 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" prop="weight" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" prop="weight" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
@@ -328,7 +328,7 @@
|
|
|
<span v-if="row.isUpdateSave" class="centerSpan">|</span>
|
|
|
<el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel3(row)" />
|
|
|
<span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
|
|
|
- <e<el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,1)">
|
|
|
+ <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,1)">
|
|
|
<svg-icon icon-class="clear" />
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -345,7 +345,7 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12"><div class="table2">
|
|
|
<div class="contentOperation">
|
|
|
- <p>计划详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.jhxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -363,12 +363,12 @@
|
|
|
class="elTable table-fixed"
|
|
|
:span-method="objectSpanMethod"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="取料栏舍" prop="fname" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.qlls')" prop="fname" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
@@ -378,7 +378,7 @@
|
|
|
<span>{{ scope.row.useinbar }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="小计" prop="description" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.xj')" prop="description" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.subtotal }}</span>
|
|
|
</template>
|
|
@@ -390,7 +390,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table3">
|
|
|
<div class="contentOperation">
|
|
|
- <p>栏舍详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.lsxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -407,7 +407,7 @@
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -430,7 +430,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table2">
|
|
|
<div class="contentOperation">
|
|
|
- <p>计划详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.jhxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -448,7 +448,7 @@
|
|
|
class="elTable table-fixed"
|
|
|
:span-method="objectSpanMethod"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -458,13 +458,13 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" prop="weight" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" prop="weight" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="小计" prop="description" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.xj')" prop="description" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.subtotal }}</span>
|
|
|
</template>
|
|
@@ -488,7 +488,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table3">
|
|
|
<div class="contentOperation">
|
|
|
- <p>栏舍详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.lsxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -505,7 +505,7 @@
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
>
|
|
|
- <el-table-column label=" 操作序号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -515,7 +515,7 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
@@ -546,7 +546,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table3">
|
|
|
<div class="contentOperation">
|
|
|
- <p>栏舍详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.lsxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -563,7 +563,7 @@
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -573,13 +573,13 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="小计" prop="description" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.xj')" prop="description" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.subtotal }}</span>
|
|
|
</template>
|
|
@@ -603,7 +603,7 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="table2">
|
|
|
<div class="contentOperation">
|
|
|
- <p>计划详情</p>
|
|
|
+ <p>{{$t('dailyExecutionPlan.jhxq')}}</p>
|
|
|
</div>
|
|
|
<div class="content-table">
|
|
|
<el-table
|
|
@@ -620,7 +620,7 @@
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
>
|
|
|
- <el-table-column label="操作序号" min-width="90px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.czxh')" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.sort }}</span>
|
|
|
</template>
|
|
@@ -630,7 +630,7 @@
|
|
|
<span>{{ scope.row.fname }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="设计重量(KG)" prop="weight" width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.sjzl')" prop="weight" width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.weight" type="number" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
@@ -661,22 +661,22 @@
|
|
|
<el-form ref="temp" :rules="newGeneration.rules" :model="newGeneration.temp" label-position="right" label-width="100px" style="width: 100%;margin:0 auto 50px">
|
|
|
<el-row v-if="newGeneration.dialogStatus== 'newGeneration'">
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="时间范围:" prop="inputDatetime">
|
|
|
+ <el-form-item :label="$t('dailyExecutionPlan.sjfw')" prop="inputDatetime">
|
|
|
<el-date-picker v-model="newGeneration.temp.inputDatetime" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" style="width: 100%;" :clearable="false" :picker-options="pickerOptions2" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row v-else>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="时间范围:" prop="copyInputDatetime">
|
|
|
+ <el-form-item :label="$t('dailyExecutionPlan.sjfw')" prop="copyInputDatetime">
|
|
|
<el-date-picker v-model="newGeneration.temp.copyInputDatetime" :picker-options="pickerOptions" class="inputDatetime filter-item" type="daterange" :range-separator="$t('common.to')" :start-placeholder="$t('common.startTime')" :end-placeholder="$t('common.endTime')" style="width: 100%;" :clearable="false" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <p v-if="newGeneration.temp.tips == true || newGeneration.dialogStatus == 'copy'" style="font-weight: 700;color: red;text-align: center;">注:撒料计划中存在未分配完栏舍,如下所示;建议及时进行分配</p>
|
|
|
+ <p v-if="newGeneration.temp.tips == true || newGeneration.dialogStatus == 'copy'" style="font-weight: 700;color: red;text-align: center;">{{$t('dailyExecutionPlan.note')}}</p>
|
|
|
<div style="height: 200px;overflow: auto;">
|
|
|
<div v-if="myMaxTimes == 1">
|
|
|
- <div>第一班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan1')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.one" :key="index+'A'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -687,7 +687,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else-if="myMaxTimes == 2">
|
|
|
- <div>第一班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan1')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.one" :key="index+'B'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -696,7 +696,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div>第二班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan2')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.two" :key="index+'C'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -707,7 +707,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else-if="myMaxTimes == 3">
|
|
|
- <div>第一班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan1')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.one" :key="index+'D'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -716,7 +716,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div>第二班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan2')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.two" :key="index+'E'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -725,7 +725,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div>第三班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan3')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.three" :key="index+'F'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -736,7 +736,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <div>第一班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan1')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.one" :key="index+'G'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -745,7 +745,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div>第二班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan2')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.two" :key="index+'H'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -754,7 +754,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div>第三班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan3')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.three" :key="index+'I'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -763,7 +763,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div>第四班:</div>
|
|
|
+ <div>{{$t('dailyExecutionPlan.dyBan4')}} </div>
|
|
|
<div v-for="(item,index) in tipsList.four" :key="index+'J'" >
|
|
|
<b v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">{{item.ftname}}:</b>
|
|
|
<span v-if="item.arrList !== null && item.arrList !== undefined && item.arrList.length>0">
|
|
@@ -811,7 +811,7 @@
|
|
|
<el-dialog :destroy-on-close="true" :visible.sync="dataSynchronization.dialogFormVisible" :close-on-click-modal="false" width="30%">
|
|
|
<div class="dataSynchronization" style="text-align: center;font-size: 18px;">
|
|
|
<i class="el-icon-loading" />
|
|
|
- <span>正在同步</span>
|
|
|
+ <span>{{$t('dailyExecutionPlan.zztb')}} </span>
|
|
|
<div slot="footer" class="dialog-footer" style="bottom:10px">
|
|
|
<el-button class="miniPrimary" @click="dataSynchronization.dialogFormVisible = false;">{{$t('errorAnalysis.confirm')}}</el-button>
|
|
|
</div>
|
|
@@ -823,7 +823,7 @@
|
|
|
<el-dialog :title="textMap[deleteRecord.dialogStatus]" :destroy-on-close="true" :visible.sync="deleteRecord.dialogFormVisible" :close-on-click-modal="false" width="90%">
|
|
|
<div class="deleteRecord">
|
|
|
<div class="search">
|
|
|
- <el-date-picker v-model="deleteRecord.mydate" type="date" placeholder="选择日期" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeDeleteRecordDate" />
|
|
|
+ <el-date-picker v-model="deleteRecord.mydate" type="date" :placeholder="$t('dailyExecutionPlan.xzrq')" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeDeleteRecordDate" />
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table
|
|
@@ -842,19 +842,19 @@
|
|
|
:height="370"
|
|
|
>
|
|
|
<el-table-column :label="$t('formulationEvaluation.xh')" align="center" prop="sort" width="50px" />
|
|
|
- <el-table-column label="计划名称" min-width="90px" align="center" prop="projname" />
|
|
|
- <el-table-column label="计划类型" prop="weight" min-width="90px" align="center" :formatter="lpplantype" />
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.jhmc')" min-width="90px" align="center" prop="projname" />
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.jhlx')" prop="weight" min-width="90px" align="center" :formatter="lpplantype" />
|
|
|
<el-table-column :label="$t('premixedPlan.tmrbh')" min-width="90px" align="center" prop="tmrtname" />
|
|
|
<el-table-column :label="$t('errorAnalysis.Driver')" min-width="90px" align="center" prop="driver" />
|
|
|
- <el-table-column label="已执行" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.yzx')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.havebutton == 0">否</span>
|
|
|
<span v-else>是</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('errorAnalysis.isTrainNumber')" min-width="80px" align="center" prop="times" />
|
|
|
- <el-table-column label="理论量" min-width="80px" align="center" prop="lweight" />
|
|
|
- <el-table-column label="启用" min-width="70px" align="center">
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.lhl')" min-width="80px" align="center" prop="lweight" />
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.qy')" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-if="dataDisabled == false" disabled v-model="scope.row.enable" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.row)" />
|
|
|
<el-switch v-else v-model="scope.row.enable" disabled active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.row)" />
|
|
@@ -864,7 +864,7 @@
|
|
|
<el-table-column :label="$t('errorAnalysis.feedName')" min-width="100px" align="center" prop="ftname" />
|
|
|
<el-table-column :label="$t('formulationEvaluation.nts')" min-width="80px" align="center" prop="cowcount" />
|
|
|
<el-table-column :label="$t('premixedPlan.ms')"min-width="80px" align="center" prop="display" />
|
|
|
- <el-table-column label="发料位" min-width="80px" align="left" prop="barnames" />
|
|
|
+ <el-table-column :label="$t('dailyExecutionPlan.flw')" min-width="80px" align="left" prop="barnames" />
|
|
|
</el-table>
|
|
|
<span v-if="deleteRecord.listLoading == false" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">{{$t('processAnalysis.total')}}{{ deleteRecord.total }}{{$t('processAnalysis.tiao')}}</span>
|
|
|
</div>
|
|
@@ -923,12 +923,12 @@ export default {
|
|
|
requestParams: [
|
|
|
// { name: 'getDictByName', offset: 0, pagecount: 0, params: ['牲畜父类'] }
|
|
|
],
|
|
|
- planTypeList: [{ lable: '预混计划', value: '4' }, { lable: '撒料计划', value: '0' }, { lable: '剩料计划', value: '3' }, { lable: '撒料计划-混料', value: '1' }, { lable: '撒料计划-撒料', value: '2' }, { lable: '预称重计划', value: '5' }], // 计划类型
|
|
|
- printingTypeList: [{ lable: '精料', value: '1' }, { lable: '铲车', value: '2' }], // 打印类型
|
|
|
+ planTypeList:this.$t('dailyExecutionPlan.planTypeList'), // 计划类型
|
|
|
+ printingTypeList: this.$t('dailyExecutionPlan.printingTypeList'), // 打印类型
|
|
|
frequencyList: [], // 班次
|
|
|
- planningDimensionList: [{ lable: '发料顺序', value: '0' }, { lable: 'TMR', value: '1' }], // 发料顺序
|
|
|
- exportTypeList: [{ lable: '投料简打', value: '0' }, { lable: '累加投料', value: '1' }, { lable: '撒料简打', value: '2' }, { lable: '投撒料简打', value: '3' }, { lable: '投撒料累加', value: '4' }, { lable: '包装简打', value: '5' }, { lable: '实发简打', value: '6' }], // 导出类型
|
|
|
- iscompletedList: [{ lable: '是', value: '1' },{ lable: '否', value: '0' } ],
|
|
|
+ planningDimensionList: this.$t('dailyExecutionPlan.planningDimensionList'), // 发料顺序
|
|
|
+ exportTypeList:this.$t('dailyExecutionPlan.exportTypeList') , // 导出类型
|
|
|
+ iscompletedList: this.$t('dailyExecutionPlan.iscompletedList') ,
|
|
|
// 班次
|
|
|
maxTime: {
|
|
|
getMaxTimesParm: {
|