|
|
@ -82,110 +82,96 @@ const onSolutionChange = async () => { |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<div class="liquied-item"> |
|
|
|
<div class="header"> |
|
|
|
<div class="solution-select"> |
|
|
|
<el-select v-model="solutionInfo.solutionId" placeholder="请选择酸液" style="width: 80%" @change="onSolutionChange"> |
|
|
|
<el-option v-for="item in solutionStore.solutionList" :key="item.id" :label="item.name" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content"> |
|
|
|
<div class="bottle_base"> |
|
|
|
<img class="content-img" src="@/assets/images/liquied/liquied_bottle.svg" alt="chemical-bottle"> |
|
|
|
</div> |
|
|
|
<div class="bottle" :style="solutionStyle"> |
|
|
|
<img class="content-img" src="@/assets/images/liquied/liquied_bottle.svg" alt="chemical-bottle"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="footer"> |
|
|
|
<div class="footer-content"> |
|
|
|
<span>{{ solutionInfo.capacityTotal }}mL</span> |
|
|
|
</div> |
|
|
|
<div class="footer-edit"> |
|
|
|
<span>已使用</span> |
|
|
|
<el-input v-model="solutionInfo.capacityUsed" type="number" @blur="onInputBlur"> |
|
|
|
<template #append> |
|
|
|
mL |
|
|
|
</template> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<template lang="pug"> |
|
|
|
.liquid-item |
|
|
|
.header |
|
|
|
.solution-select |
|
|
|
el-select(v-model="solutionInfo.solutionId", placeholder="请选择酸液", style="width: 80%", @change="onSolutionChange") |
|
|
|
el-option(v-for="item in solutionStore.solutionList", :key="item.id", :label="item.name", :value="item.id") |
|
|
|
.content |
|
|
|
.bottle_base |
|
|
|
img.content-img(src="@/assets/images/liquied/liquied_bottle.svg", alt="chemical-bottle") |
|
|
|
.bottle(:style="solutionStyle") |
|
|
|
img.content-img(src="@/assets/images/liquied/liquied_bottle.svg", alt="chemical-bottle") |
|
|
|
.footer |
|
|
|
.footer-content |
|
|
|
span {{ solutionInfo.capacityTotal }}mL |
|
|
|
.footer-edit |
|
|
|
span 已使用 |
|
|
|
el-input(v-model="solutionInfo.capacityUsed", type="number", @blur="onInputBlur") |
|
|
|
template(#append) |
|
|
|
| mL |
|
|
|
</template> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
.liquied-item { |
|
|
|
border: 1px solid #ccc; |
|
|
|
border-radius: 10px; |
|
|
|
width: 200px; |
|
|
|
height: 300px; |
|
|
|
text-align: center; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
.content{ |
|
|
|
position: relative; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
.bottle_base{ |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
.bottle { |
|
|
|
position: absolute; |
|
|
|
} |
|
|
|
.header { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
background: rgba(25, 137, 250, 0.1216); |
|
|
|
justify-content: center; |
|
|
|
border-radius: 10px 10px 0 0; |
|
|
|
padding:10px; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
.content-img{ |
|
|
|
height: 150px; |
|
|
|
margin: 10px; |
|
|
|
} |
|
|
|
.footer-content{ |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
.footer-edit { |
|
|
|
display: flex; |
|
|
|
justify-content: space-around; |
|
|
|
align-items: center; |
|
|
|
padding: 10px 0; |
|
|
|
.el-input { |
|
|
|
margin-left: 10px; |
|
|
|
width: 120px; |
|
|
|
} |
|
|
|
} |
|
|
|
.checked { |
|
|
|
text-decoration: line-through; |
|
|
|
} |
|
|
|
.solution-select{ |
|
|
|
display:flex; |
|
|
|
width: 100%; |
|
|
|
height: 25px; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
border-radius: 5px; |
|
|
|
} |
|
|
|
.add-icon{ |
|
|
|
margin-right: -4px; |
|
|
|
} |
|
|
|
.button-icon{ |
|
|
|
height: 25px; |
|
|
|
width: 25px; |
|
|
|
margin: 3px; |
|
|
|
} |
|
|
|
.radio-marge{ |
|
|
|
margin: 10px; |
|
|
|
border: 1px solid #e0e0e0; |
|
|
|
} |
|
|
|
<style lang="stylus" scoped> |
|
|
|
.liquid-item |
|
|
|
border 1px solid #ccc |
|
|
|
border-radius 10px |
|
|
|
width 200px |
|
|
|
height 300px |
|
|
|
text-align center |
|
|
|
display flex |
|
|
|
flex-direction column |
|
|
|
align-items center |
|
|
|
justify-content space-between |
|
|
|
|
|
|
|
.content |
|
|
|
position relative |
|
|
|
display flex |
|
|
|
justify-content center |
|
|
|
|
|
|
|
.bottle_base |
|
|
|
position relative |
|
|
|
|
|
|
|
.bottle |
|
|
|
position absolute |
|
|
|
|
|
|
|
.header |
|
|
|
display flex |
|
|
|
align-items center |
|
|
|
background rgba(25, 137, 250, 0.1216) |
|
|
|
justify-content center |
|
|
|
border-radius 10px 10px 0 0 |
|
|
|
padding 10px |
|
|
|
width 100% |
|
|
|
|
|
|
|
.content-img |
|
|
|
height 150px |
|
|
|
margin 10px |
|
|
|
|
|
|
|
.footer-content |
|
|
|
display flex |
|
|
|
justify-content center |
|
|
|
|
|
|
|
.footer-edit |
|
|
|
display flex |
|
|
|
justify-content space-around |
|
|
|
align-items center |
|
|
|
padding 10px 0 |
|
|
|
.el-input |
|
|
|
margin-left 10px |
|
|
|
width 120px |
|
|
|
|
|
|
|
.checked |
|
|
|
text-decoration line-through |
|
|
|
|
|
|
|
.solution-select |
|
|
|
display flex |
|
|
|
width 100% |
|
|
|
height 25px |
|
|
|
justify-content center |
|
|
|
align-items center |
|
|
|
border-radius 5px |
|
|
|
|
|
|
|
.add-icon |
|
|
|
margin-right -4px |
|
|
|
|
|
|
|
.button-icon |
|
|
|
height 25px |
|
|
|
width 25px |
|
|
|
margin 3px |
|
|
|
|
|
|
|
.radio-marge |
|
|
|
margin 10px |
|
|
|
border 1px solid #e0e0e0 |
|
|
|
</style> |