|
|
@ -230,14 +230,13 @@ export default {
|
|
|
|
}).then(({ value }) => {
|
|
|
|
}).then(({ value }) => {
|
|
|
|
if(value){
|
|
|
|
if(value){
|
|
|
|
// 领用先进先出判断
|
|
|
|
// 领用先进先出判断
|
|
|
|
get_check_last_drug(stringify(this.infoData)).then(res => {
|
|
|
|
get_check_last_drug(stringify(this.infoData)).then(res_is_last => {
|
|
|
|
this.check_last_medicament(this.infoData).then((check_res) => {
|
|
|
|
this.check_last_medicament(res_is_last).then((check_res) => {
|
|
|
|
// 继续领用当前试剂
|
|
|
|
// 继续领用当前试剂
|
|
|
|
if (check_res) {
|
|
|
|
if (check_res) {
|
|
|
|
use(stringify({ 'bar_code': this.barCode,notes: value})).then(res => {
|
|
|
|
use(stringify({ 'bar_code': this.barCode,notes: value})).then(res => {
|
|
|
|
this.tableData.push(res.data)
|
|
|
|
this.tableData.push(res.data)
|
|
|
|
this.$message.success(res.data.name + ' 试剂领用成功, 请称重!')
|
|
|
|
this.$message.success(res.data.name + ' 试剂领用成功, 请称重!')
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -304,10 +303,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pageChange(page) {
|
|
|
|
pageChange(page) {
|
|
|
|
this.page = page
|
|
|
|
this.page = page
|
|
|
|
|
|
|
|
if (this.$route.name != 'standardReceiving') {
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
// if (this.$route.name != 'standardReceiving') {
|
|
|
|
}
|
|
|
|
// this.getList()
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getDrugInfo(code) {
|
|
|
|
getDrugInfo(code) {
|
|
|
|
get_drug_info(stringify({ 'bar_code': code })).then(res => {
|
|
|
|
get_drug_info(stringify({ 'bar_code': code })).then(res => {
|
|
|
|