zhangback
2025-11-27 d457a0f31290ba12273a51e75f6c2cc714659efc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import request, {download, requestType} from "@/utils/request";
import {BaseEntityInterface} from "@/utils/globalInterface";
 
export interface TmsConsignorI extends BaseEntityInterface {
    id?: number,
    consignorCode?: string,
    consignorName?: string,
    customerId?: number,
    customerName?: string,
    customerSysCode?: string,
    consignorType?: number,
    contactName?: string,
    contactPhone?: string,
    contactEmail?: string,
    regionLabel?: string,
    countryId?: number,
    provinceId?: number,
    cityId?: number,
    districtId?: number,
    streetId?: number,
    addressDetail?: string,
    dispatchTransportArea?: string,
    mapLocation?: string,
    status?: number,
    createBy?: string,
    createTime?: string,
    updateBy?: string,
    updateTime?: string,
    remark?: string,
    region?:any,
    mapLocationDetail?:any
}
 
 
/**
 * 查询收发货人管理列表
 */
export const listTmsConsignor: requestType = (query) => {
    return request({
        url: '/tms/tmsConsignor/list',
        method: 'get',
        params: query
    })
}
/**
 * 查询收发货人管理详细
 */
export const getTmsConsignor: requestType = (id) => {
    return request({
        url: '/tms/tmsConsignor/' + id,
        method: 'get'
    })
}
 
/**
 * 新增收发货人管理
 */
export const addTmsConsignor: requestType = (data) => {
    return request({
        url: '/tms/tmsConsignor',
        method: 'post',
        data
    })
}
 
/**
 * 修改收发货人管理
 */
export const updateTmsConsignor: requestType = (data) => {
    return request({
        url: '/tms/tmsConsignor',
        method: 'put',
        data
    })
}
 
/**
 * 删除收发货人管理
 */
export const delTmsConsignor: requestType = (id) => {
    return request({
        url: '/tms/tmsConsignor/' + id,
        method: 'delete'
    })
}
 
 
/**
 * 导出收发货人管理
 */
export const exportTmsConsignor: requestType = (query) => {
    return new Promise<any>(() => {
        download('/tms/tmsConsignor/export', query);
    })
}