diff --git a/src/components/ReagentForm/index.vue b/src/components/ReagentForm/index.vue index b1f05a4..4dd13aa 100644 --- a/src/components/ReagentForm/index.vue +++ b/src/components/ReagentForm/index.vue @@ -95,6 +95,11 @@ + + + + + + + @@ -249,6 +260,7 @@ > + diff --git a/src/views/reagent/receivingandreturn/index.vue b/src/views/reagent/receivingandreturn/index.vue index 9d5ad87..dcc7070 100644 --- a/src/views/reagent/receivingandreturn/index.vue +++ b/src/views/reagent/receivingandreturn/index.vue @@ -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}` } diff --git a/src/views/reagent/report/record/index.vue b/src/views/reagent/report/record/index.vue index 3007d3c..416266d 100644 --- a/src/views/reagent/report/record/index.vue +++ b/src/views/reagent/report/record/index.vue @@ -68,8 +68,8 @@ - - + +