|
@@ -1,34 +1,97 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="sellManage">
|
|
|
- <tables :requestApi="login" :columns="columns" :initParam="initParam" :dataCallback="dataCallback"></tables>
|
|
|
+ <!-- <titles name="电池租用量/库存量统计"></titles> -->
|
|
|
+ <el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
|
+ <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-input v-model="formInline.user" placeholder="疫苗批号" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="疫苗效期">
|
|
|
+ <el-date-picker v-model="formInline.date" type="date" placeholder="疫苗效期" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="出/入库日期">
|
|
|
+ <el-date-picker v-model="formInline.date" type="date" placeholder="出/入库日期" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary">Query</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <tables :requestApi="CompanyTree" :columns="columns" :initParam="initParam" :dataCallback="dataCallback">
|
|
|
+ <template #right="{ row }">
|
|
|
+ <el-button link type="primary" size="small">编辑</el-button>
|
|
|
+ <el-button link type="success" size="small">权限</el-button>
|
|
|
+ <el-button link type="danger" size="small">删除</el-button>
|
|
|
+ </template>
|
|
|
+ <template #T_State="{ row }">
|
|
|
+ <el-tag class="ml-2" v-if="row.T_State === 1">正常</el-tag>
|
|
|
+ <el-tag class="ml-2" type="danger" v-else>离职</el-tag>
|
|
|
+ </template>
|
|
|
+ </tables>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-
|
|
|
+import { reactive } from 'vue'
|
|
|
import tables from "@/components/table.vue";
|
|
|
-import {login} from "@/api/index";
|
|
|
-
|
|
|
+import titles from '@/components/titles.vue'
|
|
|
+import { CompanyTree } from "@/api/index";
|
|
|
+const formInline = reactive({
|
|
|
+ user: '',
|
|
|
+ region: '',
|
|
|
+ date: '',
|
|
|
+})
|
|
|
|
|
|
// 渲染表格
|
|
|
const columns: any = [
|
|
|
- { prop: 'T_name', label: '姓名' },
|
|
|
- { prop: 'T_id', label: 'id' },
|
|
|
- // { prop: 'operation', label: '操作', width: 200, fixed: 'right' }
|
|
|
+ // { type: 'index', label: '#', width: 50, },
|
|
|
+ { prop: 'T_D_name', label: '疫苗名称', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '生产企业', width: 200 },
|
|
|
+ { prop: 'T_D_name', label: '批准文号', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '批签发合格编号', width: 200 },
|
|
|
+
|
|
|
+ { prop: 'T_D_name', label: '规格(剂/支或粒)', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '生产日期', width: 200 },
|
|
|
+ { prop: 'T_D_name', label: '疫苗批号', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '疫苗效期', width: 200 },
|
|
|
+
|
|
|
+ { prop: 'T_D_name', label: '类型', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '收入数量' , width: 200 },
|
|
|
+ { prop: 'T_D_name', label: '发出数量', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '结余数量', width: 200 },
|
|
|
+ { prop: 'T_D_name', label: '单位', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '剂型', width: 200 },
|
|
|
+
|
|
|
+ { prop: 'T_D_name', label: '领苗人', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '发货单位' , width: 200 },
|
|
|
+ { prop: 'T_D_name', label: '收货单位', width: 200 },
|
|
|
+ { prop: 'T_sn', label: '入/出库日期' , width: 200 },
|
|
|
+ { prop: 'operation', label: '操作', fixed: 'right', width: 200 }
|
|
|
+
|
|
|
+ // { prop: 'T_State', label: '状态', name: 'T_State' },
|
|
|
]
|
|
|
//请求参数
|
|
|
-const initParam = {T_name: '' }
|
|
|
+const initParam = { T_name: '' }
|
|
|
|
|
|
//函数
|
|
|
-const dataCallback = async ()=>{
|
|
|
+const dataCallback = async () => {
|
|
|
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
/* @import url(); 引入css类 */
|
|
|
|
|
|
-.sellManage{
|
|
|
- padding: 40px;
|
|
|
+.sellManage {
|
|
|
+ background: var(--y-card-background);
|
|
|
+ padding: var(--y-padding);
|
|
|
+ border-radius: var(--y-radius);
|
|
|
}
|
|
|
</style>
|