opt:优化前后端交互后端返回不统一问题
This commit is contained in:
@@ -185,7 +185,7 @@ export default {
|
||||
this.inventoryLoading = true
|
||||
queryInventory(row.skuCode).then(res => {
|
||||
// const demandQty = Number(row.qty) || 0
|
||||
this.inventoryList = (res || []).map(item => ({
|
||||
this.inventoryList = (res.data || []).map(item => ({
|
||||
...item,
|
||||
_selected: false,
|
||||
allocQty: row.qty
|
||||
|
||||
@@ -403,7 +403,7 @@ export default {
|
||||
this.materOptCode = material_code
|
||||
},
|
||||
setMaterValue(row) {
|
||||
debugger
|
||||
|
||||
this.form.material_code = row.material_code
|
||||
this.form.material_name = row.material_name
|
||||
this.form.material_spec = row.material_spec
|
||||
|
||||
@@ -284,7 +284,7 @@ export default {
|
||||
},
|
||||
openDetailDialog(order) {
|
||||
crudWorkOrder.getItem(order).then(result => {
|
||||
this.bomList = result.content || []
|
||||
this.bomList = result.data || []
|
||||
this.detailVisible = true
|
||||
}).catch(error => {
|
||||
this.bomList = []
|
||||
|
||||
Reference in New Issue
Block a user