|
@@ -3,8 +3,8 @@
|
|
<div class="storagePut">
|
|
<div class="storagePut">
|
|
<searchAdd isButtom="查询" @event="userListApi()">
|
|
<searchAdd isButtom="查询" @event="userListApi()">
|
|
<template #searchConter>
|
|
<template #searchConter>
|
|
- <el-form-item label="疫苗名称">
|
|
|
|
- <el-select v-model.number="initParam.productId" filterable remote reserve-keyword placeholder="疫苗名称"
|
|
|
|
|
|
+ <el-form-item label="血液制品名称">
|
|
|
|
+ <el-select v-model.number="initParam.productId" filterable remote reserve-keyword placeholder="血液制品名称"
|
|
:remote-method="remoteMethod1" :loading="loading" clearable style="width: 200px;" @clear="initParam.productId=null" @click="click1">
|
|
:remote-method="remoteMethod1" :loading="loading" clearable style="width: 200px;" @clear="initParam.productId=null" @click="click1">
|
|
<el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value" />
|
|
<el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value" />
|
|
</el-select>
|
|
</el-select>
|
|
@@ -15,8 +15,8 @@
|
|
<el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value" />
|
|
<el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="疫苗批号">
|
|
|
|
- <el-input v-model="initParam.batchNumber" placeholder="疫苗批号" clearable style="width: 200px;" />
|
|
|
|
|
|
+ <el-form-item label="血液制品批号">
|
|
|
|
+ <el-input v-model="initParam.batchNumber" placeholder="血液制品批号" clearable style="width: 200px;" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="出/入库日期">
|
|
<el-form-item label="出/入库日期">
|
|
<el-date-picker v-model="data.datepick" type="daterange" placeholder="出/入库日期" clearable value-format="YYYY-MM-DD"
|
|
<el-date-picker v-model="data.datepick" type="daterange" placeholder="出/入库日期" clearable value-format="YYYY-MM-DD"
|
|
@@ -62,7 +62,7 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import {
|
|
import {
|
|
inventoryList,
|
|
inventoryList,
|
|
- productList,//疫苗名称
|
|
|
|
|
|
+ productList,//血液制品名称
|
|
enterpriseList,//生产企业
|
|
enterpriseList,//生产企业
|
|
stockunit,//收发货单位
|
|
stockunit,//收发货单位
|
|
} from "@/api";
|
|
} from "@/api";
|
|
@@ -112,11 +112,11 @@ const changFun = async (e:any)=>{
|
|
// 渲染表格
|
|
// 渲染表格
|
|
const columns: any = [
|
|
const columns: any = [
|
|
{ type: 'selection', width: '60px', fixed: 'left' },
|
|
{ type: 'selection', width: '60px', fixed: 'left' },
|
|
- { prop: 'product_name', label: '疫苗名称', width: '120px' },
|
|
|
|
|
|
+ { prop: 'product_name', label: '血液制品名称', width: '120px' },
|
|
{ prop: 'enterprise_name', label: '生产企业', width: '120px' },
|
|
{ prop: 'enterprise_name', label: '生产企业', width: '120px' },
|
|
{ prop: 'approval_number', label: '批准文号', width: '120px' },
|
|
{ prop: 'approval_number', label: '批准文号', width: '120px' },
|
|
- { prop: 'batch_number', label: '疫苗批号', width: 100 },
|
|
|
|
- { prop: 'expiry_date', label: '疫苗效期', width: 120 },
|
|
|
|
|
|
+ { prop: 'batch_number', label: '血液制品批号', width: 120 },
|
|
|
|
+ { prop: 'expiry_date', label: '血液制品效期', width: 120 },
|
|
{ prop: 'total_in', label: '收入数量', width: 100 },
|
|
{ prop: 'total_in', label: '收入数量', width: 100 },
|
|
{ prop: 'total_out', label: '发出数量', width: 80 },
|
|
{ prop: 'total_out', label: '发出数量', width: 80 },
|
|
{ prop: 'balance', label: '结余数量', width: 100 },
|
|
{ prop: 'balance', label: '结余数量', width: 100 },
|
|
@@ -161,7 +161,7 @@ interface ListItem {
|
|
label: string
|
|
label: string
|
|
}
|
|
}
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
- const result1: any = await productList({ page: 1, pageSize: 999 })//疫苗名称
|
|
|
|
|
|
+ const result1: any = await productList({ page: 1, pageSize: 999 })//血液制品名称
|
|
const result2: any = await enterpriseList({ page: 1, pageSize: 999 })//生产企业
|
|
const result2: any = await enterpriseList({ page: 1, pageSize: 999 })//生产企业
|
|
const result3: any = await stockunit({ type: 3 })//收发货单位
|
|
const result3: any = await stockunit({ type: 3 })//收发货单位
|
|
|
|
|
|
@@ -174,7 +174,7 @@ const click1 = async ()=>{options1.value = list1.value }
|
|
const click2 = async ()=>{options2.value = list2.value }
|
|
const click2 = async ()=>{options2.value = list2.value }
|
|
const click3 = async ()=>{options3.value = list3.value}
|
|
const click3 = async ()=>{options3.value = list3.value}
|
|
|
|
|
|
-const list1 = ref<ListItem[]>([])//疫苗名称
|
|
|
|
|
|
+const list1 = ref<ListItem[]>([])//血液制品名称
|
|
const list2 = ref<ListItem[]>([])//生产企业
|
|
const list2 = ref<ListItem[]>([])//生产企业
|
|
const list3 = ref<ListItem[]>([])//收发货单位
|
|
const list3 = ref<ListItem[]>([])//收发货单位
|
|
|
|
|