22
schangxiang@126.com
2024-12-23 b6b3a245ee5159573a216affd79f449f3baa7d28
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
import {request} from '../../utils/request.js'
 
export function WareToolReturn(data){ //查询工量具
    return request({
        url: `/WareToolReturn/page?Code=${data}`,
        method: 'get',
        contentType:'application/json',
        // data: data
     })
}
export function returnTool(data){ //原件归还
    return request({
        url: `/WareToolReturn/returnTool`,
        method: 'post',
        contentType:'application/json',
        data: data
     })
}
 
//获取工量具人员(借用,归还)
export function getWarePersonList(){ //查询工量具
    return request({
        url: "/WareToolUsers/page?PageNo=1&PageSize=1000000",
        method: 'get',
        contentType:'application/json',
     })
}
 
//获取工量具当前库存
export function getWareCount(data) {
    return request({
        url: `/WareToolStock/page?Code=${data.code}&Unit=&PageNo=1&PageSize=10`,
        method: 'get'
     })
}
 
 
//工量具借用
export function wareBorrow(data) {
    return request({
        url: `/WareToolStock/borrow`,
        method: 'post',
        data
     })
}
 
//获取当前借用人下的未归还工量具列表
export function getUnReturnList(data) {
    return request({
        url: `/WareToolReturn/page?BorrowUserName=${data.name}&PageNo=1&PageSize=100000`,
        method: 'get'
     })
}
 
//工量具归还
export function wareReturn(data) {
    return request({
        url: `/WareToolReturnDetails/add`,
        method: 'post',
        data
     })
}