| | |
| | | <el-table-column label="来源" |
| | | show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | {{ scope.row.wasteSourceText || scope.row.qualifiedSourceText || scope.row.unQualifiedSourceText || "--" }} |
| | | {{ scope.row.sourceText || "--" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="单位" |
| | |
| | | <el-table-column label="库存数量" |
| | | prop="qualitity" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="冻结数量" |
| | | prop="lockedQuantity" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="可用数量" |
| | | prop="unLockedQuantity" |
| | | 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="180" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button link |
| | | type="primary" |
| | | @click="handleSubtract(scope.row)" |
| | | :disabled=" |
| | | (scope.row.unLockedQuantity || 0) <= 0 |
| | | ">领用</el-button> |
| | | <el-button link |
| | | type="primary" |
| | | v-if=" |
| | | (scope.row.unLockedQuantity || 0) > 0 |
| | | " |
| | | @click="handleFrozen(scope.row)">冻结</el-button> |
| | | <el-button link |
| | | type="primary" |
| | | v-if=" |
| | | (scope.row.lockedQuantity || 0) > 0 |
| | | " |
| | | @click="handleThaw(scope.row)">解冻</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <pagination v-show="total > 0" |
| | |
| | | <script setup> |
| | | import pagination from "@/components/PIMTable/Pagination.vue"; |
| | | import { computed, reactive, ref, watch, onMounted } from "vue"; |
| | | import { getStockInventoryBatchNoQty } from "@/api/inventoryManagement/stockInventory.js"; |
| | | import { getWasteBatchNoQty } from "@/api/inventoryManagement/stockUninventory.js"; |
| | | import { getManufacturerOptions } from "@/api/inspectionManagement/manufacturerManageFile.js"; |
| | | |
| | | const props = defineProps({ |
| | |
| | | }, |
| | | }); |
| | | |
| | | const emit = defineEmits(["update:visible", "subtract", "frozen", "thaw"]); |
| | | const emit = defineEmits(["update:visible"]); |
| | | |
| | | const isShow = computed({ |
| | | get() { |
| | |
| | | } |
| | | |
| | | tableLoading.value = true; |
| | | getStockInventoryBatchNoQty({ |
| | | getWasteBatchNoQty({ |
| | | current: page.current, |
| | | size: page.size, |
| | | productId: props.record.productId, |
| | |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList(); |
| | | }; |
| | | |
| | | const handleSubtract = row => { |
| | | emit("subtract", row); |
| | | }; |
| | | |
| | | const handleFrozen = row => { |
| | | emit("frozen", row); |
| | | }; |
| | | |
| | | const handleThaw = row => { |
| | | emit("thaw", row); |
| | | }; |
| | | |
| | | const closeModal = () => { |