Commit 55e828de authored by zhanglongbao's avatar zhanglongbao

fix

parent 5c5e58ee
import http from "../axios"; import http from "../axios";
import { container } from "@/utils/container/index";
interface CustomerList { interface CustomerList {
page: number; page: number;
...@@ -33,7 +34,12 @@ export default { ...@@ -33,7 +34,12 @@ export default {
}, },
// 客户列表 // 客户列表
listCustomInfo(params: CustomerList) { listCustomInfo(params: CustomerList) {
return http.post("/order.customer/listCustomInfo", params); return http.post(
`/order.${
container.qr_code ? "external" : "customer"
}/listCustomInfo`,
params
);
}, },
// 删除客户 // 删除客户
deleteCustomInfo(params: { ids: string[]; form_id: string }) { deleteCustomInfo(params: { ids: string[]; form_id: string }) {
......
import http from "../axios"; import http from "../axios";
import { container } from "@/utils/container/index";
export default { export default {
// 产品列表 // 产品列表
listProduct(params: { page: number; size: number; [k: string]: any }) { listProduct(params: { page: number; size: number; [k: string]: any }) {
return http.post("/order.product/listProduct", params); return http.post(
`/order.${container.qr_code ? "external" : "product"}/listProduct`,
params
);
}, },
// 新增/修改产品 // 新增/修改产品
saveProduct(params: any) { saveProduct(params: any) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment