|
@@ -0,0 +1,135 @@
|
|
|
+<!-- -->
|
|
|
+<template>
|
|
|
+ <div class="storagePut">
|
|
|
+ <searchAdd isButtom="查询">
|
|
|
+ <template #searchConter>
|
|
|
+ <el-form-item label="疫苗名称">
|
|
|
+ <el-input v-model="formInline.user" placeholder="疫苗名称" clearable style="width: 150px;" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="生产企业">
|
|
|
+ <el-select v-model="formInline.region" placeholder="生产企业" clearable style="width: 150px;">
|
|
|
+ <el-option label="Zone one" value="shanghai" />
|
|
|
+ <el-option label="Zone two" value="beijing" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="疫苗批号">
|
|
|
+ <el-select v-model="formInline.region" placeholder="疫苗批号" clearable style="width: 150px;">
|
|
|
+ <el-option label="Zone one" value="shanghai" />
|
|
|
+ <el-option label="Zone two" value="beijing" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="出/入库日期">
|
|
|
+ <el-date-picker v-model="formInline.date" type="date" placeholder="出/入库日期" clearable
|
|
|
+ style="width: 150px;" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="发货(收货单位)">
|
|
|
+ <el-select v-model="formInline.region" placeholder="发货(收货单位)" clearable style="width: 150px;">
|
|
|
+ <el-option label="Zone one" value="shanghai" />
|
|
|
+ <el-option label="Zone two" value="beijing" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </searchAdd>
|
|
|
+ <bg istitle="基本信息">
|
|
|
+ <template #btn>
|
|
|
+ <el-button el-button type="primary" icon="Download">导出</el-button>
|
|
|
+ <el-button el-button type="primary" icon="Tickets">打印</el-button>
|
|
|
+ </template>
|
|
|
+ <template #bg>
|
|
|
+ <el-table ref="multipleTableRef" :data="tableData" style="width: 100%"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
+ <template v-for="(item, i) in columns" :key="i">
|
|
|
+ <el-table-column :type="item.type" width="55" v-if="item.type" align="center" fixed="left"/>
|
|
|
+ <el-table-column :property="item.prop" v-if="item.prop" :label="item.label" align="center" :width="item.width" show-overflow-tooltip>
|
|
|
+ <template #default="scope" v-if="item.prop == 'operation'" fixed="right">
|
|
|
+ <el-button text size="small" type="primary">编辑</el-button>
|
|
|
+ <el-button text size="small" type="danger">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </template>
|
|
|
+ </el-table>
|
|
|
+ <div style="margin-top: 20px;">
|
|
|
+ <el-pagination v-model:current-page="data.initParam.pageNum" v-model:page-size="data.initParam.pageSize"
|
|
|
+ layout="prev, pager, next" :total="50"
|
|
|
+ @size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </bg>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+
|
|
|
+
|
|
|
+import { userList } from "@/api";
|
|
|
+import { reactive, ref } from "vue";
|
|
|
+import tables from "@/components/table.vue";
|
|
|
+import searchAdd from "@/components/searchAdd.vue";
|
|
|
+import bg from '@/components/bg.vue'
|
|
|
+import scanCode from './scanCode.vue'
|
|
|
+import Labour from './Labour.vue'
|
|
|
+
|
|
|
+const tableData: User[] = [
|
|
|
+ {
|
|
|
+ date: '2016-05-03',
|
|
|
+ name: 'Tom',
|
|
|
+ address: 'No. 189, Grove St, Los Angeles',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ date: '2016-05-02',
|
|
|
+ name: 'Tom',
|
|
|
+ address: 'No. 189, Grove St, Los Angeles',
|
|
|
+ },]
|
|
|
+
|
|
|
+const formInline = reactive({
|
|
|
+ user: '',
|
|
|
+ region: '',
|
|
|
+ date: '',
|
|
|
+})
|
|
|
+const datas = reactive({
|
|
|
+ input: ''
|
|
|
+})
|
|
|
+// 渲染表格
|
|
|
+const columns: any = [
|
|
|
+ { type: 'selection', width: '60px', fixed: 'left' },
|
|
|
+ { prop: 'date', label: '疫苗名称', width: '120px' },
|
|
|
+ { prop: 'date', label: '生产企业', width: '120px' },
|
|
|
+ { prop: 'date', label: '批准文号', width: '120px' },
|
|
|
+ { prop: 'name', label: '批签发合格编号', width: '150px' },
|
|
|
+ { prop: 'address', label: '规格(剂/支或粒)', width: '150px' },
|
|
|
+ { prop: 'address', label: '生产日期', width: '120px' },
|
|
|
+ // { prop: 'nickName', label: '疫苗批号', width: 100 },
|
|
|
+ // { prop: 'username', label: '疫苗效期', width: 100 },
|
|
|
+ // { prop: 'username', label: '数量', width: 100 },
|
|
|
+ // { prop: 'username', label: '单位', width: 80 },
|
|
|
+ // { prop: 'username', label: '剂型', width: 100 },
|
|
|
+ // { prop: 'username', label: '领苗人', width: 100 },
|
|
|
+ // { prop: 'username', label: '发货单位', width: 200 },
|
|
|
+ // { prop: 'username', label: '入库日期', width: 100 },
|
|
|
+ { prop: 'operation', label: '操作', fixed: 'right', 'min-width': 200 }
|
|
|
+]
|
|
|
+
|
|
|
+const data = reactive({
|
|
|
+ initParam: { username: '',pageNum:1,pageSize: 10 },//请求参数
|
|
|
+ str: ''
|
|
|
+})
|
|
|
+const multipleTableRef = ref<InstanceType<typeof ElTable>>()
|
|
|
+const multipleSelection = ref<User[]>([])
|
|
|
+const handleSelectionChange = (val: User[]) => {
|
|
|
+ multipleSelection.value = val
|
|
|
+ console.log('选中', multipleSelection.value);
|
|
|
+}
|
|
|
+
|
|
|
+//翻页
|
|
|
+const handleSizeChange = async ()=>{}
|
|
|
+const handleCurrentChange = async ()=>{}
|
|
|
+</script>
|
|
|
+<style lang="scss">
|
|
|
+.storagePut {
|
|
|
+ user-select: none;
|
|
|
+}
|
|
|
+
|
|
|
+.el-form-item {
|
|
|
+ // margin-bottom: 0;
|
|
|
+}
|
|
|
+</style>
|