|
|
@@ -161,6 +161,13 @@ INTERFACE_EXPORT = (() => {
|
|
|
, regRt1 = new RegExp('\n\r', 'g'), regRt2 = new RegExp('\r\n', 'g')
|
|
|
;
|
|
|
|
|
|
+ function getXMLTransitCharacters(orgStr) {
|
|
|
+ if ( typeof orgStr === 'string') {
|
|
|
+ return orgStr.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/&/g, '&').replace(/'/g, ''');
|
|
|
+ }
|
|
|
+ return orgStr;
|
|
|
+ }
|
|
|
+
|
|
|
function getBasePrice(projectGLJID, tenderProject) {
|
|
|
let glj = _.find(tenderProject.projectGLJ.datas.gljList, {
|
|
|
id: projectGLJID
|
|
|
@@ -1636,7 +1643,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
let leafBillAttrs = [
|
|
|
{ name: 'ItemNo', value: sno },
|
|
|
{ name: 'Code', value: cacheObj[billIdKey].code },
|
|
|
- { name: 'Name', value: cacheObj[billIdKey].name },
|
|
|
+ { name: 'Name', value: getXMLTransitCharacters(cacheObj[billIdKey].name) },
|
|
|
{ name: 'LaborWorkDays', value: _getNumValueByExportKind(scMathUtil.roundForObj(cacheObj[billIdKey].labourConsume / bQtn, decimalObj.glj.quantity)) },
|
|
|
{ name: 'LaborUnitPrice', value: _getNumValueByExportKind(scMathUtil.roundForObj(cacheObj[billIdKey].labourUnitPrice, decimalObj.glj.unitPrice)) },
|
|
|
{ name: 'LaborUnitTotal', value: _getNumValueByExportKind(scMathUtil.roundForObj(cacheObj[billIdKey].labourTotalPrice / bQtn, decimalObj.glj.unitPrice)) },
|