opt:优化前后端交互后端返回不统一问题

This commit is contained in:
zhangzq
2026-07-08 17:17:52 +08:00
parent c4b1e9d1d2
commit b2d542ed24
134 changed files with 553 additions and 636 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 = []