|
@@ -540,14 +540,14 @@ export default {
|
|
|
this.formData.items.map((item, index_) => {
|
|
|
if (index_ == index) {
|
|
|
item.isEditRow = true
|
|
|
+ if (!!~['auxiliaryMaterialsStorage', 'returnAuxiliaryMaterials'].indexOf(this.pageType) && row.goodsCategoryId) {
|
|
|
+ materialNormList({ isShowStockQty: true, websitId: this.formData.websitId, "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.category_id", "compare": "=", "value": row.goodsCategoryId }, { "param": "a.status", "compare": "=", "value": "ON" }] }).then(res => {
|
|
|
+ this.materialNormList = res.data.records
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
item.isEditRow = false
|
|
|
}
|
|
|
- if (!!~['auxiliaryMaterialsStorage', 'returnAuxiliaryMaterials'].indexOf(this.pageType) && row.goodsCategoryId) {
|
|
|
- materialNormList({ isShowStockQty: true, websitId: this.formData.websitId, "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.category_id", "compare": "=", "value": row.goodsCategoryId }, { "param": "a.status", "compare": "=", "value": "ON" }] }).then(res => {
|
|
|
- this.materialNormList = res.data.records
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
}}>编辑</el-button> :
|
|
|
null
|
|
@@ -663,6 +663,12 @@ export default {
|
|
|
isEditRow: !index
|
|
|
}))
|
|
|
})
|
|
|
+ var row = this.formData.items[0]
|
|
|
+ if (!!~['auxiliaryMaterialsStorage', 'returnAuxiliaryMaterials'].indexOf(this.pageType) && row && row.goodsCategoryId) {
|
|
|
+ materialNormList({ isShowStockQty: true, websitId: this.formData.websitId, "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.category_id", "compare": "=", "value": row.goodsCategoryId }, { "param": "a.status", "compare": "=", "value": "ON" }] }).then(res => {
|
|
|
+ this.materialNormList = res.data.records
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
return
|
|
|
}
|