| | |
| | | > |
| | | <el-button type="primary" @click="handlData">选择数据</el-button> |
| | | <ETable |
| | | v-if="tableData.length > 0" |
| | | :columns="columns" |
| | | height="200" |
| | | @cell-edit="handleCellEdit" |
| | |
| | | /> |
| | | <div class="empty-table"> |
| | | <h1>生产明细</h1> |
| | | <el-row :gutter="10" v-if="tableData.length > 0"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="2"> |
| | | <el-button type="primary" @click="addNewRow"> |
| | | <el-icon> |
| | |
| | | </el-col> --> |
| | | </el-row> |
| | | <ProductionDetailsTable |
| | | v-if="tableData.length > 0" |
| | | v-model="detailsTableData" |
| | | :border="false" |
| | | :show-operations="true" |
| | |
| | | @input-change="handleDetailsChange" |
| | | @delete-row="handleDeleteRow" |
| | | /> |
| | | <div style="margin-top: 20px;" v-else>暂无数据,请选择配置数据</div> |
| | | |
| | | </div> |
| | | |
| | |
| | | { label: "本次使用数量", prop: "used" }, |
| | | ]; |
| | | const detailsTableData = ref([ |
| | | { |
| | | coalType: "", |
| | | calorificValue: "", |
| | | productionQuantity: "", |
| | | laborCost: "", |
| | | energyCost: "", |
| | | equipmentDepreciation: "", |
| | | purchasePrice: "", |
| | | totalCost: "", |
| | | }, |
| | | |
| | | ]); |
| | | const handleRowClick = (row) => { |
| | | currentRow.value = row; |