1
0
mirror of synced 2025-12-07 22:17:58 +08:00

import parse

This commit is contained in:
xuecong
2022-11-30 12:43:17 +08:00
parent 5d29daf302
commit 4c4f883587

View File

@@ -60,6 +60,7 @@ const PcBuildingParseAction = <Action>{
},
response: async ctx => {
const { file } = ctx.request.files;
const { community_id } = <RequestBody>ctx.request.body;
const sheetData = xlsx.parse((<File>file).path);
const dataIndex = sheetData.findIndex(item => item.name === '固定资产数据');
@@ -126,7 +127,8 @@ const PcBuildingParseAction = <Action>{
area: area ? area : null,
building: building ? building : null,
unit: unit ? unit : null,
number
number,
community_id
};
const haveDefineOwerValue = [name, idcard, phone].some(val => val);