| | |
| | | <el-table-column label="规格型号" prop="model" show-overflow-tooltip /> |
| | | <el-table-column label="单位" prop="unit" show-overflow-tooltip /> |
| | | <el-table-column label="库存数量" prop="qualitity" show-overflow-tooltip /> |
| | | <el-table-column label="冻结数量" prop="lockedQuantity" show-overflow-tooltip /> |
| | | <!-- <el-table-column label="冻结数量" prop="lockedQuantity" show-overflow-tooltip /> --> |
| | | <!-- <el-table-column label="库存预警数量" prop="warnNum" show-overflow-tooltip /> --> |
| | | <el-table-column label="净重(吨)" prop="netWeight" show-overflow-tooltip /> |
| | | <!-- <el-table-column label="净重(吨)" prop="netWeight" show-overflow-tooltip /> --> |
| | | <el-table-column label="备注" prop="remark" show-overflow-tooltip /> |
| | | <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip /> |
| | | <el-table-column fixed="right" label="操作" min-width="60" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="small" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">出库</el-button> |
| | | <el-button link type="primary" size="small" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> |
| | | <!-- <el-button link type="primary" size="small" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> --> |
| | | <el-button link type="primary" size="small" v-if="scope.row.lockedQuantity > 0" @click="showThawModal(scope.row)">解冻</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | // 点击领用 |
| | | const showSubtractModal = (row) => { |
| | | console.log('row', row) |
| | | record.value = row |
| | | record.value = { |
| | | ...row, |
| | | productType: row.parentName === '原材料' ? 0 : 1 |
| | | } |
| | | isShowSubtractModal.value = true |
| | | } |
| | | |