|
|
@@ -290,9 +290,7 @@ 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 => {
|
|
|
@@ -304,7 +302,6 @@ export default {
|
|
|
})
|
|
|
list.push(obj)
|
|
|
})
|
|
|
- /*
|
|
|
const filteredArray = list.map(item => {
|
|
|
if (item.jyxm && item.fhl && item.jl) {
|
|
|
return item
|
|
|
@@ -318,14 +315,15 @@ export default {
|
|
|
el.jl = item.jl
|
|
|
el.xmfhl = item.xmfhl
|
|
|
}
|
|
|
+ /*
|
|
|
if (el.sjcz) {
|
|
|
el.sjcz = (el.sjcz + '').replace('-', '')
|
|
|
}
|
|
|
if (el.pq) {
|
|
|
el.pq = (el.pq + '').replace('-', '')
|
|
|
- }
|
|
|
+ }*/
|
|
|
})
|
|
|
- })*/
|
|
|
+ })
|
|
|
this.reagentData = list
|
|
|
this.disabled = true
|
|
|
setTimeout(() => {
|