|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 查询 | 
|---|
|  |  |  | export function fetchList (data) { | 
|---|
|  |  |  | return request.post('/business/jkSketch/page', 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('/business/jkSketch/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('/business/jkSketch/create', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/jkSketch/create', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 修改 | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/business/jkSketch/updateById', 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('/business/jkSketch/delete/batch', { | 
|---|
|  |  |  | return request.get('/visitsAdmin/cloudService/business/jkSketch/delete/batch', { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ids | 
|---|
|  |  |  | } | 
|---|