|
|
@ -197,14 +197,15 @@ export default {
|
|
|
|
this.getDrugInfo(this.barCode)
|
|
|
|
this.getDrugInfo(this.barCode)
|
|
|
|
if (this.$route.name.indexOf('Receiving') !== -1) {
|
|
|
|
if (this.$route.name.indexOf('Receiving') !== -1) {
|
|
|
|
use(stringify({ 'bar_code': this.barCode })).then(res => {
|
|
|
|
use(stringify({ 'bar_code': this.barCode })).then(res => {
|
|
|
|
this.tableData.push(res.data)
|
|
|
|
// this.tableData.push(res.data)
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
this.$message.success(res.data.name + ' 试剂领用成功!')
|
|
|
|
this.$message.success(res.data.name + ' 试剂领用成功!')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
status: this.$route.name === 'Receiving' ? 4 : 2,
|
|
|
|
status: this.$route.name === 'Receiving' ? 1 : 2,
|
|
|
|
page: this.page,
|
|
|
|
page: this.page,
|
|
|
|
page_size: this.page_size
|
|
|
|
page_size: this.page_size
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -284,7 +285,8 @@ export default {
|
|
|
|
'remain': w ? parseFloat(this.inputWeigh).toFixed(2) : this.surplusWeigh
|
|
|
|
'remain': w ? parseFloat(this.inputWeigh).toFixed(2) : this.surplusWeigh
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drug_return(stringify(data)).then(res => {
|
|
|
|
drug_return(stringify(data)).then(res => {
|
|
|
|
this.tableData.push(res.data)
|
|
|
|
// this.tableData.push(res.data)
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
this.dialogVisible = false
|
|
|
|
this.dialogVisible = false
|
|
|
|
this.$message.success('归还成功!')
|
|
|
|
this.$message.success('归还成功!')
|
|
|
|
})
|
|
|
|
})
|
|
|
|