Browse Source

bug修复

黄梓星 1 year ago
parent
commit
cd42b71ccd

+ 1 - 1
src/views/purchase/DemandSummary/index.vue

@@ -846,7 +846,7 @@ export default {
           let rowList = res.rows
           console.log('粘贴的', rowList)
           this.queryParams.materialCodeList = rowList.map(item => {return item.code})
-          this.queryParams.names = (rowList.map(item => {return item.name})).join(',')
+          this.queryParams.names = (rowList.map(item => {return item.code})).join(',')
         }
       }).catch(err => {
         this.$modal.closeLoading();

+ 11 - 2
src/views/purchase/catalogue/columns.js

@@ -129,13 +129,22 @@ export default function useColumns() {
       attr: { is: "el-input" },
     },
     {
-      item: { width: 100, key: "materialCodeList", title: "物料编码" },
+      item: {key: "materialCodeList", title: "物料编码"},
       attr: {
+        clearable: true,
         is: "el-popover-multiple-select-v2",
-        referName: "MATERIAL_PARAM",
         valueKey: "code",
+        referName: "MATERIAL_PARAM",
       },
     },
+    // {
+    //   item: { width: 100, key: "materialCodeList", title: "物料编码" },
+    //   attr: {
+    //     is: "el-popover-multiple-select-v2",
+    //     referName: "MATERIAL_PARAM",
+    //     valueKey: "code",
+    //   },
+    // },
     {
       item: { key: "materialClassifyList", title: "物料一级分类"},
       attr: {