seatonwan9
2025-08-28 bfbb1ea3c6bb2dd7db064fb189290a1bfcf6c9cd
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
import createAxios from '@/utils/axios'
 
// 车辆管理
const url: string = '/admin/safety/VehicleInfo'
const urlT: string = '/admin/inventory/weighbridgeData'
const urlType: string = '/admin/sysDict' // 字典
 
const vehicleService = {
    // 获取列表  分页
    tableListUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/list`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 分类字典-排放标准
    dictionariesUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlType}/subListByCode`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 供应商
    allSupplierUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `/admin/purchase/order/allSupplierIdAndName`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 新增
    addUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/add`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 修改
    updateUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/update`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 详情
    detailUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/detail`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 删除
    deleteUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/delete`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
 
    // 称重管理
    // 获取列表  分页
    weighTableListUrl(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlT}/historyList`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
 
}
 
export default vehicleService