|
@ -101,6 +101,12 @@ |
|
|
{{ scope.row[field.fieldName] }} |
|
|
{{ scope.row[field.fieldName] }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="标签" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<!-- 未绑 / 已绑 --> |
|
|
|
|
|
<span :class="['row-state', 'row-binding', scope.row.tid ? 'state-active' : '' ]">{{ scope.row.tid ? '已绑': '未绑' }}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="装盒" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="装盒" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
<!-- state-active 已装/已入/已借/已绑 --> |
|
|
<!-- state-active 已装/已入/已借/已绑 --> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
@ -109,23 +115,18 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="入库" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="入库" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
<template slot-scope=""> |
|
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<!-- is_storage 为空的情况下即没装盒 / 0 未入 / 1 待入 / 2 已入 / 3 待出--> |
|
|
<!-- is_storage 为空的情况下即没装盒 / 0 未入 / 1 待入 / 2 已入 / 3 待出--> |
|
|
<span class="row-state row-warehousing">>{{ scope.row.is_storage | archivesStorageStatus }}</span> |
|
|
|
|
|
|
|
|
<span class="row-state row-warehousing">{{ storageTxt[scope.$index] }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="借阅" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="借阅" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- is_borrow 4 已归还 / 为空 - 未加入待借列表 - 在库 / 2 待借阅(在待借列表/借出确认列表) - 待借 / 1待登记 - 不可借-用“—” 表示 / 3 待归还 - 已借 --> |
|
|
<!-- is_borrow 4 已归还 / 为空 - 未加入待借列表 - 在库 / 2 待借阅(在待借列表/借出确认列表) - 待借 / 1待登记 - 不可借-用“—” 表示 / 3 待归还 - 已借 --> |
|
|
<span class="row-state row-lending">{{ scope.row.is_borrow | archivesborrowStatus }}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column v-if="!recycleMain.isRecycle" label="标签" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<!-- 未绑 / 已绑 --> |
|
|
|
|
|
<span :class="['row-state', 'row-binding', scope.row.tid ? 'state-active' : '' ]">{{ scope.row.tid ? '已绑': '未绑' }}</span> |
|
|
|
|
|
|
|
|
<span class="row-state row-lending">{{ borrowTxt[scope.$index] }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
<!--分页组件--> |
|
|
<!--分页组件--> |
|
|
<el-pagination |
|
|
<el-pagination |
|
@ -368,12 +369,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 借阅 |
|
|
// 借阅 |
|
|
handleLending() { |
|
|
handleLending() { |
|
|
|
|
|
const index = this.selections.findIndex((item) => item.is_storage === 0 || item.is_storage === '' || item.is_storage === 1) |
|
|
|
|
|
const index2 = this.selections.findIndex((item) => item.is_borrow === 3) |
|
|
|
|
|
if (index !== -1) { |
|
|
|
|
|
this.$message.error('所选档案还未入库不能借阅') |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
if (index2 !== -1) { |
|
|
|
|
|
this.$message.error('当前档案已借出,还未归还') |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
const params = this.selections.map(item => { |
|
|
const params = this.selections.map(item => { |
|
|
return item.id |
|
|
return item.id |
|
|
}) |
|
|
}) |
|
|
FetchIsExistBorrow(params).then(data => { |
|
|
FetchIsExistBorrow(params).then(data => { |
|
|
if (data.length === 0) { |
|
|
if (data.length === 0) { |
|
|
this.lengingVisible = true |
|
|
this.lengingVisible = true |
|
|
|
|
|
} else if (data.length === this.selections.length) { |
|
|
|
|
|
this.$message.error('所选档案不可借阅') |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error('部分档案不可借阅') |
|
|
this.$message.error('部分档案不可借阅') |
|
|
} |
|
|
} |
|
@ -388,6 +401,7 @@ export default { |
|
|
if (data.length !== 0) { |
|
|
if (data.length !== 0) { |
|
|
this.$message.success('借阅成功') |
|
|
this.$message.success('借阅成功') |
|
|
this.lengingVisible = false |
|
|
this.lengingVisible = false |
|
|
|
|
|
this.crud.refresh() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|