黄梓星 1 rok pred
rodič
commit
f3c0ef7318

+ 8 - 2
src/views/purchase/DemandSummary/index.vue

@@ -128,9 +128,15 @@
             <el-row :gutter="10">
               <el-col :span="1.5">
                 <el-form-item label="物料编码">
-                  <el-input clearable size="mini" v-model="queryParams.names" @clear="clearMaterial" style="width: 200px" @paste.native="pasteMe($event)">
+                  <el-popover
+                    placement="top-start"
+                    width="200"
+                    trigger="hover"
+                    :content="queryParams.names">
+                  <el-input slot="reference" clearable size="mini" v-model="queryParams.names" @clear="clearMaterial" style="width: 200px" @paste.native="pasteMe($event)">
                     <el-button size="mini" slot="append" icon="el-icon-more" @click="chooseMaterial"></el-button>
                   </el-input>
+                  </el-popover>
                 </el-form-item>
               </el-col>
               <el-col :span="1.5">
@@ -802,7 +808,7 @@ export default {
       console.log('选择的物料', selection)
       this.queryParams.materialCodeList = selection.map(item => {return item.code})
       console.log(this.queryParams.materialCodeList)
-      this.queryParams.names = (selection.map(item => {return item.name})).join(',')
+      this.queryParams.names = (selection.map(item => {return item.name})).join('')
     },
     // 清空物料搜索框
     clearMaterial() {