|
@ -2,46 +2,6 @@ import qs from 'qs' |
|
|
import { exportFile } from '@/utils/index' |
|
|
import { exportFile } from '@/utils/index' |
|
|
import { FetchTableDisplayFields, FetchInitArchivesView, FetchFormDisplayFields } from '@/api/archivesManage/archivesList' |
|
|
import { FetchTableDisplayFields, FetchInitArchivesView, FetchFormDisplayFields } from '@/api/archivesManage/archivesList' |
|
|
export const archivesCrud = { |
|
|
export const archivesCrud = { |
|
|
filters: { |
|
|
|
|
|
archivesborrowStatus(val) { |
|
|
|
|
|
// switch (val) {
|
|
|
|
|
|
// case 1:
|
|
|
|
|
|
// return '-'
|
|
|
|
|
|
// case 2:
|
|
|
|
|
|
// return '待借'
|
|
|
|
|
|
// case 3:
|
|
|
|
|
|
// return '已借'
|
|
|
|
|
|
// case 4:
|
|
|
|
|
|
// return '在库'
|
|
|
|
|
|
// case '':
|
|
|
|
|
|
// return '-'
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (val === 1) { |
|
|
|
|
|
return '-' |
|
|
|
|
|
} else if (val === 2) { |
|
|
|
|
|
return '待借' |
|
|
|
|
|
} else if (val === 3) { |
|
|
|
|
|
return '已借' |
|
|
|
|
|
} else if (val === '') { |
|
|
|
|
|
return '-' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
archivesStorageStatus(val) { |
|
|
|
|
|
switch (val) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return '未入' |
|
|
|
|
|
case 1: |
|
|
|
|
|
return '待入' |
|
|
|
|
|
case 2: |
|
|
|
|
|
return '已入' |
|
|
|
|
|
case 3: |
|
|
|
|
|
return '待出' |
|
|
|
|
|
case '': |
|
|
|
|
|
return '未入' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件共用属性
|
|
|
// 组件共用属性
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -226,6 +186,7 @@ export const archivesCrud = { |
|
|
this.borrowTxt[index] = '-' |
|
|
this.borrowTxt[index] = '-' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 借阅状态
|
|
|
// 借阅状态
|
|
|
if (item.is_borrow === 1) { |
|
|
if (item.is_borrow === 1) { |
|
|
this.borrowTxt[index] = '待借' |
|
|
this.borrowTxt[index] = '待借' |
|
|