Blame view

src/api/resource/allocationStorehouseEnterApi.js 744 Bytes
9c311762   wuxw   工作办理测试中
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
  import request from '@/utils/request'
  
  // 获取调拨入库列表
  export function listAllocationStorehouses(params) {
    return new Promise((resolve, reject) => {
      request({
        url: '/resourceStore.listAllocationStorehouses',
        method: 'get',
        params
      }).then(response => {
        const res = response.data
        resolve(res)
      }).catch(error => {
        reject(error)
      })
    })
  }
  
  // 提交调拨入库
  export function allocationStoreEnter(data) {
    return new Promise((resolve, reject) => {
      request({
        url: '/resourceStore.allocationStoreEnter',
        method: 'post',
        data
      }).then(response => {
        const res = response.data
        resolve(res)
      }).catch(error => {
        reject(error)
      })
    })
  }