对照品不要称重

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 { weigh, get_drug_info, tare, zero, update_drug_remain } from '@/api/reagent/weight'
import { set_drug_empty_bottle } from '@/api/reagent/management' import { set_drug_empty_bottle } from '@/api/reagent/management'
import stringify from '@/utils/stringify' import stringify from '@/utils/stringify'
import { get_func_type } from '@/utils/index'
export default { export default {
name: 'Weighing', 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}归还列表` return this.$route.name.indexOf('Receiving') !== -1 ? `${this.$store.state.app.title}领用列表` : `${this.$store.state.app.title}归还列表`
}, },
type() { type() {
if (this.$route.name == "standardReceiving") { if (this.$route.name == "standardReceiving" && get_func_type() == '2') {
return `0` return `0`
} }
return this.$route.name.indexOf('Receiving') !== -1 ? `1` : `0` return this.$route.name.indexOf('Receiving') !== -1 ? `1` : `0`
@ -202,10 +203,12 @@ export default {
mounted() { mounted() {
this.pageChange(1) this.pageChange(1)
// (1000*60*60=>**60) // (1000*60*60=>**60)
//this.timer = setInterval(() => { if (get_func_type() !== "3") {
//this.doWeigh() this.timer = setInterval(() => {
//}, 500) this.doWeigh()
//this.doZero() }, 500)
this.doZero()
}
}, },
destroyed() { destroyed() {
if (this.timer) { if (this.timer) {

Loading…
Cancel
Save