|
|
@ -5,25 +5,13 @@
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-form-item label="试剂名称" prop="name">
|
|
|
|
<el-form-item label="试剂名称" prop="name">
|
|
|
|
<!-- <el-input v-model="formData.name" placeholder="请输入试剂名称" clearable :style="{width: '100%'}" /> -->
|
|
|
|
<!-- <el-input v-model="formData.name" placeholder="请输入试剂名称" clearable :style="{width: '100%'}" /> -->
|
|
|
|
<el-autocomplete
|
|
|
|
<el-autocomplete v-model="formData.name" class="inline-input" :style="{ width: '100%' }"
|
|
|
|
v-model="formData.name"
|
|
|
|
:fetch-suggestions="querySearchAsync" clearable placeholder="请输入试剂名称" @select="handleSelect" />
|
|
|
|
class="inline-input"
|
|
|
|
|
|
|
|
:style="{width: '100%'}"
|
|
|
|
|
|
|
|
:fetch-suggestions="querySearchAsync"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
placeholder="请输入试剂名称"
|
|
|
|
|
|
|
|
@select="handleSelect"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-form-item label="英文名称" prop="english_name">
|
|
|
|
<el-form-item label="英文名称" prop="english_name">
|
|
|
|
<el-input
|
|
|
|
<el-input v-model="formData.english_name" placeholder="请输入英文名称" clearable :style="{ width: '100%' }" />
|
|
|
|
v-model="formData.english_name"
|
|
|
|
|
|
|
|
placeholder="请输入英文名称"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
:style="{width: '100%'}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<!-- <el-col :span="12">-->
|
|
|
|
<!-- <el-col :span="12">-->
|
|
|
@ -33,12 +21,7 @@
|
|
|
|
<!-- </el-col>-->
|
|
|
|
<!-- </el-col>-->
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="CAS码" prop="cas_number">
|
|
|
|
<el-form-item label="CAS码" prop="cas_number">
|
|
|
|
<el-input
|
|
|
|
<el-input v-model="formData.cas_number" placeholder="请输入CAS码" clearable :style="{ width: '100%' }" />
|
|
|
|
v-model="formData.cas_number"
|
|
|
|
|
|
|
|
placeholder="请输入CAS码"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
:style="{width: '100%'}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
@ -53,24 +36,14 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="生产日期" prop="production_date">
|
|
|
|
<el-form-item label="生产日期" prop="production_date">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker v-model="formData.production_date" type="datetime" clearable placeholder="请选择生产日期"
|
|
|
|
v-model="formData.production_date"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" />
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
placeholder="请选择生产日期"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="过期日期" prop="expiration_date">
|
|
|
|
<el-form-item label="过期日期" prop="expiration_date">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker v-model="formData.expiration_date" type="datetime" clearable placeholder="选择过期日期"
|
|
|
|
v-model="formData.expiration_date"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" />
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
placeholder="选择过期日期"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<!-- <el-col>-->
|
|
|
|
<!-- <el-col>-->
|
|
|
@ -81,22 +54,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="生产厂家" prop="manufacturer">
|
|
|
|
<el-form-item label="生产厂家" prop="manufacturer">
|
|
|
|
<el-input
|
|
|
|
<el-input v-model="formData.manufacturer" placeholder="请输入生产厂家" clearable :style="{ width: '100%' }" />
|
|
|
|
v-model="formData.manufacturer"
|
|
|
|
|
|
|
|
placeholder="请输入生产厂家"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
:style="{width: '100%'}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="经销商" prop="distributor">
|
|
|
|
<el-form-item label="经销商" prop="distributor">
|
|
|
|
<el-input
|
|
|
|
<el-input v-model="formData.distributor" placeholder="请输入经销商" clearable :style="{ width: '100%' }" />
|
|
|
|
v-model="formData.distributor"
|
|
|
|
|
|
|
|
placeholder="请输入经销商"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
:style="{width: '100%'}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
@ -113,14 +76,9 @@
|
|
|
|
<el-form-item label="单位" prop="net_weight_unit">
|
|
|
|
<el-form-item label="单位" prop="net_weight_unit">
|
|
|
|
<!-- <el-input v-model="formData.net_weight_unit" placeholder="请输入单位" clearable :style="{width: '100%'}" /> -->
|
|
|
|
<!-- <el-input v-model="formData.net_weight_unit" placeholder="请输入单位" clearable :style="{width: '100%'}" /> -->
|
|
|
|
<el-select v-model="formData.net_weight_unit" :style="{ width: '100%' }" placeholder="单位">
|
|
|
|
<el-select v-model="formData.net_weight_unit" :style="{ width: '100%' }" placeholder="单位">
|
|
|
|
<el-option
|
|
|
|
<el-option label="ml" value="ml" />
|
|
|
|
label="ml"
|
|
|
|
<el-option label="g" value="g" />
|
|
|
|
value="ml"
|
|
|
|
<el-option label="mg" value="mg" />
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
label="g"
|
|
|
|
|
|
|
|
value="g"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -131,7 +89,8 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col v-for="item in extra_form" :key="item.id" :span="12">
|
|
|
|
<el-col v-for="item in extra_form" :key="item.id" :span="12">
|
|
|
|
<el-form-item :label="item.name" :prop="item.name">
|
|
|
|
<el-form-item :label="item.name" :prop="item.name">
|
|
|
|
<el-input v-model="formData[item.name]" :placeholder="'请输入' + item.name " clearable :style="{width: '100%'}" />
|
|
|
|
<el-input v-model="formData[item.name]" :placeholder="'请输入' + item.name" clearable
|
|
|
|
|
|
|
|
:style="{ width: '100%' }" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
@ -146,7 +105,7 @@ import { throttle } from '@/utils'
|
|
|
|
import { get_use } from '@/api/reagent/customform'
|
|
|
|
import { get_use } from '@/api/reagent/customform'
|
|
|
|
import { weigh, get_drug_info, tare, zero } from '@/api/reagent/weight'
|
|
|
|
import { weigh, get_drug_info, tare, zero } from '@/api/reagent/weight'
|
|
|
|
import { get_drug_group_list } from '@/api/reagent/warehousing'
|
|
|
|
import { get_drug_group_list } from '@/api/reagent/warehousing'
|
|
|
|
|
|
|
|
import { get_func_type } from '@/utils/index'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'ReagentForm',
|
|
|
|
name: 'ReagentForm',
|
|
|
|
// title dialog title
|
|
|
|
// title dialog title
|
|
|
@ -157,10 +116,12 @@ export default {
|
|
|
|
props: ['propsformdata', 'handlefunc'],
|
|
|
|
props: ['propsformdata', 'handlefunc'],
|
|
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
|
|
|
|
var func_type = get_func_type()
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
weight: '',
|
|
|
|
weight: '',
|
|
|
|
formData: {},
|
|
|
|
formData: {},
|
|
|
|
loadAll: [],
|
|
|
|
loadAll: [],
|
|
|
|
|
|
|
|
showTotal: func_type == 3 ? false : true,
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
name: [{
|
|
|
|
name: [{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
@ -169,12 +130,12 @@ export default {
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
english_name: [],
|
|
|
|
english_name: [],
|
|
|
|
cas_number: [{
|
|
|
|
cas_number: [{
|
|
|
|
required: true,
|
|
|
|
required: func_type == 3 ? false : true,
|
|
|
|
message: '请输入CAS码',
|
|
|
|
message: '请输入CAS码',
|
|
|
|
trigger: 'blur'
|
|
|
|
trigger: 'blur'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
purity: [{
|
|
|
|
purity: [{
|
|
|
|
required: true,
|
|
|
|
required: func_type == 3 ? false : true,
|
|
|
|
message: '请输入试剂纯度',
|
|
|
|
message: '请输入试剂纯度',
|
|
|
|
trigger: 'blur'
|
|
|
|
trigger: 'blur'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
@ -185,12 +146,12 @@ export default {
|
|
|
|
type: 'number'
|
|
|
|
type: 'number'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
production_date: [{
|
|
|
|
production_date: [{
|
|
|
|
required: true,
|
|
|
|
required: func_type == 3 ? false : true,
|
|
|
|
message: '请输入生产日期',
|
|
|
|
message: '请输入生产日期',
|
|
|
|
trigger: 'blur'
|
|
|
|
trigger: 'blur'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
expiration_date: [{
|
|
|
|
expiration_date: [{
|
|
|
|
required: true,
|
|
|
|
required: func_type == 3 ? false : true,
|
|
|
|
message: '请输入过期日期',
|
|
|
|
message: '请输入过期日期',
|
|
|
|
trigger: 'blur'
|
|
|
|
trigger: 'blur'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
@ -349,5 +310,4 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
<style></style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|