fix: 店铺列表增加单独激活码弹窗,修改耗材列表搜索时间筛选条件传参

This commit is contained in:
2025-03-20 15:38:47 +08:00
parent c73a838e8c
commit 552e3f20a0
3 changed files with 79 additions and 3 deletions

View File

@@ -123,7 +123,13 @@ function toGoods(id: number | string) {
//统计数据
const gongjiData = reactive({ totalRow: 0 });
function getTongji(params: IObject | undefined) {
consApi.statistics(params).then((res) => {
const query = { ...params };
if (params?.createAt) {
query.beginTime = params.createAt[0];
query.endTime = params.createAt[1];
delete query.createAt;
}
consApi.statistics(query).then((res) => {
Object.assign(gongjiData, res);
});
}