ecinc-cloud-mappaio 9.6.75 → 9.6.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ecmappaio.common.js
CHANGED
|
@@ -40211,7 +40211,8 @@ var wfengine_install = function install(Vue) {
|
|
|
40211
40211
|
var attachShortName = $scope.attachments[i].fileName.substring(0, $scope.attachments[i].fileName.lastIndexOf('.'));
|
|
40212
40212
|
if ($scope.attachments[i].fileType.toUpperCase() === 'BODY') {
|
|
40213
40213
|
if (attachShortName === bydyShortName || $scope.attachments[i].originalName.split('.')[0] === bydyShortName) {
|
|
40214
|
-
var extName = $scope.attachments[i].
|
|
40214
|
+
var extName = $scope.attachments[i].originalName.split('.')[1].toLowerCase();
|
|
40215
|
+
|
|
40215
40216
|
// pdf格式优先
|
|
40216
40217
|
if (!$scope.bodyfile || extName === 'pdf' || extName === 'ofd') {
|
|
40217
40218
|
$scope.bodyfile = $scope.attachments[i];
|
|
@@ -40224,7 +40225,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40224
40225
|
}
|
|
40225
40226
|
if (!$scope.bodyfile) {
|
|
40226
40227
|
$scope.attachments.forEach(function (attachment) {
|
|
40227
|
-
var extName = attachment.
|
|
40228
|
+
var extName = attachment.originalName.split('.')[1].toLowerCase();
|
|
40228
40229
|
if (attachment.fileType.toUpperCase() === 'BODY' && (extName === 'pdf' || extName === 'ofd')) {
|
|
40229
40230
|
$scope.bodyfile = attachment;
|
|
40230
40231
|
}
|
|
@@ -40237,7 +40238,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40237
40238
|
} else {
|
|
40238
40239
|
$scope.attachments.forEach(function (attachment) {
|
|
40239
40240
|
if (attachment.fileType.toUpperCase() === 'BODY') {
|
|
40240
|
-
var _extName = attachment.
|
|
40241
|
+
var _extName = attachment.originalName.split('.')[1].toLowerCase();
|
|
40241
40242
|
if (attachment.fileName.indexOf('RedTitle_') === 0 && (_extName === 'pdf' || _extName === 'ofd')) {
|
|
40242
40243
|
$scope.bodyfile = attachment;
|
|
40243
40244
|
$scope.redTitleFile = JSON.parse(JSON.stringify(attachment)); //套红文件
|
|
@@ -40263,7 +40264,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40263
40264
|
if (!$scope.bodyfile) {
|
|
40264
40265
|
$scope.attachments.forEach(function (attachment) {
|
|
40265
40266
|
if (attachment.fileType.toUpperCase() === 'BODY' && attachment.originalName.split('.')[0] === $scope.wfInstance.bodyDocId) {
|
|
40266
|
-
var _extName2 = attachment.
|
|
40267
|
+
var _extName2 = attachment.originalName.split('.')[1].toLowerCase();
|
|
40267
40268
|
if (_extName2 === 'pdf' || _extName2 === 'ofd' || attachment.filePath.indexOf('/noTracks/') !== -1) {
|
|
40268
40269
|
// pdf格式优先、无修订DOC优先
|
|
40269
40270
|
$scope.bodyfile = attachment;
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -40221,7 +40221,8 @@ var wfengine_install = function install(Vue) {
|
|
|
40221
40221
|
var attachShortName = $scope.attachments[i].fileName.substring(0, $scope.attachments[i].fileName.lastIndexOf('.'));
|
|
40222
40222
|
if ($scope.attachments[i].fileType.toUpperCase() === 'BODY') {
|
|
40223
40223
|
if (attachShortName === bydyShortName || $scope.attachments[i].originalName.split('.')[0] === bydyShortName) {
|
|
40224
|
-
var extName = $scope.attachments[i].
|
|
40224
|
+
var extName = $scope.attachments[i].originalName.split('.')[1].toLowerCase();
|
|
40225
|
+
|
|
40225
40226
|
// pdf格式优先
|
|
40226
40227
|
if (!$scope.bodyfile || extName === 'pdf' || extName === 'ofd') {
|
|
40227
40228
|
$scope.bodyfile = $scope.attachments[i];
|
|
@@ -40234,7 +40235,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40234
40235
|
}
|
|
40235
40236
|
if (!$scope.bodyfile) {
|
|
40236
40237
|
$scope.attachments.forEach(function (attachment) {
|
|
40237
|
-
var extName = attachment.
|
|
40238
|
+
var extName = attachment.originalName.split('.')[1].toLowerCase();
|
|
40238
40239
|
if (attachment.fileType.toUpperCase() === 'BODY' && (extName === 'pdf' || extName === 'ofd')) {
|
|
40239
40240
|
$scope.bodyfile = attachment;
|
|
40240
40241
|
}
|
|
@@ -40247,7 +40248,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40247
40248
|
} else {
|
|
40248
40249
|
$scope.attachments.forEach(function (attachment) {
|
|
40249
40250
|
if (attachment.fileType.toUpperCase() === 'BODY') {
|
|
40250
|
-
var _extName = attachment.
|
|
40251
|
+
var _extName = attachment.originalName.split('.')[1].toLowerCase();
|
|
40251
40252
|
if (attachment.fileName.indexOf('RedTitle_') === 0 && (_extName === 'pdf' || _extName === 'ofd')) {
|
|
40252
40253
|
$scope.bodyfile = attachment;
|
|
40253
40254
|
$scope.redTitleFile = JSON.parse(JSON.stringify(attachment)); //套红文件
|
|
@@ -40273,7 +40274,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40273
40274
|
if (!$scope.bodyfile) {
|
|
40274
40275
|
$scope.attachments.forEach(function (attachment) {
|
|
40275
40276
|
if (attachment.fileType.toUpperCase() === 'BODY' && attachment.originalName.split('.')[0] === $scope.wfInstance.bodyDocId) {
|
|
40276
|
-
var _extName2 = attachment.
|
|
40277
|
+
var _extName2 = attachment.originalName.split('.')[1].toLowerCase();
|
|
40277
40278
|
if (_extName2 === 'pdf' || _extName2 === 'ofd' || attachment.filePath.indexOf('/noTracks/') !== -1) {
|
|
40278
40279
|
// pdf格式优先、无修订DOC优先
|
|
40279
40280
|
$scope.bodyfile = attachment;
|