Browse Source

档案盘点

master
xuhuajiao 1 year ago
parent
commit
1e038805d9
  1. 2
      src/views/archivesManage/archivesCheck/index.vue
  2. 45
      src/views/archivesManage/archivesCheck/module/checkDetail.vue
  3. 7
      src/views/archivesManage/archivesList/index.vue

2
src/views/archivesManage/archivesCheck/index.vue

@ -66,7 +66,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="should" align="center" label="应盘" min-width="60" /> <el-table-column prop="should" align="center" label="应盘" min-width="60" />
<el-table-column prop="correct" align="center" label="已盘" min-width="60" />
<el-table-column prop="checked" align="center" label="已盘" min-width="60" />
<el-table-column prop="noCheck" align="center" label="未盘" min-width="60" /> <el-table-column prop="noCheck" align="center" label="未盘" min-width="60" />
<el-table-column prop="borrowed" align="center" label="已借" min-width="60"> <el-table-column prop="borrowed" align="center" label="已借" min-width="60">
<template slot-scope="scope"> <template slot-scope="scope">

45
src/views/archivesManage/archivesCheck/module/checkDetail.vue

@ -14,7 +14,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="should" align="center" label="应盘" min-width="60" /> <el-table-column prop="should" align="center" label="应盘" min-width="60" />
<el-table-column prop="correct" align="center" label="已盘" min-width="60" />
<el-table-column prop="checked" align="center" label="已盘" min-width="60" />
<el-table-column prop="noCheck" align="center" label="未盘" min-width="60" /> <el-table-column prop="noCheck" align="center" label="未盘" min-width="60" />
<el-table-column prop="borrowed" align="center" label="已借" min-width="60"> <el-table-column prop="borrowed" align="center" label="已借" min-width="60">
<template slot-scope="scope"> <template slot-scope="scope">
@ -52,7 +52,7 @@
<!-- <el-table-column prop="fondsNo" align="center" label="全宗号" :show-overflow-tooltip="true" min-width="90" /> --> <!-- <el-table-column prop="fondsNo" align="center" label="全宗号" :show-overflow-tooltip="true" min-width="90" /> -->
<el-table-column prop="archiveNo" align="center" label="档号" :show-overflow-tooltip="true" min-width="180" /> <el-table-column prop="archiveNo" align="center" label="档号" :show-overflow-tooltip="true" min-width="180" />
<el-table-column prop="maintitle" align="center" :show-overflow-tooltip="true" label="题名" min-width="120" /> <el-table-column prop="maintitle" align="center" :show-overflow-tooltip="true" label="题名" min-width="120" />
<el-table-column prop="docNo" align="center" label="发文字号" min-width="90" />
<el-table-column prop="docNo" align="center" :show-overflow-tooltip="true" label="发文字号" min-width="100" />
<el-table-column prop="archiveYear" align="center" label="年度" min-width="90" /> <el-table-column prop="archiveYear" align="center" label="年度" min-width="90" />
<el-table-column prop="securityClass" align="center" label="密级" min-width="90" /> <el-table-column prop="securityClass" align="center" label="密级" min-width="90" />
<!-- <el-table-column prop="department" align="center" label="部门" min-width="90" /> --> <!-- <el-table-column prop="department" align="center" label="部门" min-width="90" /> -->
@ -113,20 +113,16 @@ export default {
}, },
checkResult(val) { checkResult(val) {
switch (val) { switch (val) {
case 0:
return '未盘'
case 1: case 1:
return '在库'
case 2:
return '已盘' return '已盘'
case 2:
return '已借'
case 3: case 3:
return '错位' return '错位'
case 4: case 4:
return '已借'
return '未盘'
case 5: case 5:
return '异常' return '异常'
case 6:
return '其他'
} }
} }
}, },
@ -150,24 +146,37 @@ export default {
} }
}, },
cell({ row, columnIndex }) { cell({ row, columnIndex }) {
if (row.checkResult === 0 && columnIndex === 1) { //
return 'no-clear-bg'
} else if (row.checkResult === 1 && columnIndex === 1) { //
return 'no-clear'
} else if (row.checkResult === 2 && columnIndex === 1) { //
if (row.checkResult === 1 && columnIndex === 1) { //
return 'have-clear-bg' return 'have-clear-bg'
} else if (row.checkResult === 2 && columnIndex === 1) { //
return 'have-clear'
} else if (row.checkResult === 3 && columnIndex === 1) { // } else if (row.checkResult === 3 && columnIndex === 1) { //
return 'fail-clear' return 'fail-clear'
} else if (row.checkResult === 4 && columnIndex === 1) { //
return 'have-clear'
} else if (row.checkResult === 4 && columnIndex === 1) { //
return 'no-clear-bg'
} else if (row.checkResult === 5 && columnIndex === 1) { // } else if (row.checkResult === 5 && columnIndex === 1) { //
return 'error-clear-bg' return 'error-clear-bg'
} else if (row.checkResult === 6 && columnIndex === 1) { //
return 'other-clear'
} }
} }
} }
} }
// cell({ row, columnIndex }) {
// if (row.checkResult === 0 && columnIndex === 1) { //
// return 'no-clear-bg'
// } else if (row.checkResult === 1 && columnIndex === 1) { //
// return 'no-clear'
// } else if (row.checkResult === 2 && columnIndex === 1) { //
// return 'have-clear-bg'
// } else if (row.checkResult === 3 && columnIndex === 1) { //
// return 'fail-clear'
// } else if (row.checkResult === 4 && columnIndex === 1) { //
// return 'have-clear'
// } else if (row.checkResult === 5 && columnIndex === 1) { //
// return 'error-clear-bg'
// } else if (row.checkResult === 6 && columnIndex === 1) { //
// return 'other-clear'
// }
// }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

7
src/views/archivesManage/archivesList/index.vue

@ -34,8 +34,11 @@
@node-click="handleIntellNodeClick" @node-click="handleIntellNodeClick"
> >
<template #default="{ node }"> <template #default="{ node }">
<span :title="node.label">
<span>{{ node.label }}</span>
<span>
<el-tooltip v-if="node.data.dicPid === null" class="item" effect="dark" content="点击当前根目录取消所选项" placement="top-start">
<span>{{ node.label }}</span>
</el-tooltip>
<span v-else>{{ node.label }}</span>
<span <span
v-if="node.checked && node.data.dicPid !== null" v-if="node.checked && node.data.dicPid !== null"
class="el-icon-check" class="el-icon-check"

Loading…
Cancel
Save