123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- import { request } from '../../utils/requestmini'
- // 查询客户信息列表
- export function listCustomerInfo(query) {
- return request({
- url: '/market/customerInfo/list',
- method: 'get',
- data: query
- })
- }
- // 查询客户信息详细
- export function getCustomerInfo(customerId) {
- return request({
- url: '/market/customerInfo/' + customerId,
- method: 'get'
- })
- }
- // 新增客户信息
- export function addCustomerInfo(data) {
- return request({
- url: '/market/customerInfo',
- method: 'post',
- data: data
- })
- }
- // 修改客户信息
- export function updateCustomerInfo(data) {
- return request({
- url: '/market/customerInfo',
- method: 'put',
- data: data
- })
- }
- // 删除客户信息
- export function delCustomerInfo(customerId) {
- return request({
- url: '/market/customerInfo/' + customerId,
- method: 'delete'
- })
- }
- // import request from '../../utils/request'
- // 查询市场调研列表
- export function listResearch(query) {
- return request({
- url: '/market/research/list',
- method: 'get',
- data: query
- })
- }
- // 查询市场调研详细
- export function getResearch(researchId) {
- return request({
- url: '/market/research/' + researchId,
- method: 'get'
- })
- }
- // 新增市场调研
- export function addResearch(data) {
- return request({
- url: '/market/research',
- method: 'post',
- data: data
- })
- }
- // 修改市场调研
- export function updateResearch(data) {
- return request({
- url: '/market/research',
- method: 'put',
- data: data
- })
- }
- // 删除市场调研
- export function delResearch(researchId) {
- return request({
- url: '/market/research/' + researchId,
- method: 'delete'
- })
- }
- // import request from '../../utils/request'
- // 查询客户拜访列表
- export function listVisit(query) {
- return request({
- url: '/market/visit/list',
- method: 'get',
- data: query
- })
- }
- // 查询客户拜访详细
- export function getVisit(visitId) {
- return request({
- url: '/market/visit/' + visitId,
- method: 'get'
- })
- }
- // 新增客户拜访
- export function addVisit(data) {
- return request({
- url: '/market/visit',
- method: 'post',
- data: data
- })
- }
- // 修改客户拜访
- export function updateVisit(data) {
- return request({
- url: '/market/visit',
- method: 'put',
- data: data
- })
- }
- // 删除客户拜访
- export function delVisit(visitId) {
- return request({
- url: '/market/visit/' + visitId,
- method: 'delete'
- })
- }
- export function login(username, password, code, uuid) {
- const data = {
- username,
- password,
- code,
- uuid
- }
- return request({
- url: '/login',
- headers: {
- isToken: false
- },
- method: 'post',
- data: data
- })
- }
|