|
@@ -10,7 +10,11 @@
|
|
|
>
|
|
|
<!-- tabel 加载 -->
|
|
|
<a-spin :spinning="confirmLoading">
|
|
|
- <a-table :loading="loading" bordered :columns="columns" :data-source="data" :pagination="false"> </a-table>
|
|
|
+ <a-table :loading="loading" bordered :columns="columns" :data-source="data" :pagination="false">
|
|
|
+ <span slot="unitCost" slot-scope="text,record">
|
|
|
+ <a-input placeholder="请输入" v-model="record.unitCost" @change="changeUnitCost(record)"/>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
<!-- 导出 打印 返回 -->
|
|
|
<a-row style="marginTop:20px;">
|
|
|
<a-col :md="24" :sm="12">
|
|
@@ -67,10 +71,7 @@ export default {
|
|
|
dataIndex: 'unitCost',
|
|
|
width: 120,
|
|
|
className: 'replacecolor',
|
|
|
- customRender: (text, record, index) => {
|
|
|
- var re = Number(text).toFixed(3)
|
|
|
- return re
|
|
|
- }
|
|
|
+ scopedSlots: { customRender: 'unitCost' },
|
|
|
},
|
|
|
{
|
|
|
title: '总成本',
|