// 企业客户/供应商账号相关
import http from "@/apis/axios";
const api = "admin/customer_item/";

const cusAPI = "admin/customer/"

export default {
    // 列表
    list: (data, params) => http(api + "list", data, "post", params),
    // 组织新建
    zadd: (data, params) => http(api + "create", data, "post", params),
    // // 组织详情
    // zdetail: (data, params) => http(api + "customerselect", data, "post", params),
    // 组织更新
    zupdate: (data, params) => http(api + "update", data, "post", params),
    // 组织删除
    zdelete: (data, params) => http(api + "delete", data, "post", params),
    // 组织状态
    zstatus: (data, params) => http(api + "status", data, "post", params),


    // 企业新建
    qadd: (data, params) => http(cusAPI + "create", data, "post", params),
    // 企业更新
    qupdate: (data, params) => http(cusAPI + "save", data, "post", params),
    // // 企业详情
    // qdetail: (data, params) => http(api + "customarinfo", data, "post", params),
    // 企业删除
    qdelete: (data, params) => http(cusAPI + "delete", data, "post", params),
    // 企业状态
    qstatus: (data, params) => http(cusAPI + "status", data, "post", params),

};
