소스 검색

仓库调拨API

lichao 3 년 전
부모
커밋
2e1ea449e9
1개의 변경된 파일46개의 추가작업 그리고 0개의 파일을 삭제
  1. 46 0
      src/api/allocation/index.js

+ 46 - 0
src/api/allocation/index.js

@@ -0,0 +1,46 @@
+import request from '@/utils/request'
+import * as url from 'url'
+
+// 查询仓库调拨列表
+export function allocationListQuery(query) {
+  return request({
+    url: '/anPin/anPinAllot/cannibalizeList',
+    method: 'get',
+    params:query
+  })
+}
+
+// 查看详情
+export function selectMessage(fid) {
+  return request({
+    url: '/anPin/anPinAllot/' + fid,
+    method: 'get',
+  })
+}
+
+//获取库管员
+export function getKeeper(query) {
+  return request({
+    url: '/system/user/selectUserByRoleName',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取库存数量与单价
+export function getStockNumPrice(data) {
+  return request({
+    url: '/warehouseBusiness/whgenleg/getTWhGenLeg',
+    method: 'post',
+    data: data
+  })
+}
+
+//调拨确认与撤销 1确认 2撤销
+export function isAllocation(data) {
+  return request({
+    url: '/anPin/anPinAllot/cannibalize',
+    method: 'post',
+    data: data
+  })
+}