|
@@ -1,49 +1,91 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="storagePut">
|
|
|
- <el-result title="扫码添加" sub-title="扫条形码,可以自动识别填写信息哦">
|
|
|
- <template #icon>
|
|
|
- <el-image :src="srcimg" style="width: 300px;height: auto;" />
|
|
|
+ <searchAdd isButtom="查询">
|
|
|
+ <template #searchConter>
|
|
|
+ <el-form-item label="疫苗批号">
|
|
|
+ <el-input v-model="formInline.user" placeholder="疫苗批号" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="疫苗名称">
|
|
|
+ <el-select v-model="formInline.region" placeholder="生产企业" clearable>
|
|
|
+ <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>
|
|
|
+ <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 />
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
|
- <template #extra>
|
|
|
- <el-button type="primary">扫码添加</el-button>
|
|
|
+ </searchAdd>
|
|
|
+ <bg istitle="基本信息">
|
|
|
+ <template #btn>
|
|
|
+ <scanCode style="margin-right: 20px;"></scanCode>
|
|
|
+ <Labour></Labour>
|
|
|
</template>
|
|
|
- </el-result>
|
|
|
- <el-result title="手动添加" sub-title="手动填写信息">
|
|
|
- <template #icon>
|
|
|
- <el-image :src="srcimg1" style="width: 300px;height: auto;" />
|
|
|
+ <template #bg>
|
|
|
+ <tables ref="TableRef" :requestApi="userList" :columns="columns" :initParam="data.initParam">
|
|
|
+ </tables>
|
|
|
</template>
|
|
|
- <template #extra>
|
|
|
- <el-button type="primary">手动添加</el-button>
|
|
|
- </template>
|
|
|
- </el-result>
|
|
|
- <el-result title="查看入库" sub-title="管理入库信息,查看入库情况">
|
|
|
- <template #icon>
|
|
|
- <el-image :src="srcimg2" style="width: 300px;height: auto;" />
|
|
|
- </template>
|
|
|
- <template #extra>
|
|
|
- <el-button type="primary">查看入库数据</el-button>
|
|
|
- </template>
|
|
|
- </el-result>
|
|
|
+ </bg>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-const srcimg: any = require('@/assets/img/down14.webp')
|
|
|
-const srcimg1: any = require('@/assets/img/down13.webp')
|
|
|
-const srcimg2: any = require('@/assets/img/down22.webp')
|
|
|
+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 formInline = reactive({
|
|
|
+ user: '',
|
|
|
+ region: '',
|
|
|
+ date: '',
|
|
|
+})
|
|
|
+const datas = reactive({
|
|
|
+ input: ''
|
|
|
+})
|
|
|
+// 渲染表格
|
|
|
+const columns: any = [
|
|
|
+ { prop: 'nickName', label: '疫苗名称'},
|
|
|
+ { prop: 'username', label: '生产企业'},
|
|
|
+ { prop: 'nickName', label: '批准文号'},
|
|
|
+ { prop: 'username', label: '批签发合格编号'},
|
|
|
+ { prop: 'nickName', label: '规格(剂/支或粒)'},
|
|
|
+ { prop: 'username', label: '生产日期', },
|
|
|
+ // { 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 },
|
|
|
+]
|
|
|
+const activeName = ref('first')
|
|
|
+
|
|
|
+const data = reactive({
|
|
|
+ initParam: { username: '' },//请求参数
|
|
|
+ str: ''
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
.storagePut {
|
|
|
user-select: none;
|
|
|
-
|
|
|
- display: flex;
|
|
|
- gap: 20px;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- height: 100%;
|
|
|
+}
|
|
|
+.el-form-item {
|
|
|
+ // margin-bottom: 0;
|
|
|
}
|
|
|
</style>
|