| | |
| | | } from "@/api/consumablesLogistics/consumablesInRecord.js"; |
| | | import { |
| | | findAllQualifiedStockInRecordTypeOptions, |
| | | findAllUnQualifiedStockInRecordTypeOptions, |
| | | } from "@/api/basicData/enum.js"; |
| | | |
| | | const props = defineProps({ |
| | |
| | | }; |
| | | |
| | | const fetchStockRecordTypeOptions = () => { |
| | | const api = |
| | | props.type === "1" |
| | | ? findAllUnQualifiedStockInRecordTypeOptions |
| | | : findAllQualifiedStockInRecordTypeOptions; |
| | | api() |
| | | findAllQualifiedStockInRecordTypeOptions() |
| | | .then((res) => { |
| | | stockRecordTypeOptions.value = res.data || []; |
| | | }) |
| | |
| | | |
| | | const getList = () => { |
| | | tableLoading.value = true; |
| | | getConsumablesInRecordListPage({ ...searchForm.value, ...page, type: props.type }) |
| | | getConsumablesInRecordListPage({ ...searchForm.value, ...page, type: "0" }) |
| | | .then(res => { |
| | | tableData.value = res?.data?.records || []; |
| | | total.value = res?.data?.total || 0; |