feat(src/views/reagent/weighing): 称重api对接

duizhaopin_ui
duan 2 years ago
parent cfefe3f9eb
commit 75740b73ae

@ -15,3 +15,11 @@ export function update_drug_remain(data) {
data
})
}
export function get_drug_info(data) {
return request({
url: '/api/drug/get_drug_info',
method: 'post',
data
})
}

@ -31,12 +31,12 @@
<div class="bottom">
<div class="title">详情信息</div>
<el-descriptions class="margin-top" :column="2" border>
<el-descriptions-item span="2" label="试剂名称">{{ infoData.name }}</el-descriptions-item>
<el-descriptions-item span="2" label="英文名称">{{ infoData.english_name }}}</el-descriptions-item>
<el-descriptions-item label-style="width:100px" span="2" label="试剂名称">{{infoData.name }}</el-descriptions-item>
<el-descriptions-item span="2" label="英文名称">{{ infoData.english_name }}</el-descriptions-item>
<el-descriptions-item label="条码编号">{{ infoData.bar_code }}</el-descriptions-item>
<el-descriptions-item label="CAS码">{{ infoData.cas_number }}</el-descriptions-item>
<el-descriptions-item label-style="width:100px" label="CAS码">{{ infoData.cas_number }}</el-descriptions-item>
<el-descriptions-item label="试剂纯度">{{ infoData.purity }}</el-descriptions-item>
<el-descriptions-item label="试剂余量">578</el-descriptions-item>
<el-descriptions-item label="试剂余量">{{ infoData.remain }}</el-descriptions-item>
<el-descriptions-item label="生产日期">{{ infoData.production_date }}</el-descriptions-item>
<el-descriptions-item label="过期日期">{{ infoData.expiration_date }}</el-descriptions-item>
<el-descriptions-item label="生产厂家">{{ infoData.manufacturer }}</el-descriptions-item>
@ -49,7 +49,7 @@
<el-descriptions-item label="是否监管">{{ infoData.is_supervise }}</el-descriptions-item>
<el-descriptions-item label="所属终端">{{ infoData.client_id }}</el-descriptions-item>
<el-descriptions-item label="最后使用人">
<el-tag>{{ infoData.by_user_name }}</el-tag>
<el-tag v-if="infoData.by_user_name">{{ infoData.by_user_name }}</el-tag>
</el-descriptions-item>
</el-descriptions>
</div>
@ -59,10 +59,9 @@
</template>
<script>
import Scannner from '@/components/Scannner/index'
import { use } from '@/api/reagent/receivingReturn'
import stringify from '@/utils/stringify'
import { update_drug_remain, weigh } from '@/api/reagent/weight'
import Scannner from '@/components/Scannner/index'
import {update_drug_remain, weigh, get_drug_info} from '@/api/reagent/weight'
import {set_drug_empty_bottle} from '@/api/reagent/management'
export default {
@ -85,7 +84,7 @@ export default {
//
barCode: function (newCode, oldCode) {
if (this.$route.name === 'Receiving') {
use(stringify({ 'bar_code': newCode })).then(res => {
get_drug_info(stringify({'bar_code': newCode})).then(res => {
this.infoData = res.data
this.$message.success(res.data.name + ' 试剂领扫描成功!')
})
@ -218,6 +217,7 @@ export default {
padding: 0.75rem 8.25rem 0.75rem 8.25rem;
width: 41.25rem;
height: 7.75rem;
display: inline-block;
background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FC 100%);
box-shadow: inset 0rem 0.25rem 0.75rem 0.0625rem #DCDFE6;
border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
@ -225,6 +225,7 @@ export default {
font-size: 6.25rem;
font-weight: 400;
color: #606266;
text-align: center;
}
.unit {

Loading…
Cancel
Save