|
@@ -1,66 +1,70 @@
|
|
|
<!--使用记录-->
|
|
|
<template>
|
|
|
<div class="app-container usageRecord">
|
|
|
- <advanced-search :searchData="searchData"></advanced-search>
|
|
|
- <div class="usageRecord-min">
|
|
|
- <el-table border :data="tableList" @selection-change="handleSelectionChange" ref="multipleTable" :row-key="getRowKeys">
|
|
|
- <el-table-column type="selection" width="50" align="center" :reserve-selection="true"/>
|
|
|
- <el-table-column label="化学品编号" align="center" prop="joinNum" width="130"/>
|
|
|
- <el-table-column label="化学品名" align="center" prop="chemicalName" width="180"/>
|
|
|
- <el-table-column label="CAS号" align="center" prop="casNum" width="180"/>
|
|
|
- <!--<el-table-column label="形态" align="center" prop="chemicalShape" width="121"/>-->
|
|
|
- <!--<el-table-column label="规格" align="center" prop="chemicalAmountUnit" width="121"/>-->
|
|
|
- <el-table-column label="分类" align="center" prop="classifyName" width="181"/>
|
|
|
- <!--<el-table-column label="属性" align="center" prop="classifyAttribute" width="220" show-overflow-tooltip/>-->
|
|
|
- <!--<el-table-column label="标签类型" align="center" prop="labelContent" width="121"/>-->
|
|
|
- <!--<el-table-column label="标签编号" align="center" prop="tagCode" width="130"/>-->
|
|
|
- <el-table-column label="化学品柜" align="center" prop="cabinetName" width="200" show-overflow-tooltip/>
|
|
|
- <el-table-column label="位置" align="center" prop="posi" width="300" show-overflow-tooltip/>
|
|
|
- <el-table-column label="领用时间" align="center" prop="collectTime" width="170"/>
|
|
|
- <el-table-column label="归还时间" align="center" prop="returnTime" width="170"/>
|
|
|
- <!--<el-table-column label="归还方式" align="center" prop="returnTypeContent" width="130"/>-->
|
|
|
- <el-table-column label="领用时库存" align="center" prop="collectStockNum" width="120"/>
|
|
|
- <el-table-column label="领用净重" align="center" prop="collectWeigh" width="120"/>
|
|
|
- <el-table-column label="损耗量" align="center" prop="lossAmount" width="120"/>
|
|
|
- <el-table-column label="使用量" align="center" prop="useStockNum" width="120"/>
|
|
|
- <el-table-column label="剩余库存" align="center" prop="returnStockNum" width="120"/>
|
|
|
- <el-table-column label="状态" align="center" prop="useStatus" width="120">
|
|
|
- <template slot-scope="scope"><span :class="scope.row.useStatus == '使用中'?'table-color-1':(scope.row.useStatus == '超时未归还'?'table-color-2':'')">{{scope.row.useStatus}}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作人" align="center" prop="operator" width="220" show-overflow-tooltip/>
|
|
|
- <!--<el-table-column label="身份验证" align="center" prop="verify" width="220" show-overflow-tooltip>-->
|
|
|
+ <div class="usageRecord-page" v-if="pageType == 1">
|
|
|
+ <advanced-search :searchData="searchData"></advanced-search>
|
|
|
+ <div class="usageRecord-min">
|
|
|
+ <el-table border :data="tableList" @selection-change="handleSelectionChange" ref="multipleTable" :row-key="getRowKeys">
|
|
|
+ <el-table-column type="selection" width="50" align="center" :reserve-selection="true"/>
|
|
|
+ <el-table-column label="化学品编号" align="center" prop="joinNum" width="130"/>
|
|
|
+ <el-table-column label="化学品名" align="center" prop="chemicalName" width="180"/>
|
|
|
+ <el-table-column label="CAS号" align="center" prop="casNum" width="180"/>
|
|
|
+ <!--<el-table-column label="形态" align="center" prop="chemicalShape" width="121"/>-->
|
|
|
+ <!--<el-table-column label="规格" align="center" prop="chemicalAmountUnit" width="121"/>-->
|
|
|
+ <el-table-column label="分类" align="center" prop="classifyName" width="181"/>
|
|
|
+ <!--<el-table-column label="属性" align="center" prop="classifyAttribute" width="220" show-overflow-tooltip/>-->
|
|
|
+ <!--<el-table-column label="标签类型" align="center" prop="labelContent" width="121"/>-->
|
|
|
+ <!--<el-table-column label="标签编号" align="center" prop="tagCode" width="130"/>-->
|
|
|
+ <el-table-column label="化学品柜" align="center" prop="cabinetName" width="200" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="位置" align="center" prop="posi" width="300" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="领用时间" align="center" prop="collectTime" width="170"/>
|
|
|
+ <el-table-column label="归还时间" align="center" prop="returnTime" width="170"/>
|
|
|
+ <!--<el-table-column label="归还方式" align="center" prop="returnTypeContent" width="130"/>-->
|
|
|
+ <el-table-column label="领用时库存" align="center" prop="collectStockNum" width="120"/>
|
|
|
+ <el-table-column label="领用净重" align="center" prop="collectWeigh" width="120"/>
|
|
|
+ <el-table-column label="损耗量" align="center" prop="lossAmount" width="120"/>
|
|
|
+ <el-table-column label="使用量" align="center" prop="useStockNum" width="120"/>
|
|
|
+ <el-table-column label="剩余库存" align="center" prop="returnStockNum" width="120"/>
|
|
|
+ <el-table-column label="状态" align="center" prop="useStatus" width="120">
|
|
|
+ <template slot-scope="scope"><span :class="scope.row.useStatus == '使用中'?'table-color-1':(scope.row.useStatus == '超时未归还'?'table-color-2':'')">{{scope.row.useStatus}}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作人" align="center" prop="operator" width="220" show-overflow-tooltip/>
|
|
|
+ <!--<el-table-column label="身份验证" align="center" prop="verify" width="220" show-overflow-tooltip>-->
|
|
|
<!--<template slot-scope="scope">-->
|
|
|
- <!--{{scope.row.verify?scope.row.verify:'无'}}-->
|
|
|
+ <!--{{scope.row.verify?scope.row.verify:'无'}}-->
|
|
|
<!--</template>-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <el-table-column label="操作" align="center" prop="operator" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div class="button-box">
|
|
|
- <p class="table-min-button"
|
|
|
- style="margin:0!important;"
|
|
|
- @click="goPageInfo(2,scope.row)"
|
|
|
- >详情</p>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <div style="display: flex;height:32px;margin-top:15px;">
|
|
|
- <!--<p style="flex:4;"></p>-->
|
|
|
- <p style="text-align: left;margin:0;line-height:32px;margin-right:20px;font-size:14px;color:#999;">
|
|
|
- <i class="el-icon-warning" style="color:#0183FA;"></i>
|
|
|
- 已选择 {{selectedNum}} 项
|
|
|
- </p>
|
|
|
- <div style="flex:5;">
|
|
|
- <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
- v-show="total>0"
|
|
|
- :total="total"
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <!--</el-table-column>-->
|
|
|
+ <el-table-column label="操作" align="center" prop="operator" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="button-box">
|
|
|
+ <p class="table-min-button"
|
|
|
+ style="margin:0!important;"
|
|
|
+ @click="goPageInfo(2,scope.row)"
|
|
|
+ >详情</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div style="display: flex;height:32px;margin-top:15px;">
|
|
|
+ <!--<p style="flex:4;"></p>-->
|
|
|
+ <p style="text-align: left;margin:0;line-height:32px;margin-right:20px;font-size:14px;color:#999;">
|
|
|
+ <i class="el-icon-warning" style="color:#0183FA;"></i>
|
|
|
+ 已选择 {{selectedNum}} 项
|
|
|
+ </p>
|
|
|
+ <div style="flex:5;">
|
|
|
+ <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
+ v-show="total>0"
|
|
|
+ :total="total"
|
|
|
+ style="margin:0;"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <info-page :infoData="infoData" v-if="pageType == 2"></info-page>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -68,13 +72,16 @@
|
|
|
import { classifyList,getNoauthList,getHxpUserecordList } from "@/api/medicUniversity-3_1/index";
|
|
|
import { listDepartments } from "@/api/system/dept";
|
|
|
import advancedSearch from "@/components/ZDcomponents/advancedSearch.vue"
|
|
|
+ import infoPage from "./infoPage.vue"
|
|
|
export default {
|
|
|
name: "usageRecord",
|
|
|
components: {
|
|
|
- advancedSearch
|
|
|
+ advancedSearch,
|
|
|
+ infoPage
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ pageType:1,
|
|
|
searchData:{
|
|
|
buttonList:[//按钮数组没有则为空
|
|
|
{
|
|
@@ -199,6 +206,8 @@
|
|
|
single: true,
|
|
|
// 非多个禁用
|
|
|
multiple: true,
|
|
|
+ //详情组件传参
|
|
|
+ infoData:{},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -213,8 +222,14 @@
|
|
|
},
|
|
|
methods: {
|
|
|
//操作按钮
|
|
|
- goPageInfo(type){
|
|
|
-
|
|
|
+ goPageInfo(type,row){
|
|
|
+ if(type == 1){
|
|
|
+ this.$set(this,'pageType',1);
|
|
|
+ this.$set(this,'infoData',{});
|
|
|
+ }else if(type == 2){
|
|
|
+ this.$set(this,'infoData',row);
|
|
|
+ this.$set(this,'pageType',type);
|
|
|
+ }
|
|
|
},
|
|
|
//获取属性列表
|
|
|
getHxpClassifyattribute(){
|
|
@@ -372,22 +387,28 @@
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
overflow: hidden!important;
|
|
|
- padding-top:20px!important;
|
|
|
p{
|
|
|
margin:0;
|
|
|
padding:0;
|
|
|
}
|
|
|
- .usageRecord-min{
|
|
|
+ .usageRecord-page{
|
|
|
flex:1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
overflow: hidden!important;
|
|
|
- padding:0 20px 20px!important;
|
|
|
- .table-color-1{
|
|
|
- color:#0183FA;
|
|
|
- }
|
|
|
- .table-color-2{
|
|
|
- color:#FF4D4D;
|
|
|
+ padding-top:20px!important;
|
|
|
+ .usageRecord-min{
|
|
|
+ flex:1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ overflow: hidden!important;
|
|
|
+ padding:0 20px 20px!important;
|
|
|
+ .table-color-1{
|
|
|
+ color:#0183FA;
|
|
|
+ }
|
|
|
+ .table-color-2{
|
|
|
+ color:#FF4D4D;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|