|
@@ -8,73 +8,85 @@
|
|
|
<div class="info-text-min-box">
|
|
|
<div>
|
|
|
<p>标题:</p>
|
|
|
- <p>{{infoData.data1}}</p>
|
|
|
+ <p>{{infoData.takeTitle}}</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
<p>盘点人:</p>
|
|
|
- <p>{{infoData.data2}}</p>
|
|
|
+ <p>{{infoData.createBy}}</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
<p>盘点时间:</p>
|
|
|
- <p>{{infoData.data3}}</p>
|
|
|
+ <p>{{infoData.createTimeStr}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="info-text-min-box">
|
|
|
<div>
|
|
|
<p>所属部门:</p>
|
|
|
- <p>{{infoData.data4}}</p>
|
|
|
+ <p>{{infoData.takeDpetName}}</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
<p>楼栋:</p>
|
|
|
- <p>{{infoData.data5}}</p>
|
|
|
+ <p>{{infoData.takeBuildName}}</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
<p>实验室:</p>
|
|
|
- <p>{{infoData.data6}}</p>
|
|
|
+ <p>{{infoData.subName}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="info-text-min-box">
|
|
|
<div>
|
|
|
<p>盘点类型:</p>
|
|
|
- <p>{{infoData.data7==1?'按照实验室盘点':'按照化学品柜盘点'}}</p>
|
|
|
+ <p>{{infoData.takeType==1?'按照实验室盘点':'按照化学品柜盘点'}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="table-data-list-box">
|
|
|
<el-table border :data="tableData" ref="multipleTable">
|
|
|
<el-table-column label="序号" width="50" align="center" type="index"/>
|
|
|
- <el-table-column label="化学品" prop="courseName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="CAS号" prop="place" width="130" show-overflow-tooltip/>
|
|
|
- <el-table-column label="学院" prop="place" width="200" show-overflow-tooltip>
|
|
|
+ <el-table-column label="化学品" prop="chemicalName" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="CAS号" prop="casNum" width="130" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="学院" prop="chemicalDpetName" width="200" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
+ <span :class="scope.row.dpetFlag == 0?'abnormalColor':''">{{scope.row.chemicalDpetName}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="楼栋" prop="place" width="150" show-overflow-tooltip>
|
|
|
+ <el-table-column label="楼栋" prop="chemicalBuildName" width="150" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
+ <span :class="scope.row.buildFlag == 0?'abnormalColor':''">{{scope.row.chemicalBuildName}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="实验室" prop="place" width="200" show-overflow-tooltip>
|
|
|
+ <el-table-column label="实验室" prop="chemicalSubName" width="200" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
+ <span :class="scope.row.subFlag == 0?'abnormalColor':''">{{scope.row.chemicalSubName}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="盘点结果" prop="place" width="230" show-overflow-tooltip v-if="infoData.data7 == 1"/>
|
|
|
- <el-table-column label="化学品柜" prop="place" width="140" show-overflow-tooltip v-if="infoData.data7 == 2"/>
|
|
|
- <el-table-column label="盘点结果" prop="place" width="160" show-overflow-tooltip v-if="infoData.data7 == 2"/>
|
|
|
- <el-table-column label="备注" prop="inventoryTime" width="120" show-overflow-tooltip/>
|
|
|
- <el-table-column label="结果" prop="inventoryTime" width="80" show-overflow-tooltip>
|
|
|
+ <el-table-column label="盘点结果" prop="takeResult" width="230"
|
|
|
+ show-overflow-tooltip v-if="infoData.takeType == 1"/>
|
|
|
+ <el-table-column label="化学品柜" prop="chemicalCabinetName" width="140"
|
|
|
+ show-overflow-tooltip v-if="infoData.takeType == 2">
|
|
|
<template slot-scope="scope">
|
|
|
+ <span :class="scope.row.cabinetFlag == 0?'abnormalColor':''">{{scope.row.chemicalCabinetName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="盘点结果" prop="takeResult" width="160" s
|
|
|
+ how-overflow-tooltip v-if="infoData.takeType == 2"/>
|
|
|
+ <el-table-column label="备注" prop="remark" width="120" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="结果" prop="chemicalType" width="80" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span :class="scope.row.chemicalType == 0?'abnormalColor':''">{{scope.row.chemicalType == 1?'正常':'异常'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<pagination :page-sizes="[20, 30, 40, 50]" v-show="total>0" :total="total"
|
|
|
layout="total, prev, pager, next, sizes, jumper"
|
|
|
- :page.sync="pageNum" :limit.sync="pageSize"
|
|
|
+ :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
@pagination="getList"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { hxpTakeStockInfo,hxpTakeStockDetailList } from '@/api/chemicalInventory/index'
|
|
|
export default {
|
|
|
name: 'infoPage',
|
|
|
props:{
|
|
@@ -82,31 +94,39 @@
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
- infoData:{
|
|
|
- data1:"530化学品盘点",
|
|
|
- data2:"张老师",
|
|
|
- data3:"2023-10-26 09:30",
|
|
|
- data4:"环境与测绘学院",
|
|
|
- data5:"楼栋名称",
|
|
|
- data6:"大气污染实验室",
|
|
|
- data7:"1",
|
|
|
- },
|
|
|
- tableData:[{}],
|
|
|
+ infoData:{},
|
|
|
+ tableData:[],
|
|
|
total:10,
|
|
|
pageNum:1,
|
|
|
pageSize:20,
|
|
|
+ queryParams:{
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:20,
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
|
|
|
},
|
|
|
mounted(){
|
|
|
-
|
|
|
+ this.initialization();
|
|
|
},
|
|
|
methods:{
|
|
|
+ // 初始化
|
|
|
+ initialization(){
|
|
|
+ hxpTakeStockInfo(this.infoDataProps.id).then( response => {
|
|
|
+ this.$set(this,'infoData',response.data);
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
outButton(){
|
|
|
this.$parent.controlsButton(1)
|
|
|
},
|
|
|
+ getList(){
|
|
|
+ hxpTakeStockDetailList({takeStockId:this.infoDataProps.id}).then( response => {
|
|
|
+ this.$set(this,'tableData',response.rows);
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|