duizhaopin_ui
cxw 2 years ago
parent 3c3c892c35
commit 0cfa26d66b

@ -10,7 +10,7 @@
:value="item.client_id" :value="item.client_id"
/> />
</el-select> --> </el-select> -->
<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> -->
<div class="header-right"> <div class="header-right">
<el-button icon="el-icon-refresh" circle @click="handleRefresh" /> <el-button icon="el-icon-refresh" circle @click="handleRefresh" />
</div> </div>
@ -27,7 +27,6 @@
<el-table-column align="center" type="index" width="50" label="序号" /> <el-table-column align="center" type="index" width="50" label="序号" />
<el-table-column prop="user_name" show-overflow-tooltip label="用户名称" align="center" /> <el-table-column prop="user_name" show-overflow-tooltip label="用户名称" align="center" />
<el-table-column prop="user_name_pt" show-overflow-tooltip label="陪同用户名称" align="center" /> <el-table-column prop="user_name_pt" show-overflow-tooltip label="陪同用户名称" align="center" />
<el-table-column prop="use_content" show-overflow-tooltip label="试剂详情" align="center" />
<el-table-column prop="create_date" show-overflow-tooltip label="申请时间" align="center" /> <el-table-column prop="create_date" show-overflow-tooltip label="申请时间" align="center" />
@ -44,8 +43,10 @@
<el-table-column <el-table-column
fixed="right" fixed="right"
label="操作" label="操作"
align="center"
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleCheck(scope.row)" type="text" size="small">查看</el-button>
<el-button @click="handleClick(scope.row)" type="text" size="small">审批</el-button> <el-button @click="handleClick(scope.row)" type="text" size="small">审批</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -110,7 +111,6 @@
<el-table-column align="center" property="name" label="试剂名称" /> <el-table-column align="center" property="name" label="试剂名称" />
<el-table-column align="center" property="purity" label="纯度" /> <el-table-column align="center" property="purity" label="纯度" />
<el-table-column align="center" property="speci" label="规格" /> <el-table-column align="center" property="speci" label="规格" />
<el-table-column align="center" property="num" label="数量" />
</el-table> </el-table>
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -217,14 +217,16 @@ export default {
this.get_apply() this.get_apply()
}, },
// //
handleCheck() { handleCheck(row) {
if (this.handleSelectionSelection.length === 1) { this.dialogHistoryVisible = true
this.dialogHistoryVisible = true this.historyData = JSON.parse(row.use_content)
this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content) // if (this.handleSelectionSelection.length === 1) {
console.log(this.handleSelectionSelection[0].use_content,'111') // this.dialogHistoryVisible = true
} else { // this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content)
this.$message.warning("选择一条记录操作!") // console.log(this.handleSelectionSelection[0].use_content,'111')
} // } else {
// this.$message.warning("")
// }
}, },
dialogHistoryClose() { dialogHistoryClose() {
this.dialogHistoryVisible = false this.dialogHistoryVisible = false
@ -261,6 +263,7 @@ export default {
.header-right { .header-right {
float: right; float: right;
margin-bottom: 1rem;
} }
} }
} }

@ -3,7 +3,7 @@
<div class="title">创建申请</div> <div class="title">创建申请</div>
<div class="header"> <div class="header">
<el-button type="primary" plain @click="openDialogTableVisible"><i class="el-icon-edit" />申请</el-button> <el-button type="primary" plain @click="openDialogTableVisible"><i class="el-icon-edit" />申请</el-button>
<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 class="box">
@ -20,7 +20,6 @@
<el-table-column align="center" property="name" label="试剂名称" /> <el-table-column align="center" property="name" label="试剂名称" />
<el-table-column align="center" property="purity" label="纯度" /> <el-table-column align="center" property="purity" label="纯度" />
<el-table-column align="center" property="speci" label="规格" /> <el-table-column align="center" property="speci" label="规格" />
<el-table-column align="center" property="num" label="数量" />
</el-table> </el-table>
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -108,7 +107,7 @@
<el-table-column align="center" type="index" width="50" label="序号" /> <el-table-column align="center" type="index" width="50" label="序号" />
<el-table-column prop="user_name" show-overflow-tooltip label="用户名称" align="center" /> <el-table-column prop="user_name" show-overflow-tooltip label="用户名称" align="center" />
<el-table-column prop="user_name_pt" show-overflow-tooltip label="陪同用户名称" align="center" /> <el-table-column prop="user_name_pt" show-overflow-tooltip label="陪同用户名称" align="center" />
<el-table-column prop="use_content" show-overflow-tooltip label="试剂详情" align="center" /> <!-- <el-table-column prop="use_content" show-overflow-tooltip label="试剂详情" align="center" /> -->
<el-table-column prop="create_date" show-overflow-tooltip label="申请时间" align="center" /> <el-table-column prop="create_date" show-overflow-tooltip label="申请时间" align="center" />
<el-table-column prop="is_solve" show-overflow-tooltip label="状态" align="center"> <el-table-column prop="is_solve" show-overflow-tooltip label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -119,6 +118,15 @@
<el-table-column prop="solve_user_pt_name" show-overflow-tooltip label="审批人2" align="center" /> <el-table-column prop="solve_user_pt_name" show-overflow-tooltip label="审批人2" align="center" />
<el-table-column prop="solve_date" show-overflow-tooltip label="审批时间" align="center" /> <el-table-column prop="solve_date" show-overflow-tooltip label="审批时间" align="center" />
<el-table-column prop="information" show-overflow-tooltip label="备注" align="center" /> <el-table-column prop="information" show-overflow-tooltip label="备注" align="center" />
<el-table-column
fixed="right"
label="操作"
align="center"
width="100">
<template slot-scope="scope">
<el-button @click="handleCheck(scope.row)" type="text" size="small">查看</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="my-pagination" style="text-align: center"> <div class="my-pagination" style="text-align: center">
<el-pagination <el-pagination
@ -197,13 +205,15 @@ export default {
that.handleSelectionSelection =selection that.handleSelectionSelection =selection
}, },
// //
handleCheck() { handleCheck(row) {
if (this.handleSelectionSelection.length === 1) { this.dialogHistoryVisible = true
this.dialogHistoryVisible = true this.historyData = JSON.parse(row.use_content)
this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content) // if (this.handleSelectionSelection.length === 1) {
} else { // this.dialogHistoryVisible = true
this.$message.warning("选择一条记录操作!") // this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content)
} // } else {
// this.$message.warning("")
// }
}, },
// //
dialogHistoryClose() { dialogHistoryClose() {

@ -120,7 +120,7 @@
label="操作" label="操作"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" @click="handleReagentClick(scope.row)"></el-button> <el-button type="primary" @click="handleReagentClick(scope.row)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save