Forráskód Böngészése

产品信息与客户信息 bug修改

1004749546@qq.com 4 éve
szülő
commit
e57de07759

+ 1 - 1
src/views/storehouseManagement/customerInfo/CustomerList.vue

@@ -2,7 +2,7 @@
   <a-card :bordered="false">
     <!-- 搜索条件 -->
     <div class="table-page-search-wrapper">
-      <a-form-model ref="queryForm" :model="queryParam" layout="inline" @keyup.enter.native="refresh">
+      <a-form-model ref="queryForm" :model="queryParam" layout="inline" @keyup.enter.native="handleSearch">
         <a-row :gutter="48">
           <a-col :lg="8" :sm="12">
             <a-form-model-item prop="name" label="客户名称" :label-col="{ span:4 }" :wrapper-col="{ span:12}">

+ 7 - 4
src/views/storehouseManagement/productInfo/ProductList.vue

@@ -56,7 +56,7 @@ export default {
     return {
       // 搜索条件
       queryParam: {
-        brandName: undefined, // 配件品牌
+        brandName: '', // 配件品牌
         name: '', // 配件名称
         queryWord: '' // 配件编码/OE码
       },
@@ -84,7 +84,7 @@ export default {
         align: 'center',
         width: 150,
         customRender: (text) => {
-		  return text || '--'
+          return text || '--'
         }
       },
       {
@@ -93,7 +93,7 @@ export default {
         align: 'center',
         width: 150,
         customRender: (text) => {
-		  return text || '--'
+          return text || '--'
         }
       },
       {
@@ -102,7 +102,7 @@ export default {
         align: 'center',
         width: 150,
         customRender: (text) => {
-		  return text || '--'
+          return text || '--'
         }
       },
       {
@@ -117,6 +117,9 @@ export default {
       ],
       loadData: parameter => {
         const searchData = Object.assign(parameter, this.queryParam)
+        searchData.brandName = searchData.brandName || null
+        searchData.name = searchData.name || null
+        searchData.queryWord = searchData.queryWord || null
         return partListQuery(searchData).then(res => {
           const no = (res.data.pageNo - 1) * res.data.pageSize
           for (let i = 0; i < res.data.list.length; i++) {