|
|
@@ -290,7 +290,9 @@ export default {
|
|
|
return Array.isArray(data) ? data.reduce((acc, item) => ({ ...acc, [item.label]: item.name }), {}) : {}
|
|
|
},
|
|
|
handleImportTableActionEvent (file, options) {
|
|
|
+ debugger
|
|
|
IbpsImport.xlsx(file, options).then(({ header, results }) => {
|
|
|
+ debugger
|
|
|
const list = []
|
|
|
const keys = this.getKeys(this.getColumns())
|
|
|
results.forEach(item => {
|
|
|
@@ -302,6 +304,7 @@ export default {
|
|
|
})
|
|
|
list.push(obj)
|
|
|
})
|
|
|
+ /*
|
|
|
const filteredArray = list.map(item => {
|
|
|
if (item.jyxm && item.fhl && item.jl) {
|
|
|
return item
|
|
|
@@ -322,7 +325,7 @@ export default {
|
|
|
el.pq = (el.pq + '').replace('-', '')
|
|
|
}
|
|
|
})
|
|
|
- })
|
|
|
+ })*/
|
|
|
this.reagentData = list
|
|
|
this.disabled = true
|
|
|
setTimeout(() => {
|