This commit is contained in:
2021-09-13 14:56:28 +08:00
commit ac0d6e9083
777 changed files with 90286 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2020-12-30 11:54:24
* @Description:
*/
import request from '@/utils/request'
export function factoryList(data) { // 获取工厂列表
return request({
url: '/basic/factory/page',
method: 'post',
data
})
}
export function factoryDetail(id) { // 获取工厂单条数据
const data = {
'id': id
}
return request({
url: '/basic/factory/get',
method: 'post',
data
})
}
export function factoryUpdate(data) { // 更新工厂单条数据
return request({
url: '/basic/factory/update',
method: 'post',
data
})
}
export function factoryAdd(data) { // 新增工厂单条数据
return request({
url: '/basic/factory/add',
method: 'post',
data
})
}
export function factoryCode() { // 获取工厂code
return request({
url: '/basic/factory/get-code',
method: 'post'
})
}
export function factoryDelete(id) { // 删除工厂单条数据
return request({
url: '/basic/factory/delete',
method: 'post',
data: { id }
})
}

View File

@@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 10:57:09
* @Description:
*/
import request from '@/utils/request'
export function lineList(data) { // 获取产线列表
return request({
url: '/basic/production-line/page',
method: 'post',
data
})
}
export function lineDetail(id) { // 获取产线单条数据
return request({
url: '/basic/production-line/get',
method: 'post',
data: { id }
})
}
export function lineUpdate(data) { // 更新产线单条数据
return request({
url: '/basic/production-line/update',
method: 'post',
data
})
}
export function lineAdd(data) { // 新增产线单条数据
return request({
url: '/basic/production-line/add',
method: 'post',
data
})
}
export function lineCode() { // 获取产线code
return request({
url: '/basic/production-line/get-code',
method: 'post'
})
}
export function lineDelete(id) { // 删除产线单条数据
return request({
url: '/basic/production-line/delete',
method: 'post',
data: { id }
})
}

View File

@@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 10:56:44
* @Description:
*/
import request from '@/utils/request'
export function sectionList(data) { // 获取工段列表
return request({
url: '/basic/workshop-section/page',
method: 'post',
data
})
}
export function sectionDetail(id) { // 获取工段单条数据
return request({
url: '/basic/workshop-section/get',
method: 'post',
data: { id }
})
}
export function sectionUpdate(data) { // 更新工段单条数据
return request({
url: '/basic/workshop-section/update',
method: 'post',
data
})
}
export function sectionAdd(data) { // 新增工段单条数据
return request({
url: '/basic/workshop-section/add',
method: 'post',
data
})
}
export function sectionCode() { // 获取工段code
return request({
url: '/basic/workshop-section/get-code',
method: 'post'
})
}
export function sectionDelete(id) { // 删除工段单条数据
return request({
url: '/basic/workshop-section/delete',
method: 'post',
data: { id }
})
}