下拉框

This commit is contained in:
2023-07-05 14:25:13 +08:00
parent 4321874811
commit 3fda8a557e
2 changed files with 20 additions and 4 deletions

View File

@@ -65,12 +65,20 @@ export default {
// 设备下拉框
async _devicelist () {
let res = await devicelist('1535144682756116480')
this.options2 = [...res.data]
if (res.code === 200) {
this.options2 = [...res.content]
} else {
this.toast(res.msg)
}
},
// 车间下拉框
async _dictDetailByCode () {
let res = await dictDetailByCode('product_area')
this.options1 = [...res.data]
if (res.code === 200) {
this.options1 = [...res.content]
} else {
this.toast(res.msg)
}
},
// 余料上料
async toSure () {

View File

@@ -65,12 +65,20 @@ export default {
// 设备下拉框
async _devicelist () {
let res = await devicelist('1535144682756116480')
this.options2 = [...res.data]
if (res.code === 200) {
this.options2 = [...res.content]
} else {
this.toast(res.msg)
}
},
// 车间下拉框
async _dictDetailByCode () {
let res = await dictDetailByCode('product_area')
this.options1 = [...res.data]
if (res.code === 200) {
this.options1 = [...res.content]
} else {
this.toast(res.msg)
}
},
// 空框搬回
async toSure () {