1.新增全部本地打印标签

2.优化订单重但标签小票
This commit is contained in:
gyq
2024-06-21 13:56:16 +08:00
parent c86fff9691
commit 0b2b4b44d0
17 changed files with 2356 additions and 342 deletions

View File

@@ -2,66 +2,66 @@ import request from "@/utils/request.js";
/**
* 新增打印机
* @param {*} data
* @returns
* @param {*} data
* @returns
*/
export function tbPrintMachinePost(data, method = 'post') {
return request({
method: method,
url: "tbPrintMachine",
data
});
export function tbPrintMachinePost(data, method = "post") {
return request({
method: method,
url: "tbPrintMachine",
data,
});
}
/**
* 分页查询打印机
* @param {*} params
* @returns
* @param {*} params
* @returns
*/
export function tbPrintMachineGet(params) {
return request({
method: "get",
url: "/tbPrintMachine",
params
});
return request({
method: "get",
url: "/tbPrintMachine",
params,
});
}
/**
* 通过主键查询打印机
* @param {*} params
* @returns
* @param {*} params
* @returns
*/
export function tbPrintMachineDetail(id) {
return request({
method: "get",
url: `/tbPrintMachine/${id}`
});
return request({
method: "get",
url: `/tbPrintMachine/${id}`,
});
}
/**
* 删除打印机
* @param {*} data
* @returns
* @param {*} data
* @returns
*/
export function tbPrintMachineDelete(params) {
return request({
method: 'DELETE',
url: "tbPrintMachine",
params
});
return request({
method: "DELETE",
url: "tbPrintMachine",
params,
});
}
/**
* 根据类型查询打印机列表
* @param {*} params
* @returns
* @param {*} params
* @returns
*/
export function bySubType(params) {
return request({
method: "get",
url: "/tbPrintMachine/bySubType",
params
});
return request({
method: "get",
url: "/tbPrintMachine/bySubType",
params,
});
}
/**
@@ -69,9 +69,9 @@ export function bySubType(params) {
* @returns
*/
export function tbShopCategoryGet(params) {
return request({
url: `/tbShopCategory`,
method: 'get',
params
})
}
return request({
url: `/product/queryAllCategory`,
method: "get",
params,
});
}