|
|
|
@ -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) {
|
|
|
|
|