|
@@ -59,6 +59,28 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="action-item"
|
|
|
|
|
+ :class="{ disabled: authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="action-icon">
|
|
|
|
|
+ <el-icon :size="32"><Search /></el-icon>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="action-title">查询签约结果</div>
|
|
|
|
|
+ <div class="action-desc">
|
|
|
|
|
+ {{ agreementNo || "获取签约协议号" }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-hasPerm="['module_payment:account:authorize']"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :disabled="authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id"
|
|
|
|
|
+ :loading="queryLoading"
|
|
|
|
|
+ @click="$emit('queryAgreement')"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ agreementNo ? "已获取" : "查询" }}
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div
|
|
<div
|
|
|
class="action-item"
|
|
class="action-item"
|
|
|
:class="{ disabled: authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id }"
|
|
:class="{ disabled: authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id }"
|
|
@@ -277,16 +299,19 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { useEnterpriseStore } from "@/store/modules/enterprise.store";
|
|
import { useEnterpriseStore } from "@/store/modules/enterprise.store";
|
|
|
import AccountAPI from "@/api/module_payment/account";
|
|
import AccountAPI from "@/api/module_payment/account";
|
|
|
-import { Refresh, Document, Coin, Wallet, Money } from "@element-plus/icons-vue";
|
|
|
|
|
|
|
+import { Refresh, Document, Coin, Wallet, Money, Search } from "@element-plus/icons-vue";
|
|
|
import { ref, computed, watch } from "vue";
|
|
import { ref, computed, watch } from "vue";
|
|
|
import en from "@/lang/package/en";
|
|
import en from "@/lang/package/en";
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
|
enterpriseId?: string;
|
|
enterpriseId?: string;
|
|
|
|
|
+ agreementNo?: string;
|
|
|
|
|
+ queryLoading?: boolean;
|
|
|
}>();
|
|
}>();
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
const emit = defineEmits<{
|
|
|
(e: "goTab", tab: string): void;
|
|
(e: "goTab", tab: string): void;
|
|
|
|
|
+ (e: "queryAgreement"): void;
|
|
|
(e: "refresh", data: any): void;
|
|
(e: "refresh", data: any): void;
|
|
|
(e: "withdraw"): void;
|
|
(e: "withdraw"): void;
|
|
|
}>();
|
|
}>();
|