lilei 2 месяцев назад
Родитель
Сommit
b8a650db48

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1744612509917
+  "version": 1744615122596
 }

+ 17 - 3
src/views/salesManagement/salesQueryNew/chooseProductModal.vue

@@ -159,7 +159,7 @@
         :columns="columns"
         :data="loadData"
         @dblclick="handleClickRow"
-        :pageSize="200"
+        :pageSize="20"
         :scroll="{ y: tableHeight, x: tableWidth }"
         bordered>
         <div slot="costTitle">
@@ -332,6 +332,7 @@ export default {
       productType: [], // 产品类型
       defImg, // 默认图片
       showUploadImg: false, // 上传图片弹框
+      pageSize: 20,
       queryParam: { //  查询条件
         customerSn: '', // 客户sn
         salesBillSn: '', // 销售单sn
@@ -399,6 +400,7 @@ export default {
         } else if (_this.queryParam.vinCode && _this.queryParam.vinCode.length < 17 && !this.onlyList) { // 输入vin,但vin码不符合标准,不查vin码信息,不请求列表数据
           _this.$refs.table.localLoading = false
           _this.$refs.table.clearTable()
+          _this.pageSize = 20
         } else if (this.onlyList) {
           _this.disabled = true
           if (_this.queryParam.vinCode && _this.vinInfoData) {
@@ -493,6 +495,18 @@ export default {
     getList (params) {
       const _this = this
       console.log(_this.vinProductTypeSn)
+      if (params.productCodeList && params.productCodeList.length) {
+        params.pageSize = 200
+        this.pageSize = 200
+      } else {
+        params.pageSize = 20
+        this.pageSize = 20
+      }
+      if (params.productCodeList && params.productCodeList.length) {
+        params.productTypeSn1 = undefined
+        params.productTypeSn2 = undefined
+        params.productTypeSn3 = undefined
+      }
       // 如果有vin识别的分类
       if (_this.vinProductTypeSn) {
         const typeSn = _this.vinProductTypeSn
@@ -506,7 +520,7 @@ export default {
             return {
               list: result,
               pageNo: 1,
-              pageSize: 200
+              pageSize: _this.pageSize
             }
           })
       } else {
@@ -532,7 +546,7 @@ export default {
             data = {
               list: [],
               pageNo: 1,
-              pageSize: 200
+              pageSize: _this.pageSize
             }
             _this.dataSorce = []
           }