x_ying
3 years ago
3 changed files with 143 additions and 17 deletions
-
29src/api/archivesManage/outInStorage.js
-
42src/views/archivesManage/outInStorage/inStorage/index.vue
-
89src/views/archivesManage/outInStorage/inStorage/module/handDialog.vue
@ -0,0 +1,89 @@ |
|||
<template> |
|||
<div> |
|||
<!-- 单个 --> |
|||
<el-dialog title="提示" :visible.sync="singleVisible"> |
|||
<span class="dialog-right-top" /> |
|||
<span class="dialog-left-bottom" /> |
|||
<div class="setting-dialog"> |
|||
<p>入库成功</p> |
|||
<p style="color:#f00;margin:10px 0;display:block">提示:如果当前设备不在线或者未勾选联动操作,请人工完成上架操作</p> |
|||
</div> |
|||
</el-dialog> |
|||
<!-- 多个 --> |
|||
<el-dialog title="提示" :visible.sync="manyVisible"> |
|||
<span class="dialog-right-top" /> |
|||
<span class="dialog-left-bottom" /> |
|||
<div class="setting-dialog"> |
|||
<p class="msg">该案卷存在多个档案盒,请确认全部入库!</p> |
|||
<el-table ref="table" :data="tableData" height="325px" @row-click="clickRowHandler" @selection-change="selectionChangeHandler"> |
|||
<el-table-column type="selection" width="55" /> |
|||
<el-table-column type="index" align="center" label="序号" width="80" /> |
|||
<el-table-column prop="caseName" align="center" label="盒名称" width="100" /> |
|||
<el-table-column prop="tid" align="center" label="TID" width="180" /> |
|||
<el-table-column prop="barcode" align="center" label="条形码" width="140" /> |
|||
<el-table-column prop="folderLocationDetails" align="center" label="存放位置" width="180" /> |
|||
</el-table> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button class="btn-save" :disabled="!(selections.length === tableData.length)" @click="handleConfirm">确定</el-button> |
|||
</div> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { collectConfirm } from '@/api/archivesManage/outInStorage' |
|||
import { crud } from '@crud/crud' |
|||
|
|||
export default { |
|||
mixins: [crud()], |
|||
data() { |
|||
return { |
|||
singleVisible: false, |
|||
manyVisible: false, |
|||
tableData: [], |
|||
selections: [] |
|||
} |
|||
}, |
|||
methods: { |
|||
selectionChangeHandler(val) { |
|||
this.selections = val |
|||
}, |
|||
clickRowHandler(row) { |
|||
this.$refs.table.toggleRowSelection(row) // 单击选中 |
|||
}, |
|||
handleConfirm() { |
|||
const params = this.tableData.map(item => { return item.caseId }) |
|||
console.log(params) |
|||
collectConfirm(params).then(res => { |
|||
console.log(res, '人工确认') |
|||
this.$message({ |
|||
message: '入库成功!', |
|||
type: 'success' |
|||
}) |
|||
this.manyVisible = false |
|||
this.crud.refresh() |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.setting-dialog{ |
|||
color: #fff; |
|||
font-size: 16px; |
|||
} |
|||
.msg{ |
|||
padding: 0 10px 10px 10px; |
|||
} |
|||
.btn-save{ |
|||
width: 90px; |
|||
height: 36px; |
|||
font-size: 16px; |
|||
background-color: #339CFF; |
|||
} |
|||
.btn-save.is-disabled{ |
|||
background-color: #031435; |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue