瀏覽代碼

组件修改

lichao 3 年之前
父節點
當前提交
8a03280b8d

+ 1 - 2
src/components/goodsSelect/index.vue

@@ -143,8 +143,7 @@ export default {
     }
   },
   async created() {
-    this.option = option
-    // this.option = await this.getColumnData(this.getColumnName(49), option);
+    this.option = await this.getColumnData(this.getColumnName(49), option);
     // this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
     this.remoteMethod()
   },

+ 1 - 1
src/components/procurement/config/market.json

@@ -71,7 +71,7 @@
       "width":120
     },{
       "label": "件数",
-      "prop": "purchaseQuantity",
+      "prop": "orderQuantity",
       "index": 9,
       "width":120
     },{

+ 17 - 1
src/components/procurement/market.vue

@@ -57,12 +57,28 @@
       this.option = await this.getColumnData(this.getColumnName(42), option);
       if (this.systemType == 'GN') {
         this.option.column.forEach(item => {
-          if (item.prop == 'billNo' || item.prop == 'invoiceWeight' || item.prop == 'billWeight') {
+          if (item.prop == 'billNo' || item.prop == 'invoiceWeight' || item.prop == 'billWeight' || item.prop == 'orderNo'
+            || item.prop == 'priceCategoryNames' || item.prop == 'itemType'
+          ) {
             item.hide = true;
             item.showColumn = false;
           }
+          // 隐藏查询
+          if (item.prop == 'orderNo') {
+            item.search = false
+          }
         })
       }
+      // 搜索按钮位置自适应
+      let i = 0;
+      this.option.column.forEach(item => {
+        if (item.search) i++
+      })
+      if (i % 4 !== 0){
+        const num = 4 - Number(i % 4)
+        this.option.searchMenuSpan = num * 6;
+        this.option.searchMenuPosition = "right";
+      }
     },
     methods:{
       refreshChange(){

+ 1 - 2
src/components/selectComponent/customerSelect.vue

@@ -142,8 +142,7 @@ export default {
     }
   },
   async created() {
-    this.option = option
-    // this.option = await this.getColumnData(this.getColumnName(47), option);
+    this.option = await this.getColumnData(this.getColumnName(47), option);
     // this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
     this.remoteMethod()
   },

+ 1 - 2
src/components/warehouseSelect/index.vue

@@ -132,8 +132,7 @@ export default {
     }
   },
   async created() {
-    this.option = option
-    // this.option = await this.getColumnData(this.getColumnName(48), option);
+    this.option = await this.getColumnData(this.getColumnName(48), option);
     // this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
     this.remoteMethod()
   },