fix: 健康档案统计,样式优化完善。
This commit is contained in:
@@ -502,25 +502,54 @@ function submit() {
|
||||
<style lang="scss" scoped>
|
||||
.section {
|
||||
margin: 24rpx;
|
||||
padding: 16rpx 24rpx;
|
||||
padding: 0;
|
||||
background-color: #fff;
|
||||
border-radius: 8rpx;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
||||
overflow: hidden;
|
||||
|
||||
.section-title {
|
||||
width: 360rpx;
|
||||
color: #333333;
|
||||
line-height: 44rpx;
|
||||
font-size: 30rpx;
|
||||
border-left: 6rpx solid #2681FF;
|
||||
padding-left: 26rpx;
|
||||
padding: 16rpx 24rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: #ffffff;
|
||||
line-height: 1.2;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 6rpx;
|
||||
height: 28rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 3rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.form-view {
|
||||
padding: 20rpx 0rpx 0 10rpx;
|
||||
padding: 24rpx;
|
||||
|
||||
.form-btn {
|
||||
padding-top: 20rpx;
|
||||
padding-top: 16rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
.form-btn .u-button {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
||||
border: none !important;
|
||||
border-radius: 24rpx !important;
|
||||
height: 80rpx !important;
|
||||
box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4) !important;
|
||||
}
|
||||
|
||||
.form-btn .u-button__text {
|
||||
font-size: 30rpx !important;
|
||||
font-weight: 500 !important;
|
||||
letter-spacing: 2rpx !important;
|
||||
}
|
||||
</style>
|
||||
@@ -6,135 +6,407 @@
|
||||
title="药品基础信息详情"
|
||||
>
|
||||
</u-navbar>
|
||||
<view class="section">
|
||||
<u-cell-group>
|
||||
<u-cell title="药品全称:" titleStyle="font-weight:bolder" :value="detailInfo.name"></u-cell>
|
||||
<u-cell title="药品简称:" titleStyle="font-weight:bolder" :value="detailInfo.shortName"></u-cell>
|
||||
<u-cell title="药品编码:" titleStyle="font-weight:bolder" :value="detailInfo.code"></u-cell>
|
||||
<u-cell title="药品剂型:" titleStyle="font-weight:bolder" :value="detailInfo.dosageForm"></u-cell>
|
||||
<u-cell title="治疗类型:" titleStyle="font-weight:bolder" center :value="detailInfo.treatmentType"> </u-cell>
|
||||
<u-cell title="药品分类:" titleStyle="font-weight:bolder" :value="detailInfo.classification"></u-cell>
|
||||
<u-cell title="类别:" titleStyle="font-weight:bolder" :value="detailInfo.category"></u-cell>
|
||||
<u-cell title="品牌:" titleStyle="font-weight:bolder" :value="detailInfo.brand"></u-cell>
|
||||
<u-cell title="药品包装:" titleStyle="font-weight:bolder" :value="detailInfo.packaging"></u-cell>
|
||||
<u-cell title="包装单位:" titleStyle="font-weight:bolder" :value="detailInfo.packageUnit"></u-cell>
|
||||
<u-cell title="生产厂家:" titleStyle="font-weight:bolder" :value="detailInfo.manufacturers"></u-cell>
|
||||
<u-cell title="是否进口:" titleStyle="font-weight:bolder" :value="detailInfo.isImport"></u-cell>
|
||||
<u-cell title="规格:" titleStyle="font-weight:bolder" :value="detailInfo.specifications"></u-cell>
|
||||
<u-cell title="规格单位:" titleStyle="font-weight:bolder" :value="detailInfo.unit"></u-cell>
|
||||
<u-cell title="单个含量:" titleStyle="font-weight:bolder" :value="detailInfo.content"></u-cell>
|
||||
<u-cell title="含量单位:" titleStyle="font-weight:bolder" :value="detailInfo.contentUnit"></u-cell>
|
||||
<u-cell title="生产地址:" titleStyle="font-weight:bolder" :value="detailInfo.address"></u-cell>
|
||||
<u-cell title="功能主治:" titleStyle="font-weight:bolder" :value="detailInfo.indications"></u-cell>
|
||||
<u-cell title="贮藏:" titleStyle="font-weight:bolder" :value="detailInfo.storage"></u-cell>
|
||||
<u-cell title="药品成分:" titleStyle="font-weight:bolder" :value="detailInfo.ingredients"></u-cell>
|
||||
<u-cell title="用法用量:" titleStyle="font-weight:bolder" :value="detailInfo.usage"></u-cell>
|
||||
<u-cell title="性状:" titleStyle="font-weight:bolder" :value="detailInfo.character"></u-cell>
|
||||
<u-cell title="不良反应:" titleStyle="font-weight:bolder" :value="detailInfo.adverseReaction"></u-cell>
|
||||
<u-cell title="备注:" titleStyle="font-weight:bolder" center :value="detailInfo.remark"> </u-cell>
|
||||
</u-cell-group>
|
||||
<view class="detail-card">
|
||||
<view class="card-header">
|
||||
<view class="header-icon">
|
||||
<uni-icons type="plusempty" size="24" color="#ffffff"></uni-icons>
|
||||
</view>
|
||||
<view class="header-info">
|
||||
<text class="card-name">{{ detailInfo.name }}-{{ detailInfo.brand }}({{ detailInfo.packaging }})</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-body">
|
||||
<view class="info-section">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>基本信息</text>
|
||||
</view>
|
||||
<view class="info-list">
|
||||
<view class="list-item">
|
||||
<text class="item-label">药品简称</text>
|
||||
<text class="item-value">{{ detailInfo.shortName || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">药品编码</text>
|
||||
<text class="item-value">{{ detailInfo.code || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">药品剂型</text>
|
||||
<text class="item-value">{{ detailInfo.dosageForm || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">治疗类型</text>
|
||||
<text class="item-value">{{ detailInfo.treatmentType || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">药品分类</text>
|
||||
<text class="item-value">{{ detailInfo.classification || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">类别</text>
|
||||
<text class="item-value">{{ detailInfo.category || '-' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>产品信息</text>
|
||||
</view>
|
||||
<view class="info-list">
|
||||
<view class="list-item">
|
||||
<text class="item-label">品牌</text>
|
||||
<text class="item-value">{{ detailInfo.brand || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">药品包装</text>
|
||||
<text class="item-value">{{ detailInfo.packaging || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">包装单位</text>
|
||||
<text class="item-value">{{ detailInfo.packageUnit || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">生产厂家</text>
|
||||
<text class="item-value">{{ detailInfo.manufacturers || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">是否进口</text>
|
||||
<text class="item-value">{{ detailInfo.isImport || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">生产地址</text>
|
||||
<text class="item-value">{{ detailInfo.address || '-' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>规格信息</text>
|
||||
</view>
|
||||
<view class="info-list">
|
||||
<view class="list-item">
|
||||
<text class="item-label">规格</text>
|
||||
<text class="item-value">{{ detailInfo.specifications || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">规格单位</text>
|
||||
<text class="item-value">{{ detailInfo.unit || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">单个含量</text>
|
||||
<text class="item-value">{{ detailInfo.content || '-' }}</text>
|
||||
</view>
|
||||
<view class="list-item">
|
||||
<text class="item-label">含量单位</text>
|
||||
<text class="item-value">{{ detailInfo.contentUnit || '-' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.indications">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>功能主治</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.indications }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.storage">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>贮藏</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.storage }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.ingredients">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>药品成分</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.ingredients }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.usage">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>用法用量</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.usage }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.character">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>性状</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.character }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.adverseReaction">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>不良反应</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.adverseReaction }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-section" v-if="detailInfo.remark">
|
||||
<view class="section-title">
|
||||
<view class="title-icon"></view>
|
||||
<text>备注</text>
|
||||
</view>
|
||||
<view class="remark-content">
|
||||
<text>{{ detailInfo.remark }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<script setup>
|
||||
import { getMedicineBasic } from '@/api/health/medicineBasic'
|
||||
import { getDicts } from '@/api/system/dict/data.js'
|
||||
import {onLoad} from "@dcloudio/uni-app";
|
||||
import {reactive ,toRefs,ref,computed }from "vue";
|
||||
const id = ref('')
|
||||
const data = reactive({
|
||||
detailInfo: {}
|
||||
})
|
||||
const {detailInfo} = toRefs(data)
|
||||
import { onLoad } from "@dcloudio/uni-app"
|
||||
import { ref, getCurrentInstance } from "vue"
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const detailInfo = ref({})
|
||||
const typeList = ref([])
|
||||
const classificationList = ref([])
|
||||
const categoryList = ref([])
|
||||
const dosageFormList = ref([])
|
||||
const packageUnitList = ref([])
|
||||
const isImportList = ref([])
|
||||
const unitList = ref([])
|
||||
const contentUnitList = ref([])
|
||||
|
||||
onLoad((option) => {
|
||||
id.value = option.id
|
||||
getInfo()
|
||||
})
|
||||
function getInfo() {
|
||||
getMedicineBasic(id.value).then(res => {
|
||||
detailInfo.value = res.data
|
||||
// 类型
|
||||
getDicts('dosage_form').then(result => {
|
||||
detailInfo.value.dosageForm=dictStr(detailInfo.value.dosageForm, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('mar_type').then(result => {
|
||||
detailInfo.value.treatmentType=dictStr(detailInfo.value.treatmentType, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('medicine_classification').then(result => {
|
||||
detailInfo.value.classification=dictStr(detailInfo.value.classification, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('medicine_category').then(result => {
|
||||
detailInfo.value.category=dictStr(detailInfo.value.category, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('package_unit').then(result => {
|
||||
detailInfo.value.packageUnit=dictStr(detailInfo.value.packageUnit, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('is_import').then(result => {
|
||||
detailInfo.value.isImport=dictStr(detailInfo.value.isImport, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('medical_unit').then(result => {
|
||||
detailInfo.value.unit=dictStr(detailInfo.value.unit, result.data)
|
||||
})
|
||||
// 类型
|
||||
getDicts('content_unit').then(result => {
|
||||
detailInfo.value.contentUnit=dictStr(detailInfo.value.contentUnit, result.data)
|
||||
})
|
||||
})
|
||||
if (option.id) {
|
||||
// 先加载字典,再加载详情
|
||||
getDict().then(() => {
|
||||
getDetail(option.id)
|
||||
})
|
||||
}
|
||||
function dictStr(val, arr) {
|
||||
let str = ''
|
||||
arr.map(item => {
|
||||
if (item.dictValue === val) {
|
||||
str = item.dictLabel
|
||||
}
|
||||
})
|
||||
return str
|
||||
})
|
||||
|
||||
function getDict() {
|
||||
// 使用 Promise.all 确保所有字典都加载完成
|
||||
return Promise.all([
|
||||
getDicts('mar_type').then(res => {
|
||||
typeList.value = res.data
|
||||
}),
|
||||
getDicts('medicine_classification').then(res => {
|
||||
classificationList.value = res.data
|
||||
}),
|
||||
getDicts('medicine_category').then(res => {
|
||||
categoryList.value = res.data
|
||||
}),
|
||||
getDicts('dosage_form').then(res => {
|
||||
dosageFormList.value = res.data
|
||||
}),
|
||||
getDicts('package_unit').then(res => {
|
||||
packageUnitList.value = res.data
|
||||
}),
|
||||
getDicts('is_import').then(res => {
|
||||
isImportList.value = res.data
|
||||
}),
|
||||
getDicts('medical_unit').then(res => {
|
||||
unitList.value = res.data
|
||||
}),
|
||||
getDicts('content_unit').then(res => {
|
||||
contentUnitList.value = res.data
|
||||
})
|
||||
])
|
||||
}
|
||||
|
||||
function dictStr(val, arr) {
|
||||
if (!val || !arr || arr.length === 0) {
|
||||
return ''
|
||||
}
|
||||
let str = ''
|
||||
arr.forEach(item => {
|
||||
// 支持字符串和数字类型的匹配
|
||||
if (String(item.dictValue) === String(val)) {
|
||||
str = item.dictLabel
|
||||
}
|
||||
</script>
|
||||
})
|
||||
return str
|
||||
}
|
||||
|
||||
function getDetail(id) {
|
||||
getMedicineBasic(id).then(res => {
|
||||
const data = res.data
|
||||
// 先将原始数据赋值
|
||||
detailInfo.value = { ...data }
|
||||
|
||||
// 使用已加载的字典数据进行转换,将字典值转换为标签显示
|
||||
if (data.treatmentType) {
|
||||
detailInfo.value.treatmentType = dictStr(data.treatmentType, typeList.value) || data.treatmentType
|
||||
}
|
||||
if (data.classification) {
|
||||
detailInfo.value.classification = dictStr(data.classification, classificationList.value) || data.classification
|
||||
}
|
||||
if (data.category) {
|
||||
detailInfo.value.category = dictStr(data.category, categoryList.value) || data.category
|
||||
}
|
||||
if (data.dosageForm) {
|
||||
detailInfo.value.dosageForm = dictStr(data.dosageForm, dosageFormList.value) || data.dosageForm
|
||||
}
|
||||
if (data.packageUnit) {
|
||||
detailInfo.value.packageUnit = dictStr(data.packageUnit, packageUnitList.value) || data.packageUnit
|
||||
}
|
||||
if (data.isImport !== null && data.isImport !== undefined) {
|
||||
detailInfo.value.isImport = dictStr(String(data.isImport), isImportList.value) || data.isImport
|
||||
}
|
||||
if (data.unit) {
|
||||
detailInfo.value.unit = dictStr(data.unit, unitList.value) || data.unit
|
||||
}
|
||||
if (data.contentUnit) {
|
||||
detailInfo.value.contentUnit = dictStr(data.contentUnit, contentUnitList.value) || data.contentUnit
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.section {
|
||||
margin: 24rpx;
|
||||
padding: 16rpx 24rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 8rpx;
|
||||
.container {
|
||||
background: #f5f7fa;
|
||||
padding-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.detail-card {
|
||||
margin: 24rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16rpx 20rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
|
||||
.section-title {
|
||||
width: 280rpx;
|
||||
color: #333333;
|
||||
line-height: 44rpx;
|
||||
font-size: 30rpx;
|
||||
border-left: 6rpx solid #2681FF;
|
||||
padding-left: 26rpx;
|
||||
}
|
||||
.header-icon {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 12rpx;
|
||||
backdrop-filter: blur(10rpx);
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 647rpx;
|
||||
.header-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
|
||||
.card-name {
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
line-height: 40rpx;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: 24rpx;
|
||||
}
|
||||
|
||||
.info-section {
|
||||
margin-bottom: 32rpx;
|
||||
|
||||
.img-con {
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.title-icon {
|
||||
width: 6rpx;
|
||||
height: 28rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border-radius: 3rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
|
||||
text {
|
||||
color: #2c3e50;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.info-list {
|
||||
.list-item {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20rpx
|
||||
}
|
||||
.form-view {
|
||||
padding: 20rpx 0rpx 0 10rpx;
|
||||
|
||||
.form-btn {
|
||||
padding-top: 20rpx;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
background: #f8f9fa;
|
||||
border-radius: 8rpx;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.item-label {
|
||||
color: #7f8c8d;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
color: #2c3e50;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.remark-content {
|
||||
padding: 20rpx;
|
||||
background: #f8f9fa;
|
||||
border-radius: 8rpx;
|
||||
|
||||
text {
|
||||
color: #2c3e50;
|
||||
font-size: 26rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,22 +1,18 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||
<view class="search-view">
|
||||
<u-input v-model="queryParams.keys" border="false" type="select" @click="searchBlur" placeholder="请输入名称编码品牌厂家" suffixIcon="search"
|
||||
suffixIconStyle="color: #909399" class="search-input">
|
||||
</u-input>
|
||||
<u-icon name="plus-circle-fill" v-show="auth.hasPermi('health:medicineBasic:add')" color="#666666" size="28" style="margin-left:10px" label="新增"
|
||||
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="handleAdd()"></u-icon>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<u-sticky offsetTop="8rpx" customNavHeight="8rpx" v-show="auth.hasPermi('health:medicineBasic:add')">
|
||||
<u-sticky offsetTop="0rpx" customNavHeight="0rpx">
|
||||
<view class="search-view">
|
||||
<u-input v-model="queryParams.time" border="false" type="select" readonly placeholder="请选择录入日期" suffixIcon="calendar"
|
||||
suffixIconStyle="color: #909399" class="search-input">
|
||||
</u-input>
|
||||
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
|
||||
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="filterPanel = !filterPanel"></u-icon>
|
||||
|
||||
<u--input v-model="queryParams.keys" border="false" @click="searchBlur"
|
||||
placeholder="请输入名称编码厂家" class="search-input" suffixIcon="search" suffixIconStyle="color: #909399">
|
||||
</u--input>
|
||||
<view class="filter-btn" @click="filterPanel = !filterPanel">
|
||||
<uni-icons type="list" size="18" color="#667eea"></uni-icons>
|
||||
<text>筛选</text>
|
||||
</view>
|
||||
<view class="add-btn" v-show="auth.hasPermi('health:medicineBasic:add')" @click="handleAdd()">
|
||||
<uni-icons type="plusempty" size="18" color="#667eea"></uni-icons>
|
||||
<text>新增</text>
|
||||
</view>
|
||||
<u-transition :show="filterPanel" mode="fade">
|
||||
<view class="filter-panel" :style="{ height: `${windowHeight - 42}px` }">
|
||||
<view class="filter-panel-content">
|
||||
@@ -25,37 +21,43 @@
|
||||
<view v-for="item in typeList" :key="item.id" class="state-item"
|
||||
:class="item.selected ? 'active' : ''" @click="selectType(item)">{{ item.dictLabel }}</view>
|
||||
</view>
|
||||
<view class="select-header">录入日期</view>
|
||||
<view class="selcet-content" style="padding: 0 24rpx">
|
||||
<u-input
|
||||
:disabled="true"
|
||||
:disabledColor="'#fff'"
|
||||
class="dateInput"
|
||||
border="surround"
|
||||
v-model="queryParams.startTime"
|
||||
placeholder="请选择开始时间"
|
||||
>
|
||||
<template v-slot:suffix>
|
||||
<u-icon name="calendar" @click="openOrCloseDate(true)"></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
<u-input
|
||||
:disabled="true"
|
||||
:disabledColor="'#fff'"
|
||||
class="dateInput"
|
||||
border="surround"
|
||||
v-model="queryParams.endTime"
|
||||
placeholder="请选择结束时间"
|
||||
>
|
||||
<template v-slot:suffix>
|
||||
<u-icon name="calendar" @click="openOrCloseDate(false)"></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
</view>
|
||||
<view class="filter-title">录入日期</view>
|
||||
<view class="selcet-content" style="padding: 0 24rpx">
|
||||
<u-input
|
||||
:disabled="true"
|
||||
:disabledColor="'#fff'"
|
||||
class="dateInput"
|
||||
border="surround"
|
||||
v-model="queryParams.startTime"
|
||||
placeholder="请选择开始时间"
|
||||
>
|
||||
<template v-slot:suffix>
|
||||
<u-icon name="calendar" @click="openOrCloseDate(true)"></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
<u-input
|
||||
:disabled="true"
|
||||
:disabledColor="'#fff'"
|
||||
class="dateInput"
|
||||
border="surround"
|
||||
v-model="queryParams.endTime"
|
||||
placeholder="请选择结束时间"
|
||||
>
|
||||
<template v-slot:suffix>
|
||||
<u-icon name="calendar" @click="openOrCloseDate(false)"></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn-box">
|
||||
<u-button text="重置" style="margin-right:20rpx" @click="resetQuery()"></u-button>
|
||||
<u-button type="primary" text="确定" @click="searchSubmit()"></u-button>
|
||||
<view class="btn-reset" @click="resetQuery()">
|
||||
<uni-icons type="reload" size="16" color="#909399"></uni-icons>
|
||||
<text>重置</text>
|
||||
</view>
|
||||
<view class="btn-confirm" @click="searchSubmit()">
|
||||
<uni-icons type="checkmarkempty" size="16" color="#ffffff"></uni-icons>
|
||||
<text>确定</text>
|
||||
</view>
|
||||
</view>
|
||||
<u-datetime-picker
|
||||
:closeOnClickOverlay="true"
|
||||
@@ -73,48 +75,68 @@
|
||||
</u-sticky>
|
||||
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
|
||||
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||
<view class="list-item">
|
||||
<view class="item-header" @click="enterDetails(item)">
|
||||
<u--text suffixIcon="arrow-right" lines="2" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||
:text="item.shortName +'-'+ item.brand +'('+ item.packaging+')' " size="30rpx" color="#333333" :bold="true"></u--text>
|
||||
<view class="list-item" @click="enterDetails(item)">
|
||||
<view class="item-header">
|
||||
<view class="card-name-section">
|
||||
<view class="card-icon">
|
||||
<uni-icons type="plusempty" size="20" color="#ffffff"></uni-icons>
|
||||
</view>
|
||||
<view class="card-info">
|
||||
<text class="card-name">{{ item.shortName }}-{{ item.brand }}({{ item.packaging }})</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">药品全称:</text>
|
||||
<text class="row-value">{{ item.name }}</text>
|
||||
|
||||
<view class="card-body">
|
||||
<view class="info-row">
|
||||
<view class="info-item" v-if="item.name || true">
|
||||
<text class="info-label">药品全称</text>
|
||||
<text class="info-value">{{ item.name || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="dictStr(item.treatmentType, typeList) || true">
|
||||
<text class="info-label">治疗类型</text>
|
||||
<text class="info-value">{{ dictStr(item.treatmentType, typeList) || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.code || true">
|
||||
<text class="info-label">药品编码</text>
|
||||
<text class="info-value">{{ item.code || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="dictStr(item.classification, classificationList) || true">
|
||||
<text class="info-label">药品分类</text>
|
||||
<text class="info-value">{{ dictStr(item.classification, classificationList) || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="dictStr(item.category, categoryList) || true">
|
||||
<text class="info-label">类别</text>
|
||||
<text class="info-value">{{ dictStr(item.category, categoryList) || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="dictStr(item.dosageForm, dosageFormList) || true">
|
||||
<text class="info-label">药品剂型</text>
|
||||
<text class="info-value">{{ dictStr(item.dosageForm, dosageFormList) || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item info-item-full" v-if="item.manufacturers || true">
|
||||
<text class="info-label">生产厂家</text>
|
||||
<text class="info-value">{{ item.manufacturers || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item info-item-full" v-if="item.createTime || true">
|
||||
<text class="info-label">录入时间</text>
|
||||
<text class="info-value">{{ item.createTime || '--' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">治疗类型:</text>
|
||||
<text class="row-value">{{ dictStr(item.treatmentType, typeList) }}</text>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">药品编码:</text>
|
||||
<text class="row-value">{{ item.code }}</text>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">药品分类:</text>
|
||||
<text class="row-value">{{ dictStr(item.classification, classificationList) }}</text>
|
||||
</view>
|
||||
|
||||
<view class="item-row">
|
||||
<text class="row-label">类别:</text>
|
||||
<text class="row-value">{{ dictStr(item.category,categoryList) }}</text>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">药品剂型:</text>
|
||||
<text class="row-value">{{ dictStr(item.dosageForm, dosageFormList) }}</text>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">生产厂家:</text>
|
||||
<text class="row-value">{{ item.manufacturers }}</text>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<text class="row-label">录入时间:</text>
|
||||
<text class="row-value">{{ item.createTime }}</text>
|
||||
</view>
|
||||
<view class="operate" >
|
||||
<view class="btn filling" v-show="auth.hasPermi('health:medicineBasic:edit')" @click="handleEdit(item)">修改</view>
|
||||
<view class="btn filling" v-show="auth.hasPermi('health:medicineBasic:edit')" @click="handleCopy(item)">复制</view>
|
||||
<view class="btn filling" v-show="auth.hasPermi('health:medicineBasic:remove')" @click="handleDelete(item)">删除</view>
|
||||
|
||||
<view class="operate" @click.stop>
|
||||
<view class="btn-edit" v-show="auth.hasPermi('health:medicineBasic:edit')" @click="handleEdit(item)">
|
||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||
<text>修改</text>
|
||||
</view>
|
||||
<view class="btn-copy" v-show="auth.hasPermi('health:medicineBasic:edit')" @click="handleCopy(item)">
|
||||
<uni-icons type="copy" size="16" color="#fa8c16"></uni-icons>
|
||||
<text>复制</text>
|
||||
</view>
|
||||
<view class="btn-delete" v-show="auth.hasPermi('health:medicineBasic:remove')" @click="handleDelete(item)">
|
||||
<uni-icons type="trash" size="16" color="#f5576c"></uni-icons>
|
||||
<text>删除</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-list-item>
|
||||
@@ -306,31 +328,35 @@ function settingCancel() {
|
||||
}
|
||||
function handleDelete(item) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '你确定要删除吗',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
delMedicineBasic(item.id)
|
||||
uni.navigateTo({ url: `/pages/health/medicineBasic/list` })
|
||||
} else if (res.cancel) {
|
||||
console.log('取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
title: '确认删除',
|
||||
content: '确定要删除这条记录吗?',
|
||||
confirmText: '删除',
|
||||
cancelText: '取消',
|
||||
confirmColor: '#f5576c',
|
||||
cancelColor: '#909399',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
delMedicineBasic(item.id).then(() => {
|
||||
uni.showToast({
|
||||
title: '删除成功',
|
||||
icon: 'success'
|
||||
})
|
||||
pageNum.value = 1
|
||||
listData.value = []
|
||||
getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.btnAdd {
|
||||
width: 146rpx;
|
||||
height: 56rpx;
|
||||
line-height: 56rpx;
|
||||
border-radius: 8rpx;
|
||||
display:float;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
page {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
.search-view {
|
||||
padding: 12rpx 32rpx;
|
||||
background-color: #ffffff;
|
||||
@@ -338,157 +364,336 @@ function settingCancel() {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
||||
|
||||
.search-input {
|
||||
background: #F5F5F5;
|
||||
background: rgba(102, 126, 234, 0.08);
|
||||
color: #333333;
|
||||
margin-right: 36rpx;
|
||||
flex: 1;
|
||||
margin-right: 16rpx;
|
||||
border-radius: 24rpx;
|
||||
border: 2rpx solid rgba(102, 126, 234, 0.3);
|
||||
height: 66rpx !important;
|
||||
}
|
||||
|
||||
|
||||
.filter-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6rpx;
|
||||
padding: 12rpx 24rpx;
|
||||
background: rgba(102, 126, 234, 0.08);
|
||||
border-radius: 24rpx;
|
||||
border: 2rpx solid rgba(102, 126, 234, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
flex-shrink: 0;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
background: rgba(102, 126, 234, 0.12);
|
||||
}
|
||||
|
||||
text {
|
||||
color: #667eea;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.add-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6rpx;
|
||||
padding: 12rpx 24rpx;
|
||||
background: rgba(102, 126, 234, 0.08);
|
||||
border-radius: 24rpx;
|
||||
border: 2rpx solid rgba(102, 126, 234, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
flex-shrink: 0;
|
||||
margin-left: 10rpx;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
background: rgba(102, 126, 234, 0.12);
|
||||
}
|
||||
|
||||
text {
|
||||
color: #667eea;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-panel {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 96rpx;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
z-index: 999;
|
||||
|
||||
.filter-panel-content {
|
||||
background-color: #ffff;
|
||||
background-color: #ffffff;
|
||||
padding: 0 30rpx 30rpx;
|
||||
border-radius: 16rpx 16rpx 0 0;
|
||||
|
||||
.filter-title {
|
||||
color: #000000;
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
padding: 30rpx 0;
|
||||
color: #2c3e50;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
padding: 32rpx 0 24rpx 20rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 6rpx;
|
||||
height: 32rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border-radius: 3rpx;
|
||||
margin-right: 12rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.state-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 16rpx;
|
||||
|
||||
.state-item {
|
||||
width: 210rpx;
|
||||
height: 72rpx;
|
||||
border: 1rpx solid rgba(0, 0, 0, 0.25);
|
||||
border-radius: 72rpx;
|
||||
padding: 0 32rpx;
|
||||
height: 68rpx;
|
||||
border: 2rpx solid #e8edf3;
|
||||
border-radius: 34rpx;
|
||||
text-align: center;
|
||||
line-height: 72rpx;
|
||||
margin: 0 20rpx 20rpx 0;
|
||||
line-height: 68rpx;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
color: #666666;
|
||||
transition: all 0.3s ease;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
background-color: rgba(222, 241, 255, 1);
|
||||
border: 1rpx solid rgba(22, 119, 255, 1);
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border: 2rpx solid transparent;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-box {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
padding: 24rpx 30rpx;
|
||||
background-color: #fff;
|
||||
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
|
||||
|
||||
.btn-reset,
|
||||
.btn-confirm {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
text {
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-reset {
|
||||
flex: 1;
|
||||
background: #f5f7fa;
|
||||
border: 2rpx solid #dcdfe6;
|
||||
|
||||
text {
|
||||
color: #606266;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-confirm {
|
||||
flex: 1;
|
||||
background: #667eea;
|
||||
box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.2);
|
||||
border: none;
|
||||
|
||||
text {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list-item {
|
||||
margin: 0 24rpx 24rpx;
|
||||
padding: 32rpx;
|
||||
margin: 10rpx 24rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.item-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 16rpx;
|
||||
|
||||
.status {
|
||||
.status-item {
|
||||
width: 120rpx;
|
||||
height: 44rpx;
|
||||
text-align: center;
|
||||
line-height: 44rpx;
|
||||
border-radius: 4rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.status1 {
|
||||
background: #F0F0F0;
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
.status2 {
|
||||
background: rgba(38, 129, 255, 0.2);
|
||||
color: #2681FF;
|
||||
}
|
||||
|
||||
.status3 {
|
||||
background: #F7F7F7;
|
||||
color: #2681FF;
|
||||
}
|
||||
|
||||
.status4 {
|
||||
background: rgba(255, 85, 51, 0.2);
|
||||
color: #FF5533;
|
||||
}
|
||||
|
||||
.status5 {
|
||||
background: #F7F7F7;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
|
||||
.status7 {
|
||||
background: rgba(255, 129, 51, 0.2);
|
||||
color: #FF8133;
|
||||
}
|
||||
|
||||
.status8 {
|
||||
background: rgba(65, 217, 165, 0.2);
|
||||
color: #41D9A5;
|
||||
padding: 16rpx 24rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
|
||||
.card-name-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 12rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.card-name {
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
letter-spacing: 0.5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-row {
|
||||
padding: 16rpx 0;
|
||||
.card-body {
|
||||
padding: 24rpx;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.row-label {
|
||||
color: rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
.info-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 24rpx;
|
||||
margin-bottom: 0;
|
||||
|
||||
.row-value {
|
||||
color: rgba(0, 0, 0, 0.85)
|
||||
.info-item {
|
||||
flex: 0 0 calc(50% - 12rpx);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rpx;
|
||||
min-width: 0;
|
||||
margin-bottom: -5rpx;
|
||||
|
||||
&.info-item-full {
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-size: 24rpx;
|
||||
color: #667eea;
|
||||
font-weight: 500;
|
||||
background: rgba(102, 126, 234, 0.08);
|
||||
padding: 6rpx 12rpx;
|
||||
border-radius: 8rpx;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
flex: 1;
|
||||
line-height: 1.5;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
&:not(.info-item-full) .info-value {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.operate {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 16rpx 24rpx 24rpx;
|
||||
gap: 16rpx;
|
||||
|
||||
.btn {
|
||||
width: 146rpx;
|
||||
height: 56rpx;
|
||||
line-height: 56rpx;
|
||||
border-radius: 8rpx;
|
||||
margin-left: 5rpx;
|
||||
text-align: center;
|
||||
.btn-edit,
|
||||
.btn-copy,
|
||||
.btn-delete {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6rpx;
|
||||
padding: 0 24rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
}
|
||||
|
||||
.circulation {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
margin-right: 24rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
|
||||
.btn-edit {
|
||||
background: rgba(102, 126, 234, 0.1);
|
||||
color: #667eea;
|
||||
border: 1rpx solid rgba(102, 126, 234, 0.3);
|
||||
}
|
||||
|
||||
.filling {
|
||||
background: #2681FF;
|
||||
border-radius: 8rpx;
|
||||
color: #FFFFFF;
|
||||
|
||||
.btn-copy {
|
||||
background: rgba(250, 140, 22, 0.1);
|
||||
color: #fa8c16;
|
||||
border: 1rpx solid rgba(250, 140, 22, 0.3);
|
||||
}
|
||||
|
||||
.btn-delete {
|
||||
background: rgba(245, 87, 108, 0.1);
|
||||
color: #f5576c;
|
||||
border: 1rpx solid rgba(245, 87, 108, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user