|
|
|
@ -217,6 +217,9 @@ export default {
|
|
|
|
|
getCode(code) {
|
|
|
|
|
var that =this
|
|
|
|
|
if (that.is_wait){
|
|
|
|
|
if (this.infoData.bar_code == code) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.barCode = code
|
|
|
|
|
if (this.$store.state.app.title=='危化品'){
|
|
|
|
|
this.is_wait =false
|
|
|
|
@ -231,7 +234,7 @@ export default {
|
|
|
|
|
if(value){
|
|
|
|
|
// 领用先进先出判断
|
|
|
|
|
get_check_last_drug(stringify(this.infoData)).then(res_is_last => {
|
|
|
|
|
this.check_last_medicament(res_is_last).then((check_res) => {
|
|
|
|
|
this.check_last_medicament(res_is_last.data).then((check_res) => {
|
|
|
|
|
// 继续领用当前试剂
|
|
|
|
|
if (check_res) {
|
|
|
|
|
use(stringify({ 'bar_code': this.barCode,notes: value})).then(res => {
|
|
|
|
@ -360,6 +363,22 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
set_drug_empty_bottle(stringify(data)).then(res => {
|
|
|
|
|
this.$message.success(res.msg)
|
|
|
|
|
// 归还弹框提示用量
|
|
|
|
|
if (this.$route.name === 'standardSendBack'){
|
|
|
|
|
const h = this.$createElement;
|
|
|
|
|
var msg = ""
|
|
|
|
|
if (res.data.is_liquid){
|
|
|
|
|
msg += `用量:${res.data.use_quality}, 液体 体积用量:${res.data.use_volum} ${res.data.net_weight_unit}`
|
|
|
|
|
} else {
|
|
|
|
|
msg += `当次用量:${res.data.use_quality} ${res.data.net_weight_unit}`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$notify({
|
|
|
|
|
title: '本次使用用量',
|
|
|
|
|
message: h('i', { style: 'color: teal'}, msg)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning('请选择试剂!')
|
|
|
|
@ -384,12 +403,12 @@ export default {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.dialogVisible = false
|
|
|
|
|
this.$message.success('归还成功!')
|
|
|
|
|
// 危化品归还弹框提示用量
|
|
|
|
|
// 归还弹框提示用量
|
|
|
|
|
if (this.$route.name === 'standardSendBack'){
|
|
|
|
|
const h = this.$createElement;
|
|
|
|
|
var msg = ""
|
|
|
|
|
if (res.data.is_liquid){
|
|
|
|
|
msg += `液体, 体积用量:${res.data.use_volum} ${res.data.net_weight_unit}`
|
|
|
|
|
msg += `用量:${res.data.use_quality}, 液体 体积用量:${res.data.use_volum} ${res.data.net_weight_unit}`
|
|
|
|
|
} else {
|
|
|
|
|
msg += `当次用量:${res.data.use_quality} ${res.data.net_weight_unit}`
|
|
|
|
|
}
|
|
|
|
|