Просмотр исходного кода

feat: 制度详情额度管理tab增加'发放批次管理'跳转按钮

alphah 2 недель назад
Родитель
Сommit
e90b010d49
2 измененных файлов с 16 добавлено и 0 удалено
  1. BIN
      frontend/dist.zip
  2. 16 0
      frontend/src/views/module_payment/institution/components/QuotaList.vue

BIN
frontend/dist.zip


+ 16 - 0
frontend/src/views/module_payment/institution/components/QuotaList.vue

@@ -4,6 +4,9 @@
       <el-button type="success" size="small" @click="showBatchDialog = true">
       <el-button type="success" size="small" @click="showBatchDialog = true">
         手工发放
         手工发放
       </el-button>
       </el-button>
+      <el-button type="primary" size="small" @click="goToBatchManagement">
+        发放批次管理
+      </el-button>
     </div>
     </div>
 
 
     <el-table v-loading="loading" :data="list" border stripe size="small" style="width: 100%">
     <el-table v-loading="loading" :data="list" border stripe size="small" style="width: 100%">
@@ -86,6 +89,7 @@ import QuotaAPI, {
 import QuotaDetailDialog from "./QuotaDetailDialog.vue";
 import QuotaDetailDialog from "./QuotaDetailDialog.vue";
 import IssueBatchForm from "@/views/module_payment/quota/components/IssueBatchForm.vue";
 import IssueBatchForm from "@/views/module_payment/quota/components/IssueBatchForm.vue";
 import { ElMessage } from "element-plus";
 import { ElMessage } from "element-plus";
+import { useRouter } from "vue-router";
 import { onMounted, ref } from "vue";
 import { onMounted, ref } from "vue";
 import { useEnterpriseStore } from "@/store/modules/enterprise.store";
 import { useEnterpriseStore } from "@/store/modules/enterprise.store";
 
 
@@ -109,6 +113,18 @@ const currentQuotaId = ref("");
 
 
 const showBatchDialog = ref(false);
 const showBatchDialog = ref(false);
 const batchFormRef = ref();
 const batchFormRef = ref();
+const router = useRouter();
+
+function goToBatchManagement() {
+  const win = window.open(
+    `/#/payment/quota?tab=batch&institution_id=${props.institutionId}`,
+    "_blank"
+  );
+  // 如果没有弹出新窗口则用router
+  if (!win || win.closed) {
+    router.push({ path: "/payment/quota", query: { tab: "batch", institution_id: props.institutionId } });
+  }
+}
 
 
 async function fetchList() {
 async function fetchList() {
   if (!props.institutionId) return;
   if (!props.institutionId) return;