12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import {request} from '../utils/request'
- //备件大类树
- export function fetchTree(data) {
- return request({
- url: '/materialkind/tree',
- method: 'get',
- data:data,
- isAddress:true,
- })
- }
- //备件选择框接口
- export function getSpareOption(data,key) {
- return request({
- url: '/stock/material/optionsByFullCode/'+key,
- method: 'post',
- data:data,
- isAddress:true,
- })
- }
- //获取用户列表
- export function fetchList(data) {
- return request({
- url: '/user/page',
- method: 'get',
- data: data,
- isAddress:true,
- })
- }
- //获取部门列表
- export function depLtist(data) {
- return request({
- url: '/dept/list',
- method: 'get',
- data:data,
- isAddress:true,
- })
- }
- //库存查询列表
- export function materialLiveList(data) {
- return request({
- url: '/stock/material/live/page',
- method: 'get',
- data: data,
- isAddress:true,
- })
- }
- //通过存货id获取对应的库存动态
- export function getLiveRecordsByMaterialId(data) {
- return request({
- url: '/stock/material/live/getLiveRecordsByMaterialId',
- method: 'post',
- data: data,
- isAddress:true,
- })
- }
- //盘库保存接口
- export function saveInventory(data) {
- return request({
- url: '/stock/material/live/saveInventory',
- method: 'post',
- data: data,
- isAddress:true,
- })
- }
|