| 对比新文件 |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | // 鏌ヨ |
| | | export function fetchList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | export function importExcel (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/importExcel', data) |
| | | } |
| | | // 瀵煎嚭Excel |
| | | export function exportExcel (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/exportExcel', data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | export function exportResultExcel (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketchCustomer/exportExcel', data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | export function exportOrdersExcel (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkOrders/exportExcel', data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | |
| | | // 鍒涘缓 |
| | | export function create (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/create', data) |
| | | } |
| | | |
| | | // 淇敼 |
| | | export function updateSketchLine (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/updateSketchLine', data) |
| | | } |
| | | // 淇敼 |
| | | export function updateById (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/updateById', data) |
| | | } |
| | | export function initOriginDistance (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/initOriginDistance', data) |
| | | } |
| | | export function distanceCustomer (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/jkSketch/distanceCustomer', data) |
| | | } |
| | | // 鍒犻櫎 |
| | | export function deleteById (id) { |
| | | return request.get(`/business/jkSketch/delete/${id}`) |
| | | } |
| | | |
| | | // 鎵归噺鍒犻櫎 |
| | | export function deleteByIdInBatch (ids) { |
| | | return request.get('/visitsAdmin/cloudService/business/jkSketch/delete/batch', { |
| | | params: { |
| | | ids |
| | | } |
| | | }) |
| | | } |