|
@@ -255,24 +255,6 @@
|
|
width="63px"
|
|
width="63px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
- sortable
|
|
|
|
- prop="timegranid"
|
|
|
|
- label="时间粒度"
|
|
|
|
- width="75px"
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>{{ nameObj.timegranid.obj[scope.row.timegranid] ? nameObj.timegranid.obj[scope.row.timegranid] : scope.row.timegranid }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- sortable
|
|
|
|
- prop="itemid"
|
|
|
|
- label="项目编号"
|
|
|
|
- width="103px"
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
- ></el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="workprocid"
|
|
prop="workprocid"
|
|
@@ -309,13 +291,6 @@
|
|
<span>{{ nameObj.propertyid.obj[scope.row.propertyid] ? nameObj.propertyid.obj[scope.row.propertyid] : scope.row.propertyid }}</span>
|
|
<span>{{ nameObj.propertyid.obj[scope.row.propertyid] ? nameObj.propertyid.obj[scope.row.propertyid] : scope.row.propertyid }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- sortable
|
|
|
|
- prop="itemname"
|
|
|
|
- label="项目名称"
|
|
|
|
- width="175px"
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
- ></el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="itemdesc"
|
|
prop="itemdesc"
|
|
@@ -325,38 +300,36 @@
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="actualvalue"
|
|
|
|
- label="计算值"
|
|
|
|
- width="110px"
|
|
|
|
|
|
+ prop="rav"
|
|
|
|
+ label="实绩值"
|
|
|
|
+ width="118px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="correctvalue"
|
|
|
|
- label="修正值"
|
|
|
|
- width="120px"
|
|
|
|
|
|
+ label="分摊值"
|
|
|
|
+ width="110px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-form-item
|
|
|
|
- v-if="scope.row.isSelection"
|
|
|
|
- :prop="'s' + scope.row.seq + '.correctvalue'"
|
|
|
|
- :rules="tableFormRules.numbers"
|
|
|
|
- >
|
|
|
|
- <el-input clearable
|
|
|
|
- style="width: 100%;" @keydown.native="keyDown" :id="scope.column.id + scope.$index"
|
|
|
|
- v-model.trim="tableFormDataObj['s' + scope.row.seq].correctvalue"
|
|
|
|
- refcous="true"
|
|
|
|
- @change="getApportvalue('s' + scope.row.seq)"
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <span v-else>{{scope.row.correctvalue}}</span>
|
|
|
|
|
|
+ <span>{{ isNaN(scope.row.apportvalue - scope.row.rav) ? '' : floatComputed(scope.row.apportvalue, scope.row.rav, '-') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <!-- <el-table-column
|
|
|
|
+ sortable
|
|
|
|
+ prop="timegranid"
|
|
|
|
+ label="时间粒度"
|
|
|
|
+ width="75px"
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ nameObj.timegranid.obj[scope.row.timegranid] ? nameObj.timegranid.obj[scope.row.timegranid] : scope.row.timegranid }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="apportvalue"
|
|
prop="apportvalue"
|
|
- label="最终值"
|
|
|
|
|
|
+ label="最终值(平衡)"
|
|
width="135px"
|
|
width="135px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
@@ -378,22 +351,67 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="rav"
|
|
|
|
- label="实绩值"
|
|
|
|
- width="118px"
|
|
|
|
|
|
+ prop="unitid"
|
|
|
|
+ label="单位"
|
|
|
|
+ width="65px"
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ nameObj.unitid.obj[scope.row.unitid] ? nameObj.unitid.obj[scope.row.unitid] : scope.row.unitid }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ sortable
|
|
|
|
+ prop="showno"
|
|
|
|
+ width="100px"
|
|
|
|
+ label="序号"
|
|
|
|
+ align="center"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ sortable
|
|
|
|
+ prop="itemid"
|
|
|
|
+ label="项目编号"
|
|
|
|
+ width="103px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- label="分摊值"
|
|
|
|
|
|
+ prop="itemname"
|
|
|
|
+ label="项目名称"
|
|
|
|
+ width="175px"
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ sortable
|
|
|
|
+ prop="actualvalue"
|
|
|
|
+ label="计算值"
|
|
width="110px"
|
|
width="110px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ sortable
|
|
|
|
+ prop="correctvalue"
|
|
|
|
+ label="修正值"
|
|
|
|
+ width="120px"
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ isNaN(scope.row.apportvalue - scope.row.rav) ? '' : floatComputed(scope.row.apportvalue, scope.row.rav, '-') }}</span>
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ v-if="scope.row.isSelection"
|
|
|
|
+ :prop="'s' + scope.row.seq + '.correctvalue'"
|
|
|
|
+ :rules="tableFormRules.numbers"
|
|
|
|
+ >
|
|
|
|
+ <el-input clearable
|
|
|
|
+ style="width: 100%;" @keydown.native="keyDown" :id="scope.column.id + scope.$index"
|
|
|
|
+ v-model.trim="tableFormDataObj['s' + scope.row.seq].correctvalue"
|
|
|
|
+ refcous="true"
|
|
|
|
+ @change="getApportvalue('s' + scope.row.seq)"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <span v-else>{{scope.row.correctvalue}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
sortable
|
|
sortable
|
|
prop="stdvalue"
|
|
prop="stdvalue"
|
|
label="折标值"
|
|
label="折标值"
|
|
@@ -413,25 +431,7 @@
|
|
label="实绩产量"
|
|
label="实绩产量"
|
|
width="100px"
|
|
width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- sortable
|
|
|
|
- prop="showno"
|
|
|
|
- width="100px"
|
|
|
|
- label="序号"
|
|
|
|
- align="center"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- sortable
|
|
|
|
- prop="unitid"
|
|
|
|
- label="单位"
|
|
|
|
- width="65px"
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>{{ nameObj.unitid.obj[scope.row.unitid] ? nameObj.unitid.obj[scope.row.unitid] : scope.row.unitid }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ ></el-table-column> -->
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="rectime"
|
|
prop="rectime"
|
|
@@ -647,7 +647,7 @@ export default {
|
|
},
|
|
},
|
|
// 自定义的表格合计方法:只给指定列进行合计
|
|
// 自定义的表格合计方法:只给指定列进行合计
|
|
getSummaries (param) {
|
|
getSummaries (param) {
|
|
- const prop = ['actualvalue', 'correctvalue', 'apportvalue']; // 合计列绑定的prop
|
|
|
|
|
|
+ const prop = ['actualvalue', 'correctvalue', 'apportvalue','rav','ftz']; // 合计列绑定的prop
|
|
return XtcommonSummaries(param, prop);
|
|
return XtcommonSummaries(param, prop);
|
|
},
|
|
},
|
|
// 获取工序(供需实际)
|
|
// 获取工序(供需实际)
|