|
@@ -69,25 +69,25 @@ export default {
|
|
|
orgName: '',
|
|
orgName: '',
|
|
|
loading: false,
|
|
loading: false,
|
|
|
typeData: [
|
|
typeData: [
|
|
|
- { id: '0', label: '质量手册' },
|
|
|
|
|
- { id: '1', label: '程序文件' },
|
|
|
|
|
- { id: '2', label: '程序文件表单' },
|
|
|
|
|
- { id: '3', label: '检测方法SOP' },
|
|
|
|
|
- { id: '4', label: '设备操作维护SOP' },
|
|
|
|
|
- { id: '5', label: '设备设施验证SOP' },
|
|
|
|
|
- { id: '6', label: '检测方法验证SOP' },
|
|
|
|
|
- { id: '7', label: '管理类SOP' },
|
|
|
|
|
- { id: '8', label: '检测方法SOP表单' },
|
|
|
|
|
- { id: '9', label: '设备操作维护SOP表单' },
|
|
|
|
|
- { id: '10', label: '设备设施验证SOP表单' },
|
|
|
|
|
- { id: '11', label: '检测方法验证SOP表单' },
|
|
|
|
|
- { id: '12', label: '管理类SOP表单' },
|
|
|
|
|
- { id: '13', label: '公司管理制度' },
|
|
|
|
|
- { id: '14', label: '非检测方法SOP' },
|
|
|
|
|
- { id: '15', label: '检测方法确认SOP' },
|
|
|
|
|
- { id: '16', label: '非标确认规定' },
|
|
|
|
|
- { id: '17', label: '非检测方法SOP表单' },
|
|
|
|
|
- { id: '18', label: '非检测方法确认SOP表单' },
|
|
|
|
|
|
|
+ // { id: '0', label: '质量手册' },
|
|
|
|
|
+ // { id: '1', label: '程序文件' },
|
|
|
|
|
+ // { id: '2', label: '程序文件表单' },
|
|
|
|
|
+ // { id: '3', label: '检测方法SOP' },
|
|
|
|
|
+ // { id: '4', label: '设备操作维护SOP' },
|
|
|
|
|
+ // { id: '5', label: '设备设施验证SOP' },
|
|
|
|
|
+ // { id: '6', label: '检测方法验证SOP' },
|
|
|
|
|
+ // { id: '7', label: '管理类SOP' },
|
|
|
|
|
+ // { id: '8', label: '检测方法SOP表单' },
|
|
|
|
|
+ // { id: '9', label: '设备操作维护SOP表单' },
|
|
|
|
|
+ // { id: '10', label: '设备设施验证SOP表单' },
|
|
|
|
|
+ // { id: '11', label: '检测方法验证SOP表单' },
|
|
|
|
|
+ // { id: '12', label: '管理类SOP表单' },
|
|
|
|
|
+ // { id: '13', label: '公司管理制度' },
|
|
|
|
|
+ // { id: '14', label: '非检测方法SOP' },
|
|
|
|
|
+ // { id: '15', label: '检测方法确认SOP' },
|
|
|
|
|
+ // { id: '16', label: '非标确认规定' },
|
|
|
|
|
+ // { id: '17', label: '非检测方法SOP表单' },
|
|
|
|
|
+ // { id: '18', label: '非检测方法确认SOP表单' },
|
|
|
],
|
|
],
|
|
|
filterText: '',
|
|
filterText: '',
|
|
|
defaultProps: {
|
|
defaultProps: {
|
|
@@ -150,6 +150,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
// this.loadNode()
|
|
// this.loadNode()
|
|
|
|
|
+ this.getType()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
filterNode(value, data) {
|
|
filterNode(value, data) {
|
|
@@ -170,6 +171,18 @@ export default {
|
|
|
// this.loading = false
|
|
// this.loading = false
|
|
|
// })
|
|
// })
|
|
|
},
|
|
},
|
|
|
|
|
+ getType() {
|
|
|
|
|
+ let sql = `select * FROM t_skwjlxpzb WHERE wen_jian_lei_xing = '内部文件' order by pai_lie_shun_xu_ asc`
|
|
|
|
|
+ curdPost('sql', sql).then(res => {
|
|
|
|
|
+ let typeDatas = res.variables.data
|
|
|
|
|
+ for (var i of typeDatas) {
|
|
|
|
|
+ let type = {}
|
|
|
|
|
+ type.id = i.pai_lie_shun_xu_
|
|
|
|
|
+ type.label = i.wen_jian_xi_lei_
|
|
|
|
|
+ this.typeData.push(type)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getDatas(sorts) {
|
|
getDatas(sorts) {
|
|
|
this.listData = []
|
|
this.listData = []
|
|
|
let wheres = ''
|
|
let wheres = ''
|
|
@@ -231,7 +244,7 @@ export default {
|
|
|
return
|
|
return
|
|
|
} else {
|
|
} else {
|
|
|
this.getDatas({
|
|
this.getDatas({
|
|
|
- fileType: this.typeData[data.id].label,
|
|
|
|
|
|
|
+ fileType: this.typeData[data.id - 1].label,
|
|
|
userId: this.$store.getters.userInfo.employee.id,
|
|
userId: this.$store.getters.userInfo.employee.id,
|
|
|
sorts: { 'wen_jian_bian_hao': 'desc' }
|
|
sorts: { 'wen_jian_bian_hao': 'desc' }
|
|
|
})
|
|
})
|