|
|
|
@ -23,7 +23,11 @@ import { ElMessage } from "element-plus";
|
|
|
|
import { computed, onMounted, onUnmounted, ref, watch } from "vue";
|
|
|
|
import { computed, onMounted, onUnmounted, ref, watch } from "vue";
|
|
|
|
import { api } from "../api";
|
|
|
|
import { api } from "../api";
|
|
|
|
import { getAllConfig } from "../host/config";
|
|
|
|
import { getAllConfig } from "../host/config";
|
|
|
|
import { confirmNative, showErrorNative, showErrorNativeWithLog } from "../host/dialog";
|
|
|
|
import {
|
|
|
|
|
|
|
|
confirmNative,
|
|
|
|
|
|
|
|
showErrorNative,
|
|
|
|
|
|
|
|
showErrorNativeWithLog,
|
|
|
|
|
|
|
|
} from "../host/dialog";
|
|
|
|
import { emitTaxerTicketContext, listenMainAction } from "../host/events";
|
|
|
|
import { emitTaxerTicketContext, listenMainAction } from "../host/events";
|
|
|
|
import { log } from "../host/logger";
|
|
|
|
import { log } from "../host/logger";
|
|
|
|
import { getSession } from "../host/session";
|
|
|
|
import { getSession } from "../host/session";
|
|
|
|
@ -565,7 +569,10 @@ async function callAction(): Promise<void> {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (isActionSuccess(recallRes)) {
|
|
|
|
if (isActionSuccess(recallRes)) {
|
|
|
|
updateLog(`已重呼:${getActionTicketNo(recallRes)},请勿重复点击!`);
|
|
|
|
updateLog(`已重呼:${getActionTicketNo(recallRes)},请勿重复点击!`);
|
|
|
|
await log("info", `重呼成功: ticketNo=${getActionTicketNo(recallRes)}`);
|
|
|
|
await log(
|
|
|
|
|
|
|
|
"info",
|
|
|
|
|
|
|
|
`重呼成功: ticketNo=${getActionTicketNo(recallRes)}`,
|
|
|
|
|
|
|
|
);
|
|
|
|
await emitTaxerTicketContext({
|
|
|
|
await emitTaxerTicketContext({
|
|
|
|
ticketNo: getActionTicketNo(recallRes),
|
|
|
|
ticketNo: getActionTicketNo(recallRes),
|
|
|
|
sfzhm: getActionSfzhm(recallRes),
|
|
|
|
sfzhm: getActionSfzhm(recallRes),
|
|
|
|
@ -1049,12 +1056,16 @@ onUnmounted(() => {
|
|
|
|
:data-action="btn.action"
|
|
|
|
:data-action="btn.action"
|
|
|
|
:disabled="!btn.enabled || isActionPending"
|
|
|
|
:disabled="!btn.enabled || isActionPending"
|
|
|
|
:class="{ disabled: !btn.enabled || isActionPending }"
|
|
|
|
:class="{ disabled: !btn.enabled || isActionPending }"
|
|
|
|
:style="{ color: !btn.enabled || isActionPending ? '#ccc' : textColor }"
|
|
|
|
:style="{
|
|
|
|
|
|
|
|
color: !btn.enabled || isActionPending ? '#ccc' : textColor,
|
|
|
|
|
|
|
|
}"
|
|
|
|
@click="handleButtonClick(btn)"
|
|
|
|
@click="handleButtonClick(btn)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-icon
|
|
|
|
<el-icon
|
|
|
|
class="button-icon"
|
|
|
|
class="button-icon"
|
|
|
|
:style="{ color: !btn.enabled || isActionPending ? '#ccc' : iconColor }"
|
|
|
|
:style="{
|
|
|
|
|
|
|
|
color: !btn.enabled || isActionPending ? '#ccc' : iconColor,
|
|
|
|
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<component :is="btn.icon" />
|
|
|
|
<component :is="btn.icon" />
|
|
|
|
</el-icon>
|
|
|
|
</el-icon>
|
|
|
|
|