Commit a903e93d authored by 赵汉亭's avatar 赵汉亭

品牌、用途完成

parent b647fbf5
#.DS_Store .DS_Store
#node_modules/ node_modules/
#dist/ dist/
#npm-debug.log* npm-debug.log*
#yarn-debug.log* yarn-debug.log*
#yarn-error.log* yarn-error.log*
#**/*.log **/*.log
#
#tests/**/coverage/ tests/**/coverage/
#tests/e2e/reports tests/e2e/reports
#selenium-debug.log selenium-debug.log
#
## Editor directories and files # Editor directories and files
#.idea .idea
#.vscode .vscode
#*.suo *.suo
#*.ntvs* *.ntvs*
#*.njsproj *.njsproj
#*.sln *.sln
#*.local *.local
#.editorconfig .editorconfig
#.eslintignore .eslintignore
#.eslintrc.js .eslintrc.js
#.env.* .env.*
#package-lock.json package-lock.json
#yarn.lock yarn.lock
import request from '@/utils/request'
// 查询生产用途列表
export function listBrand(query) {
return request({
url: '/mes/md/brand/list',
method: 'get',
params: query
})
}
// 查询所有有效生产用途
export function listAllBrand() {
return request({
url: '/mes/md/brand/listAll',
method: 'get'
})
}
// 查询生产用途详细
export function getBrand(brandId) {
return request({
url: '/mes/md/brand/' + brandId,
method: 'get'
})
}
// 新增生产用途
export function addBrand(data) {
return request({
url: '/mes/md/brand',
method: 'post',
data: data
})
}
// 修改生产用途
export function updateBrand(data) {
return request({
url: '/mes/md/brand',
method: 'put',
data: data
})
}
// 删除生产用途
export function delBrand(brandId) {
return request({
url: '/mes/md/brand/' + brandId,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询生产用途列表
export function listUsage(query) {
return request({
url: '/mes/pro/usage/list',
method: 'get',
params: query
})
}
// 查询所有有效生产用途
export function listAllUsage() {
return request({
url: '/mes/pro/usage/listAll',
method: 'get'
})
}
// 查询生产用途详细
export function getUsage(usageId) {
return request({
url: '/mes/pro/usage/' + usageId,
method: 'get'
})
}
// 新增生产用途
export function addUsage(data) {
return request({
url: '/mes/pro/usage',
method: 'post',
data: data
})
}
// 修改生产用途
export function updateUsage(data) {
return request({
url: '/mes/pro/usage',
method: 'put',
data: data
})
}
// 删除生产用途
export function delUsage(usageId) {
return request({
url: '/mes/pro/usage/' + usageId,
method: 'delete'
})
}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment