feat(物料管理): 实现出入库记录功能
新增入库记录和出库记录页面,包含表单提交、扫码识别、库位选择等功能 扩展uni-combox组件支持插槽和选择事件 添加相关API接口和样式文件
This commit is contained in:
49
api/productionMaterial/recordInbound.js
Normal file
49
api/productionMaterial/recordInbound.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
/**
|
||||
* 物料表查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmMaterial(query) {
|
||||
return request({
|
||||
url: '/mes/productionMaterial/MmMaterial/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 库位表查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmLocation(query) {
|
||||
return request({
|
||||
url: '/mes/productionMaterial/MmLocation/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 出入库类别对照表查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmTransactionType(query) {
|
||||
return request({
|
||||
url: '/mes/productionMaterial/MmTransactionType/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库单
|
||||
* @param data
|
||||
*/
|
||||
export function createInboundReceipt(data) {
|
||||
return request({
|
||||
url: '/mes/productionMaterial/MmInventory/CreateInboundReceipt',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user