TypeScript Vue Plugi

This commit is contained in:
2025-12-12 15:43:58 +08:00
parent d37fa46b5f
commit 0794782505
3 changed files with 13 additions and 12 deletions

View File

@@ -219,11 +219,11 @@ function getExpirationWarningCount() {
let chartInstance = null; let chartInstance = null;
onActivated(() => { onActivated(() => {
getExpirationWarningCount(); // getExpirationWarningCount();
}) })
onMounted(() => { onMounted(() => {
getExpirationWarningCount(); // getExpirationWarningCount();
const ctx = document.getElementById('statsChart'); const ctx = document.getElementById('statsChart');
if (!ctx) return; if (!ctx) return;

View File

@@ -252,11 +252,11 @@ function getList() {
...queryParams.value, ...queryParams.value,
flg: queryParams.value.flg == 1 ? '1' : null, flg: queryParams.value.flg == 1 ? '1' : null,
}; };
getExpirationWarning(params).then((res) => { // getExpirationWarning(params).then((res) => {
loading.value = false; // loading.value = false;
purchaseinventoryList.value = res.data.records; // purchaseinventoryList.value = res.data.records;
total.value = res.data.total; // total.value = res.data.total;
}); // });
} }
/** 搜索按钮操作 */ /** 搜索按钮操作 */

View File

@@ -306,11 +306,12 @@ export function ybRequestFileUp(data) {
}) })
} }
export function getExpirationWarning(query) { export function getExpirationWarning(query) {
return request({ // return request({
url: '/inventory-manage/product/expiration-warning', // url: '/inventory-manage/product/expiration-warning',
method: 'get', // method: 'get',
params: query // params: query
}) // })
return null;
} }
export function getClroptins(query) { export function getClroptins(query) {
return request({ return request({