对照品不要称重

duizhaopin_ui
tangxuan 2 years ago
parent 8c3bb82fce
commit e7622df0c0

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

Loading…
Cancel
Save