|
|
@ -6,7 +6,7 @@
|
|
|
|
<!-- <el-button type="primary" plain @click="handleCheck"><i class="el-icon-edit" />详情查看</el-button> -->
|
|
|
|
<!-- <el-button type="primary" plain @click="handleCheck"><i class="el-icon-edit" />详情查看</el-button> -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogHistoryVisible" width="60%" title="申请详情">
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogHistoryVisible" width="60%" title="申请详情">
|
|
|
|
<div class="box">
|
|
|
|
<div style='height:500px'>
|
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
v-loading="loadingHistory"
|
|
|
|
v-loading="loadingHistory"
|
|
|
@ -25,6 +25,43 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogMsdsVisible" width="60%" title="MSDS数据库">
|
|
|
|
|
|
|
|
<div class="box" style='height:500px'>
|
|
|
|
|
|
|
|
<el-scrollbar style='hight:500px'>
|
|
|
|
|
|
|
|
<div class="main-container-text">
|
|
|
|
|
|
|
|
<div class="title">{{ currentItem.name }}</div>
|
|
|
|
|
|
|
|
<div class="header">
|
|
|
|
|
|
|
|
<div class="title-sub"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
|
|
|
<el-descriptions-item label="英文名称">{{ currentItem.english_name }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="CAS码">{{ currentItem.cas_number }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="分子式">{{ currentItem.molecular_formula }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="分子量">{{ currentItem.molecular_weight }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="物理数据">{{ currentItem.physical_data }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="毒理数据">{{ currentItem.toxicity_data }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="用途">{{ currentItem.use }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="稳定性">{{ currentItem.stability }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="生态性">{{ currentItem.ecological }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="注意事项">{{ currentItem.precautions }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :style="{'hight':'80px'}" />
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="$route.path.indexOf('msds') === -1" :label-style="{'background': '#ffcc99'}" label="试剂属性">{{ currentItem.drug_attribute }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="$route.path.indexOf('msds') === -1" :label-style="{'background': '#ffcc99'}">
|
|
|
|
|
|
|
|
<template slot="label">
|
|
|
|
|
|
|
|
存储禁忌 <i class="el-icon-warning-outline" />
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
{{ currentItem.storage_taboo }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99','width':'120px'}" label="储存方法">{{ currentItem.storage_method }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99'}" label="柜体储存要求">{{ currentItem.client_storage_require }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99'}" label="领用归还规定">{{ currentItem.provision }}</el-descriptions-item>
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="确认提交申请" :visible.sync="dialogTableVisible">
|
|
|
|
<el-dialog title="确认提交申请" :visible.sync="dialogTableVisible">
|
|
|
|
<div style="display:flex;flex-direction: row;">
|
|
|
|
<div style="display:flex;flex-direction: row;">
|
|
|
|
<el-form :inline="true" :model="pt_form" :rules="rules" ref="pt_form" class="demo-form-inline" style="padding-top:13px">
|
|
|
|
<el-form :inline="true" :model="pt_form" :rules="rules" ref="pt_form" class="demo-form-inline" style="padding-top:13px">
|
|
|
@ -50,16 +87,33 @@
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center" />
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center" />
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center" />
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center" />
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center" />
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center" />
|
|
|
|
|
|
|
|
<el-table-column align="center" property="client_id" label="所属终端">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<div v-if="$store.getters.currentOptions.find(item => item.client_id === scope.row.client_id)">
|
|
|
|
|
|
|
|
{{ $store.getters.currentOptions.find(item => item.client_id === scope.row.client_id).client_name }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else>
|
|
|
|
|
|
|
|
{{ scope.row.client_id }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="place"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
label="所属单元"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
width="100"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center" />
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center" />
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center" />
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center" />
|
|
|
|
<el-table-column prop="distributor" show-overflow-tooltip label="经销商" align="center" />
|
|
|
|
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center" />
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
fixed="right"
|
|
|
|
fixed="right"
|
|
|
|
label="操作"
|
|
|
|
label="操作"
|
|
|
|
width="100">
|
|
|
|
width="160">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button @click="handleClick(scope.row)" type="text" size="small">添加申请</el-button>
|
|
|
|
<el-button @click="handleClick(scope.row)" type="text" size="small">添加申请</el-button>
|
|
|
|
|
|
|
|
<el-button @click="handleInfo(scope.row)" type="text" size="small">查看详情</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -69,9 +123,25 @@
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center" />
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center" />
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center" />
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center" />
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center" />
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center" />
|
|
|
|
|
|
|
|
<el-table-column align="center" property="client_id" label="所属终端">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<div v-if="$store.getters.currentOptions.find(item => item.client_id === scope.row.client_id)">
|
|
|
|
|
|
|
|
{{ $store.getters.currentOptions.find(item => item.client_id === scope.row.client_id).client_name }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else>
|
|
|
|
|
|
|
|
{{ scope.row.client_id }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="place"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
label="所属单元"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
width="100"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center" />
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center" />
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center" />
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center" />
|
|
|
|
<el-table-column prop="distributor" show-overflow-tooltip label="经销商" align="center" />
|
|
|
|
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center" />
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
fixed="right"
|
|
|
|
fixed="right"
|
|
|
@ -142,6 +212,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import { get_msds_drug } from '@/api/reagent/database'
|
|
|
|
import stringify from '@/utils/stringify'
|
|
|
|
import stringify from '@/utils/stringify'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
get_pt_user_list,
|
|
|
|
get_pt_user_list,
|
|
|
@ -178,18 +249,20 @@ export default {
|
|
|
|
history_page_size: 15,
|
|
|
|
history_page_size: 15,
|
|
|
|
history_total: 100,
|
|
|
|
history_total: 100,
|
|
|
|
dialogTableVisible: false,
|
|
|
|
dialogTableVisible: false,
|
|
|
|
|
|
|
|
dialogMsdsVisible:false,
|
|
|
|
checkList: [],
|
|
|
|
checkList: [],
|
|
|
|
ptUserArray:[],
|
|
|
|
ptUserArray:[],
|
|
|
|
pt_form:{
|
|
|
|
pt_form:{
|
|
|
|
user_id_pt: '',
|
|
|
|
user_id_pt: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
statusColorMap: ['warning','success','danger'],
|
|
|
|
statusColorMap: ['warning','success','danger'],
|
|
|
|
statusMap: ['未处理', '已处理','已驳回'],
|
|
|
|
statusMap: ['未处理', '已处理','已驳回','已完成'],
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
user_id_pt: [
|
|
|
|
user_id_pt: [
|
|
|
|
{ required: true, message: '请选择陪同人', trigger: 'change' }
|
|
|
|
{ required: true, message: '请选择陪同人', trigger: 'change' }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
currentItem:{}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created () {
|
|
|
|
created () {
|
|
|
@ -215,6 +288,23 @@ export default {
|
|
|
|
// this.$message.warning("选择一条记录操作!")
|
|
|
|
// this.$message.warning("选择一条记录操作!")
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleInfo(row){
|
|
|
|
|
|
|
|
var that =this
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
seach_word: row.name,
|
|
|
|
|
|
|
|
cas_number:row.cas_number
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
get_msds_drug(stringify(data)).then(res => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(res.data.data_list.length>0)
|
|
|
|
|
|
|
|
if(res.data.data_list.length>0){
|
|
|
|
|
|
|
|
this.currentItem = res.data.data_list[0]
|
|
|
|
|
|
|
|
that.dialogMsdsVisible=true
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.$message.warning("未找到该试剂!")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).finally(() => { this.loading = false })
|
|
|
|
|
|
|
|
},
|
|
|
|
//查看详情关闭
|
|
|
|
//查看详情关闭
|
|
|
|
dialogHistoryClose() {
|
|
|
|
dialogHistoryClose() {
|
|
|
|
this.dialogHistoryVisible = false
|
|
|
|
this.dialogHistoryVisible = false
|
|
|
@ -333,7 +423,7 @@ export default {
|
|
|
|
create_apply(pt_from){
|
|
|
|
create_apply(pt_from){
|
|
|
|
var that =this
|
|
|
|
var that =this
|
|
|
|
let datalist = that.checkList.map((item) => {
|
|
|
|
let datalist = that.checkList.map((item) => {
|
|
|
|
return Object.assign({}, { name: item.name, num: item.num,client_id: item.client_id, purity: item.purity, speci: item.speci})
|
|
|
|
return Object.assign({}, { bar_code: item.bar_code,client_code: item.client_code,place: item.place,remark12: item.remark12,name: item.name, num: item.num,client_id: item.client_id, purity: item.purity, speci: item.speci,medicament_id:item.medicament_id})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (pt_from.user_id_pt === '') {
|
|
|
|
if (pt_from.user_id_pt === '') {
|
|
|
|
that.$message({
|
|
|
|
that.$message({
|
|
|
@ -435,6 +525,7 @@ export default {
|
|
|
|
/* 2,外包一个div,来减少对其他页面会有冲突(此时缺少scoped) */
|
|
|
|
/* 2,外包一个div,来减少对其他页面会有冲突(此时缺少scoped) */
|
|
|
|
.box .el-scrollbar__wrap {
|
|
|
|
.box .el-scrollbar__wrap {
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
|
|
height:500px
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* .el-dialog__body {
|
|
|
|
/* .el-dialog__body {
|
|
|
|
height: 600px !important;
|
|
|
|
height: 600px !important;
|
|
|
|