李林
2023-08-09 1615528985f30b496d3c294e82136434ee36397c
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
// 技术管理-标准Bom
const standard = {
    // 技术管理-标准Bom
    selectTreeByMaterial: "material/selectTreeByMaterial", //查询物料的树
    selectProductByMaterial: "product/selectTreeByMaterial", //根据物料查询项目表格
    selectTechnologyByMaterial: "technology/select",
    // 技术管理-技术文件
    selectAllOrder: "/orders/selectAllOrder", //查询所有订单列表
    selectOrderById: "/orders/selectOrderById", //根据订单id查询订单详情
}
// 原材料检验
const raw = {
    selectRawInspectsList: "rawInspect/selectRawInspectsList", //查询原材料检验单列表
    selectRawInspectsListById: "rawInspect/selectRawInspectsListById/", //根据检验单id获取检验单详情
    updaterawInsProduct: 'rawInsProduct/updaterawInsProduct', //修改项目的检验值
    updateRawInspectsById: "/rawInspect/updateRawInspectsById/", //上报,
    selectRawMaterial: "/rawInspect/selectMaterial", //查询原材料信息
    selectSpBySt: "/rawInspect/selectSpBySt", //根据材料id查询所有型号,
    addRawInspects: "/rawInspect/addRawInspects"
}
 
// 成品检验
const finishedIns = {
    finishedInsListPage: "/finished-inspect/list_page", //获取成品检验列表
    // listMaterial:"/finished-inspect/list_material",//添加检验单时的项目列表
    finishedInspectUser: "/finished-inspect/page_user", //获取所有主机工
    projectListByfinishId: "/inspection-item/list_user", //根据id查询所有项目
}
 
const url = {
    enter: "user/enter", //登录
    ...standard,
    ...raw,
    ...finishedIns,
    selectSaleList: "sale/selectSaleList", //查询销售单列表
    selectSaleDatilById: "sale/selectSaleDatilById", //根据销售单id查看详情,
    addSale: "sale/addSale", //新增销售单
}
 
 
export default function(Vue) {
    //添加全局API
    Vue.prototype.$api = {
        url
    }
}