|
@@ -122,17 +122,17 @@
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" align="center" v-if="$route.query.type!=='look'" width="200">
|
|
|
|
|
|
+ <el-table-column :label="$t('Table.column_operations')" align="center" v-if="$route.query.type!=='look'" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="text" @click="addRow(scope,'copy')">复制</el-button>
|
|
|
|
- <el-button type="text" @click="addRow(scope,'prev')">向上添加</el-button>
|
|
|
|
- <el-button type="text" @click="addRow(scope,'next')">向下添加</el-button>
|
|
|
|
- <span @click="delPlant(scope.row,scope.$index)" class="deletesty">删除</span>
|
|
|
|
- <el-button type="text" @click="addOtherPlantHandle(scope.row.VarietyPlantId)">添加其他装置</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="addRow(scope,'copy')">{{$t('Table.copy_btn')}}</el-button>
|
|
|
|
+ <el-button type="text" @click="addRow(scope,'prev')">{{$t('SupplyAnalysis.StockPlant.edit_table_btn_add_up')}}</el-button>
|
|
|
|
+ <el-button type="text" @click="addRow(scope,'next')">{{$t('SupplyAnalysis.StockPlant.edit_table_btn_add_down')}}</el-button>
|
|
|
|
+ <span @click="delPlant(scope.row,scope.$index)" class="deletesty">{{$t('Table.delete_btn')}}</span>
|
|
|
|
+ <el-button type="text" @click="addOtherPlantHandle(scope.row.VarietyPlantId)">{{$t('SupplyAnalysis.StockPlant.edit_table_btn_add_other')}}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<div slot="empty" style="padding: 20px 0">
|
|
<div slot="empty" style="padding: 20px 0">
|
|
- <tableNoData text="暂无信息" size="mini"/>
|
|
|
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')" size="mini"/>
|
|
</div>
|
|
</div>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
@@ -160,62 +160,117 @@ export default {
|
|
this.tableData = nval.length ? nval : this.initTable;
|
|
this.tableData = nval.length ? nval : this.initTable;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- province_sorce,
|
|
|
|
- city_sorce,
|
|
|
|
- tableData: this.data,
|
|
|
|
- tableColums: [
|
|
|
|
|
|
+ computed:{
|
|
|
|
+ tableColums(){
|
|
|
|
+ return [
|
|
{
|
|
{
|
|
- label: '地点',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col01')/* '地点' */,
|
|
key: 'address',
|
|
key: 'address',
|
|
minwidthsty: '140px'
|
|
minwidthsty: '140px'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '工厂',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col02')/* '工厂' */,
|
|
key: 'FactoryName'
|
|
key: 'FactoryName'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '装置/产线',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col03')/* '装置/产线' */,
|
|
key: 'PlantName'
|
|
key: 'PlantName'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '年产能(万吨)',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col04')/* '年产能(万吨)' */,
|
|
key: 'AnnualCapacity'
|
|
key: 'AnnualCapacity'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '检修日期',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col05')/* '检修日期' */,
|
|
key: 'MaintenanceDate',
|
|
key: 'MaintenanceDate',
|
|
widthsty: '150px'
|
|
widthsty: '150px'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '复产日期',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col06')/* '复产日期' */,
|
|
key: 'ResumptionDate',
|
|
key: 'ResumptionDate',
|
|
- tip: '默认检修结束日期为复产日期',
|
|
|
|
|
|
+ tip: this.$t('SupplyAnalysis.StockPlant.edit_table_col_tip01')/* '默认检修结束日期为复产日期' */,
|
|
widthsty: '220px'
|
|
widthsty: '220px'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '降负系数',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col07')/* '降负系数' */,
|
|
key: 'Coefficient',
|
|
key: 'Coefficient',
|
|
widthsty: '80px',
|
|
widthsty: '80px',
|
|
- tip: '1表示停产,0.1表示降负10%'
|
|
|
|
|
|
+ tip: this.$t('SupplyAnalysis.StockPlant.edit_table_col_tip02'),/* '1表示停产,0.1表示降负10%' */
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '日均产量减量(吨)',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col08')/* '日均产量减量(吨)' */,
|
|
key: 'AverageDailyCapacityReductionTon',
|
|
key: 'AverageDailyCapacityReductionTon',
|
|
widthsty: '100px',
|
|
widthsty: '100px',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '时长',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col09')/* '时长' */,
|
|
key: 'Day',
|
|
key: 'Day',
|
|
widthsty: '80px',
|
|
widthsty: '80px',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '期间减量(万吨)',
|
|
|
|
|
|
+ label: this.$t('SupplyAnalysis.StockPlant.edit_table_col10')/* '期间减量(万吨)' */,
|
|
key: 'CapacityReduction',
|
|
key: 'CapacityReduction',
|
|
- widthsty: '80px',
|
|
|
|
|
|
+ widthsty: '100px',
|
|
},
|
|
},
|
|
- ],
|
|
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ province_sorce,
|
|
|
|
+ city_sorce,
|
|
|
|
+ tableData: this.data,
|
|
|
|
+ // tableColums: [
|
|
|
|
+ // {
|
|
|
|
+ // label: '地点',
|
|
|
|
+ // key: 'address',
|
|
|
|
+ // minwidthsty: '140px'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '工厂',
|
|
|
|
+ // key: 'FactoryName'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '装置/产线',
|
|
|
|
+ // key: 'PlantName'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '年产能(万吨)',
|
|
|
|
+ // key: 'AnnualCapacity'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '检修日期',
|
|
|
|
+ // key: 'MaintenanceDate',
|
|
|
|
+ // widthsty: '150px'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '复产日期',
|
|
|
|
+ // key: 'ResumptionDate',
|
|
|
|
+ // tip: '默认检修结束日期为复产日期',
|
|
|
|
+ // widthsty: '220px'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '降负系数',
|
|
|
|
+ // key: 'Coefficient',
|
|
|
|
+ // widthsty: '80px',
|
|
|
|
+ // tip: '1表示停产,0.1表示降负10%'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '日均产量减量(吨)',
|
|
|
|
+ // key: 'AverageDailyCapacityReductionTon',
|
|
|
|
+ // widthsty: '100px',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '时长',
|
|
|
|
+ // key: 'Day',
|
|
|
|
+ // widthsty: '80px',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '期间减量(万吨)',
|
|
|
|
+ // key: 'CapacityReduction',
|
|
|
|
+ // widthsty: '80px',
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
|
|
|
|
initTable: [{
|
|
initTable: [{
|
|
VarietyPlantId: 0,
|
|
VarietyPlantId: 0,
|
|
@@ -250,11 +305,11 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
async delPlant({VarietyPlantId},index) {
|
|
async delPlant({VarietyPlantId},index) {
|
|
if(VarietyPlantId) {
|
|
if(VarietyPlantId) {
|
|
- await this.$confirm('删除后不可恢复,确认删除吗?','提示',{ type: 'warning' })
|
|
|
|
|
|
+ await this.$confirm(this.$t('MsgPrompt.delete_info_msg'),this.$t('Confirm.prompt'),{ type: 'warning' })
|
|
const res = await supplyApi.delPlant({VarietyPlantId});
|
|
const res = await supplyApi.delPlant({VarietyPlantId});
|
|
if(res.Ret !== 200) return
|
|
if(res.Ret !== 200) return
|
|
|
|
|
|
- this.$message.success('删除成功');
|
|
|
|
|
|
+ this.$message.success(this.$t('MsgPrompt.delete_msg'));
|
|
this.$emit('getData')
|
|
this.$emit('getData')
|
|
}else {
|
|
}else {
|
|
this.tableData.splice(index,1)
|
|
this.tableData.splice(index,1)
|