|
@ -63,16 +63,32 @@ |
|
|
<!-- 分页 --> |
|
|
<!-- 分页 --> |
|
|
<pagination /> |
|
|
<pagination /> |
|
|
<!-- 出库弹框 --> |
|
|
<!-- 出库弹框 --> |
|
|
<el-dialog title="出库" :visible.sync="msgVisible"> |
|
|
|
|
|
|
|
|
<el-dialog title="出库" :visible.sync="outVisible" :close-on-click-modal="false"> |
|
|
<span class="dialog-right-top" /> |
|
|
<span class="dialog-right-top" /> |
|
|
<span class="dialog-left-bottom" /> |
|
|
<span class="dialog-left-bottom" /> |
|
|
<div class="setting-dialog"> |
|
|
<div class="setting-dialog"> |
|
|
<p>确定将当前选中的档案全部出库?</p> |
|
|
<p>确定将当前选中的档案全部出库?</p> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<el-button type="primary" @click="handleConfirm">确认</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="crud.downloadLoading" @click="handleConfirm">确认</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<!-- 出库 有待入存在 弹框 --> |
|
|
|
|
|
<el-dialog title="提示" :visible.sync="msgVisible" :close-on-click-modal="false"> |
|
|
|
|
|
<span class="dialog-right-top" /> |
|
|
|
|
|
<span class="dialog-left-bottom" /> |
|
|
|
|
|
<div class="setting-dialog"> |
|
|
|
|
|
<p>当前档案盒正在出库,请勿重复操作</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
<!-- 人工确认弹窗 弹框 --> |
|
|
|
|
|
<el-dialog title="提示" :visible.sync="handVisible" :close-on-click-modal="false"> |
|
|
|
|
|
<span class="dialog-right-top" /> |
|
|
|
|
|
<span class="dialog-left-bottom" /> |
|
|
|
|
|
<div class="setting-dialog"> |
|
|
|
|
|
<p>当前档案盒状态不为“待出”,不可人工确认</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
<!-- 档案盒详情 --> |
|
|
<!-- 档案盒详情 --> |
|
|
<detailDialog ref="detailDom" /> |
|
|
<detailDialog ref="detailDom" /> |
|
|
</div> |
|
|
</div> |
|
@ -83,7 +99,7 @@ |
|
|
import rrOperation from '@crud/RR.operation' |
|
|
import rrOperation from '@crud/RR.operation' |
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
import pagination from '@crud/Pagination' |
|
|
import pagination from '@crud/Pagination' |
|
|
import { grant } from '@/api/archivesManage/outInStorage' |
|
|
|
|
|
|
|
|
import { grant, grantConfirm } from '@/api/archivesManage/outInStorage' |
|
|
import detailDialog from '../module/detailDialog.vue' |
|
|
import detailDialog from '../module/detailDialog.vue' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
@ -100,7 +116,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
outVisible: false, |
|
|
msgVisible: false, |
|
|
msgVisible: false, |
|
|
|
|
|
handVisible: false, |
|
|
keyWord: '', |
|
|
keyWord: '', |
|
|
// keyWord: { |
|
|
// keyWord: { |
|
|
// caseName: '', |
|
|
// caseName: '', |
|
@ -137,7 +155,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 双击 详情 |
|
|
// 双击 详情 |
|
|
handleDbClick(row) { |
|
|
handleDbClick(row) { |
|
|
// console.log(row, 'row') |
|
|
|
|
|
|
|
|
console.log(row, 'row') |
|
|
this.$refs.detailDom.rowData = row |
|
|
this.$refs.detailDom.rowData = row |
|
|
// const params = { |
|
|
// const params = { |
|
|
// caseId: row.id |
|
|
// caseId: row.id |
|
@ -156,24 +174,53 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 出库 |
|
|
// 出库 |
|
|
handleOut() { |
|
|
handleOut() { |
|
|
this.msgVisible = true |
|
|
|
|
|
|
|
|
const bool = this.selections.every(item => item.storageType === 2) |
|
|
|
|
|
if (bool) { |
|
|
|
|
|
this.outVisible = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.msgVisible = true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 人工确认 |
|
|
// 人工确认 |
|
|
handleManual() { |
|
|
handleManual() { |
|
|
|
|
|
|
|
|
|
|
|
const bool = this.selections.every(item => item.storageType === 3) |
|
|
|
|
|
if (bool) { |
|
|
|
|
|
const params = this.selections.map(item => { return item.id }) |
|
|
|
|
|
grantConfirm(params).then(res => { |
|
|
|
|
|
console.log(res, '--人工出库') |
|
|
|
|
|
if (res) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '出库成功!', |
|
|
|
|
|
type: 'success' |
|
|
|
|
|
}) |
|
|
|
|
|
this.crud.refresh() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error('出库失败!') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.handVisible = true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleConfirm() { |
|
|
handleConfirm() { |
|
|
// console.log(this.selections, 'sel') |
|
|
// console.log(this.selections, 'sel') |
|
|
|
|
|
this.crud.downloadLoading = true |
|
|
const params = this.selections.map(item => { return item.id }) |
|
|
const params = this.selections.map(item => { return item.id }) |
|
|
console.log(params, 'params') |
|
|
console.log(params, 'params') |
|
|
grant(params).then(res => { |
|
|
grant(params).then(res => { |
|
|
// console.log(res, '--res') |
|
|
// console.log(res, '--res') |
|
|
this.msgVisible = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: `成功出库${res}盒!`, |
|
|
|
|
|
type: 'success' |
|
|
|
|
|
}) |
|
|
|
|
|
this.crud.refresh() |
|
|
|
|
|
|
|
|
if (res) { |
|
|
|
|
|
this.crud.downloadLoading = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '出库成功!', |
|
|
|
|
|
type: 'success' |
|
|
|
|
|
}) |
|
|
|
|
|
this.outVisible = false |
|
|
|
|
|
this.crud.refresh() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error('出库失败!') |
|
|
|
|
|
this.crud.downloadLoading = false |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 单元格样式 |
|
|
// 单元格样式 |
|
@ -197,6 +244,7 @@ export default { |
|
|
@import '~@/assets/styles/lend-manage.scss'; |
|
|
@import '~@/assets/styles/lend-manage.scss'; |
|
|
.setting-dialog{ |
|
|
.setting-dialog{ |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
|
|
|
font-size: 16px; |
|
|
} |
|
|
} |
|
|
.dpflex{ |
|
|
.dpflex{ |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|