From e7622df0c0bd77408336987584a9c4c84cf1081f Mon Sep 17 00:00:00 2001 From: tangxuan <2233783319@qq.com> Date: Wed, 29 Mar 2023 17:15:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E7=85=A7=E5=93=81=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E7=A7=B0=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reagent/receivingandreturn/index.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/reagent/receivingandreturn/index.vue b/src/views/reagent/receivingandreturn/index.vue index dcc7070..5048a7b 100644 --- a/src/views/reagent/receivingandreturn/index.vue +++ b/src/views/reagent/receivingandreturn/index.vue @@ -156,6 +156,7 @@ import { import { weigh, get_drug_info, tare, zero, update_drug_remain } from '@/api/reagent/weight' import { set_drug_empty_bottle } from '@/api/reagent/management' import stringify from '@/utils/stringify' +import { get_func_type } from '@/utils/index' export default { name: 'Weighing', @@ -193,7 +194,7 @@ export default { return this.$route.name.indexOf('Receiving') !== -1 ? `${this.$store.state.app.title}领用列表` : `${this.$store.state.app.title}归还列表` }, type() { - if (this.$route.name == "standardReceiving") { + if (this.$route.name == "standardReceiving" && get_func_type() == '2') { return `0` } return this.$route.name.indexOf('Receiving') !== -1 ? `1` : `0` @@ -202,10 +203,12 @@ export default { mounted() { this.pageChange(1) // 自动刷新获取数据(1000*60*60=>毫秒*秒*分钟,此时表示为60分钟) - //this.timer = setInterval(() => { - //this.doWeigh() - //}, 500) - //this.doZero() + if (get_func_type() !== "3") { + this.timer = setInterval(() => { + this.doWeigh() + }, 500) + this.doZero() + } }, destroyed() { if (this.timer) {