拉取DEV代码

This commit is contained in:
duan
2024-08-01 15:50:15 +08:00
14 changed files with 954 additions and 139 deletions

14
src/api/homes/record.js Normal file
View File

@@ -0,0 +1,14 @@
import request from '@/utils/request'
/**
* 查询交班记录
* @returns
*/
export function tbHandoverGet(leng) {
return request({
url: leng,
method: 'get'
})
}

View File

@@ -1,35 +1,30 @@
import request from '@/utils/request'
import request from "@/utils/request";
export function login(username, password, code, uuid) {
export function login(data) {
return request({
url: 'auth/login',
method: 'post',
data: {
username,
password,
code,
uuid
}
})
url: "auth/login",
method: "post",
data
});
}
export function getInfo() {
return request({
url: 'auth/info',
method: 'get'
})
url: "auth/info",
method: "get"
});
}
export function getCodeImg(header) {
return request({
url: 'auth/code',
method: 'get'
})
url: "auth/code",
method: "get"
});
}
export function logout() {
return request({
url: 'auth/logout',
method: 'delete'
})
url: "auth/logout",
method: "delete"
});
}

View File

@@ -465,7 +465,6 @@ export function queryAllShopInfo(params) {
});
}
/**
* 修改商品排序
* @returns
@@ -502,7 +501,6 @@ export function upCategorySort(data) {
});
}
/**
* 查询店铺充值记录
* @returns
@@ -526,10 +524,86 @@ export function downloadTableRecharge(data) {
return request({
url: `/api/tbShopUser/recharge/download`,
method: "post",
data:{
data: {
shopId: localStorage.getItem("shopId"),
...data
},
responseType: "blob"
});
}
/**
* 员工列表
* @returns
*/
export function tbPlussShopStaffGet(params) {
return request({
url: `/api/tbPlussShopStaff`,
method: "get",
params: {
shopId: localStorage.getItem("shopId"),
...params
}
});
}
/**
* 角色列表
* @returns
*/
export function rolesGet() {
return request({
url: `/api/roles`,
method: "get"
});
}
/**
* 增加员工
* @returns
*/
export function tbPlussShopStaff(data) {
return request({
url: `/api/tbPlussShopStaff`,
method: data.id ? "put" : "post",
data: {
shopId: localStorage.getItem("shopId"),
...data
}
});
}
/**
* 通过id获取员工信息
* @returns
*/
export function tbPlussShopStaffDetail(id) {
return request({
url: `/api/tbPlussShopStaff/${id}`,
method: "get"
});
}
/**
* 更改员工状态
* @returns
*/
export function updateStatus(data) {
return request({
url: `/api/tbPlussShopStaff/updateStatus`,
method: "put",
data
});
}
/**
* 员工删除
* @returns
*/
export function shopStaffDelete(data) {
return request({
url: `/api/tbPlussShopStaff`,
method: "delete",
data
});
}