Merge branch 'test' into lb

This commit is contained in:
lb
2023-08-04 14:24:48 +08:00
22 changed files with 2370 additions and 1605 deletions

View File

@@ -33,7 +33,13 @@ export function getFactory(id) {
method: 'get'
})
}
// 获得工厂code
export function getCode() {
return request({
url: '/base/factory/getCode',
method: 'get'
})
}
// 获得工厂分页
export function getFactoryPage(query) {
return request({

View File

@@ -8,7 +8,14 @@ export function createLineBindProduct(data) {
data: data
})
}
// 切换产品
export function switchLineBindProduct(data) {
return request({
url: '/base/line-bind-product/switch',
method: 'put',
data: data
})
}
// 更新产线目前生产产品表 主要为更新
export function updateLineBindProduct(data) {
return request({

View File

@@ -9,6 +9,13 @@ export function createProduct(data) {
})
}
// 获得产品code
export function getCode() {
return request({
url: '/base/product/getCode',
method: 'get'
})
}
// 更新产品
export function updateProduct(data) {
return request({

View File

@@ -8,6 +8,13 @@ export function createProductionLine(data) {
data: data
})
}
// 获得产线code
export function getCode() {
return request({
url: '/base/production-line/getCode',
method: 'get'
})
}
// 更新工厂产线
export function updateProductionLine(data) {

View File

@@ -9,6 +9,13 @@ export function createWorkshopSection(data) {
})
}
// 获得工段code
export function getCode() {
return request({
url: '/base/workshop-section/getCode',
method: 'get'
})
}
// 更新产线工段
export function updateWorkshopSection(data) {
return request({