| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- import request from '@/utils/request'
- // 查询客户列表
- export function listCustomer(query) {
- return request({
- url: '/qw/companyCustomer/list',
- method: 'get',
- params: query
- })
- }
- // 查询客户详情
- export function getCustomer(id) {
- return request({
- url: '/qw/companyCustomer/' + id,
- method: 'get'
- })
- }
- // 新增客户
- export function addCustomer(data) {
- return request({
- url: '/qw/companyCustomer',
- method: 'post',
- data: data
- })
- }
- // 修改客户
- export function updateCustomer(data) {
- return request({
- url: '/qw/companyCustomer',
- method: 'put',
- data: data
- })
- }
- // 认领客户
- export function claimCustomer(data) {
- return request({
- url: '/qw/companyCustomer/claimCustomer',
- method: 'put',
- data: data
- })
- }
- // 删除客户
- export function delCustomer(ids) {
- return request({
- url: '/qw/companyCustomer/' + ids,
- method: 'delete'
- })
- }
- // 导出客户
- export function exportCustomer(query) {
- return request({
- url: '/qw/companyCustomer/export',
- method: 'post',
- params: query,
- responseType: 'blob'
- })
- }
- // 获取当前登录销售及绑定医生信息
- export function getCompanyUserAndDoctor() {
- return request({
- url: '/qw/companyCustomer/getCompanyUserAndDoctor',
- method: 'get'
- })
- }
- // 根据主键id分页查询处方列表(销售端)
- export function getPrescribeListByPhone(data) {
- return request({
- url: '/qw/companyCustomer/getPrescribeListByPhone',
- method: 'post',
- data: data
- })
- }
- // 根据主键id分页查询处方列表
- export function getPrescribeListByIdAndPhone(data) {
- return request({
- url: '/qw/companyCustomer/getPrescribeListByIdAndPhone',
- method: 'post',
- data: data
- })
- }
- // 根据主键id分页查询信息采集列表
- export function getCollectionInfoListByPhone(data) {
- return request({
- url: '/qw/companyCustomer/getCollectionInfoListByPhone',
- method: 'post',
- data: data
- })
- }
- // 根据主键id分页查询信息采集列表
- export function getCollectionInfoListByIdAndPhone(data) {
- return request({
- url: '/qw/companyCustomer/getCollectionInfoListByIdAndPhone',
- method: 'post',
- data: data
- })
- }
- // 获取客户认领记录列表
- export function getCustomerLogList(query) {
- return request({
- url: '/qw/customerLog/list',
- method: 'get',
- params: query
- })
- }
- // 获取销售人员可用的收款记录列表
- export function getCanUsePayReceiptList() {
- return request({
- url: '/pay/receipt/canUsePayReceiptList',
- method: 'get'
- })
- }
- // 获取客户订单列表
- export function getOrderList(query) {
- return request({
- url: '/qw/companyCustomer/getOrderList', // 去掉 fs
- method: 'get',
- params: query
- })
- }
- // 获取订单二维码
- export function getQRCode(orderId) {
- return request({
- url: '/qw/companyCustomer/getQRCode/' + orderId, // 去掉 fs
- method: 'get'
- })
- }
- export function getAddress(address) {
- return request({
- url: '/qw/companyCustomer/getAddress',
- method: 'get',
- params: { address: address }
- })
- }
|