优化商品条码查询接口,支持选择多商品
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
}
|
||||
getMaterialByBarCode(param).then((res) => {
|
||||
if (res && res.code === 200) {
|
||||
this.form.setFieldsValue({'materialName': res.data.name})
|
||||
this.form.setFieldsValue({'materialName': res.data[0].name})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
}
|
||||
getMaterialByBarCode(param).then((res) => {
|
||||
if (res && res.code === 200) {
|
||||
this.form.setFieldsValue({'materialName': res.data.name})
|
||||
this.form.setFieldsValue({'materialName': res.data[0].name})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user