|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
-<!-- 发电厂 -->
|
|
|
+<!-- 年度计划编制-发电厂 -->
|
|
|
<!-- 当有审核与取消审核权限时,默认其为审核人,审核人无法修改数据 -->
|
|
|
<div class="outElectricity">
|
|
|
<div class="box">
|
|
@@ -206,8 +206,8 @@
|
|
|
<el-input clearable
|
|
|
v-for="(itemform, key) in tableFormDataObj[scope.row.seq].weight"
|
|
|
style="width: 100%;"
|
|
|
- v-model="itemform['AT2017']"
|
|
|
- v-if="!isNaN(Number(itemform['AT2017']))"
|
|
|
+ v-model="itemform['AT4002']"
|
|
|
+ v-if="!isNaN(Number(itemform['AT4002']))"
|
|
|
refcous="true"
|
|
|
:rules="tableFormRules.weight"
|
|
|
oninput="this.value = this.value.replace(/[^\d.]/g,'');"
|
|
@@ -219,7 +219,7 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT2017']}}</span>
|
|
|
+ <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT4002']}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -236,8 +236,8 @@
|
|
|
<el-input clearable
|
|
|
v-for="(itemform, key) in tableFormDataObj[scope.row.seq].weight"
|
|
|
style="width: 100%;"
|
|
|
- v-model="itemform['AT2016']"
|
|
|
- v-if="!isNaN(Number(itemform['AT2016']))"
|
|
|
+ v-model="itemform['AT4001']"
|
|
|
+ v-if="!isNaN(Number(itemform['AT4001']))"
|
|
|
refcous="true"
|
|
|
:rules="tableFormRules.weight"
|
|
|
oninput="this.value = this.value.replace(/[^\d.]/g,'');"
|
|
@@ -249,7 +249,7 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT2016']}}</span>
|
|
|
+ <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT4001']}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -266,8 +266,8 @@
|
|
|
<el-input clearable
|
|
|
v-for="(itemform, key) in tableFormDataObj[scope.row.seq].weight"
|
|
|
style="width: 100%;"
|
|
|
- v-model="itemform['AT2015']"
|
|
|
- v-if="!isNaN(Number(itemform['AT2015']))"
|
|
|
+ v-model="itemform['AT4008']"
|
|
|
+ v-if="!isNaN(Number(itemform['AT4008']))"
|
|
|
refcous="true"
|
|
|
:rules="tableFormRules.weight"
|
|
|
oninput="this.value = this.value.replace(/[^\d.]/g,'');"
|
|
@@ -279,7 +279,7 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT2015']}}</span>
|
|
|
+ <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT4008']}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -325,8 +325,8 @@
|
|
|
<el-input clearable
|
|
|
v-for="(itemform, key) in tableFormDataObj[scope.row.seq].weight"
|
|
|
style="width: 100%;"
|
|
|
- v-model="itemform['AT2020']"
|
|
|
- v-if="!isNaN(Number(itemform['AT2020']))"
|
|
|
+ v-model="itemform['AT4004']"
|
|
|
+ v-if="!isNaN(Number(itemform['AT4004']))"
|
|
|
refcous="true"
|
|
|
:rules="tableFormRules.weight"
|
|
|
oninput="this.value = this.value.replace(/[^\d.]/g,'');"
|
|
@@ -337,7 +337,7 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT2020']}}</span>
|
|
|
+ <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT4004']}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -353,8 +353,8 @@
|
|
|
<el-input clearable
|
|
|
v-for="(itemform, key) in tableFormDataObj[scope.row.seq].weight"
|
|
|
style="width: 100%;"
|
|
|
- v-model="itemform['AT2021']"
|
|
|
- v-if="!isNaN(Number(itemform['AT2021']))"
|
|
|
+ v-model="itemform['3022']"
|
|
|
+ v-if="!isNaN(Number(itemform['3022']))"
|
|
|
refcous="true"
|
|
|
:rules="tableFormRules.weight"
|
|
|
oninput="this.value = this.value.replace(/[^\d.]/g,'');"
|
|
@@ -365,7 +365,7 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['AT2021']}}</span>
|
|
|
+ <span v-else v-for="(item, index) in tableData[scope.row.index].weight" :key="index">{{item['3022']}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -759,40 +759,40 @@ export default {
|
|
|
},
|
|
|
workprocid: {
|
|
|
obj: {
|
|
|
- 'AT2017': {
|
|
|
- id: 'AT2017',
|
|
|
+ 'AT4002': {
|
|
|
+ id: 'AT4002',
|
|
|
name: '煤气机组40MW'
|
|
|
},
|
|
|
- 'AT2016': {
|
|
|
- id: 'AT2016',
|
|
|
+ 'AT4001': {
|
|
|
+ id: 'AT4001',
|
|
|
name: '煤气机组25MW'
|
|
|
},
|
|
|
- 'AT2015': {
|
|
|
- id: 'AT2015',
|
|
|
+ 'AT4008': {
|
|
|
+ id: 'AT4008',
|
|
|
name: '煤气机组6MW'
|
|
|
},
|
|
|
'AT2022': {
|
|
|
id: 'AT2022',
|
|
|
name: '煤气机组3MW'
|
|
|
},
|
|
|
- 'AT2020': {
|
|
|
- id: 'AT2020',
|
|
|
+ 'AT4004': {
|
|
|
+ id: 'AT4004',
|
|
|
name: '12MW干熄焦'
|
|
|
},
|
|
|
- 'AT2021': {
|
|
|
- id: 'AT2021',
|
|
|
+ '3022': {
|
|
|
+ id: '3022',
|
|
|
name: 'TRT发电'
|
|
|
}},
|
|
|
arr: [{
|
|
|
- id: 'AT2017',
|
|
|
+ id: 'AT4002',
|
|
|
name: '煤气机组40MW'
|
|
|
},
|
|
|
{
|
|
|
- id: 'AT2016',
|
|
|
+ id: 'AT4001',
|
|
|
name: '煤气机组25MW'
|
|
|
},
|
|
|
{
|
|
|
- id: 'AT2015',
|
|
|
+ id: 'AT4008',
|
|
|
name: '煤气机组6MW'
|
|
|
},
|
|
|
{
|
|
@@ -800,11 +800,11 @@ export default {
|
|
|
name: '煤气机组3MW'
|
|
|
},
|
|
|
{
|
|
|
- id: 'AT2020',
|
|
|
+ id: 'AT4004',
|
|
|
name: '12MW干熄焦'
|
|
|
},
|
|
|
{
|
|
|
- id: 'AT2021',
|
|
|
+ id: '3022',
|
|
|
name: 'TRT发电'
|
|
|
}]
|
|
|
},
|
|
@@ -953,15 +953,15 @@ export default {
|
|
|
lineTotal5 = 0;
|
|
|
for (let i = 0; i < that.tableData.length; i++) {
|
|
|
that.tableData[i].weight.forEach((item, key) => {
|
|
|
- weiItem = (isNaN(item['AT2017']) ? 0 : item['AT2017']);
|
|
|
+ weiItem = (isNaN(item['AT4002']) ? 0 : item['AT4002']);
|
|
|
lineTotal += Number(weiItem);
|
|
|
});
|
|
|
that.tableData[i].weight.forEach((item, key) => {
|
|
|
- weiItem = (isNaN(item['AT2016']) ? 0 : item['AT2016']);
|
|
|
+ weiItem = (isNaN(item['AT4001']) ? 0 : item['AT4001']);
|
|
|
lineTotal1 += Number(weiItem);
|
|
|
});
|
|
|
that.tableData[i].weight.forEach((item, key) => {
|
|
|
- weiItem = (isNaN(item['AT2015']) ? 0 : item['AT2015']);
|
|
|
+ weiItem = (isNaN(item['AT4008']) ? 0 : item['AT4008']);
|
|
|
lineTotal2 += Number(weiItem);
|
|
|
});
|
|
|
that.tableData[i].weight.forEach((item, key) => {
|
|
@@ -969,11 +969,11 @@ export default {
|
|
|
lineTotal3 += Number(weiItem);
|
|
|
});
|
|
|
that.tableData[i].weight.forEach((item, key) => {
|
|
|
- weiItem = (isNaN(item['AT2021']) ? 0 : item['AT2021']);
|
|
|
+ weiItem = (isNaN(item['3022']) ? 0 : item['3022']);
|
|
|
lineTotal5 += Number(weiItem);
|
|
|
});
|
|
|
that.tableData[i].weight.forEach((item, key) => {
|
|
|
- weiItem = (isNaN(item['AT2020']) ? 0 : item['AT2020']);
|
|
|
+ weiItem = (isNaN(item['AT4004']) ? 0 : item['AT4004']);
|
|
|
lineTotal4 += Number(weiItem);
|
|
|
});
|
|
|
};
|