style: style

duizhaopin_ui
duan 2 years ago
parent 75740b73ae
commit cdfda2769c

@ -23,7 +23,7 @@
<el-radio v-model="radio" label="2"></el-radio>
<el-button type="primary" @click="doWeigh"></el-button>
<el-button type="primary" plain>去皮初始化天平</el-button>
<el-input placeholder="手动输入"/>
<el-input placeholder="手动输入" />
<el-button type="warning">设置为空</el-button>
</div>
</div>
@ -31,7 +31,7 @@
<div class="bottom">
<div class="title">详情信息</div>
<el-descriptions class="margin-top" :column="2" border>
<el-descriptions-item label-style="width:100px" span="2" label="试剂名称">{{infoData.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-style="width:100px" label="CAS码">{{ infoData.cas_number }}</el-descriptions-item>
@ -61,15 +61,15 @@
<script>
import stringify from '@/utils/stringify'
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'
import { update_drug_remain, weigh, get_drug_info } from '@/api/reagent/weight'
import { set_drug_empty_bottle } from '@/api/reagent/management'
export default {
name: 'Weighing',
components: {Scannner},
components: { Scannner },
data() {
return {
headerStyle: {'background': '#E6E6E6'},
headerStyle: { 'background': '#E6E6E6' },
tableData: [],
radio: '1',
barCode: '',
@ -82,9 +82,9 @@ export default {
watch: {
// `barCode`
//
barCode: function (newCode, oldCode) {
barCode: function(newCode, oldCode) {
if (this.$route.name === 'Receiving') {
get_drug_info(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 + ' 试剂领扫描成功!')
})

Loading…
Cancel
Save