|
|
@@ -14,6 +14,37 @@
|
|
|
* */
|
|
|
|
|
|
const XMLStandard = (function () {
|
|
|
+ //属性类型
|
|
|
+ const TYPE = {
|
|
|
+ DATE: 1, //日期类型YYYY-MM-DD
|
|
|
+ DATE_TIME: 2, //日期类型YYY-MM-DDTHH:mm:ss
|
|
|
+ INT: 3, //整数类型
|
|
|
+ DECIMAL: 4, //数值类型,不限制小数位数
|
|
|
+ NUM2: 5, //数值类型2:最多两位小数
|
|
|
+ BOOL: 6 //布尔型
|
|
|
+ };
|
|
|
+ const WHITE_SPACE = {
|
|
|
+ COLLAPSE: 1 //移除所有空白字符(换行、回车、空格以及制表符会被替换为空格,开头和结尾的空格会被移除,而多个连续的空格会被缩减为一个单一的空格)
|
|
|
+ };
|
|
|
+ //费用类别:固定行ID对应
|
|
|
+ const FEE_TYPE = {
|
|
|
+ [fixedFlag.SUB_ENGINERRING]: '1100',
|
|
|
+ [fixedFlag.MEASURE]: '1200',
|
|
|
+ [fixedFlag.CONSTRUCTION_ORGANIZATION]: '120201',
|
|
|
+ [fixedFlag.SAFETY_CONSTRUCTION]: '1204',
|
|
|
+ [fixedFlag.OTHER]: '1300',
|
|
|
+ [fixedFlag.CHARGE]: '800',
|
|
|
+ [fixedFlag.TAX]: '900',
|
|
|
+ [fixedFlag.ADDED_VALUE_TAX]: '9001',
|
|
|
+ [fixedFlag.ADDITIONAL_TAX]: '9002',
|
|
|
+ [fixedFlag.ENVIRONMENTAL_PROTECTION_TAX]: '9003',
|
|
|
+ 0: '1800', //其他未定义的大项费用
|
|
|
+ };
|
|
|
+ //加载数据间隔,减少服务器压力
|
|
|
+ const TIMEOUT_TIME = 500;
|
|
|
+ function isDef(v) {
|
|
|
+ return typeof v !== 'undefined' && v !== null;
|
|
|
+ }
|
|
|
return function (userID, granularity) {
|
|
|
this.GRANULARITY = {
|
|
|
PROJECT: 1, //导出建设项目
|
|
|
@@ -24,24 +55,6 @@ const XMLStandard = (function () {
|
|
|
if (!granularity || ![1, 2, 3].includes(granularity)) {
|
|
|
granularity = this.GRANULARITY.PROJECT;
|
|
|
}
|
|
|
- //属性类型
|
|
|
- const TYPE = {
|
|
|
- DATE: 1, //日期类型YYYY-MM-DD
|
|
|
- DATE_TIME: 2, //日期类型YYY-MM-DDTHH:mm:ss
|
|
|
- INT: 3, //整数类型
|
|
|
- DECIMAL: 4, //数值类型,不限制小数位数
|
|
|
- NUM2: 5, //数值类型2:最多两位小数
|
|
|
- BOOL: 6 //布尔型
|
|
|
- };
|
|
|
- const WHITE_SPACE = {
|
|
|
- COLLAPSE: 1 //移除所有空白字符(换行、回车、空格以及制表符会被替换为空格,开头和结尾的空格会被移除,而多个连续的空格会被缩减为一个单一的空格)
|
|
|
- };
|
|
|
- //加载数据间隔,减少服务器压力
|
|
|
- const TIMEOUT_TIME = 500;
|
|
|
-
|
|
|
- function isDef(v) {
|
|
|
- return typeof v !== 'undefined' && v !== null;
|
|
|
- }
|
|
|
/*
|
|
|
* 检查
|
|
|
* 创建节点时检查节点的数据
|
|
|
@@ -176,7 +189,7 @@ const XMLStandard = (function () {
|
|
|
{name: '编制单位', value: getValueByKey(source.basicInformation, 'establishmentUnit'), required: true},
|
|
|
{name: '审核单位', value: getValueByKey(source.basicInformation, 'auditUnit')},
|
|
|
{name: '编制人', value: getValueByKey(source.basicInformation, 'buildingUnitAuthor'), required: true},
|
|
|
- {name: '审核人', value: 'todo'},
|
|
|
+ {name: '审核人', value: getValueByKey(source.basicInformation, 'auditUnitAuditor')},
|
|
|
{name: '开工日期', value: getValueByKey(source.basicInformation, 'commencementDate'), type: TYPE.DATE},
|
|
|
{name: '竣工日期', value: getValueByKey(source.basicInformation, 'completionDate'), type: TYPE.DATE},
|
|
|
{name: '编制日期', value: getValueByKey(source.basicInformation, 'establishDate'), type: TYPE.DATE, required: true},
|
|
|
@@ -237,6 +250,12 @@ const XMLStandard = (function () {
|
|
|
{name: '措施项目清单合计', value: summaryInfo.measure, required: true, type: TYPE.NUM2},
|
|
|
{name: '安全文明施工专项费', value: summaryInfo.safetyConstruction, required: true, type: TYPE.NUM2},
|
|
|
{name: '其他项目清单合计', value: summaryInfo.other, required: true, type: TYPE.NUM2},
|
|
|
+ {name: '暂列金额合计', value: summaryInfo.provisional, type: TYPE.NUM2},
|
|
|
+ {name: '材料暂估价合计', value: summaryInfo.materialProvisional, type: TYPE.NUM2},
|
|
|
+ {name: '专业工程暂估价合计', value: summaryInfo.engineeringEstimate, type: TYPE.NUM2},
|
|
|
+ {name: '计日工合计', value: summaryInfo.daywork, type: TYPE.NUM2},
|
|
|
+ {name: '总承包服务费合计', value: summaryInfo.turnKeyContract, type: TYPE.NUM2},
|
|
|
+ {name: '签证索赔合计', value: summaryInfo.claimVisa, type: TYPE.NUM2},
|
|
|
{name: '规费', value: summaryInfo.charge, required: true, type: TYPE.NUM2},
|
|
|
{name: '税金', value: summaryInfo.tax, required: true, type: TYPE.NUM2},
|
|
|
];
|
|
|
@@ -391,15 +410,15 @@ const XMLStandard = (function () {
|
|
|
{name: '单位', value: source.unit, required: true, minLen: 1, maxLen: 20, whiteSpace: WHITE_SPACE.COLLAPSE},
|
|
|
{name: '定额库编码', value: source.libCode, required: true},
|
|
|
{name: '原始定额编号', value: source.code, minLen: 1, maxLen: 80, whiteSpace: WHITE_SPACE.COLLAPSE},
|
|
|
- {name: '子目类型', value: source.subType, required: true, type: TYPE.INT, enumeration: ['0', '1', '2', '3', '4', '5', '6']}, //todo
|
|
|
+ {name: '子目类型', value: source.subType, required: true, type: TYPE.INT, enumeration: ['0', '1', '2', '3', '4', '5', '6']},
|
|
|
{name: '工程量', value: source.quantity, required: true, type: TYPE.DECIMAL},
|
|
|
{name: '工程量计算式', value: source.quantityEXP},
|
|
|
{name: '定额单价', value: getFee(source.fees, 'rationUnitPrice.unitFee'), required: true, type: TYPE.DECIMAL},
|
|
|
{name: '定额合价', value: getFee(source.fees, 'rationUnitPrice.totalFee'), required: true, type: TYPE.NUM2},
|
|
|
{name: '综合单价', value: getFee(source.fees, 'common.unitFee'), required: true, type: TYPE.DECIMAL},
|
|
|
{name: '综合合价', value: getFee(source.fees, 'common.totalFee'), required: true, type: TYPE.NUM2},
|
|
|
- {name: '单价构成文件ID', value: 0, required: true, type: TYPE.INT}, //todo
|
|
|
- {name: '分包标志', value: !!source.isSubcontract, type: TYPE.BOOL},
|
|
|
+ {name: '单价构成文件ID', value: source.programID, required: true, type: TYPE.INT},
|
|
|
+ {name: '分包标志', value: false, type: TYPE.BOOL},
|
|
|
{name: '备注', value: source.remark}
|
|
|
];
|
|
|
element.call(this, '定额子目', attrs);
|
|
|
@@ -601,7 +620,7 @@ const XMLStandard = (function () {
|
|
|
let attrs = [
|
|
|
{name: '编号', value: source.code, minLen: 1, maxLen: 20, whiteSpace: WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '工程名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: WHITE_SPACE.COLLAPSE, required: true},
|
|
|
- {name: '计算基础', value: 0, type: TYPE.DECIMAL, required: true}, //todo
|
|
|
+ {name: '计算基础', value: source.calcBaseValue, type: TYPE.DECIMAL, required: true},
|
|
|
{name: '服务内容', value: source.serviceContent, maxLen: 255, required: true},
|
|
|
{name: '费率', value: source.feeRate, type: TYPE.DECIMAL, required: true},
|
|
|
{name: '金额', value: getFee(source.fees, 'common.totalFee'), type: TYPE.NUM2, required: true},
|
|
|
@@ -618,8 +637,9 @@ const XMLStandard = (function () {
|
|
|
{name: '数量', value: source.quantity, type: TYPE.DECIMAL, required: true},
|
|
|
{name: '单价', value: getFee(source.fees, 'common.unitFee'), type: TYPE.DECIMAL, required: true},
|
|
|
{name: '合价', value: getFee(source.fees, 'common.totalFee'), type: TYPE.NUM2, required: true},
|
|
|
- {name: '依据', value: '', required: true},
|
|
|
- ]
|
|
|
+ {name: '依据', value: source.claimVisa, required: true},
|
|
|
+ ];
|
|
|
+ element.call(this, '签证索赔计价汇总费用项', attrs);
|
|
|
}
|
|
|
//其他定义
|
|
|
function Other(source) {
|
|
|
@@ -702,6 +722,32 @@ const XMLStandard = (function () {
|
|
|
];
|
|
|
element.call(this, '人材机配比', attrs);
|
|
|
}
|
|
|
+ //清单综合单价计算程序定义
|
|
|
+ function CalcProgram() {
|
|
|
+ element.call(this, '清单综合单价计算程序', []);
|
|
|
+ }
|
|
|
+ //综合单价计算程序文件定义
|
|
|
+ function CalcProgramFile(source) {
|
|
|
+ let attrs = [
|
|
|
+ {name: 'ID', value: source.ID, type: TYPE.INT, required: true},
|
|
|
+ {name: '名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: WHITE_SPACE.COLLAPSE, required: true}
|
|
|
+ ];
|
|
|
+ element.call(this, '综合单价计算程序文件', attrs);
|
|
|
+ }
|
|
|
+ //综合单价计算程序费用项定义
|
|
|
+ function CalcProgramFeeItem(source) {
|
|
|
+ let attrs = [
|
|
|
+ {name: '序号', value: source.serialNo, minLen: 1, maxLen: 20, whiteSpace: WHITE_SPACE.COLLAPSE},
|
|
|
+ {name: '行代号', value: source.rowCode, minLen: 1, maxLen: 20, whiteSpace: WHITE_SPACE.COLLAPSE, required: true},
|
|
|
+ {name: '项目名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: WHITE_SPACE.COLLAPSE, required: true},
|
|
|
+ {name: '计算基础表达式', value: source.calcBase, maxLen: 255, required: true},
|
|
|
+ {name: '计算基础说明', value: source.statement, maxLen: 255},
|
|
|
+ {name: '费率', value: source.feeRate, type: TYPE.DECIMAL},
|
|
|
+ {name: '费用类别', value: source.feeType, type: TYPE.INT, required: true},
|
|
|
+ {name: '备注', value: source.remark, maxLen: 255},
|
|
|
+ ];
|
|
|
+ element.call(this, '综合单价计算程序费用项', attrs);
|
|
|
+ }
|
|
|
//主要清单汇总定义
|
|
|
function MainBillsSummary() {
|
|
|
element.call(this, '主要清单汇总', []);
|
|
|
@@ -858,7 +904,8 @@ const XMLStandard = (function () {
|
|
|
engData.children = sortByNext(engData.children);
|
|
|
}
|
|
|
//标段
|
|
|
- let project = curProjectEle = new Project({basicInformation: projectData.property.basicInformation, name: projectData.name});
|
|
|
+ let project = new Project({basicInformation: projectData.property.basicInformation, name: projectData.name});
|
|
|
+ curProjectEle = project;
|
|
|
//项目信息
|
|
|
let projectInfo = new ProjectInfo({basicInformation: projectData.property.basicInformation});
|
|
|
project.children.push(projectInfo);
|
|
|
@@ -902,6 +949,9 @@ const XMLStandard = (function () {
|
|
|
let engineering = new Engineering(source);
|
|
|
//单项工程编号要唯一
|
|
|
checkUnique(curProjectEle.constraints.engCode, source.code, '单项工程编号');
|
|
|
+ //费用构成
|
|
|
+ /*let feeForm = new FeeFrom(summaryInfo[engData.ID]);
|
|
|
+ engineering.children.push(feeForm);*/
|
|
|
//分批次获取单位工程
|
|
|
for (let tenderData of engData.children) {
|
|
|
curPMData.tender = tenderData;
|
|
|
@@ -969,6 +1019,11 @@ const XMLStandard = (function () {
|
|
|
if (gljSummary) {
|
|
|
tender.children.push(gljSummary);
|
|
|
}
|
|
|
+ //清单综合单价计算程序
|
|
|
+ let calcProgram = loadCalcProgram(tenderDetail);
|
|
|
+ if (calcProgram) {
|
|
|
+ tender.children.push(calcProgram);
|
|
|
+ }
|
|
|
//给建设项目下主要清单汇总设置主要清单明细
|
|
|
let curMainBillsSummary = curProjectEle.children.find(ele => ele.name === '主要清单汇总');
|
|
|
if (curMainBillsSummary) {
|
|
|
@@ -995,7 +1050,7 @@ const XMLStandard = (function () {
|
|
|
rowCode: `F${serialNo}`,
|
|
|
name: node.data.name,
|
|
|
calcBase: node.data.calcBase,
|
|
|
- feeRate: node.data.feeRate,
|
|
|
+ feeRate: node.data.feeRate !== '' ? node.data.feeRate : 100,
|
|
|
fees: node.data.fees,
|
|
|
feeType: FEE_TYPE[flag],
|
|
|
remark: node.data.remark
|
|
|
@@ -1092,6 +1147,24 @@ const XMLStandard = (function () {
|
|
|
}
|
|
|
}
|
|
|
loadFeatureContent();
|
|
|
+ //解析工程量计算式
|
|
|
+ function parseQuantityExp(rationData) {
|
|
|
+ if (rationData.quantityEXP === 'QDL') { //取清单工程量
|
|
|
+ return node.data.quantity;
|
|
|
+ } else if (rationData.quantityEXP === 'GCLMXHJ') { //从明细汇总成数值
|
|
|
+ let referDetail = detail.quantity_detail.datas.filter(data => data.rationID === rationData.ID && data.isSummation);
|
|
|
+ if (referDetail.length === 0) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ let rst = 0;
|
|
|
+ for (let d of referDetail) {
|
|
|
+ rst = scMathUtil.roundForObj(rst + d.result, detail.projectInfo.property.decimal.process);
|
|
|
+ }
|
|
|
+ return scMathUtil.roundForObj(rst, detail.projectInfo.property.decimal.ration.quantity);
|
|
|
+ } else {
|
|
|
+ return rationData.quantityEXP;
|
|
|
+ }
|
|
|
+ }
|
|
|
/*
|
|
|
* 加载定额子目
|
|
|
* @param {Array}rationData(清单项目下定额数据) {Array}rationGljData(定额的人材机数据) {Object}decimal(项目小数位数)
|
|
|
@@ -1105,17 +1178,27 @@ const XMLStandard = (function () {
|
|
|
if (rationData.adjustState) {
|
|
|
viewCode += '换';
|
|
|
}
|
|
|
+ //子目类型 补充定额为“1”,标准定额无换算为“0”,标准定额有换算为“2”,其他待完善……
|
|
|
+ let subType;
|
|
|
+ if (rationData.from === 'cpt') {
|
|
|
+ subType = '1';
|
|
|
+ } else if (!rationData.adjustState) {
|
|
|
+ subType = '0';
|
|
|
+ } else {
|
|
|
+ subType = '2';
|
|
|
+ }
|
|
|
let rationSource = {
|
|
|
viewCode: viewCode,
|
|
|
name: rationData.name,
|
|
|
unit: rationData.unit,
|
|
|
libCode: '',
|
|
|
code: rationData.code,
|
|
|
- subType: 1,
|
|
|
+ subType: subType,
|
|
|
quantity: rationData.quantity,
|
|
|
- quantityEXP: rationData.quantityEXP,
|
|
|
+ quantityEXP: parseQuantityExp(rationData),
|
|
|
fees: rationData.fees,
|
|
|
isSubcontract: rationData.isSubcontract,
|
|
|
+ programID: rationData.programID,
|
|
|
remark: rationData.remark
|
|
|
};
|
|
|
if (rationData.from === 'std' && isDef(rationData.libID)) { //来自标准库,设置定额库编码
|
|
|
@@ -1246,7 +1329,7 @@ const XMLStandard = (function () {
|
|
|
code: node.data.code,
|
|
|
name: node.data.name,
|
|
|
calcBase: node.data.calcBase,
|
|
|
- feeRate: node.data.feeRate,
|
|
|
+ feeRate: node.data.feeRate !== '' ? node.data.feeRate : 100,
|
|
|
fees: node.data.fees,
|
|
|
remark: node.data.remark,
|
|
|
feeType: FEE_TYPE[fixedFlag.CONSTRUCTION_ORGANIZATION]
|
|
|
@@ -1446,8 +1529,10 @@ const XMLStandard = (function () {
|
|
|
} else { //总承包服务费费用项
|
|
|
let source = {
|
|
|
code: node.data.code,
|
|
|
+ name: node.data.name,
|
|
|
serviceContent: node.data.serviceContent,
|
|
|
- feeRate: node.data.feeRate,
|
|
|
+ calcBaseValue: node.data.calcBaseValue,
|
|
|
+ feeRate: node.data.feeRate !== '' ? node.data.feeRate : 100,
|
|
|
fees: node.data.fees,
|
|
|
remark: node.data.remark
|
|
|
};
|
|
|
@@ -1483,7 +1568,7 @@ const XMLStandard = (function () {
|
|
|
code: node.data.code,
|
|
|
name: node.data.name,
|
|
|
calcBase: node.data.calcBase,
|
|
|
- feeRate: node.data.feeRate,
|
|
|
+ feeRate: node.data.feeRate !== '' ? node.data.feeRate : 100,
|
|
|
commonTotalFee: totalFee,
|
|
|
remark: node.data.remark
|
|
|
});
|
|
|
@@ -1521,7 +1606,7 @@ const XMLStandard = (function () {
|
|
|
rowCode: `F${serialNo}`,
|
|
|
name: node.data.name,
|
|
|
calcBase: node.data.calcBase,
|
|
|
- feeRate: node.data.feeRate,
|
|
|
+ feeRate: node.data.feeRate !== '' ? node.data.feeRate : 100,
|
|
|
fees: node.data.fees,
|
|
|
feeType: FEE_TYPE[getNodeFlag(node)],
|
|
|
remark: node.data.remark
|
|
|
@@ -1538,7 +1623,10 @@ const XMLStandard = (function () {
|
|
|
* @return {void}
|
|
|
* */
|
|
|
function loadMainBillsItems(parent, detail) {
|
|
|
- let mainBills = detail.Bills.datas.filter(data => data.mainBills);
|
|
|
+ let mainBills = detail.Bills.datas.filter(data => {
|
|
|
+ let billsNode = detail.Bills.tree.nodes[`${detail.Bills.tree.prefix}${data.ID}`];
|
|
|
+ return data.mainBills && billsNode && billsNode.children.length === 0;
|
|
|
+ });
|
|
|
for (let bills of mainBills) {
|
|
|
let source = {
|
|
|
code: bills.code,
|
|
|
@@ -1572,9 +1660,15 @@ const XMLStandard = (function () {
|
|
|
for (let glj of allGljs) {
|
|
|
let price = gljUtil.getGLJPrice(glj, detail.projectGLJ.datas,
|
|
|
curPMData.tender.property.calcOptions, detail.labourCoe.datas, curPMData.tender.property.decimal, false, _, scMathUtil);
|
|
|
+ //获取人材机费用类别: 1=人工费 2=材料费 3=机械费 4=未计价费
|
|
|
+ let feeType = glj.type.toString()[0];
|
|
|
+ if (feeType && !['1', '2', '3'].includes(feeType)) {
|
|
|
+ feeType = '4';
|
|
|
+ }
|
|
|
let gljSource = {
|
|
|
code: glj.code,
|
|
|
name: glj.name,
|
|
|
+ feeType: feeType,
|
|
|
spec: glj.spec,
|
|
|
unit: glj.unit,
|
|
|
orgCode: glj.original_code,
|
|
|
@@ -1605,6 +1699,51 @@ const XMLStandard = (function () {
|
|
|
return gljSummary;
|
|
|
}
|
|
|
}
|
|
|
+ /*
|
|
|
+ * 加载清单综合单价计算程序
|
|
|
+ * */
|
|
|
+ function loadCalcProgram(detail) {
|
|
|
+ let calcProgram = detail.calcProgram;
|
|
|
+ if (!calcProgram) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ let calcProramTemplates = calcProgram.templates;
|
|
|
+ if (!Array.isArray(calcProramTemplates) || calcProramTemplates.length === 0) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ //创建清单综合单价计算程序
|
|
|
+ let calcProgramEle = new CalcProgram();
|
|
|
+ //创建综合单价计算程序文件
|
|
|
+ for (let calcFile of calcProramTemplates) {
|
|
|
+ let calcFileEle = new CalcProgramFile({ID: calcFile.ID, name: calcFile.name});
|
|
|
+ //创建计算程序费用项
|
|
|
+ for (let calcItem of calcFile.calcItems) {
|
|
|
+ let idx = calcFile.calcItems.indexOf(calcItem);
|
|
|
+ //如果是有[]的基数则转换为其简称,如“[定额人工费]”对应的检查是"RGF"
|
|
|
+ let calcBase = calcItem.dispExpr.replace(/\[[\u4e00-\u9fa5]+\]/g, str => rationBaseShort[str] ? rationBaseShort[str] : '');
|
|
|
+ let feeType = calcProgram.feeTypes.find(data => data.type === calcItem.fieldName);
|
|
|
+ if (feeType) {
|
|
|
+ feeType = feeType.code;
|
|
|
+ }
|
|
|
+ let source = {
|
|
|
+ serialNo: idx + 1,
|
|
|
+ rowCode: `F${idx + 1}`,
|
|
|
+ name: calcItem.name,
|
|
|
+ calcBase: calcBase,
|
|
|
+ statement: calcItem.statement,
|
|
|
+ feeRate: calcItem.feeRate !== '' ? calcItem.feeRate : 100,
|
|
|
+ feeType: feeType,
|
|
|
+ remark: calcItem.memo
|
|
|
+ };
|
|
|
+ let calcItemEle = new CalcProgramFeeItem(source);
|
|
|
+ calcFileEle.children.push(calcItemEle);
|
|
|
+ }
|
|
|
+ if (calcFileEle.children.length > 0) { //计算程序文件必须有费用项
|
|
|
+ calcProgramEle.children.push(calcFileEle);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return calcProgramEle.children.length > 0 ? calcProgramEle : null;
|
|
|
+ }
|
|
|
//开始标签
|
|
|
function startTag(ele) {
|
|
|
let rst = `<${ele.name}`;
|
|
|
@@ -1669,11 +1808,13 @@ const XMLStandard = (function () {
|
|
|
}
|
|
|
/*
|
|
|
* 导出数据
|
|
|
- * @param {Number}tenderID(当前界面的单位工程ID,后台根据这个单位工程,去找其建设项目下所有数据)
|
|
|
+ * @param {Number}tenderID(当前界面的单位工程ID,后台根据这个单位工程,根据导出粒度去找其建设项目下相关数据)
|
|
|
* @return {void}
|
|
|
* */
|
|
|
this.toXml = async function (tenderID) {
|
|
|
let eleData = await loadProject(tenderID);
|
|
|
+ this.datas = eleData;
|
|
|
+ //console.log(eleData);
|
|
|
if (!eleData) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -1683,7 +1824,7 @@ const XMLStandard = (function () {
|
|
|
xmlStr = `<?xml version="1.0" encoding="utf-8"?>${xmlStr}`;
|
|
|
//格式化
|
|
|
xmlStr = formatXml(xmlStr);
|
|
|
- let blob = new Blob([xmlStr], {type: 'text/plain;charset=uft-8'});
|
|
|
+ let blob = new Blob([xmlStr], {type: 'text/plain;charset=utf-8'});
|
|
|
saveAs(blob, '重庆标准交换数据.xml');
|
|
|
}
|
|
|
}
|