|
|
@ -14,7 +14,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<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="borrowed" align="center" label="已借" min-width="60"> |
|
|
|
<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="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="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="securityClass" 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) { |
|
|
|
switch (val) { |
|
|
|
case 0: |
|
|
|
return '未盘' |
|
|
|
case 1: |
|
|
|
return '在库' |
|
|
|
case 2: |
|
|
|
return '已盘' |
|
|
|
case 2: |
|
|
|
return '已借' |
|
|
|
case 3: |
|
|
|
return '错位' |
|
|
|
case 4: |
|
|
|
return '已借' |
|
|
|
return '未盘' |
|
|
|
case 5: |
|
|
|
return '异常' |
|
|
|
case 6: |
|
|
|
return '其他' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -150,24 +146,37 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
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' |
|
|
|
} else if (row.checkResult === 2 && columnIndex === 1) { // 已借 |
|
|
|
return 'have-clear' |
|
|
|
} else if (row.checkResult === 3 && columnIndex === 1) { // 错位 |
|
|
|
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) { // 异常 |
|
|
|
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> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|