Commit d82ea29e authored by 王飞龙's avatar 王飞龙

药品bug

parent d525fdc7
......@@ -185,7 +185,7 @@
</el-table-column>
<el-table-column label="当前库存" align="left" prop="currentQty" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ scope.row.currentQty }}</span>
<span>{{ scope.row.currentQty || "0" }}</span>
<span style="margin-left: 5px">{{ scope.row.stockUnit }}</span>
</template>
</el-table-column>
......@@ -274,7 +274,8 @@
</el-table-column>
<el-table-column label="当前库存 " align="left" :min-width="50" prop="currentQty">
<template slot-scope="scope">
{{ scope.row.currentQty + scope.row.stockUnit }}
<span>{{ scope.row.currentQty || "0" }}</span>
<span style="margin-left: 5px">{{ scope.row.stockUnit }}</span>
</template>
</el-table-column>
<el-table-column label="货架" align="left" :min-width="50" prop="location" />
......@@ -492,7 +493,7 @@
<script>
import { parseTime } from '@/utils/ruoyi'
import { parseStrEmpty, parseTime } from '@/utils/ruoyi'
import { mapGetters } from 'vuex'
import { drugOut, getDrug, listDrugDelivery } from '../../../api/financial/drug'
import { deepClone, moneyFormat } from '@/utils'
......@@ -749,6 +750,9 @@ export default {
getDrug(id).then(res => {
console.log('药品信息', res)
this.form = { number: 0, ...res.data }
if (parseStrEmpty(this.form.currentQty) === '') {
this.form.currentQty = '0'
}
if (this.form.currentQty < this.form.safeQty) {
console.log('为真了')
......
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