代码更新
This commit is contained in:
@@ -174,6 +174,8 @@ export default {
|
||||
classes: [],
|
||||
class_idStr: null,
|
||||
materOpt_code: '23',
|
||||
materOpt_code_2: '26',
|
||||
classBj_id: null,
|
||||
dialogVisible: false,
|
||||
materDialog: false,
|
||||
rules: {
|
||||
@@ -199,6 +201,12 @@ export default {
|
||||
// this.crud.toQuery()
|
||||
this.queryClassId()
|
||||
})
|
||||
const data = {
|
||||
'materOpt_code': this.materOpt_code_2
|
||||
}
|
||||
crudDevicebom.getBjId(data).then(res => {
|
||||
this.classBj_id = res.class_idStr
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeSubmit]() {
|
||||
@@ -237,7 +245,7 @@ export default {
|
||||
} else {
|
||||
const data = {}
|
||||
data.id = form.material_type_id
|
||||
data.goal_id = '1503644361789935616'
|
||||
data.goal_id = this.classBj_id
|
||||
this.getSubTypes(data)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user