lxf 1 year ago
parent
commit
ecf60386b6

+ 1 - 15
src/views/group/order/management/index.vue

@@ -89,7 +89,6 @@
 import byTable from "/src/components/byTable/index";
 import { ElMessage, ElMessageBox } from "element-plus";
 import { copyText } from "vue3-clipboard";
-import { flowStatus } from "/src/utils/flowStatus";
 import DeliveryNote from "/src/components/order/deliveryNote/index";
 
 const { proxy } = getCurrentInstance();
@@ -181,24 +180,11 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "流程状态",
-        prop: "flowStatus",
-        width: 120,
-      },
-      render(val) {
-        return proxy.dictKeyValue(val, flowStatus());
-      },
-    },
-    {
-      attrs: {
         label: "订单状态",
         prop: "status",
         width: 120,
       },
-      render(val, row) {
-        if (val == 0 && row.flowStatus !== 2) {
-          return "";
-        }
+      render(val) {
         return proxy.dictKeyValue(val, proxy.useUserStore().allDict["order_status"]);
       },
     },

+ 2 - 22
src/views/subsidiary/order/management/index.vue

@@ -62,7 +62,6 @@
 import byTable from "/src/components/byTable/index";
 import { ElMessage, ElMessageBox } from "element-plus";
 import refreshStore from "/src/store/modules/refresh";
-import { flowStatus } from "/src/utils/flowStatus";
 
 const { proxy } = getCurrentInstance();
 const sourceList = ref({
@@ -94,12 +93,6 @@ const searchConfig = computed(() => {
     },
     {
       type: "select",
-      prop: "flowStatus",
-      label: "流程状态",
-      data: flowStatus(),
-    },
-    {
-      type: "select",
       prop: "status",
       dictKey: "order_status",
       label: "订单状态",
@@ -144,24 +137,11 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "流程状态",
-        prop: "flowStatus",
-        width: 120,
-      },
-      render(val) {
-        return proxy.dictKeyValue(val, flowStatus());
-      },
-    },
-    {
-      attrs: {
         label: "订单状态",
         prop: "status",
         width: 120,
       },
-      render(val, row) {
-        if (val == 0 && row.flowStatus !== 2) {
-          return "";
-        }
+      render(val) {
         return proxy.dictKeyValue(val, proxy.useUserStore().allDict["order_status"]);
       },
     },
@@ -340,7 +320,7 @@ const config = computed(() => {
                 },
               }
             : {},
-          row.status == 0 && row.flowStatus !== 1 && row.flowStatus !== 2
+          row.status == 0
             ? {
                 attrs: {
                   label: "编辑",