|
@@ -82,7 +82,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 纸币器禁能开关 -->
|
|
|
- <div class="door-item" v-if="(machineType == '0' || machineType == '1') && user.ifForegin == '1'">
|
|
|
+ <div class="door-item" v-if="(machineType == '0' || machineType == '1') && (user.ifForegin == '1' || user.type == '0')">
|
|
|
<div class="door-info">
|
|
|
<div class="door-detail">
|
|
|
<h3 class="door-title">{{ $t("device.banPaper") }}</h3>
|
|
@@ -102,8 +102,6 @@
|
|
|
:model-value="deviceDetal.banPaper"
|
|
|
@update:model-value="banPaperChg"
|
|
|
size="24px"
|
|
|
- active-value="1"
|
|
|
- inactive-value="0"
|
|
|
active-color="#4d6add"
|
|
|
inactive-color="#dcdee0"
|
|
|
/>
|
|
@@ -116,7 +114,7 @@
|
|
|
import { onMounted, ref } from "vue";
|
|
|
import sHeader from "@/components/SimpleHeader";
|
|
|
import { useRoute } from "vue-router";
|
|
|
-import { getDeviceDetal, Api_openDoor } from "@/service/device";
|
|
|
+import { getDeviceDetal, Api_openDoor, banMoney } from "@/service/device";
|
|
|
import { showFailToast, showToast, showConfirmDialog } from "vant";
|
|
|
import { useI18n } from "vue-i18n";
|
|
|
import { getLoginUser } from "../../common/js/utils";
|
|
@@ -204,10 +202,9 @@ export default {
|
|
|
title: t("device.openRemind"),
|
|
|
message: t("device.openRemindPaper"),
|
|
|
}).then(() => {
|
|
|
- Api_openDoor({
|
|
|
+ banMoney({
|
|
|
equipmentId: deviceDetal.value.id,
|
|
|
- type: 2,
|
|
|
- status: banPaper,
|
|
|
+ banPaper: banPaper,
|
|
|
}).then((res) => {
|
|
|
if (res.data.code == "00000") {
|
|
|
showToast(t("device.sentSuccessfully"));
|