10 changed files with 160 additions and 20 deletions
@ -0,0 +1,25 @@ |
|||||||
|
/** |
||||||
|
* 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 |
||||||
|
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved. |
||||||
|
* author entfrm开发团队-王翔 |
||||||
|
*/ |
||||||
|
import type { MapLogisticParams, MapLogistic, MapLogisticResult } from '../entity/mapLogistic'; |
||||||
|
import { defHttp } from '/@/utils/http/axios'; |
||||||
|
|
||||||
|
enum Api { |
||||||
|
list = '/common_proxy/common/mapLogistic/list', |
||||||
|
get = '/common_proxy/common/mapLogistic', |
||||||
|
add = '/common_proxy/common/mapLogistic/save', |
||||||
|
edit = '/common_proxy/common/mapLogistic/update', |
||||||
|
del = '/common_proxy/common/mapLogistic/remove' |
||||||
|
} |
||||||
|
|
||||||
|
export const listMapLogistic = (params?: Partial<MapLogisticParams>) => defHttp.get({ url: Api.list, params }); |
||||||
|
|
||||||
|
export const addMapLogistic = (params: Partial<MapLogistic>) => defHttp.post({ url: Api.add, data: params }); |
||||||
|
|
||||||
|
export const editMapLogistic = (params: Partial<MapLogistic>) => defHttp.put({ url: Api.edit, data: params }); |
||||||
|
|
||||||
|
export const getMapLogistic = (id: string) => defHttp.get<MapLogistic>({ url: `${Api.get}/${id}` }); |
||||||
|
|
||||||
|
export const delMapLogistic = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); |
@ -0,0 +1,31 @@ |
|||||||
|
|
||||||
|
/** |
||||||
|
* @program: kicc-ui |
||||||
|
* @description: 地图任务主表实体类 |
||||||
|
* @author: entfrm开发团队-王翔 |
||||||
|
* @since: 2022/8/24 |
||||||
|
*/ |
||||||
|
|
||||||
|
import type { R } from '/#/axios'; |
||||||
|
import type { CommonEntity, Page } from '/@/api/common/data/entity'; |
||||||
|
|
||||||
|
export type MapLogisticParams = Page & MapLogistic; |
||||||
|
|
||||||
|
export interface MapLogistic extends CommonEntity { |
||||||
|
id: string; |
||||||
|
name: string; |
||||||
|
courierUserId: string; |
||||||
|
courierUserName: string; |
||||||
|
courierLng: number; |
||||||
|
courierLat: number; |
||||||
|
sendOrderId: string; |
||||||
|
sendOrderName: string; |
||||||
|
sendOrderLng: number; |
||||||
|
sendOrderLat: number; |
||||||
|
fileId: string; |
||||||
|
estimateTime: string; |
||||||
|
requireTime: string; |
||||||
|
batchCode: string; |
||||||
|
} |
||||||
|
|
||||||
|
export type MapLogisticResult = R<MapLogistic[]>; |
@ -1,6 +1,6 @@ |
|||||||
<template> |
<template> |
||||||
<BasicModal v-bind="$attrs" |
<BasicModal v-bind="$attrs" |
||||||
width="720px" |
defaultFullscreen |
||||||
@ok="handleSubmit" |
@ok="handleSubmit" |
||||||
@register="registerModal" |
@register="registerModal" |
||||||
> |
> |
Loading…
Reference in new issue