|
|
@ -1,39 +1,62 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-row>
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-col v-for="(info, index) in preDetailList" :key="index" :xs="12" :sm="6" :md="6" :lg="8" >
|
|
|
|
<el-col v-for="(info, index) in preDetailList" :key="index" :span="24">
|
|
|
|
<el-card :body-style="{margin:'20px'}"
|
|
|
|
<el-card class="drug-card">
|
|
|
|
style="margin:20px 20px 20px 20px;;background-color: #e1f3fb;border-radius: 12px; position: relative;">
|
|
|
|
<div class="card-content">
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; height: 26px; /* 约为 200px 的 1/3 */" >
|
|
|
|
<div class="info-section">
|
|
|
|
<p>产品通用名:</p> <p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.cpmctymc }}</p>
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
|
|
<span class="label">产品通用名:</span>
|
|
|
|
|
|
|
|
<span class="value product-name">{{ info.cpmctymc }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; height: 26px; /* 约为 200px 的 1/3 */" >
|
|
|
|
<div class="info-row">
|
|
|
|
<p>包装规格:</p><p style="font-size: 16px;background-color: #e1f3fb;font-weight: bold;">{{ info.ggxh }}</p>
|
|
|
|
<span class="label">包装规格:</span>
|
|
|
|
|
|
|
|
<span class="value">{{ info.ggxh }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; height: 26px; /* 约为 200px 的 1/3 */" >
|
|
|
|
<div class="info-row">
|
|
|
|
<p>制剂规格:</p><p style="font-size: 16px;background-color: #e1f3fb;font-weight: bold;">{{ info.prepnSpec }}</p>
|
|
|
|
<span class="label">制剂规格:</span>
|
|
|
|
|
|
|
|
<span class="value">{{ info.prepnSpec }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; height: 26px; /* 约为 200px 的 1/3 */" >
|
|
|
|
<div class="info-row">
|
|
|
|
<p>批次号:</p><p style="font-size: 16px;background-color: #e1f3fb;font-weight: bold;">{{ info.batchNo }}</p>
|
|
|
|
<span class="label">批次号:</span>
|
|
|
|
|
|
|
|
<span class="value">{{ info.batchNo }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; height: 26px; /* 约为 200px 的 1/3 */" >
|
|
|
|
<div class="info-row">
|
|
|
|
<p>摆放位置:</p><p style="font-size: 16px;background-color: #e1f3fb;font-weight: bold;">{{ info.queueCode }}</p>
|
|
|
|
<span class="label">摆放位置:</span>
|
|
|
|
|
|
|
|
<span class="value">{{ info.queueCode }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; height: 26px; /* 约为 200px 的 1/3 */" >
|
|
|
|
|
|
|
|
<p></p><p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;margin-top: 80px"><i class="el-icon-s-opportunity"></i>
|
|
|
|
|
|
|
|
<span :style="colorStyle(info)">{{ info.colorName}}</span></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;" >
|
|
|
|
|
|
|
|
<span><h1 :style="{ 'font-size': '45px', 'color': info.getConfirm ? '#67C23A' : '#F56C6C' }">{{ info.count }}</h1></span>
|
|
|
|
|
|
|
|
<el-button type="primary" style="position: absolute; bottom: 20px; right: 130px;" icon="el-icon-document" @click="codeHandleClick(info)" :disabled="!info.getConfirm">赋码明细</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" style="position: absolute; bottom: 20px; right: 20px;" icon="el-icon-thumb" @click="handleClick(info)" :disabled="info.getConfirm">确认取药</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="action-section">
|
|
|
|
|
|
|
|
<div class="count-display">
|
|
|
|
|
|
|
|
<h1 class="count" :class="{ 'confirmed': info.getConfirm }">{{ info.count }}</h1>
|
|
|
|
|
|
|
|
<div class="light-info">
|
|
|
|
|
|
|
|
<i class="el-icon-s-opportunity"></i>
|
|
|
|
|
|
|
|
<span :style="colorStyle(info)">{{ info.colorName }}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="button-group">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
icon="el-icon-document"
|
|
|
|
|
|
|
|
@click="codeHandleClick(info)"
|
|
|
|
|
|
|
|
:disabled="!info.getConfirm">
|
|
|
|
|
|
|
|
赋码明细
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
icon="el-icon-thumb"
|
|
|
|
|
|
|
|
@click="handleClick(info)"
|
|
|
|
|
|
|
|
:disabled="info.getConfirm">
|
|
|
|
|
|
|
|
确认取药
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="扫码明细"
|
|
|
|
title="扫码明细"
|
|
|
|
:visible.sync="scanDetailVisible"
|
|
|
|
:visible.sync="scanDetailVisible"
|
|
|
@ -345,4 +368,76 @@ export default {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
.drug-card {
|
|
|
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
|
|
|
background-color: #e1f3fb;
|
|
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.card-content {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.info-section {
|
|
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.info-row {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
margin: 8px 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.label {
|
|
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.value {
|
|
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.product-name {
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.action-section {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
margin-left: 40px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.count-display {
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.count {
|
|
|
|
|
|
|
|
font-size: 45px;
|
|
|
|
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.count.confirmed {
|
|
|
|
|
|
|
|
color: #67C23A;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.count:not(.confirmed) {
|
|
|
|
|
|
|
|
color: #F56C6C;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.light-info {
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.button-group {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|