Browse Source

fix:增加筛选条件

lupeng 6 tháng trước cách đây
mục cha
commit
36ab81c26d
2 tập tin đã thay đổi với 24 bổ sung6 xóa
  1. 23 6
      src/views/plan/order/index.vue
  2. 1 0
      src/views/plan/workOrder/index.vue

+ 23 - 6
src/views/plan/order/index.vue

@@ -392,14 +392,30 @@ option.value = {
       ],
       change: ({ value, column }) => {
         if (value === "2") {
-          option.value.column[4].display = true;
-          option.value.column[6].disabled = true;
-          option.value.column[10].disabled = true;
+          option.value.column.forEach((item) => {
+            if (item.prop == "trackingNumber") {
+              item.display = true;
+            }
+            if (item.prop == "materialCode") {
+              item.disabled = true;
+            }
+            if (item.prop == "orderNum") {
+              item.disabled = true;
+            }
+          });
         }
         if (value === "1") {
-          option.value.column[4].display = false;
-          option.value.column[6].disabled = false;
-          option.value.column[10].disabled = false;
+          option.value.column.forEach((item) => {
+            if (item.prop == "trackingNumber") {
+              item.display = false;
+            }
+            if (item.prop == "materialCode") {
+              item.disabled = false;
+            }
+            if (item.prop == "orderNum") {
+              item.disabled = false;
+            }
+          });
         }
       },
     },
@@ -472,6 +488,7 @@ option.value = {
       label: "订单状态",
       prop: "orderState",
       display: false,
+      search: true,
       width: 100,
       overHidden: true,
       type: "select", //类型为下拉选择框

+ 1 - 0
src/views/plan/workOrder/index.vue

@@ -730,6 +730,7 @@ option.value = Object.assign(option.value, {
     {
       label: "状态",
       prop: "workOrderState",
+      search: true,
       width: "80",
       display: false,
       type: "select", //类型为下拉选择框