Просмотр исходного кода

辅材采购入库单 辅材列表设置辅材无效,在采购入库应看不到该辅材

linwenxin 1 год назад
Родитель
Сommit
106070942c

+ 2 - 2
src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

@@ -195,7 +195,7 @@ export default {
                             this.qkrow(row)
                             if (val) {
                               row['goodsCategoryName'] = selectList.find(item => item.categoryId == val).categoryName
-                              materialNormList({ isShowStockQty: true, websitId: this.formData.websitId, "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.category_id", "compare": "=", "value": val }] }).then(res => {
+                              materialNormList({ isShowStockQty: true, websitId: this.formData.websitId, "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.category_id", "compare": "=", "value": val }, { "param": "a.status", "compare": "=", "value": "ON" }] }).then(res => {
                                 this.materialNormList = res.data.records
                               })
                             } else {
@@ -544,7 +544,7 @@ export default {
                               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 }] }).then(res => {
+                              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
                               })
                             }