Commit 0dfe411e authored by 王飞龙's avatar 王飞龙

药品bug

parent d82ea29e
......@@ -781,10 +781,17 @@ export default {
closeOnClickModal: false
}).then(() => {
drugOut([this.outForm]).then(response => {
this.$modal.msgSuccess('配药成功')
this.getDetail()
})
console.log('我到这了')
if (this.outForm.number === 0) {
console.log('进来了')
this.$modal.msgError('库存不足')
} else {
console.log('没进来了')
drugOut([this.outForm]).then(response => {
this.$modal.msgSuccess('配药成功')
this.getDetail()
})
}
}).finally(() => {
/* 最后给特定的id进行设置 */
/* */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment