Commit b5b0aea3 authored by wdy's avatar wdy

设备领用处理表单

parent fadef9df
...@@ -550,9 +550,32 @@ export default { ...@@ -550,9 +550,32 @@ export default {
next() next()
}, },
created() { created() {
this.getDict()
this.getList() this.getList()
}, },
methods: { methods: {
replace(value) {
let label = ''
if (this.dictList.length > 0) {
this.dictList.forEach(item => {
if (item.dictValue === value) {
label = item.dictLabel
}
})
}
return label
},
getDict() {
const obj = {
key: 'GX_CODE'
}
getDictData(obj).then(res => {
console.log('res', res)
if (res.code === 200 && res.data !== null) {
this.dictList = res.data
}
})
},
handlemenuClose() { handlemenuClose() {
this.menu = false this.menu = false
this.loadingDetail = false this.loadingDetail = false
......
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