Ver Fonte

退款管理: 退款状态为 0 未退款 10部分退款 20已退款

lxf há 1 ano atrás
pai
commit
7911021587
1 ficheiros alterados com 14 adições e 19 exclusões
  1. 14 19
      src/views/purchaseManage/purchasePayment/refund/index.vue

+ 14 - 19
src/views/purchaseManage/purchasePayment/refund/index.vue

@@ -51,11 +51,23 @@
 import { computed, ref } from "vue";
 import byTable from "@/components/byTable/index";
 import byForm from "@/components/byForm/index";
-import useUserStore from "@/store/modules/user";
 import { ElMessage } from "element-plus";
 
 const { proxy } = getCurrentInstance();
-const refundStatus = ref([]);
+const refundStatus = ref([
+  {
+    label: "未退款",
+    value: 0,
+  },
+  {
+    label: "部分退款",
+    value: 10,
+  },
+  {
+    label: "已退款",
+    value: 20,
+  },
+]);
 const accountList = ref([]);
 const status = ref([
   {
@@ -196,23 +208,6 @@ const config = computed(() => {
   ];
 });
 const getDict = () => {
-  proxy
-    .post("/dictTenantData/page", {
-      pageNum: 1,
-      pageSize: 999,
-      dictCode: "refund_status",
-      tenantId: useUserStore().user.tenantId,
-    })
-    .then((res) => {
-      if (res.rows && res.rows.length > 0) {
-        refundStatus.value = res.rows.map((item) => {
-          return {
-            label: item.dictValue,
-            value: item.dictKey,
-          };
-        });
-      }
-    });
   proxy.post("/accountManagement/page", { pageNum: 1, pageSize: 999 }).then((res) => {
     accountList.value = res.rows.map((item) => {
       return {