| | |
| | | :selectable="isSelectable" |
| | | @selection-change="handleSelectionChange" |
| | | @pagination="pagination"> |
| | | <template #quantity="{ row }"> |
| | | {{ row.quantity || '-' }}<span style="color:rgb(63, 95, 211)"> 块</span> |
| | | </template> |
| | | <template #volume="{ row }"> |
| | | {{ row.volume || '-' }}<span style="color:rgba(12, 46, 40, 0.76)"> 方</span> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | | <!-- 合并下发弹窗 --> |
| | | <el-dialog v-model="isShowNewModal" |
| | | destroy-on-close |
| | | title="合并下发" |
| | | width="600px"> |
| | | <el-form :model="mergeForm" |
| | |
| | | </el-dialog> |
| | | <!-- 追踪进度弹窗 --> |
| | | <el-dialog v-model="showTrackProgressDialog" |
| | | destroy-on-close |
| | | :title="`追踪进度 - ${trackProgressForm.materialCode || ''}`" |
| | | width="600px"> |
| | | <el-form :model="trackProgressForm" |
| | |
| | | @close="handleImportClose" /> |
| | | <!-- 新增/编辑弹窗 --> |
| | | <el-dialog v-model="dialogVisible" |
| | | destroy-on-close |
| | | :title="operationType === 'add' ? '新增生产计划' : '编辑生产计划'" |
| | | width="600px"> |
| | | <el-form ref="formRef" |
| | |
| | | { |
| | | label: "块数", |
| | | prop: "quantity", |
| | | formatData: cell => (cell ? `${cell}块` : ""), |
| | | align: "right", |
| | | dataType: "slot", |
| | | slot: "quantity", |
| | | }, |
| | | { |
| | | label: "方数", |
| | | prop: "volume", |
| | | width: "150px", |
| | | align: "right", |
| | | dataType: "slot", |
| | | slot: "volume", |
| | | className: "volume-cell", |
| | | formatData: cell => (cell ? `${cell}方` : ""), |
| | | }, |
| | | { |
| | | label: "下发状态", |
| | |
| | | sum + |
| | | (row.volume == null |
| | | ? 0 |
| | | : (Number(row.volume) - Number(row.assignedQuantity)).toFixed(4)) |
| | | : Number(Number(row.volume) - Number(row.assignedQuantity).toFixed(4))) |
| | | ); |
| | | }, 0); |
| | | sumAssignedQuantity.value = totalAssignedQuantity; |