Commit 34bf2db4 authored by 王飞龙's avatar 王飞龙

药品bug

parent c22ee118
<template>
<div style="min-height: 52.875rem;background-color: #fff">
<div class="drug-content-style">
<div style=" text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;">
<span style="font-size: 1.5rem;font-weight: bold; color: #333333;line-height: 20px;">详情</span>
<div class="topTitle">
<span class="topTitleText">详情</span>
<div class="medicalRecordNo">{{ form.medicalRecordNo }}</div>
</div>
<div>
......@@ -889,7 +889,15 @@ export default {
.drug-content-style {
padding: 0 3rem 1.875rem 2rem;
}
.topTitle{
text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;
}
.topTitleText{
font-size: 24px;
font-weight: bold;
color: #333333;
line-height: 24px;
}
/*最下方按钮布局*/
.bottom-bth-style {
padding-bottom: 1.25rem;
......
......@@ -2,8 +2,8 @@
<div>
<div style="min-height: 52.875rem;background-color: #fff">
<div class="drug-content-style drug-add">
<div style=" text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;">
<span style="font-size: 1.5rem;font-weight: bold; color: #333333;line-height: 20px;">新增</span>
<div class="topTitle">
<span class="topTitleText">新增</span>
</div>
<div>
<el-form ref="form" :model="form" :rules="rules" label-width="8.5rem">
......@@ -953,6 +953,15 @@ export default {
.drug-content-style {
padding: 0 8px 1.875rem 2rem;
}
.topTitle{
text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;
}
.topTitleText{
font-size: 24px;
font-weight: bold;
color: #333333;
line-height: 24px;
}
/*最下方按钮布局*/
.bottom-bth-style {
......
......@@ -2,8 +2,8 @@
<div>
<div v-if="identify ==='1'" style="min-height: 52.875rem;background-color: #fff">
<div class="drug-content-style drug_detail">
<div style=" text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;">
<span style="font-size: 1.5rem;font-weight: bold; color: #333333;line-height: 20px;">编辑</span>
<div class="topTitle">
<span class="topTitleText">编辑</span>
</div>
<div>
<el-form ref="form" :model="form" :rules="rules" label-width="6.7rem">
......@@ -360,8 +360,8 @@
</div>
<div v-if="identify ==='2'" style="min-height: 52.875rem;background-color: #fff">
<div class="drug-content-style drug_detail">
<div style=" text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;">
<span style="font-size: 1.5rem;font-weight: bold; color: #333333;line-height: 20px;">详情</span>
<div class="topTitle">
<span class="topTitleText">详情</span>
</div>
<div>
<el-form ref="form" :model="form" :rules="rules" label-width="6.7rem">
......@@ -1346,6 +1346,15 @@ export default {
.drug-content-style {
padding: 0 3rem 3.125rem 2rem;
}
.topTitle{
text-align: center;padding-top: 1.875rem;padding-bottom: 1.875rem;
}
.topTitleText{
font-size: 24px;
font-weight: bold;
color: #333333;
line-height: 24px;
}
/*最下方按钮布局*/
.bottom-bth-style {
......
......@@ -185,8 +185,8 @@
<span
v-if=" scope.row.currentQty <scope.row.safeQty"
style="color: #DB4747 "
>{{ scope.row.currentQty + scope.row.stockUnit || "0" }}</span>
<span v-else>{{ scope.row.currentQty + scope.row.stockUnit || "0" }}</span>
>{{ scope.row.currentQty|| "0" }}{{ scope.row.stockUnit }}</span>
<span v-else>{{ scope.row.currentQty || "0" }}{{ scope.row.stockUnit }}</span>
</template>
</el-table-column>
......@@ -386,7 +386,7 @@
icon="el-icon-upload2"
>上传文件
</el-button>
<div slot="tip" class="el-upload__tip">支持扩展名: .xlsx.xlr.xls</div>
<div slot="tip" class="el-upload__tip">支持扩展名: .xlsx.xls</div>
</el-upload>
</div>
<el-row>
......@@ -689,7 +689,7 @@ export default {
console.log(fileType)
// 判断文件名的类型,允许多种就判断多个
// .xlsx.xlr.xls
if (fileType === 'xlsx' || fileType === 'xlr' || fileType === 'xls') {
if (fileType === 'xlsx' || fileType === 'xls') {
console.log(file)
} else {
this.$modal.msgWarning(file.name + '文件格式不正确,请上传正确的模板文件')
......
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