diff --git a/src/api/StockIn/index.ts b/src/api/StockIn/index.ts index ca92953..102a62b 100644 --- a/src/api/StockIn/index.ts +++ b/src/api/StockIn/index.ts @@ -154,4 +154,12 @@ export function createDelivery(params: any) { method: 'post', data: params, }); +} + +export function getPurchase(params: any) { + return request({ + url: '/api/delivery/getPurchase', + method: 'post', + data: params, + }); } \ No newline at end of file diff --git a/src/views/stockIn/StockInByCharge/drawer.vue b/src/views/stockIn/StockInByCharge/drawer.vue index b68ea8f..6674bde 100644 --- a/src/views/stockIn/StockInByCharge/drawer.vue +++ b/src/views/stockIn/StockInByCharge/drawer.vue @@ -22,8 +22,8 @@ - - + +
{ - if (res.data.list.length > 0) { - state.dataList = res.data.list - state.total = res.data.total - } else { - state.dataList = res.data.list - proxy.$ElMessage.success('查询结果为空') - } + await getPurchase(state.queryParams).then((res: any) => { + state.dataList = res.resultObj.list + state.total = res.resultObj.total state.loading = false }) } @@ -114,6 +106,6 @@ function handleCreate() { } function resetQuery() { queryFormRef.value.resetFields(); - handleQuery(); + queryInfo(); } \ No newline at end of file