修改
This commit is contained in:
@@ -33,7 +33,7 @@ export function getClass(params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getClassSuperior(ids) {
|
export function getClassSuperior(ids) {
|
||||||
const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
|
const data = ids
|
||||||
return request({
|
return request({
|
||||||
url: 'api/Classstandard/superior',
|
url: 'api/Classstandard/superior',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -41,6 +41,14 @@ export function getClassSuperior(ids) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getClassSuperior2(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/Classstandard/superior2',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function getClassType(params) {
|
export function getClassType(params) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/Classstandard/getClass',
|
url: 'api/Classstandard/getClass',
|
||||||
@@ -48,6 +56,7 @@ export function getClassType(params) {
|
|||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function queryClassById(params) {
|
export function queryClassById(params) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/Classstandard/queryClassById',
|
url: 'api/Classstandard/queryClassById',
|
||||||
@@ -55,6 +64,7 @@ export function queryClassById(params) {
|
|||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 传入分类标识和级别
|
// 传入分类标识和级别
|
||||||
export function getType(params) {
|
export function getType(params) {
|
||||||
return request({
|
return request({
|
||||||
@@ -72,4 +82,15 @@ export function getClassTable(params) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del, getClass, getClassSuperior, getClassType, getClassTable, getType, queryClassById }
|
export default {
|
||||||
|
add,
|
||||||
|
edit,
|
||||||
|
del,
|
||||||
|
getClass,
|
||||||
|
getClassSuperior,
|
||||||
|
getClassSuperior2,
|
||||||
|
getClassType,
|
||||||
|
getClassTable,
|
||||||
|
getType,
|
||||||
|
queryClassById
|
||||||
|
}
|
||||||
|
|||||||
@@ -235,11 +235,15 @@ export default {
|
|||||||
if (!form.device_bom_code) {
|
if (!form.device_bom_code) {
|
||||||
this.queryClassId()
|
this.queryClassId()
|
||||||
} else {
|
} else {
|
||||||
this.getSubTypes(form.material_type_id)
|
const data = {}
|
||||||
|
data.id = form.material_type_id
|
||||||
|
data.goal_id = '1503644361789935616'
|
||||||
|
this.getSubTypes(data)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getSubTypes(id) {
|
getSubTypes(id) {
|
||||||
crudClassstandard.getClassSuperior(id).then(res => {
|
debugger
|
||||||
|
crudClassstandard.getClassSuperior2(id).then(res => {
|
||||||
debugger
|
debugger
|
||||||
const date = res.content
|
const date = res.content
|
||||||
this.buildClass(date)
|
this.buildClass(date)
|
||||||
|
|||||||
Reference in New Issue
Block a user