feat(扫码功能): 重构扫码页面并新增分卷录入功能
- 重构扫码页面结构,采用标签页形式组织功能模块 - 新增分卷录入功能组件(apart.vue)和基础录入功能组件(typing.vue) - 新增物料选择组件(klp-product-select)和标签页组件(klp-tabs) - 新增WMS相关API接口(product.js, warehouse.js等) - 更新uni-data-select组件支持多选和插槽功能 - 更新uni-icons和uni-load-more组件版本及功能 - 移除冗余样式和代码,优化现有组件结构 refactor(组件): 优化acidity.vue组件使用新的标签页组件 style: 移除冗余CSS样式代码 chore: 更新多个uni_modules组件的package.json版本号
This commit is contained in:
66
apps/hand-factory/api/wms/coil.js
Normal file
66
apps/hand-factory/api/wms/coil.js
Normal file
@@ -0,0 +1,66 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询钢卷物料表列表
|
||||
export function listMaterialCoil(query) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function exportMaterialCoil(query) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getMaterialCoil(CoilMaterialId) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/' + CoilMaterialId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function addMaterialCoil(data) {
|
||||
return request({
|
||||
url: '/wms/materialCoil',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateMaterialCoil(data) {
|
||||
return request({
|
||||
url: '/wms/materialCoil',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 简单更新钢卷物料表
|
||||
export function updateMaterialCoilSimple(data) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除钢卷物料表
|
||||
export function delMaterialCoil(CoilMaterialId) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/' + CoilMaterialId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 钢卷溯源查询
|
||||
export function getMaterialCoilTrace(CoilMaterialId) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/trace/' + CoilMaterialId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
44
apps/hand-factory/api/wms/product.js
Normal file
44
apps/hand-factory/api/wms/product.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询产品列表
|
||||
export function listProduct(query) {
|
||||
return request({
|
||||
url: '/wms/product/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询产品详细
|
||||
export function getProduct(productId) {
|
||||
return request({
|
||||
url: '/wms/product/' + productId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增产品
|
||||
export function addProduct(data) {
|
||||
return request({
|
||||
url: '/wms/product',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改产品
|
||||
export function updateProduct(data) {
|
||||
return request({
|
||||
url: '/wms/product',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品
|
||||
export function delProduct(productId) {
|
||||
return request({
|
||||
url: '/wms/product/' + productId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
52
apps/hand-factory/api/wms/rawMaterial.js
Normal file
52
apps/hand-factory/api/wms/rawMaterial.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询原材料列表
|
||||
export function listRawMaterial(query) {
|
||||
return request({
|
||||
url: '/wms/rawMaterial/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询原材料详细
|
||||
export function getRawMaterial(rawMaterialId) {
|
||||
return request({
|
||||
url: '/wms/rawMaterial/' + rawMaterialId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增原材料
|
||||
export function addRawMaterial(data) {
|
||||
return request({
|
||||
url: '/wms/rawMaterial',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改原材料
|
||||
export function updateRawMaterial(data) {
|
||||
return request({
|
||||
url: '/wms/rawMaterial',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除原材料
|
||||
export function delRawMaterial(rawMaterialId) {
|
||||
return request({
|
||||
url: '/wms/rawMaterial/' + rawMaterialId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function listRawMaterialWithDemand(query) {
|
||||
return request({
|
||||
url: '/wms/rawMaterial//listWithDemand',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
44
apps/hand-factory/api/wms/warehouse.js
Normal file
44
apps/hand-factory/api/wms/warehouse.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询仓库/库区/库位自关联列表
|
||||
export function listWarehouse(query) {
|
||||
return request({
|
||||
url: '/wms/warehouse/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询仓库/库区/库位自关联详细
|
||||
export function getWarehouse(warehouseId) {
|
||||
return request({
|
||||
url: '/wms/warehouse/' + warehouseId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增仓库/库区/库位自关联
|
||||
export function addWarehouse(data) {
|
||||
return request({
|
||||
url: '/wms/warehouse',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改仓库/库区/库位自关联
|
||||
export function updateWarehouse(data) {
|
||||
return request({
|
||||
url: '/wms/warehouse',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除仓库/库区/库位自关联
|
||||
export function delWarehouse(warehouseId) {
|
||||
return request({
|
||||
url: '/wms/warehouse/' + warehouseId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user