修改半成品与成品出入库相关联逻辑

This commit is contained in:
dxc
2026-02-05 13:17:39 +08:00
parent aa40d4a6da
commit 10e53cab23
5 changed files with 90 additions and 23 deletions

View File

@ -403,6 +403,7 @@ const dialogStatus = ref<'create' | 'update'>('create')
const tableData = ref([])
const total = ref(0)
const formRef = ref()
// [修改] 增加 statuses 参数
const queryParams = reactive({
page: 1,
pageSize: 15,
@ -511,6 +512,7 @@ const handleManagerSelect = (item: any) => saveToHistory(HISTORY_KEYS.PRODUCTION
const fetchData = async () => {
loading.value = true;
try {
// [修改] 传递 statuses
const params = { ...queryParams, statuses: queryParams.statuses.join(',') }
const res: any = await getProductList(params);
tableData.value = res.data.items || [];