| | |
| | | <template> |
| | | div<template> |
| | | <el-dialog |
| | | v-model="dialogVisible" |
| | | :title="dialogType === 'add' ? '新增生产加工' : '编辑生产加工'" |
| | |
| | | @row-click="handleRowClick" |
| | | :editableColumns="['used']" |
| | | /> |
| | | <div v-if="tableData.length > 0" class="empty-table"> |
| | | <div class="empty-table"> |
| | | <h1>生产明细</h1> |
| | | <el-row :gutter="10"> |
| | | <el-row :gutter="10" v-if="tableData.length > 0"> |
| | | <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> |
| | | <div style="margin-top: 20px;" v-else>暂无数据,请选择配置数据</div> |
| | | |
| | | </div> |
| | | |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | |
| | | .el-row > .el-col > h1 { |
| | | font-weight: bolder; |
| | | } |
| | | .empty-table > .el-row{ |
| | | margin-bottom: 12px; |
| | | } |
| | | </style> |