Merge branch 'master' of http://119.91.43.128:3001/sheng/mes-ui-d2
This commit is contained in:
@@ -2,7 +2,7 @@ import { request } from '@/api/_service'
|
|||||||
|
|
||||||
const BASE = 'production_configuration/product_model/battery_model/'
|
const BASE = 'production_configuration/product_model/battery_model/'
|
||||||
|
|
||||||
function apiParams(method, data = {}) {
|
function apiParams (method, data = {}) {
|
||||||
return {
|
return {
|
||||||
method: `production_master_data_product_management_product_list_${method}`,
|
method: `production_master_data_product_management_product_list_${method}`,
|
||||||
platform: 'background',
|
platform: 'background',
|
||||||
@@ -10,7 +10,7 @@ function apiParams(method, data = {}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getProductList(data) {
|
export function getProductList (data) {
|
||||||
return request({
|
return request({
|
||||||
url: BASE + 'list',
|
url: BASE + 'list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -18,7 +18,7 @@ export function getProductList(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createProduct(data) {
|
export function createProduct (data) {
|
||||||
return request({
|
return request({
|
||||||
url: BASE + 'create',
|
url: BASE + 'create',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -26,7 +26,7 @@ export function createProduct(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function editProduct(data) {
|
export function editProduct (data) {
|
||||||
return request({
|
return request({
|
||||||
url: BASE + 'edit',
|
url: BASE + 'edit',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
@@ -34,7 +34,7 @@ export function editProduct(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function deleteProduct(data) {
|
export function deleteProduct (data) {
|
||||||
return request({
|
return request({
|
||||||
url: BASE + 'delete',
|
url: BASE + 'delete',
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
|
|||||||
Reference in New Issue
Block a user