|
|
@@ -4,6 +4,9 @@
|
|
|
<el-button type="success" size="small" @click="showBatchDialog = true">
|
|
|
手工发放
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="goToBatchManagement">
|
|
|
+ 发放批次管理
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
|
|
|
<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 IssueBatchForm from "@/views/module_payment/quota/components/IssueBatchForm.vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
+import { useRouter } from "vue-router";
|
|
|
import { onMounted, ref } from "vue";
|
|
|
import { useEnterpriseStore } from "@/store/modules/enterprise.store";
|
|
|
|
|
|
@@ -109,6 +113,18 @@ const currentQuotaId = ref("");
|
|
|
|
|
|
const showBatchDialog = ref(false);
|
|
|
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() {
|
|
|
if (!props.institutionId) return;
|